Hi all.
I have a RAK 831 on a RasPi 3. It’s running on debian stretch lite with a pull / build of GitHub - RAKWireless/rak_common_for_gateway
That went OK, and with help from @Hobo I have it configured as a UDP forwarder to .eu on ~868MHz.
The packet forwarder seems OK, and the RX LED on the concentrator stays lighted. I have a ublox GPS connected with PPS signal, and that seems OK at the RasPi serial.
The problem is that when I look at the logs in /var/log/syslog, the system seems to stop receiving packets for a chunk of time perhaps related to these messages:
“INFO: Disabling GPS mode for concentrator’s counter…”
“INFO: host/sx1301 time offset=(1564708749s:272618µs) - drift=26µs”
“INFO: Enabling GPS mode for concentrator’s counter.”
To test: I set up a Node to transmit every 10s for a little while, and here is the log. The packets on the device at 867.7MHz stop coming in at 2:03:52.347981 GMT, and are received again at 2:04:23.432550.
There is another gap from 2:04:44.080362 to 2:05:25.458153.
They are not TTN packets, but I don’t care, as I will be modifying the driver for a custom protocol, once I have this stable.
Thanks in Advance for looking at this.
click for log
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: JSON up: {“rxpk”:[{“tmst”:2673770211,“time”:“2019-08-02T02:03:42.042408Z”,“tmms”:1248746641042,“chan”:6,“rfch”:0,“freq”:867.700000,“stat”:1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:9.8,“rssi”:-42,“size”:12,“data”:“//8AAAED1/8JAADq”}]}
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: INFO: [down] PULL_ACK received in 280 ms
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: INFO: Received pkt from mote: 000000FF (fcnt=0)
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: JSON up: {“rxpk”:[{“tmst”:2684075779,“time”:“2019-08-02T02:03:52.347981Z”,“tmms”:1248746651348,“chan”:6,“rfch”:0,“freq”:867.700000,“stat”:1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:10.0,“rssi”:-42,“size”:17,“data”:“//8AAAADAADME9f/CQAKAAA=”}]}
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: ##### 2019-08-02 02:03:53 GMT #####
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: ### [UPSTREAM] ###
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # RF packets received by concentrator: 4
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # CRC_OK: 100.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # RF packets forwarded: 4 (63 bytes)
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # PUSH_DATA datagrams sent: 5 (1128 bytes)
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # PUSH_DATA acknowledged: 0.00%
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: ### [DOWNSTREAM] ###
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # PULL_DATA sent: 3 (100.00% acknowledged)
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # RF packets sent to concentrator: 0 (0 bytes)
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # TX errors: 0
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # BEACON queued: 0
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # BEACON sent so far: 0
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # BEACON rejected: 0
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: ### [JIT] ###
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # SX1301 time (PPS): 2683727798
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: ### [GPS] ###
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # Valid time reference (age: 0 sec)
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # GPS coordinates: latitude -43.55673, longitude 172.67742, altitude -13 m
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: ##### END #####
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: JSON up: {“stat”:{“time”:“2019-08-02 02:03:53 GMT”,“lati”:-43.55673,“long”:172.67742,“alti”:-13,“rxnb”:4,“rxok”:4,“rxfw”:4,“ackr”:0.0,“dwnb”:0,“txnb”:0}}
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: INFO: [down] PULL_ACK received in 279 ms
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: INFO: [down] PULL_ACK received in 279 ms
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: INFO: Disabling GPS mode for concentrator’s counter…
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: INFO: host/sx1301 time offset=(1564708749s:272592µs) - drift=27µs
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: INFO: Enabling GPS mode for concentrator’s counter.
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: INFO: [down] PULL_ACK received in 279 ms
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: ##### 2019-08-02 02:04:23 GMT #####
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: ### [UPSTREAM] ###
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # RF packets received by concentrator: 0
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # RF packets forwarded: 0 (0 bytes)
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # PUSH_DATA datagrams sent: 1 (156 bytes)
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # PUSH_DATA acknowledged: 0.00%
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: ### [DOWNSTREAM] ###
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # PULL_DATA sent: 3 (100.00% acknowledged)
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # RF packets sent to concentrator: 0 (0 bytes)
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # TX errors: 0
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # BEACON queued: 0
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # BEACON sent so far: 0
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # BEACON rejected: 0
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: ### [JIT] ###
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # SX1301 time (PPS): 2713843192
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: ### [GPS] ###
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # Valid time reference (age: 0 sec)
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # GPS coordinates: latitude -43.55681, longitude 172.67749, altitude -47 m
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: ##### END #####
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: JSON up: {“stat”:{“time”:“2019-08-02 02:04:23 GMT”,“lati”:-43.55681,“long”:172.67749,“alti”:-47,“rxnb”:0,“rxok”:0,“rxfw”:0,“ackr”:0.0,“dwnb”:0,“txnb”:0}}
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: INFO: Received pkt from mote: 010000FF (fcnt=65495)
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: JSON up: {“rxpk”:[{“tmst”:2715160331,“time”:“2019-08-02T02:04:23.432550Z”,“tmms”:1248746682432,“chan”:6,“rfch”:0,“freq”:867.700000,“stat”:1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:9.2,“rssi”:-40,“size”:12,“data”:“//8AAAED1/8KAADq”}]}
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: INFO: [down] PULL_ACK received in 280 ms
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: INFO: Received pkt from mote: 000000FF (fcnt=0)
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: JSON up: {“rxpk”:[{“tmst”:2725462699,“time”:“2019-08-02T02:04:33.734924Z”,“tmms”:1248746692734,“chan”:6,“rfch”:0,“freq”:867.700000,“stat”:1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:9.5,“rssi”:-39,“size”:17,“data”:“//8AAAADAADME9f/DAAKAAA=”}]}
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: INFO: Received pkt from mote: 010000FF (fcnt=65496)
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: JSON up: {“rxpk”:[{“tmst”:2725506355,“time”:“2019-08-02T02:04:33.778580Z”,“tmms”:1248746692778,“chan”:6,“rfch”:0,“freq”:867.700000,“stat”:1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:9.2,“rssi”:-42,“size”:12,“data”:“//8AAAED2P8KAADq”}]}
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: INFO: [down] PULL_ACK received in 279 ms
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: INFO: Received pkt from mote: 000000FF (fcnt=0)
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: JSON up: {“rxpk”:[{“tmst”:2735808131,“time”:“2019-08-02T02:04:44.080362Z”,“tmms”:1248746703080,“chan”:6,“rfch”:0,“freq”:867.700000,“stat”:1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:9.2,“rssi”:-41,“size”:17,“data”:“//8AAAADAADME9j/CQAKAAA=”}]}
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: ##### 2019-08-02 02:04:53 GMT #####
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: ### [UPSTREAM] ###
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # RF packets received by concentrator: 5
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # CRC_OK: 80.00%, CRC_FAIL: 20.00%, NO_CRC: 0.00%
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # RF packets forwarded: 4 (58 bytes)
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # PUSH_DATA datagrams sent: 5 (1164 bytes)
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: # PUSH_DATA acknowledged: 0.00%
Aug 2 14:04:53 rak-gateway ttn-gateway[21803]: ### [DOWNSTREAM] ###
Aug 2 14:05:01 rak-gateway CRON[31893]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # PULL_DATA sent: 3 (66.67% acknowledged)
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # RF packets sent to concentrator: 0 (0 bytes)
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # TX errors: 0
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # BEACON queued: 0
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # BEACON sent so far: 0
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # BEACON rejected: 0
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: ### [JIT] ###
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # SX1301 time (PPS): 2743727764
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: ### [GPS] ###
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # Valid time reference (age: 0 sec)
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # GPS coordinates: latitude -43.55689, longitude 172.67785, altitude -65 m
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: ##### END #####
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: JSON up: {“stat”:{“time”:“2019-08-02 02:04:53 GMT”,“lati”:-43.55689,“long”:172.67785,“alti”:-65,“rxnb”:5,“rxok”:4,“rxfw”:4,“ackr”:0.0,“dwnb”:0,“txnb”:0}}
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: INFO: [down] PULL_ACK received in 279 ms
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: INFO: [down] PULL_ACK received in 279 ms
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: INFO: [down] PULL_ACK received in 279 ms
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: INFO: Disabling GPS mode for concentrator’s counter…
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: INFO: host/sx1301 time offset=(1564708749s:272618µs) - drift=26µs
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: INFO: Enabling GPS mode for concentrator’s counter.
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: ##### 2019-08-02 02:05:23 GMT #####
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: ### [UPSTREAM] ###
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # RF packets received by concentrator: 0
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # RF packets forwarded: 0 (0 bytes)
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # PUSH_DATA datagrams sent: 1 (156 bytes)
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # PUSH_DATA acknowledged: 0.00%
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: ### [DOWNSTREAM] ###
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # PULL_DATA sent: 2 (150.00% acknowledged)
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # RF packets sent to concentrator: 0 (0 bytes)
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # TX errors: 0
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # BEACON queued: 0
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # BEACON sent so far: 0
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # BEACON rejected: 0
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: ### [JIT] ###
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # SX1301 time (PPS): 2773843464
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: ### [GPS] ###
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # Valid time reference (age: 0 sec)
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: # GPS coordinates: latitude -43.55676, longitude 172.67712, altitude -50 m
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: ##### END #####
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: JSON up: {“stat”:{“time”:“2019-08-02 02:05:23 GMT”,“lati”:-43.55676,“long”:172.67712,“alti”:-50,“rxnb”:0,“rxok”:0,“rxfw”:0,“ackr”:0.0,“dwnb”:0,“txnb”:0}}
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: INFO: [down] PULL_ACK received in 279 ms
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: INFO: Received pkt from mote: 000000FF (fcnt=7)
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: JSON up: {“rxpk”:[{“tmst”:2777185899,“time”:“2019-08-02T02:05:25.458153Z”,“tmms”:1248746744458,“chan”:6,“rfch”:0,“freq”:867.700000,“stat”:1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:9.8,“rssi”:-42,“size”:17,“data”:“//8AAAADBwDaE9f/CgAKAAA=”}]}
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: INFO: [down] PULL_ACK received in 279 ms
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: INFO: Received pkt from mote: 010000FF (fcnt=65495)
Aug 2 14:06:23 rak-gateway ttn-gateway[21803]: JSON up: {“rxpk”:[{“tmst”:2787574339,“time”:“2019-08-02T02:05:35.846599Z”,“tmms”:1248746754846,“chan”:6,“rfch”:0,“freq”:867.700000,“stat”:1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:9.8,“rssi”:-42,“size”:12,“data”:“//8AAAED1/8JAADq”}]}