Hi,
I have the 7243 + LTE.
It should work for few minutes and than I turned off the ttn-gateway and the lora services for 30min and than back (all that in a loop).
After few hours the GPS stop working. also reboot of the RAK doesn’t help.
I tried to stop ttn-gateway service and run only the lora_pkt_fwd. Got the following messages -
INFO: Disabling GPS mode for concentrator’s counter… INFO: [down] PULL_ACK received in 0 ms INFO: host/sx1301 time offset=(1585216968s:535125µs) - drift=374156373µs INFO: Enabling GPS mode for concentrator’s counter.
INFO: [down] PULL_ACK received in 0 ms INFO: [down] PULL_ACK received in 0 ms
##### 2020-03-26 10:03:21 GMT ##### ### [UPSTREAM] ### # RF packets received by concentrator: 1 # CRC_OK: 0.00%, CRC_FAIL: 100.00%, NO_CRC: 0.00% # RF packets forwarded: 0 (0 bytes) # PUSH_DATA datagrams sent: 0 (0 bytes) # PUSH_DATA acknowledged: 0.00% ### [DOWNSTREAM] ### # PULL_DATA sent: 3 (100.00% acknowledged) # PULL_RESP(onse) datagrams received: 0 (0 bytes) # RF packets sent to concentrator: 0 (0 bytes) # TX errors: 0 # BEACON queued: 0 # BEACON sent so far: 0 # BEACON rejected: 0 ### [JIT] ### # SX1301 time (PPS): 2673059 src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty ### [GPS] ### # Invalid time reference (age: 1585217001 sec) # no valid GPS coordinates available yet ##### END #####
also the GPS device is outside, the GPS cable looks ok, turn off and on the i2c from the raspi-config.
Build lora_pkt_fwd with DEBUG_GPS and get the messages -
ERROR: NMEA CHECKSUM 58 DOESN’T MATCH VERIFICATION CHECKSUM 42
Warning: invalid NMEA sentence (bad checksum)
ERROR: UBX message is corrupted, checksum failed
Maximum length reached for nmea_checksum
Tried with the latest firmware and also on another HW and saw the same issue - it works for awhile and then stuck. I checked with i2cdetect (expect to find the GPS on 0x42) but it didn’t find anything.
Is there any other device on the I2C bus?
Thanks
Hi @ZhuQI,
Without 3 and 4 the same.
uname -a return - Linux rak-gateway 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux is it correct?
It worked for few hours ok and then I connected the 3 cameras (without capturing images). It worked about 10 hours and stuck.
ls /dev/i2c-1 show that the device exists.
Is it possible to check with scope on the I2C?
I used echo ‘1-1’ | sudo tee /sys/bus/usb/drivers/usb/unbind to turn off the cameras USBs when the GPS working and it seems better. It worked now for about 6 hours.
So looking forward… my system run on battery so I want the packet forwarder and the Lora server to work in parallel with the cameras. Is it possible to run simple GPS application (I changed the GPS test app to return more data from the GPS) and after that run the packet forwarder (without the GPS) and the cameras in parallel?
I mean is it possible to run all the Lora services without GPS? I saw that the flag “gps”: true, removed from the config file but I can update the code. Will it work?