-
Notifications
You must be signed in to change notification settings - Fork 63
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
Joining infinite loop #37
Comments
This output doesn't look familiar. I've never seen such a loop. The most suspicious part is the transmission right after the join. It's still within the window of the first join so it could easily confuse the network and reset the successful join. Are you using some sample code for this test? If not, can you post the code. And what region are you in? |
Hi, thanks for the answer. I'm currently using the north american region, and yes, i'm currently testing with the hello world's sample code, i tried with a different gateway (TTIG) with v2 and i got better results, with the only difference being that the first 3 msgs after the join are sent with no payload. |
The 8 channel limitation could indeed be an issue. The good news is that the underlying LMIC library has just released a new version, which supposedly improves the channel handling for regions like US. I will soon integrate the new version. Unfortunately, I can't test it as I'm in Europe and don't have a lab to simulate the US region. |
I implemented the changes within the pull request that i saw here, that's how i got the TTIG (who's also an 8ch gw) so as u said i think the issue must be around that topic. The ht-m01 is not yet tho. |
Hi, I am having the same issue raised here and using the Hello_World example. I am using AU915. The code hangs at this line: xQueueReceive(lmicEventQueue, &event, portMAX_DELAY); Is it possible to lock in a DR? (SF7BW250) and lock in a channel (In case I use a single channel gateway). Cheers |
@DylanGWork It's currently not possible to set DR. That's planned though. There are no plans however for single channel operation. |
An upcoming version will support a few changes relevant for you (@BryanMM and @DylanGWork):
The changes are in the master branch. I would appreciate if you give it a try. |
@manuelbl Got it!, i'll be testing it soon. |
@manuelbl Tested and working great, is C version new too? I recall only having a C++ version? Great work! |
@DylanGWork Thanks for testing. Yes, the C version is new too. |
@manuelbl I've been testing it out too and did render great results, i no longer needed to perform workarounds with the initial message (usually the first and second uplink bounces till a third one is sent and it has some probability of failure from there onwards). |
@BryanMM Cool. Thanks for testing. |
@manuelbl I (1258) ttn_prov: DevEUI, AppEUI/JoinEUI and AppKey saved in NVS storage |
@maizezoidberg That's a good question indeed. The How could we improve the library? Should we add a timeout parameter to the |
@manuelbl,
|
That sounds like a misunderstanding. Best practices recommend to avoid rejoins by retaining the assigned And best practices basically boil down to either not power off your device or to retain the session settings including Your proposal of changing The options I'm considering are:
I will think about it. |
Hi guys, great conversation. I have implemented an abort process (I even change an LED to red to indicate this) to the join process after 5 failed join processes, it's a messy implementation though. Would be great to see this as a feature. This may be a silly question that I can just look up, but while I'm here: Can we have the default join DR be the lowest DR, or an easy way to set it as that? |
An async version of
Would be ideal. For my use case; the TTN provisioning is done by writing keys to the ESP over bluetooth, from a mobile app. If the user writes incorrect keys, then |
Hi All, I have implemented the Hello World test code and also get an infinite join loop. Occasionally i will see an Accept Join request on TTN but never any payload data. Serial monitor shows: I am using AS923 on my Gateway, and node (TTN setup) Has anyone been able to get around this? |
So i also managed to fix the issue by inserting the below into the thethingsnetwork.cpp bool TheThingsNetwork::joinCore() |
So the problem has been solved? BTW: If the file |
Yes it is solved but only if I add the above code to I have downloaded the source code from here so is there a way I could somehow have the old library? In my ignorance (new to this) I thought the library was supplied within. |
You have probably downloaded the code from the Releases. I have indeed not updated this for some time. Now it's up-to-date again. You can either download it from the release page or with green "Code" button on the home page. |
Excellent I will try this later today. I had blindly followed the download in the Getting Started guide (Platformio also the same, I use this) https://github.com/manuelbl/ttn-esp32/archive/master.zip |
Hi, I encountered the same issue of an infinite loop when testing the 'Hello World' example on a Heltec Wireless Bridge with an ESP32 and SX1276 transceiver. I've tried all the suggestions written in this forum, but without success. I receive random join requests, but they are not successful. I noticed that the RSSI is -110, but when I compile the code in Arduino with the Heltec library, the RSSI is -40. Thanks for your assistance. |
This solution worked for me, but I’m not sure if it’s the most appropriate approach. I’d appreciate any feedback or suggestions for improvement. Thank you! |
Greetings, i've been trying to use ur library for quite some time but i keep getting stuck at a joining infinite loop.
Sometimes it connects once and starts sending msgs but they either usually get rejected by TTN (v2) or they never reach their platform at all.
I've checked all the keys and reinstalled the component countless times but it doesnt help at all.
The board i'm currently working with is heltec's wireless stick lite.
Any help about my issue or advice would be appreciated.
Thanks.
The text was updated successfully, but these errors were encountered: