mcci-catena / arduino-lmic

LoraWAN-MAC-in-C library, adapted to run under the Arduino environment
https://forum.mcci.io/c/device-software/arduino-lmic/
MIT License
634 stars 208 forks source link

TTN v3 Stack - APPEUI of 0000000000000000 - no transmit at all #690

Open arvdsar opened 3 years ago

arvdsar commented 3 years ago

No join/data is transmitted when using APPEUI of Zero's

The TTN v3 Stack states that you can use an APP EUI of 0000000000000000 in case of development. The v2 stack could generate a APPEUI for you, but V3 does not.

I noticed that neither join nor data was received by my gateway when using: static const u1_t PROGMEM APPEUI[8]={ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };

The moment I changed this to something not completely zero's, join requests were received by my gateway.

For now I use TTN v2 Stack with a non-zero APPEUI. At least my device works.

Environment

To Reproduce

Use the ttn-otaa example. enter below APPEUI and your own DevEUI/APPKey static const u1_t PROGMEM APPEUI[8]={ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };

Expected behavior

When using APPEUI of zero's the device should transmit the join request.

Screenshots

Register_end_device_-_weerstations_-_The_Things_Network

Additional context

terrillmoore commented 3 years ago

The workaround for now is to use APPEUI 0x000000001.

0 is used by various components to signal "unprovisioned". Since APPEUI is arbitrary, this is a restriction for now.