-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stuck at Joining... process #148
Comments
This is the code that i use.
|
Dear @akapong-tkc ! You appear to be utilizing only these pins, as I can see. And that may be the most probable error for which you are having this behavior
Utilizing all DIOs as demonstrated in all the examples is essential.
Another possible error would be the selection of the subband. For this we are going to need to change a file called Config.h, which is located in the src \ arduino-rfm \ Config.h folder. In the same way I am going to try for my part to see what other possible error may be occurring to you, if I require more information I will let you know. Have a nice day |
Hi there, Thank you for your suggestions. First, I've change the code about pin as below,
Noted: Our PCB Board schematic connected only LoRa DIO0 into ESP32 IO2 but we've manual wired LoRa DIO1 into ESP32 IO4 (purple line) as image below. The problem still occurs as the same. Or I've to manual wired LoRa DIO2 and DIO5 to ESP32 IO too ? Second, About subband.
Thanks for your kindly support #1st-Edited : We've manual wired LoRa DIO2 to ESP32 IO32 and LoRa DIO5 to ESP32 IO15 still stuck at Joining...
|
Hello @akapong-tkc Sorry for the delayed response. I was about to say that you shouldn't connect the DIO pins to the same output, but I noticed that you adjusted it and changed the DIO pins to a separate pin. Continuing the troubleshooting process, you might be able to resolve the issue by adding a 100ms delay to LORA Cycle after it polls DIO0.
In addition, read Lorawan-Arduino-Rfm.cpp: Join (157-176). Six seconds have been set aside as a timeout. According to the LoRaWAN standard, JOIN ACCEPT DELAY1 should be 5 seconds and JOIN ACCEPT DELAY2 should be 6 seconds. So it would appear that we are doing everything according to the regulations, but what about join request and response timings and processing times (gateway bridge to network server to application server and back)? We may add a first timeout since it is certain that we will never receive the join answer before 5 seconds. A 900 ms delay is at line 167. You can also fix your issue by uncommenting that line. More time can be added, reducing the number of loops (line 170). Please let me know about the tests that we run so that I am aware of what you have attempted and can better assist you. Kind regards! |
Hi there, Thank you very much for your advices. I found that In LoraMac.cpp function LORA_join_Accept at line 569 Please let me know, If you want any information to find a solutions. |
Problem still didn't solve, Any new suggestions ? Merry X'Mas & Happy New Year |
I had the same issue with an arduino, to fix it, i wired dio1 to an digital pin. it looks like dio1 si needed for the lorawan join process. i didn't wired dio2 and dio3. |
@ReYlaN38 I've connected DIO1 already, but error still as the same. All pins on ESP32 connected. By the way, I've changed to use LMIC library working fine on Device Class A (The library does not support Class C). but I still find code and compatible with Class C Device |
Hello @akapong-tkc Do you think you could check the continuity of the wires with a multimeter and that they are not touching each other please? In addition to the suggestion that I gave you to increase the time, how much did you increase it and in what parts? Kind regards! |
Hi, I running tests with this lib code with esp32 and STM32 custom boards on helium network. All works ok, just while ago have same issue - was not enough strong signal from helium hotspots to receive back "Join Accept", by traveling close to hot spot locations - joined from first try. and i insted of and after joined i shangint to: |
Hello @negis02 We appreciate you sharing all of the information with us; Thank you for letting us know which option you choose. Let's hope akapong-tkc finds it useful. Best Regards. |
Dear @ReYlaN38 Your request has been on hold for the past seven days and is currently awaiting your feedback. Did your issue behave differently or were tests still able to be run? Best Regards. |
Dear @ReYlaN38 We shall now close this issue because of the time that has passed. |
Hi There,
I've some problems about configure this library into out customize board.
Serial Monitor always show Joining... but logs in Chirpstack show status JoinAccept already.
and I've debug to show on Serial Monitor it's shown that In LORA_join_Accept function the Message_Status always return TIMEOUT even I've uncommented delay(900); on join function.
I've developed with these environments.
So can you suggest anything ? Thanks for your kindly support
The text was updated successfully, but these errors were encountered: