-
Notifications
You must be signed in to change notification settings - Fork 60
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
joinOTAA not working on 1310 and US915 #75
Comments
Hi @k8rapps , |
Hi @facchinm Thanks for the quick response. I tried 915_HYBRID but I am seeing the same behavior. Since the MKRWAN want firmware isn't up to date, Is there a different library I should be using? Or do you mean the firmware on the modem? |
Unfortunately it's about the modem firmware 😒 |
Gotcha, guess I'll use a different board in the meantime. |
If it helps, my gateway is an RAK2245 Version B |
Wondering if I am having the same problem. I have an Dragino LPS8 Gateway and MKR WAN 1310 both set to US915. I am just using the 'FirstConfiguration' sample to simply test connectivity which is failing. Dragino support came back with the following; "Please make sure the MKR use the same subband as LPS8 . The US915 band has 8 sub band and the LPS8 use subband 2 as default.". Bought a LoraSensorTile and it works fine. Anyone want an MKR WAN 1310 (pretty much a brick without proper firmware support). |
I'm unfortunately experiencing the same problem. The joinOTAA returns false, but even after that, I can see the device trying to join in the TTN gateway traffic inspector =( |
I have had the same problem. I am using MKR WAN 1310 and have the TTN indoor gateway (in the same room). joinOTAA works for me intermittently. The problem seems to be that even though the join is accepted (as I can see from the TTN gateway console), the modem does not appear to receive the acknowledgment. I wonder if it is related to this issue (for a different hardware): https://github.com/matthijskooijman/arduino-lmic#problems-with-downlink-and-otaa In any case, adding a delay(5000) between modem.begin(US915) and modem.joinOTAA(..) makes joining much more reliable. I am not sure why. |
I'm having the same issues as you, Marek. -- Intermittent connection success to a TTN indoor gateway from across my house using otaa. I do see messages from the device in the TTN console as it attempts to connect but often modem.joinOTAA fails. Any updates to this bug? I'm using MKRWAN.h version 1.0.13. My MKRWAN 1310 returns: "Your module version is: ARD-078 1.2.0" Anyone have better luck with ABP activation? |
Hi @digamesystems , |
I also have the MKRWAN 1310 using RAK7258 and TTN. My problem is that there is never a join that I can see on TTN in the GW traffic. I have tried FirstConfiguration and LoraSendAndRecieve (modified for my HW) and both never get past this line in the code: |
I am having the same issue, any updates on this? |
I am having the same issue with the US915 but with the new Lora Vision Shield. Any updates would be appreciated. I will try the delay(5000); after the begin(US915) |
I am using RAK7258 and a MKRWAN 1310. After trying everything this is what I did to make it work.
After this, my arduino connects every time without issues. |
Thanks @silverio my issue is that I never get past modem.joinOTAA(appEui, appKey); I have heard about the 2 settings. Thanks for confirming that. modem.setPort(10);
modem.dataRate(3); Can you get any connection using US915 ? I don't have the RAK so can't edit my Gateway as well. |
@hpssjellis the issue I had with US915, was that sometimes it connected and sometimes it didn't. It wasn't reliable. |
On the concept of things working badly using US915, anyone know why this line of code is set to only work for EU868?
My problem testing US915 is I am not sure if my Gateway is any good. If I could get point-to-point LoRA working on the LoRa Vision Shield then I can find out what works without relying on a Gateway. Just a thought. This is a good article. https://www.disk91.com/2019/technology/lora/lorawan-in-us915-zone/ At least I now understand the above dutyCycle. |
Silverio, Thanks for your input. |
Hi @FarmerJD28, yes I have the same module version. First, I did some tests with the node and the gateway in the same room, until I got a successful connection every time (using the config in the previous post). When I knew this connection was reliable, I then moved the node to another room, and got a reliable connections at a greater distance. At last I went to my farm and did some long range tests. I raised the gateway antenna 7 meters high, and then moved the node to multiple locations around the farm and got the RSSI and SNR. All readings came up in to the gateway without issues. The farthest test I did was at 2km. I am using the 8dbi antenna from RAK on the gateway, and on the node the included antenna. When the gateway receives the data, it sends it to my server using the uplink data URL on the integrations tab. Here an example of the sketch I was using for my tests:
|
Thanks @silverio and @FarmerJD28 really interesting that it is working for you without TTN but using the network server mode. I hope someone else with the Lora Vision Shield joins the conversation. I am putting my code on my Portenta site if anyone wants to comment or send a PR. Might code hopefully will let me drive closer to a solid gateway and see if my devices connect. The LED's let me know what is happening without a serial connection. |
Thanks for all the input @silverio. I tried all that you posted with no luck other than a few joins with countless attempts like before. If I get this working I may also use the gateway as a Network Server instead of TTN. Thanks for pointing that out. |
By the way @FarmerJD28 and @silverio I had no trouble connecting to the https://explorer.helium.com/coverage ThePeoplesNetwork I have not yet sent a packet but at least I got connected. Too bad the nearest gateway is 40 km away. |
I resolved my join problems! |
Another 1310/Vision frustrated user. Neither device is able to joinOTAA my TTN gateway. Just tried with the newest firmware version for MKRWAN v1 and v2 (1.1.0 & 1.3.2). Same result: "Something went wrong; are you indoor? Move near a window and retry" |
@rpruizc I just did some testing with my Portenta Vision Shield on the Helium network and still nothing with my MKRWAN library. I know with TTN an Arduino employee who got it working but only with the gateway on the new V3 servers. Here is the Arduino tutorial Of course I am not able to migrate my Gateway from V2 to V3 so I can't test out what the tutorial does. If I could set it up the new servers even identify the Portenta as a known product which is encouraging. I do have a solution for the Portenta but it is a bit hacky using the GrumpyOldPizza library, presently trying to communicate with the murata module because this solution is useless unless I can communicate with it. Not sure if it would work for the MKRWAN 1300. I will get back if I have any success. |
I migrated my TTN gateway to V3 and still no results. I just gave up. |
Wow @rpruizc, so many other products. I fully understand. Good luck. |
I am having the same issue with a Dragino LPS8 Gateway and MKR WAN 1300.
Here is the serial port print:
MKRWAN lib version is 1.1.0 Any thought? Thank you in advance. |
@rqg0717 Hey James. I have a few programs you could try, they are made for the PortentaH7 US915 on the Helium network (The correct channel needed to be enabled: 1 for Helium and I think 0 for TTN) but might work on the mrk1310. The library can be installed searching for community and installing portenta-pro-community-solutions Can you tell me if any of them work since I don't have your board. All of them need you to run the MRKWAN standalone program with the serial monitor to install it. |
@hpssjellis Thank you so much. I will try to enable the correct channel for TTN. I was wondering where I could find the definition of the channels. Thank you. |
I am having this problem.
but the MKR WAN board reports " |
I'm trying connect my MKRWAN 1310 to The Things Network. I have a device configured for OTAA setup in the TTN and when I run FirstConfiguration and enter the APP EUI and APP Key, I actually see the device connect in the TTN console immediately, but after about 30 seconds, joinOTAA returns 0.
I actually see additional activation calls in TTN after it returns 0.
The text was updated successfully, but these errors were encountered: