mercenaruss / zigstar_addons

Home Assistant add-ons for Flashing ZigStar Devices
Apache License 2.0
55 stars 3 forks source link

[REQUEST] Ability to "Write IEEE address" (i.e. option to change IEEE address) with zigstar-cc2652-flasher add-on #20

Open Hedda opened 6 months ago

Hedda commented 6 months ago

Request add ability to write IEEE address (i.e. option to add/change secondary EUI64 IEEE) with zigstar-cc2652-flasher add-ons.

Assume possible since based on cc1352-flasher which is turn is a fork of cc2538-bsl which has a feature capable of that function?

ZigStar Multi Tool and cc2538-bsl allow users to "Write secondary IEEE" but would also be great if could do it via this HA addon:

https://www.zigbee2mqtt.io/guide/adapters/flashing/copy_ieeaddr.html

ZigStar Multi Tool Supports: CC2652, CC1352, CC2538

  1. Download and run the tool
  2. Plug in your adapter and put it in BSL mode, consult your adapters manual on how to put it in BSL mode
  3. Click refresh icon and select your adapter
  4. Fill in the old coordinators ieee address under "IEEE" (first 0x can be skipped)
  5. Check "Write IEEE" and click "Write IEEE"
  6. 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

  1. Download the tool
  2. 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)
  3. 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 (first 0x can be skipped)
    • /dev/tty.usbserial-10 with the path to your adapter
    • ./fw.hex with the path to your adapters firmware.

FLASH-PROGRAMMER-2 Supports: CC2652, CC1352, CC2538

  1. Download the tool
  2. Plug in your adapter and put it in BSL mode, consult your adapters manual on how to put it in BSL mode
  3. Select your adapter, go to "MAC address"
  4. Fill the old coordinator ieee address into "Secondary Address" -> "IEEE 802.15.4 MAC address" (first 0x can be skipped)
  5. Press "Write"
  6. 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)

PS: Note that the primary ieee address will remain the same and these instructions only change the secondary ieee address. The tools 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.

mercenaruss commented 4 months ago

Thank Hedda,for proper instruction. Will work on this.