EUI64 Support

brushlow18
Posts: 2
Joined: Tue Nov 26, 2024 8:00 pm

EUI64 Support

Postby brushlow18 » Wed May 28, 2025 4:33 pm

I am trying to get an EUI64 value from my ESP32, as I want to use it for a LoRaWAN DevEUI value, but I'm unclear where the last four bytes are coming from? The 48-bit MAC is clearly visible in the eFuse, but I'm not sure where the 0xFC3F comes from that gets amended to the 48-bit MAC when I call esp_efuse_mac_get_default().

I'm really trying to determine:
- Is this a valid EUI64?
- How can I reliably read and/or assemble this EUI64 using the python tools (esptool and espefuse)?

Thanks for your help

MicroController
Posts: 2672
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: EUI64 Support

Postby MicroController » Thu May 29, 2025 7:29 pm

Apparently, an EUI-64 is built from a 48-bit MAC by splitting the MAC into 2x 3 bytes and inserting 0xfffe between the halves.
This also seems to be what the IDF does.

Who is online

Users browsing this forum: No registered users and 3 guests