Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Hedda opened this issue Jan 10, 2024 · 0 comments

Comments

@Hedda
Copy link

Hedda commented Jan 10, 2024

Request add ability to write IEEE address (i.e. option to add/change secondary IEEE address) with the tzb-cc2652-flasher add-on.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant