lorabasics / basicstation

LoRa Basics™ Station - The LoRaWAN Gateway Software
https://doc.sm.tc/station
Other
340 stars 178 forks source link

Error in Station EUI if the MAC address contains zero (0) #197

Open VictorDenisenko opened 6 days ago

VictorDenisenko commented 6 days ago

If Basic Station MAC address contains zero, then Basic Station cannot make EUI from it. As for example, if Basic Station has MAC address
"ether b8:17:eb:f4:05:d4", then Basic Station make EUI from MAC address like "Station EUI : b817:ebff:fef4:5d4"
instead of "Station EUI : b817:ebff:fef4:05d4", i.e. the customer cannot use your device if its MAC address contains zero.

beitler commented 6 days ago

Hi @VictorDenisenko ,

omission of leading zeros is part of the id6 format spec. It is inspired by the IPv6 format of 128-bit addresses, just scaled down to 64-bit.

VictorDenisenko commented 6 days ago

I have Dragino PG1302 and trying to connect it to TTN. To get Station EUI, I launch Basic Station and see Station EUI with omitted zero, this EUI contains 15 symbols instead of needed 16. I cannot use this EUI for registration in TTN and I cannot change it because it is formed from Raspberry Pi MAC and I cannot change MAC because I am not manufacturer. What I need to do in this case?