cyberman54 / ESP32-Paxcounter

Wifi & BLE driven passenger flow metering with cheap ESP32 boards
https://cyberman54.github.io/ESP32-Paxcounter/
Other
1.75k stars 408 forks source link

DEVEUI identical in ABP mode for TTGO boards #596

Closed robomotic closed 4 years ago

robomotic commented 4 years ago

Hello there, I have now 10 TTGO boards configured in ABP mode. I flashed the firmware and discovered that all of them have the same DEVEUI which of course is making a mess in the TTN uplink stream even though I have set different device id and device address of course.

I have assumed that every Lora chip should have a different MAC address which will generate a different DEVEUI but this does not seem the case.

How do I fix this? Do I have to look into some other libraries, maybe is not related to your firmware?

Cheers.

cyberman54 commented 4 years ago

Use OTAA. Paxcounter generates unique DEVEUI from MAC address of ESP32 chip.

cyberman54 commented 4 years ago

PS: this is an issue tracker, not a user support forum. If you need support, you may ask in a relevant forum, e.g. TTN

robomotic commented 4 years ago

Apologies, I will use that forum from now on. Out of curiosity should it not use the Semtech MAC address instead? I guess I can figure out if is possible to get it via a registry read instead of the ESP32. Cheers.

cyberman54 commented 4 years ago

There is no "MAC address" in the SX127x series chips by Semtech, neither any other kind of silicon id - at least no one which is documented an could be queried via SPI.