Skip to main content
Associate II
March 11, 2024
Solved

Unable to Join LoRaWAN network Using LoRaWAN_AT_Slave Example.

  • March 11, 2024
  • 1 reply
  • 4848 views

Hello Developers,

I am currently facing an issue with joining the LoRaWAN network using the LoRaWAN AT Slave example provided by STM32Cube_FW_WL_V1.3.0 on a new Nucleo STM32WL55JC1 board. Despite following the provided instructions and configuring the example for the EU868 region, I am unable to successfully join the network.

Here are the steps I have taken and the observations I have made:

  1. Flashed the LoRaWAN AT Slave example to the STM32WL55JC1 Nucleo board without any apparent problems.
  2. Configured the board for the EU868 region.
  3. Entered the necessary AT commands for configuring Device EUI, Application EUI, Application Key, ADR, and Data Rate.
  4. Initiated the join procedure with AT+JOIN=1 to use Over-The-Air Activation (OTAA) mode.

However, despite multiple attempts, the join procedure fails consistently, and I receive a "JOIN FAILED" response from the LoRaWAN module.

I have tried adjusting parameters such as Data Rate (AT+DR) and Transmit Power (AT+TXP), but the issue persists.

Here is a snippet of the AT command responses:

 

 

APPLICATION_VERSION: V1.3.0 
MW_LORAWAN_VERSION: V2.5.0 
MW_RADIO_VERSION: V1.3.0 
L2_SPEC_VERSION: V1.0.4 
RP_SPEC_VERSION: V2-1.0.1 
 
ATtention command interface 
AT? to list all available functions 
AT+BAND=? 
5:EU868 
 
OK 
AT+DEUI=xx:xx:xx:xx:xx:xx:xx:xx 
 
OK 
AT+APPEUI=xx:xx:xx:xx:xx:xx:xx:xx 
 
OK 
AT+APPKEY=xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx 
 
OK 
AT+ADR=0 
 
OK 
AT+DR=3 
 
OK 
AT+JOIN=1 
417s568:TX on freq 868100000 Hz at DR 3 
 
OK 
417s776:MAC txDone 
422s763:RX_1 on freq 868100000 Hz at DR 3 
422s822:IRQ_RX_TX_TIMEOUT 
422s822:MAC rxTimeOut 
423s808:RX_2 on freq 869525000 Hz at DR 0 
424s005:IRQ_RX_TX_TIMEOUT 
424s006:MAC rxTimeOut 
+EVT:JOIN FAILED 
AT+DR=4 
 
OK 
AT+JOIN=1 
440s558:TX on freq 868300000 Hz at DR 4 
 
OK 
440s673:MAC txDone 
445s657:RX_1 on freq 868300000 Hz at DR 4 
445s707:IRQ_RX_TX_TIMEOUT 
445s708:MAC rxTimeOut 
446s706:RX_2 on freq 869525000 Hz at DR 0 
446s903:IRQ_RX_TX_TIMEOUT 
446s904:MAC rxTimeOut 
+EVT:JOIN FAILED 
AT+TXP=? 
0 
 
OK 
AT+TXP=7 
 
OK 
AT+JOIN=1 
510s927:TX on freq 868100000 Hz at DR 4 
 
OK 
511s042:MAC txDone 
516s026:RX_1 on freq 868100000 Hz at DR 4 
516s076:IRQ_RX_TX_TIMEOUT 
516s077:MAC rxTimeOut 
517s075:RX_2 on freq 869525000 Hz at DR 0 
517s272:IRQ_RX_TX_TIMEOUT 
517s273:MAC rxTimeOut 
+EVT:JOIN FAILED

 

 

I would greatly appreciate any insights, suggestions, or guidance on how to troubleshoot and resolve this issue. Additionally, if there are any specific configurations or steps that I may be missing or if there are known issues with the provided example code, please let me know.

Thank you in advance for your assistance.

Best regards,
Taksh Patel.

Best answer by STTwo-32

I suggest you take a look at this post.

Best Regards.

STTwo-32

1 reply

STTwo-32
Technical Moderator
March 11, 2024

Hello @Taksh 

I suggest you try using the LoRaWAN_End_Node example to connect to the gateway. If everything works fine (the hardware is working fine), you can try to implement the same configurations using the Necessary AT Commands.

Best Regards.

STTwo-32 

TakshAuthor
Associate II
March 12, 2024

Hello @STTwo-32 ,

Thanks for the reply, I do the same thing you suggest. I am using the LoRaWAN_End_Node example to connect to the gateway.But it also gives the same problem that the JOIN FAILED event, will also change the DEV EUI, APP EUI and APP KEY that the gateway have, in se-identity.h file but the node doesnt able to connect with the gateway.

Please guide me if i am doing the wrong configurations or not, Your help would be very appriciable.
Thanks.

STTwo-32
STTwo-32Best answer
Technical Moderator
March 12, 2024

I suggest you take a look at this post.

Best Regards.

STTwo-32