Yeah, the OTAA thing is weird. For me, after about 4 tries, it stays connected. I’m not sure about this, but I think I’m supposed to be using the saved Device Address, Network Session Key, and App Session Key after a join, and re-joins just use those. Definitely needs some work, and I need to understand better what’s going on. To save join time, I’m just using ABP, but for production we’d want OTAA.
I’m pretty sure the antenna is just for the LoRa radio, because even the boards without GPS have them.
Ok so I tried your LoRaWAN library with latest firmware (2.1.15) and the change you described to me in another post for lora.setReceiceWindowFirst(0, 868.1); (I’m only disabling duty cycles checking for testing like in your sketch) and that works pretty well (I have sent 70 128ms messages each 6min, so over 7hours before having to re-join).
For the uFL connector, it is for LoRa radio, Seeed confirmed that to me with a picture:
About 2.1.15 firmware, do you know if that leads to LoRaWAN 1.1 compatibility (did you test it)? Does that send these kind of packets out of the box? Is the device compatible with other LoRaWAN classes than initially?
Another question sorry, did you had a look at LoRaWAN library changes made by toddkrein there https://github.com/toddkrein/OTAA-LoRaWAN-Seeed ? I tried to use them quickly, but as I can’t easily disable duty cycles check with these, I didn’t make further tries.
As for if the new firmware complies with the new 1.1 spec, I’m not sure. Though, if you wanted to track it down, I would look at the latest AT command guide. Apart from that, I may look through the spec, and try to spot related changes in Seeeduino’s LoRaWAN library.
Hi,
I’m having some troubles with the GPS payload: it looked like my GPS module was not running properly (?) that I only had timestamp, but not position data
So when I run the code of (and reference to) brady_aiello, I only got uplink of 0s in TTN console?
Do I need to manually start the GPS module somehow? I have 2 Seeeduino boards and they have this same problem.
Yeah, you’ll get garbage data (Lat = Lng = 0.0000) until it hears from a satellite. This may take a few minutes, and it generally helps if you’re outside. I’ve found that after it gets its initial coordinates, it tends to update pretty quickly.
Hi, I bought a Seeeduino LoRaWAN W/GPS. I tried to get de GPS coordinates with your codes but it did not conect. I read the LoRaWAN has a INPAQ antenna for gps, but i don’t know if it enought. I have a question, should I conect a uFL antenna? or are there a way to activate the NIPAQ antenna?
PD: I tried all code of this forum and it didn’t work.
Hi, I’d like to help if I can. You’re just trying to get GPS coordinates to show up on the serial monitor? You don’t need any GPS antenna to do that, but it helps to go outside, and sometimes you need to wait a minute to get a satellite signal. If you plug in the GPS code at the official wiki here, it should work: http://wiki.seeedstudio.com/Seeeduino_LoRAWAN/
I’ve copied it here for reference. Let me know if that does the trick.
Hi, I tried so wait outside my house and near window for several minutes. Then I start to get correct NMEA data ouput on serial monitor. Thanks for the info
Hi,
Working around the same issue, I wonder whether there is a command to tell the GPS it should issue NMEA messages at a chosen period of time. For example every minute instead of continuously?
Yes/no/may-be. It depends on the module used. Also cheap china clones of reputable modules usually don’t store settings if you are able to set anything at all.
To be fair, I try and tell the uBlox to shut the heck up and only give me position when I ask for it - so that I don’t end up with a random interrupt processing loop raining all over the rest of the code or twiddling characters until we get to the start of an actually useful sentence.
Doesn’t stop me asking for position every 10 seconds if I so desire and/or if the accelerometer interrupt says that the thing in question in on the move.
I’ve got a fair collection but none marked “the GPS” so hunting down it’s manual, possibly called “the Manual” will be pretty hard. But you could …
Probably the easiest bet is leaving the GPS module untouched, but do either of these on your MCU once a minute (or whatever your interval):
a) flush whatever is in the UART buffer (clearing all old messages) - then wait for a second to get the newest message and parse that
b) or after reading a message, deinit UART (depending on the platform it may also be best to set the MCU’s RX-pin as an output), and only re-init UART once you want to read a message, and then wait for a second for a message and parse that
On Arduino this is quite easy, use Serial.end() when finished with the GPS and Serial.begin() when you want to read it again.
The end and begin is definetly needed if your using software serial, since the interupts there can interfere with SPI to the LoRa device, but I have not had a problems with hardware serial ports.
For my initial question on NMEA messages, I partially manage to do it with
Serial2.print(“$PMTK314,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29\r\n”);
After that RMC NMEA message only is issued. Apparently, on L76 Quectel GNSS receiver, the period between issues cannot be given in second. In “fixed position” only. I am not sure of what it means for the position is always invalid (which is normal inside my office) but it keeps issuing RMC message all the time.