Copying the ieee address of an adapter
When migrating from one stick to another it is important that the new stick uses the same ieee address as the old stick. Some devices lookup the coordinator by its ieee address, this fails when the ieee address of the coordinator changes. There are various tools which can do this.
First you have to determine the ieee address of your old stick, there are 2 ways to do this:
- Open the frontend, go to "Settings" -> "About" -> "Coordinator IEEE Address"
- Open the
data/database.db
; on the first line you will find the coordinator ieee address:
{"id":1,"type":"Coordinator","ieeeAddr":"0x00124b000e89686d","nwkAddr":0...
Note that the primary ieee address will remain the same and these instructions only change the secondary ieee address. The tools below generally only show the primary ieee address, so it can appear that the changes aren't taking effect. Setting the secondary ieee address via the instructions below is sufficient to avoid the problem mentioned above.
ZigStar Multi Tool
Supports: CC2652, CC1352, CC2538
- Download and run the tool
- Plug in your adapter and put it in BSL mode, consult your adapters manual on how to put it in BSL mode
- Click refresh icon and select your adapter
- Fill in the old coordinators ieee address under "IEEE" (first
0x
can be skipped) - Check "Write IEEE" and click "Write IEEE"
- Reflash the firmware on your stick (this is important, otherwise the coordinator will not use the new ieee address)
cc2538-bsl
Supports: CC2652, CC1352, CC2538
- Download the tool
- Plug in your adapter and put it in BSL mode, consult your adapters manual on how to put it in BSL mode (if necessary, some adapters have an autobootloader, e.g. this one)
- Run
./cc2538-bsl.py -evw --ieee-address 00:12:4b:aa:bb:cc:dd:ee -p /dev/tty.usbserial-10 ./fw.hex
, replace:00:12:4b:aa:bb:cc:dd:ee
with your coordinator ieee address (first0x
can be skipped)/dev/tty.usbserial-10
with the path to your adapter (for Sonoff Zigbee USB Dongle Plus--bootloader-sonoff-usb
is needed as well)./fw.hex
with the path to your adapters firmware.
FLASH-PROGRAMMER-2
Supports: CC2652, CC1352, CC2538
- Download the tool
- Plug in your adapter and put it in BSL mode, consult your adapters manual on how to put it in BSL mode
- Select your adapter, go to "MAC address"
- Fill the old coordinator ieee address into "Secondary Address" -> "IEEE 802.15.4 MAC address" (first
0x
can be skipped) - Press "Write"
- Reflash the firmware on your stick - in the right corner under Secondary MAC check "Retain secondary IEEE" (this is important, otherwise the coordinator will not use the new ieee address)