pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
199 stars 167 forks source link

Recover former LoRa MAC? #193

Closed nevercast closed 6 years ago

nevercast commented 6 years ago

Please include the following information when submitting a bug report:

(sysname='LoPy', nodename='LoPy', release='1.19.0.b3', version='v1.9.4-44b21d6 on 2018-07-01', machine='LoPy with ESP32', lorawan='1.0.2')

I have discovered the hard way that the LoRa MAC is not stored in some fuses but in flash, I've deleted it. Is there anyway to recover the former LoRa MAC address of this device? If I provide you with the WiFi MAC do you have the LoRa MAC available? The unique id is 24-0a-c4-0a-ab-c0

Cheers. Josh.

robert-hh commented 6 years ago

That's not an issue, and was discussed quite a few times in the forum. And in your list above, after step i the flash should be completely empty. Especially step ii is not possible without reloading a firmware image. You can restore the Lora MAC by performing a regular firmware upload with the PyCom updater.

Xykon commented 6 years ago

The software server will only know the LoRa mac of the device if it was updated with the Pycom firmware tool at least once before it was erased. The latest beta firmware updater has a function to assign a new Mac (pending availability) if the mac was erased without a backup being made. The download links for the beta firmware updater are available on the forum.

nevercast commented 6 years ago

@robert-hh Aye, I missed the step where I reflashed the 1.19.0.b3 image.

Thanks, both, I'll try the Firmware Updater and see if that recovers the mac, if not, I guess I'll get a new one. Cheers.