[GH-ISSUE #330] How to re-write MAC address to a tag? #1293

Closed
opened 2026-03-20 19:06:49 +01:00 by sascha_hemi · 1 comment
Owner

Originally created by @42Network on GitHub (Jun 4, 2024).
Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/330

I have a few ST-GR2900 tags. One of them has changed its own MAC address to all zeros, possibly as a side effect of its batteries being run down too long. After replacing the batteries, it seems to work fine, but it is awkward that it now appears in the tag list as "0000000000000000". I'm frankly surprised that all functions still work with what I think is likely an invalid MAC.

Is there a known method to re-write its MAC address (which I can just copy from what is printed on the case) into the firmware?

Using the AP Flasher, I was even able to upgrade the firmware on this tag to the latest version, but it still kept all-zero MAC.

image

Originally created by @42Network on GitHub (Jun 4, 2024). Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/330 I have a few ST-GR2900 tags. One of them has changed its own MAC address to all zeros, possibly as a side effect of its batteries being run down too long. After replacing the batteries, it seems to work fine, but it is awkward that it now appears in the tag list as "0000000000000000". I'm frankly surprised that all functions still work with what I think is likely an invalid MAC. Is there a known method to re-write its MAC address (which I can just copy from what is printed on the case) into the firmware? Using the AP Flasher, I was even able to upgrade the firmware on this tag to the latest version, but it still kept all-zero MAC. ![image](https://github.com/OpenEPaperLink/OpenEPaperLink/assets/35043496/9bd41891-ce7d-4181-b501-97d9ae9b6572)
Author
Owner

@davedarko commented on GitHub (Jun 17, 2024):

My way currently is, with python on a macbook:

Use files from this folder:
https://github.com/OpenEPaperLink/OpenEPaperLink/tree/master/Tag_Flasher

if you don't have an info page dump, use this:
python3 OEPL-Flasher.py -z -i -p /dev/cu.usbmodem01 read info.bin

patch the mac address of the info page
python3 patch_mac.py --zbs243 -mac YOURMACHERE info.bin

and write it back on the tag
python3 OEPL-Flasher.py -z -i -p /dev/cu.usbmodem01 write info.bin

might contain typos, I have a cold - and there's probably other ways, hope it helps

<!-- gh-comment-id:2174385324 --> @davedarko commented on GitHub (Jun 17, 2024): My way currently is, with python on a macbook: Use files from this folder: https://github.com/OpenEPaperLink/OpenEPaperLink/tree/master/Tag_Flasher if you don't have an info page dump, use this: python3 OEPL-Flasher.py -z -i -p /dev/cu.usbmodem01 read info.bin patch the mac address of the info page python3 patch_mac.py --zbs243 -mac YOURMACHERE info.bin and write it back on the tag python3 OEPL-Flasher.py -z -i -p /dev/cu.usbmodem01 write info.bin might contain typos, I have a cold - and there's probably other ways, hope it helps
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/OpenEPaperLink#1293