Hey! So I’ve been researching for a LoRaWAN stack to develop a new project within our team, but as common knowledge the chip scarcity has afflicted us in the way of searching the right MCU (and therefore the OS to use).
A simple ardunio-lmic program was develop to test the available hardware (stm32f103cb with sx1276 transceiver) with positive results (TTN OTAA join accepted by the gateway [Dragino DLOS8 outdoor LoRaWAN], and packets sent from the node)
After several hours of trying the mbedOS LoRaWAN stack, I decided to test RIOT-OS. I have ported example/lorawan (based on B-L072-LW stm32 board) to the bluepill (stm32f103CX, 64 and 128kb flash available boards), but every connection try, the join request fails. I don’t even see the join request on the TTN console. Working on 915MHz and the frequency plan was correctly set in the Makefile of the example.
Checked the keys 1000 times and also created a new device in the TTN console to discard any troubles with the TTN application platform.
With DEBUG enabled on semtech_loramac.h, this is the output from the terminal:
2021-04-01 15:24:27,087 # LoRaWAN Class A low-power application
2021-04-01 15:24:27,090 # =====================================
2021-04-01 15:24:27,094 # [semtech-loramac] initializing loramac
2021-04-01 15:24:27,165 # Starting join procedure
2021-04-01 15:24:27,168 # [semtech-loramac] Starting join procedure: 0
2021-04-01 15:24:27,171 # [semtech-loramac] loramac cmd msg
2021-04-01 15:24:27,175 # [semtech-loramac] starting OTAA join
2021-04-01 15:24:27,593 # [semtech-loramac] Transmission completed
2021-04-01 15:24:29,733 # [semtech-loramac] MAC timer timeout
2021-04-01 15:24:30,736 # [semtech-loramac] MAC timer timeout
2021-04-01 15:24:31,740 # [semtech-loramac] MAC timer timeout
2021-04-01 15:24:32,743 # [semtech-loramac] MAC timer timeout
2021-04-01 15:24:33,747 # [semtech-loramac] MAC timer timeout
2021-04-01 15:24:34,048 # [semtech-loramac] MAC timer timeout
2021-04-01 15:24:34,187 # [semtech-loramac] RX timer timeout
2021-04-01 15:24:34,750 # [semtech-loramac] MAC timer timeout
2021-04-01 15:24:35,020 # [semtech-loramac] MAC timer timeout
2021-04-01 15:24:35,263 # [semtech-loramac] RX timer timeout
2021-04-01 15:24:35,753 # [semtech-loramac] MAC timer timeout
2021-04-01 15:24:35,757 # [semtech-loramac] MLME confirm event
2021-04-01 15:24:35,761 # [semtech-loramac] MLME confirm msg received
2021-04-01 15:24:35,764 # [semtech-loramac] join not successful
2021-04-01 15:24:35,766 # Join procedure failed
Greetings from Chile!