cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Join LoRaWAN network Using LoRaWAN_AT_Slave Example.

Taksh
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions

I suggest you take a look at this post.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

6 REPLIES 6
STTwo-32
ST Employee

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 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

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.

I suggest you take a look at this post.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hello @STTwo-32 ,

 

I hope you are doing well. I wanted to follow up on a recent inquiry regarding the disconnection and reconnection of a LoRaWAN node from a gateway.

Thanks to your valuable assistance, I've successfully managed to join the LoRaWAN network and send data from my node to the gateway. However, I've encountered a challenge when attempting to disconnect and then reconnect the node.

Here's a breakdown of the issue:

  1. Disconnect Command Behavior: When I issue the ATZ or AT+RFS command to reset the node, it indeed resets, but upon trying to rejoin the network, I receive an "EVT JOIN FAILED" response. Meanwhile, on the gateway side, it shows a second join attempt.
    img_20240313.png

  2. Need for Clean Disconnection: I understand the importance of properly disconnecting the node from the network before resetting it. However, I'm unsure about the correct sequence of commands or procedures to ensure a clean disconnection and subsequent reconnection without encountering issues.

I would greatly appreciate your insights, suggestions, or guidance on how to effectively manage the disconnection and reconnection process for a LoRaWAN node. If there are specific commands, procedures, or configurations that I should follow to ensure a smooth transition, please let me know.

Thank you very much for your support and assistance. Your expertise is immensely valuable in helping me overcome this challenge.

Best regards,

Taksh Patel

Hello @Taksh 

Since Your original problem was solved. I suggest you close this post by choosing a best answer and open a new thread for the new request to give it more visibility.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

@Taksh Can I know how did you solve the issue? I am using Nucleo L476RG board with the gateway. and I am facing the same issue for the region EU868-870. Everything is double checked the DR, Region, AppEUI,DevEUI,AppKey. Gateway is successfully connected to the Network Server, TTN in my case. But the end node is showing join failed consistently. and unable to send any data to the gateway. What can be the solutions possible? Thank you in advance. Looking forward to your reply.