/home/user/.arduino15/packages/esp32/tools/esp-x32/2302/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/user/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-632e0c2a/esp32/lib/libpp.a(hal_mac.o): in function `hal_init':
(.text.hal_init+0x40): multiple definition of `hal_init'; /home/user/.cache/arduino/sketches/E368F9F09813AEAD7DF6AA9E4EE4B471/libraries/arduino-lmic-4.1.0/hal/hal.cpp.o:/home/maxi/Arduino/libraries/arduino-lmic-4.1.0/src/hal/hal.cpp:416: first defined here
collect2: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1
If âitâ refers to the LMIC, it turns out it wasnât broken. The Semtech-protocol packet fowarder for the MultiTech was dropping JoinRequests with AppEUI == 0, and by sheer bad luck, the reporter and we at MCCI were all using MultiTech. So I mistakenly thought that the LMIC was broken. Changing the MultiTech gateway to use basic station solves the problem.
Embarassingly, the gateways run by TTN New York are all MultiTechs and the most are still on packet forwarder. But this wonât affect users in Europe!
Yes, I remember we met, hope all is well & best wishes for Yuletide & 2025!
Updating to the release of packet forwarder released two years ago will fix it as well. And that will be the better option for MultiTech gateways with old concentrator cards as you need new hardware for basics station. Or consider replacing the gateways as my two MultiTech gateways from 2015 both died over the last year. (Flash worn out)
I have tested the project TTGO T-Beam Tracker for The Things Network again.
The display seems to work, only the display for the battery does not work.
Apparently a new library has to be implemented.
But GPS reception is there, the time has been determined and a location is available after a few minutes.
The display shows the current position data quite quickly every 20 seconds.
These values can then be recognized:
Just for fun, I created a device that starts with FF FF FF FF FF as JoinEUI and DevEUI.
I left the AppKey the same.
I always get this as live data from the TTN console:
Can you try with the non secure packet forwarder on the MikroTik.
Donât delete the gateway! Just change the settings on TTN that require authentication and on the MikroTik change the settings so it uses the non secure version (with UDP port 1700).
I just went for a little walk and switched the gateway back to LNS beforehand.
The T-Beam was able to connect properly again and delivered the correct data to TTN.
So letâs make a note:
T-Beam V1.2 can only join the network unencrypted
After successful joining, the uplink of the gateway can be encrypted again
Given that this forum feature high up in Google results, for clarity:
This is for all devices everywhere, it is not specific to the T-Beam.
And itâs not the device that chooses this, but the firmware.
And itâs NOT even LMIC that can only join the network unencrypted, itâs all LW firmware on all devices.
And it is ONLY the Join Request that is unencrypted, the Join Accept IS encrypted.
It HAS to be this way because if the join request was encrypted the key used to encrypt the message would have to be public and would have to be the same for every device in the world which rather defeats the point.
Once the LNS has looked up the details of the device using the Join EUI & Device EUI, it then knows the AppKey setup for that device which it can use to encrypt the Join Accept. So only the device can decrypt the response. The JA provides information to generate a new set of keys specific to the session which are used for encryption of further up & downlinks.
This is a summary, the Join EUI can do more that just match and with LW 1.1 there are actually two keys.
For those thinking of trying to brute-force crack a Join Accept that is AES-128 encrypted, in 2023 I asked a university dept if it could use its cluster to have a go. They said they could but it was pointless as it would take them days to run on their hardware and if I tried to setup a rig with lots of high end graphics cards to do it, Iâd be looking at months and a huge electricity bill.