After loading the tracker sketch (http://support.sodaq.com/sodaq-one/connect-to-the-things-network/) I finally got rid of the “OTAA setup failed!” reply on the serial monitor and succesfully made a connection to TTN. Now I am struggling with the One board constantly resetting all the keys that I had set with the tracker, after I unplug the usb. Do I need to re-run the tracker sketch and re-enter all keys every time I unplug the usb power?
More generally I was wondering why I need to use this tracker sketch and why I cant skip the tracker for setting keys. Couldnt I just put my keys in the basic sketch from http://support.sodaq.com/sodaq-one/loraone-lora-basic-sketch/ and make it work? Right now I need to rerun the Tracker sketch-> input my keys in it -> wait 30seconds -> upload the basic sketch with my keys -> Can finally do my work. If I dont do this after everytime I unplug the power, the LoRa one just gives me the “OTAA setup failed” response.
Thanks for the reply. The gateway is located an arm-length away within line of sight. I tried to OTAA all day long but the same problem persists, unless I re-upload the tracker sketch and put in my keys with commands, then it works. Besides, the only error message I get is “OTAA setup failed!” “There was no response from the device” after it resets my keys.
This happens after I unplug the power. It just forgets the keys and I can’t put the keys back in with the basic sketch. I need to use the tracker sketch to put in the keys, after which I can upload the basic sketch. Otherwise it doesn’t work.
is not working. The reset pin is not implemented in rev4. From V2 and up the pin is implemented.
Can you test if the problems are fixed when you programm your device.
Disconnect it 5 seconds from your powersource and boot it up again.
Then open the com port when it’s available and see if it succesfully connects to your network.
With this tracker sketch I need to manually input the keys and then everything works. After this tracker sketch I can upload my own basic sketch and the basic sketch will also work. But (here is where it gets weird) when I re-upload the basic sketch everything stops working and I get errors.
To sum it all up:
The basic sketch won’t work till I’ve manually input the keys with the tracker sketch first. I need to do this step every time. Same for ABP method.
I’ve had the same problem too. I can get my SodaqOne Rev4 to connect to TTN using TheThingsNetwork.h and CayenneLPP.h with no Sodaq_RN2483.h library in the code. But when I run the Tracker code with the RN2483 library the Lora connect fails. Is there another version of the RN2483 library available that works with Rev4? Or some help to get the code running without the library? Thanks in advance.
Thanks Fritz, I tried running the Tracker software without the RN2483 library but it started to throw errors due to calling functions in the library. Given that Tracker is large and complex, I wasn’t really game to start attempting to debug.
Not to worry as I was really just trying to map the connectivity in my city (Melbourne) and I’ve had some success with TTNMapper. As far as the SodaqOne is concerned I’ve certainly been able to get GPS fixes and send them up to TTN.