Yes, disable this until you figured out all.
Ok, Thanks for the confirmation.
- I given a try with Class A & Disable Frame Counter validation.
- Send a data for every 2mins on the Node (Arduino board) and trying to receive the datas from server. But I am not able to receive any datas on the gateway itself. No idea whether we should receive the log for downlink on the gateway side. Should I enable anything on the gateway side to receive the downlink frames from server to gateway ?
- Attached the downlink frame image of the server side
- Below given the gateway syslog.
Dec 19 15:45:17 rak-gateway : # PULL_DATA sent: 3 (100.00% acknowledged)
Dec 19 15:45:17 rak-gateway : # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Dec 19 15:45:17 rak-gateway : # RF packets sent to concentrator: 0 (0 bytes)
Dec 19 15:45:17 rak-gateway : # TX errors: 0
Dec 19 15:45:17 rak-gateway : # TX rejected (collision packet): 0.00% (req:3324, rej:0)
Dec 19 15:45:17 rak-gateway : # TX rejected (collision beacon): 0.00% (req:3324, rej:0)
Dec 19 15:45:17 rak-gateway : # TX rejected (too late): 0.03% (req:3324, rej:1)
Dec 19 15:45:17 rak-gateway : # TX rejected (too early): 0.27% (req:3324, rej:9)
Dec 19 15:45:17 rak-gateway : # BEACON queued: 0
Dec 19 15:45:17 rak-gateway : # BEACON sent so far: 0
Dec 19 15:45:17 rak-gateway : # BEACON rejected: 0
Dec 19 15:45:17 rak-gateway : ### [JIT] ###
Dec 19 15:45:17 rak-gateway : # SX1301 time (PPS): 3897795113
Dec 19 15:45:17 rak-gateway : src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Dec 19 15:45:17 rak-gateway : ### [GPS] ###
Dec 19 15:45:17 rak-gateway : # Valid time reference (age: 0 sec)
Dec 19 15:45:17 rak-gateway : # GPS coordinates: latitude 12.95217, longitude 80.17129, altitude 38 m
Dec 19 15:45:17 rak-gateway : ##### END #####
Dec 19 15:45:17 rak-gateway : JSON up: {“stat”:{“time”:“2019-12-19 10:15:02 GMT”,“lati”:12.95217,“long”:80.17129,“alti”:38,“rxnb”:0,“rxok”:0,“rxfw”:0,“ackr”:0.0,“dwnb”:0,“txnb”:0}}
Dec 19 15:45:17 rak-gateway : INFO: Received pkt from mote: 260118A6 (fcnt=250)
Dec 19 15:45:17 rak-gateway : JSON up: {“rxpk”:[{“tmst”:3899578628,“time”:“2019-12-19T10:15:02.783515Z”,“tmms”:1260785721783,“chan”:1,“rfch”:0,“freq”:865.402500,“stat”:1,“modu”:“LORA”,“datr”:“SF12BW125”,“codr”:“4/5”,“lsnr”:9.8,“rssi”:-40,“size”:46,“data”:“gKYYASaA+gAK2WqKC4a39EnBbSXJzLXlOP3BCzih32u7jcXLS3PnvpquiVAMzw==”}]}
Dec 19 15:45:17 rak-gateway : INFO: [down] PULL_ACK received in 392 ms
Dec 19 15:45:17 rak-gateway : INFO: Received pkt from mote: 260118A6 (fcnt=250)
Dec 19 15:45:17 rak-gateway : JSON up: {“rxpk”:[{“tmst”:3903924212,“time”:“2019-12-19T10:15:07.129098Z”,“tmms”:1260785726129,“chan”:1,“rfch”:0,“freq”:865.402500,“stat”:1,“modu”:“LORA”,“datr”:“SF12BW125”,“codr”:“4/5”,“lsnr”:9.5,“rssi”:-39,“size”:46,“data”:“gKYYASaA+gAK2WqKC4a39EnBbSXJzLXlOP3BCzih32u7jcXLS3PnvpquiVAMzw==”}]}
Dec 19 15:45:17 rak-gateway : INFO: [down] PULL_ACK received in 400 ms
Dec 19 15:45:17 rak-gateway : INFO: Received pkt from mote: 26041F46 (fcnt=24)
Dec 19 15:45:17 rak-gateway : JSON up: {“rxpk”:[{“tmst”:3912250499,“time”:“2019-12-19T10:15:15.455386Z”,“tmms”:1260785734455,“chan”:0,“rfch”:0,“freq”:865.062500,“stat”:1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:9.5,“rssi”:-84,“size”:148,“data”:“QEYfBCaAGAABAtTytxWTeyut96MXHeH00szTmbYP6vJXnSUTId/G2RqkWbMTRTfFElWSmlRpHrvcAqiTirrcv8lrab/J3LAvG5fvsZzAwFwpNJ9XjvatS0vv8wDhpCFSdcltPuUXHMLax2FvD8FDhIfG3jqK4OhItzGRDLG/LtDt3wvyHJLGlrWO0/6tSO4xsYt27g==”}]}
Dec 19 15:45:17 rak-gateway : INFO: [down] PULL_RESP received - token[142:112]
Dec 19 15:46:36 rak-gateway : JSON down: {“txpk”:{“imme”:false,“rfch”:0,“powe”:27,“ant”:0,“brd”:0,“tmst”:3913250499,“freq”:865.0625,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“ipol”:true,“size”:17,“data”:“YEYfBCaFD2UDAAcAAaTBBhY=”}}
Dec 19 15:46:36 rak-gateway : INFO: tx_start_delay=1495 (1495.500000) - (1497, bw_delay=1.500000, notch_delay=0.000000)
Dec 19 15:46:36 rak-gateway : INFO: [down] PULL_ACK received in 399 ms
Dec 19 15:46:36 rak-gateway : ##### 2019-12-19 10:15:32 GMT #####
Dec 19 15:46:36 rak-gateway : ### [UPSTREAM] ###
Dec 19 15:46:36 rak-gateway : # RF packets received by concentrator: 3
Dec 19 15:46:36 rak-gateway : # CRC_OK: 100.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Dec 19 15:46:36 rak-gateway : # RF packets forwarded: 3 (240 bytes)
Dec 19 15:46:36 rak-gateway : # PUSH_DATA datagrams sent: 4 (1180 bytes)
Dec 19 15:46:36 rak-gateway : # PUSH_DATA acknowledged: 0.00%
Dec 19 15:46:36 rak-gateway : ### [DOWNSTREAM] ###
Dec 19 15:46:36 rak-gateway : # PULL_DATA sent: 3 (100.00% acknowledged)
Dec 19 15:46:36 rak-gateway : # PULL_RESP(onse) datagrams received: 1 (197 bytes)
Dec 19 15:46:36 rak-gateway : # RF packets sent to concentrator: 1 (17 bytes)
Dec 19 15:46:36 rak-gateway : # TX errors: 0
Dec 19 15:46:36 rak-gateway : # TX rejected (collision packet): 0.00% (req:3325, rej:0)
Dec 19 15:46:36 rak-gateway : # TX rejected (collision beacon): 0.00% (req:3325, rej:0)
Dec 19 15:46:36 rak-gateway : # TX rejected (too late): 0.03% (req:3325, rej:1)
Dec 19 15:46:36 rak-gateway : # TX rejected (too early): 0.27% (req:3325, rej:9)
Dec 19 15:46:36 rak-gateway : # BEACON queued: 0
Dec 19 15:46:36 rak-gateway : # BEACON sent so far: 0
Dec 19 15:46:36 rak-gateway : # BEACON rejected: 0
Dec 19 15:46:36 rak-gateway : ### [JIT] ###
Dec 19 15:46:36 rak-gateway : # SX1301 time (PPS): 3927795114
Dec 19 15:46:36 rak-gateway : src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Dec 19 15:46:36 rak-gateway : ### [GPS] ###
Dec 19 15:46:36 rak-gateway : # Valid time reference (age: 0 sec)
Dec 19 15:46:36 rak-gateway : # GPS coordinates: latitude 12.95222, longitude 80.17137, altitude 32 m
Dec 19 15:46:36 rak-gateway : ##### END #####
Dec 19 15:46:36 rak-gateway : JSON up: {“stat”:{“time”:“2019-12-19 10:15:32 GMT”,“lati”:12.95222,“long”:80.17137,“alti”:32,“rxnb”:3,“rxok”:3,“rxfw”:3,“ackr”:0.0,“dwnb”:1,“txnb”:1}}
Dec 19 15:46:36 rak-gateway : INFO: [down] PULL_ACK received in 394 ms
Dec 19 15:46:36 rak-gateway : INFO: [down] PULL_ACK received in 392 ms
Dec 19 15:46:36 rak-gateway : INFO: [down] PULL_ACK received in 392 ms
Dec 19 15:46:36 rak-gateway : INFO: Disabling GPS mode for concentrator’s counter…
Dec 19 15:46:36 rak-gateway : INFO: host/sx1301 time offset=(1576746604s:160280µs) - drift=-476µs
Dec 19 15:46:36 rak-gateway : INFO: Enabling GPS mode for concentrator’s counter.
Dec 19 15:46:36 rak-gateway : ##### 2019-12-19 10:16:02 GMT #####
Dec 19 15:46:36 rak-gateway : ### [UPSTREAM] ###
Dec 19 15:46:36 rak-gateway : # RF packets received by concentrator: 0
Dec 19 15:46:36 rak-gateway : # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Dec 19 15:46:36 rak-gateway : # RF packets forwarded: 0 (0 bytes)
Dec 19 15:46:36 rak-gateway : # PUSH_DATA datagrams sent: 1 (153 bytes)
Dec 19 15:46:36 rak-gateway : # PUSH_DATA acknowledged: 0.00%
Dec 19 15:46:36 rak-gateway : ### [DOWNSTREAM] ###
Dec 19 15:46:36 rak-gateway : # PULL_DATA sent: 3 (100.00% acknowledged)
Dec 19 15:46:36 rak-gateway : # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Dec 19 15:46:36 rak-gateway : # RF packets sent to concentrator: 0 (0 bytes)
Dec 19 15:46:36 rak-gateway : # TX errors: 0
Dec 19 15:46:36 rak-gateway : # TX rejected (collision packet): 0.00% (req:3325, rej:0)
Dec 19 15:46:36 rak-gateway : # TX rejected (collision beacon): 0.00% (req:3325, rej:0)
Dec 19 15:46:36 rak-gateway : # TX rejected (too late): 0.03% (req:3325, rej:1)
Dec 19 15:46:36 rak-gateway : # TX rejected (too early): 0.27% (req:3325, rej:9)
Dec 19 15:46:36 rak-gateway : # BEACON queued: 0
Dec 19 15:46:36 rak-gateway : # BEACON sent so far: 0
Dec 19 15:46:36 rak-gateway : # BEACON rejected: 0
Dec 19 15:46:36 rak-gateway : ### [JIT] ###
Dec 19 15:46:36 rak-gateway : # SX1301 time (PPS): 3957795116
Dec 19 15:46:36 rak-gateway : src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Dec 19 15:46:36 rak-gateway : ### [GPS] ###
Dec 19 15:46:36 rak-gateway : # Valid time reference (age: 0 sec)
Dec 19 15:46:36 rak-gateway : # GPS coordinates: latitude 12.95221, longitude 80.17135, altitude 24 m
Dec 19 15:46:36 rak-gateway : ##### END #####
Dec 19 15:46:36 rak-gateway : JSON up: {“stat”:{“time”:“2019-12-19 10:16:02 GMT”,“lati”:12.95221,“long”:80.17135,“alti”:24,“rxnb”:0,“rxok”:0,“rxfw”:0,“ackr”:0.0,“dwnb”:0,“txnb”:0}}
Dec 19 15:46:36 rak-gateway : INFO: [down] PULL_ACK received in 393 ms
Dec 19 15:46:36 rak-gateway : INFO: [down] PULL_ACK received in 393 ms
Dec 19 15:46:37 rak-gateway : INFO: [down] PULL_ACK received in 403 ms
Dec 19 15:46:37 rak-gateway : ##### 2019-12-19 10:16:32 GMT #####
Dec 19 15:46:37 rak-gateway : ### [UPSTREAM] ###
Dec 19 15:46:37 rak-gateway : # RF packets received by concentrator: 0
Dec 19 15:46:37 rak-gateway : # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Dec 19 15:46:37 rak-gateway : # RF packets forwarded: 0 (0 bytes)
Dec 19 15:46:37 rak-gateway : # PUSH_DATA datagrams sent: 1 (153 bytes)
Dec 19 15:46:37 rak-gateway : # PUSH_DATA acknowledged: 0.00%
Dec 19 15:46:37 rak-gateway : ### [DOWNSTREAM] ###
Dec 19 15:46:37 rak-gateway : # PULL_DATA sent: 3 (100.00% acknowledged)
Dec 19 15:46:37 rak-gateway : # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Dec 19 15:46:37 rak-gateway : # RF packets sent to concentrator: 0 (0 bytes)
Dec 19 15:46:37 rak-gateway : # TX errors: 0
Dec 19 15:46:37 rak-gateway : # TX rejected (collision packet): 0.00% (req:3325, rej:0)
Dec 19 15:46:37 rak-gateway : # TX rejected (collision beacon): 0.00% (req:3325, rej:0)
Dec 19 15:46:37 rak-gateway : # TX rejected (too late): 0.03% (req:3325, rej:1)
Dec 19 15:46:37 rak-gateway : # TX rejected (too early): 0.27% (req:3325, rej:9)
Dec 19 15:46:37 rak-gateway : # BEACON queued: 0
Dec 19 15:46:37 rak-gateway : # BEACON sent so far: 0
Dec 19 15:46:37 rak-gateway : # BEACON rejected: 0
Dec 19 15:46:37 rak-gateway : ### [JIT] ###
Dec 19 15:46:37 rak-gateway : # SX1301 time (PPS): 3987795118
Dec 19 15:46:37 rak-gateway : src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Dec 19 15:46:37 rak-gateway : ### [GPS] ###
Dec 19 15:46:37 rak-gateway : # Valid time reference (age: 0 sec)
Dec 19 15:46:37 rak-gateway : # GPS coordinates: latitude 12.95225, longitude 80.17144, altitude 10 m
Dec 19 15:46:37 rak-gateway : ##### END #####
Dec 19 15:46:37 rak-gateway : JSON up: {“stat”:{“time”:“2019-12-19 10:16:32 GMT”,“lati”:12.95225,“long”:80.17144,“alti”:10,“rxnb”:0,“rxok”:0,“rxfw”:0,“ackr”:0.0,“dwnb”:0,“txnb”:0}}
Dec 19 15:48:02 rak-gateway : INFO: [down] PULL_ACK received in 399 ms
Dec 19 15:48:02 rak-gateway : INFO: [down] PULL_ACK received in 405 ms
Dec 19 15:48:02 rak-gateway : INFO: [down] PULL_ACK received in 393 ms
Dec 19 15:48:02 rak-gateway : INFO: Disabling GPS mode for concentrator’s counter…
Dec 19 15:48:02 rak-gateway : INFO: host/sx1301 time offset=(1576746604s:159806µs) - drift=-474µs
Dec 19 15:48:02 rak-gateway : INFO: Enabling GPS mode for concentrator’s counter.
Dec 19 15:48:02 rak-gateway : ##### 2019-12-19 10:17:02 GMT #####
Dec 19 15:48:02 rak-gateway : ### [UPSTREAM] ###
Dec 19 15:48:02 rak-gateway : # RF packets received by concentrator: 0
Dec 19 15:48:02 rak-gateway : # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Dec 19 15:48:02 rak-gateway : # RF packets forwarded: 0 (0 bytes)
Dec 19 15:48:02 rak-gateway : # PUSH_DATA datagrams sent: 1 (153 bytes)
Dec 19 15:48:02 rak-gateway : # PUSH_DATA acknowledged: 0.00%
Dec 19 15:48:02 rak-gateway : ### [DOWNSTREAM] ###
Dec 19 15:48:02 rak-gateway : # PULL_DATA sent: 3 (100.00% acknowledged)
Dec 19 15:48:02 rak-gateway : # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Dec 19 15:48:02 rak-gateway : # RF packets sent to concentrator: 0 (0 bytes)
Dec 19 15:48:02 rak-gateway : # TX errors: 0
Dec 19 15:48:02 rak-gateway : # TX rejected (collision packet): 0.00% (req:3325, rej:0)
Dec 19 15:48:02 rak-gateway : # TX rejected (collision beacon): 0.00% (req:3325, rej:0)
Dec 19 15:48:02 rak-gateway : # TX rejected (too late): 0.03% (req:3325, rej:1)
Dec 19 15:48:02 rak-gateway : # TX rejected (too early): 0.27% (req:3325, rej:9)
Dec 19 15:48:02 rak-gateway : # BEACON queued: 0
Dec 19 15:48:02 rak-gateway : # BEACON sent so far: 0
Dec 19 15:48:02 rak-gateway : # BEACON rejected: 0
Dec 19 15:48:02 rak-gateway : ### [JIT] ###
Dec 19 15:48:02 rak-gateway : # SX1301 time (PPS): 4017795120
Dec 19 15:48:02 rak-gateway : src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Dec 19 15:48:02 rak-gateway : ### [GPS] ###
Dec 19 15:48:02 rak-gateway : # Valid time reference (age: 0 sec)
Dec 19 15:48:02 rak-gateway : # GPS coordinates: latitude 12.95225, longitude 80.17147, altitude 11 m
Dec 19 15:48:02 rak-gateway : ##### END #####
Dec 19 15:48:02 rak-gateway : JSON up: {“stat”:{“time”:“2019-12-19 10:17:02 GMT”,“lati”:12.95225,“long”:80.17147,“alti”:11,“rxnb”:0,“rxok”:0,“rxfw”:0,“ackr”:0.0,“dwnb”:0,“txnb”:0}}
Dec 19 15:48:02 rak-gateway : INFO: [down] PULL_ACK received in 523 ms
Dec 19 15:48:02 rak-gateway : INFO: [down] PULL_ACK received in 393 ms
Dec 19 15:48:02 rak-gateway : INFO: Received pkt from mote: 26041F46 (fcnt=25)
Dec 19 15:48:02 rak-gateway : JSON up: {“rxpk”:[{“tmst”:4034819763,“time”:“2019-12-19T10:17:18.024642Z”,“tmms”:1260785857024,“chan”:1,“rfch”:0,“freq”:865.402500,“stat”:1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:9.0,“rssi”:-82,“size”:148,“data”:“QEYfBCaAGQABz/edCUdP2JlxT4ahUUlhCrNOViC20ZvWnDgK+97rK5X2mp4ni7X+Rsan4am/dXd25ccR2ob7W3GUO1g0YLEV33aUgZrTz3nVcYUR5GZO7IqZxbn5k26FozQAuJkPpvdIY4yoo3Zt8B8ERtfcCr4EtICAxq7TVUbXXnkeakxqxZ/ewCSsIFxhXOPMoA==”}]}
Dec 19 15:48:02 rak-gateway : INFO: [down] PULL_RESP received - token[122:74]
Dec 19 15:48:02 rak-gateway : JSON down: {“txpk”:{“imme”:false,“rfch”:0,“powe”:27,“ant”:0,“brd”:0,“tmst”:4035819763,“freq”:865.4025,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“ipol”:true,“size”:17,“data”:“YEYfBCaFEGUDAAcAAV06Iz4=”}}
Dec 19 15:48:02 rak-gateway : INFO: tx_start_delay=1495 (1495.500000) - (1497, bw_delay=1.500000, notch_delay=0.000000)
Dec 19 15:48:02 rak-gateway : INFO: [down] PULL_ACK received in 395 ms
Dec 19 15:48:02 rak-gateway : ##### 2019-12-19 10:17:32 GMT #####
Dec 19 15:48:02 rak-gateway : ### [UPSTREAM] ###
Dec 19 15:48:02 rak-gateway : # RF packets received by concentrator: 1
Dec 19 15:48:02 rak-gateway : # CRC_OK: 100.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Dec 19 15:48:02 rak-gateway : # RF packets forwarded: 1 (148 bytes)
Dec 19 15:48:02 rak-gateway : # PUSH_DATA datagrams sent: 2 (586 bytes)
Dec 19 15:48:02 rak-gateway : # PUSH_DATA acknowledged: 0.00%
Dec 19 15:48:02 rak-gateway : ### [DOWNSTREAM] ###
Dec 19 15:48:02 rak-gateway : # PULL_DATA sent: 3 (100.00% acknowledged)
Dec 19 15:48:02 rak-gateway : # PULL_RESP(onse) datagrams received: 1 (197 bytes)
Dec 19 15:48:02 rak-gateway : # RF packets sent to concentrator: 1 (17 bytes)
Dec 19 15:48:02 rak-gateway : # TX errors: 0
Dec 19 15:48:02 rak-gateway : # TX rejected (collision packet): 0.00% (req:3326, rej:0)
Dec 19 15:48:02 rak-gateway : # TX rejected (collision beacon): 0.00% (req:3326, rej:0)
Dec 19 15:48:02 rak-gateway : # TX rejected (too late): 0.03% (req:3326, rej:1)
Dec 19 15:48:02 rak-gateway : # TX rejected (too early): 0.27% (req:3326, rej:9)
Dec 19 15:48:02 rak-gateway : # BEACON queued: 0
Dec 19 15:48:02 rak-gateway : # BEACON sent so far: 0
Dec 19 15:48:02 rak-gateway : # BEACON rejected: 0
Dec 19 15:48:02 rak-gateway : ### [JIT] ###
Dec 19 15:48:02 rak-gateway : # SX1301 time (PPS): 4047795122
Dec 19 15:48:02 rak-gateway : src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
Dec 19 15:48:02 rak-gateway : ### [GPS] ###
Dec 19 15:48:02 rak-gateway : # Valid time reference (age: 0 sec)
Dec 19 15:48:02 rak-gateway : # GPS coordinates: latitude 12.95227, longitude 80.17150, altitude 6 m
Dec 19 15:48:02 rak-gateway : ##### END #####
Dec 19 15:48:02 rak-gateway : JSON up: {“stat”:{“time”:“2019-12-19 10:17:32 GMT”,“lati”:12.95227,“long”:80.17150,“alti”:6,“rxnb”:1,“rxok”:1,“rxfw”:1,“ackr”:0.0,“dwnb”:1,“txnb”:1}}
Dec 19 15:48:02 rak-gateway : INFO: [down] PULL_ACK received in 401 ms
Dec 19 15:48:02 rak-gateway : INFO: [down] PULL_ACK received in 394 ms
Dec 19 15:48:02 rak-gateway : INFO: [down] PULL_ACK received in 400 ms
Dec 19 15:48:02 rak-gateway : INFO: Disabling GPS mode for concentrator’s counter…
Dec 19 15:48:02 rak-gateway : INFO: host/sx1301 time offset=(1576746604s:159335µs) - drift=-471µs
Dec 19 15:48:02 rak-gateway : INFO: Enabling GPS mode for concentrator’s counter.
Dec 19 15:48:02 rak-gateway : ##### 2019-12-19 10:18:02 GMT #####
Dec 19 15:48:02 rak-gateway : ### [UPSTREAM] ###
Dec 19 15:48:02 rak-gateway : # RF packets received by concentrator: 0
Dec 19 15:48:02 rak-gateway : # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Dec 19 15:48:02 rak-gateway : # RF packets forwarded: 0 (0 bytes)
Dec 19 15:48:02 rak-gateway : # PUSH_DATA datagrams sent: 1 (152 bytes)
Dec 19 15:48:02 rak-gateway : # PUSH_DATA acknowledged: 0.00%
Dec 19 15:48:02 rak-gateway : ### [DOWNSTREAM] ###
Dec 19 15:48:02 rak-gateway : # PULL_DATA sent: 3 (100.00% acknowledged)
TIA.
As you can see from your log, the gateway has "rxpk" and "txpk".
"rxpk" is the data packet sent by the node and "txpk" is the data packet sent by the server to the node.
But the txpk here is not sure what the data is, because it is encrypted, maybe it is the mac instruction and dr adjustment, or it may be the data you send from the server to the node.
So you need to follow the method to test:
1.Keep class A mode.
2.Monitor the log of lora_pkt_fwd in real time.
3.It can be seen from the log that the node is sending unconfirmed data, so you need to send several unconfirmed data through the node, and observe whether the gateway will receive txpk information after each unconfirmed transmission.
4.If each time the node sends unconfirmed data, the gateway does not receive txpk, then you send a data to the node on the server side.
5.Then the node sends an unconfirmed data. In theory, this time the gateway will receive a txpk data after rxpk. This data is the data you just sent to the node on the server.
Hi @ZhuQI Thanks for your inputs.
I followed the steps you suggested.
- Kept class A mode
- Monitoring log on the gateway
- Once I send unconfirmed data from server, I can see the gateway receives it by txpk information.
- Now node sends unconfirmed datas to server continuously.
- I can see the txpk after rxpk once initiate the downlink queue. However, I have no idea why I am getting continuous downlink frames (with null data) on the server.
Further inputs :
- On the lorawan frames log contains fpending : true in my downlink. As per broccar’s input, it means, the data from server to gateway has been sent & confirmed. But waiting for acknowledgement from the node. If this is the case, I have some configuration issues on the Node side?.
TIA
Do you mean that you can see "txpk" on the gateway immediately after the server sends unconfirmed data?
Yes, I receive txpk immediately on the gateway after I enqueue the downlink data on the server.
I also noticed my Device profile settings page, the RX1 & RX2 are set by zero. Is it mandatory that we should set these values for downlink?. If so, kindly let me know the values I should set for IN865 band. PFA for my current settings page.
TIA
Try to disabled class c in device-profile.
Tried without Class C. But no improvements.
- I am not seeing the server uses RX2 frequency for downlink. It uses the same uplink frequency. Is it normal for Class A?.
- Also like to know if there is anyway we confirm that the gateway is forwarding the downlink datas to the node hardware?.
- Do we have any configuration need to be done on gateway side for RX2?.
TIA
For class A mode, the downlink sends by rx1 by default, but for Class-C it will use the RX2 settings.
You can send a confirmed downlink from the server to the node to confirm whether the node has received it.
@ZhuQI Ok, I understand.
No data received even I sent confirmed data from the server.
What is the purpose radio_1 on the gateway’s global.conf.json file?. Is it belongs to downlink communication purpose?.
TIA
Hi @ZhuQI
I found the tx_enable is false by default in my global_conf.json file. Once I enabled tx_enable by true, the gateway service is completely stopped. The log is as below,
pi@rak-gateway:~ $ sudo service ttn-gateway status
● ttn-gateway.service - The Things Network Gateway
Loaded: loaded (/lib/systemd/system/ttn-gateway.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2019-12-30 15:07:16 IST; 689ms ago
Process: 3129 ExecStart=/opt/ttn-gateway/packet_forwarder/lora_pkt_fwd/start.sh (code=exited, status=1/FAILURE)
Main PID: 3129 (code=exited, status=1/FAILURE)Dec 30 15:07:16 rak-gateway ttn-gateway[3129]: INFO: local_conf.json does contain a JSON object named gateway_conf, pars
Dec 30 15:07:16 rak-gateway ttn-gateway[3129]: INFO: gateway MAC address is configured to B827EBFFFE92CA25
Dec 30 15:07:16 rak-gateway ttn-gateway[3129]: INFO: packets received with a valid CRC will be forwarded
Dec 30 15:07:16 rak-gateway ttn-gateway[3129]: INFO: packets received with a CRC error will NOT be forwarded
Dec 30 15:07:16 rak-gateway ttn-gateway[3129]: INFO: packets received with no CRC will NOT be forwarded
Dec 30 15:07:16 rak-gateway ttn-gateway[3129]: INFO: [main] TTY port /dev/ttyAMA0 open for GPS synchronization
Dec 30 15:07:16 rak-gateway ttn-gateway[3129]: ERROR: [main] failed to start the concentrator
Dec 30 15:07:16 rak-gateway systemd[1]: ttn-gateway.service: Main process exited, code=exited, status=1/FAILURE
Dec 30 15:07:16 rak-gateway systemd[1]: ttn-gateway.service: Unit entered failed state.
Dec 30 15:07:16 rak-gateway systemd[1]: ttn-gateway.service: Failed with result ‘exit-code’.
Once I make disable tx_radio by false, the gateway starts working. Is it mandatory that we need to enable tx_enable for downlink transmission?.
TIA
Hi All,
I am trying to achieve the downlink on Chirpstack for some time. But no success so far. I was able to get the downlink done in short period of time on TTN. But not able to achieve it on the chirpstack. Its difficult to find the clear guidance for downlink on chirpstack. I would like to share the steps I have done here to cross check my procedure, configuration and fix the downlink issue.
Settup details
Frequency Band : EU868
Node hardware : Arduino Uno
Library : LMIC
Gateway : RAK 2245
Lorawan server : RAK test server
Node program :
Using the default ttn-abp program from lmic, here
Program uses EU868 band
Using LMIC.dn2Dr = DR_SF12; for chirpstack and LMIC.dn2Dr = DR_SF9; for TTN.
Confirmed with TTN. I can able to get downlink data on the node side.
There is no other changes on the ttn-abp.ino side
Gateway
Using RAK’s Gateway OS as it is and configured the lorawan server with external chirpstack server given by RAK.
– Done the gateway ID setup on the global_conf.json
– No other changes on global_conf.json file. Tx_enable: false in radio_1 and frequency is 868500000
On the Chirpstack side
– Existing service profile used. Nothing changed.
– Existing device profile used
– Class A with ABP, RX1 Delay : 5, RX1 Data rate off-set : 0, RX2 Datarate : 0, RX2 Chennal frequency : 869525000 & factory preset frequency : 868100000, 868300000, 868500000, 867100000, 867300000, 867500000, 867700000, 867900000 (No idea what should I use).
– Class B / C Disabled
– Application created
– Device created and Device address, Network session key & Application session key added on the ttn-abp.ino progam.
Output
Uplink::
- The sample hello world received on the server side as uplink data sent by node.
- The log confirms the data transfers on the gateway side by using, tcpdump -AUq port 1700
- So far is working fine
Downlink ::
– Create a downlink queue from Device window. Gave, Port : 4, Confirmed Downlink enabled and give “aGk=” as base64 encoded data.
– The given downlink queue listed. The gateway receives the downlink frames after the uplink is done on the node side. The txpk confirm the data transfer from server to gateway.
– Recevied an “ack” frame once the downlink queue is clear. It contains as follows,
applicationID:“21”
applicationName:“app”
deviceName:“test2”
devEUI:“af9df28984d0b71a”
acknowledged:false
fCnt:73
tags:
The gateway log is,
.{“txpk”:{“imme”:true,“rfch”:0,“powe”:27,“ant”:0,“brd”:0,“freq”:869.525,“modu”:“LORA”,“datr”:“SF12BW125”,“codr”:“4/5”,“ipol”:true,“size”:22,“data”:“oB4F6QGHSQADAAcAAQgBBM9sLGaltg==”}} 17:14:01.128266 IP rak-gateway.58644 > 209.250.251.9.vultr.com.1700: UDP, length 12
No data is received on the node side. Any kind of input is appreciated to achieve the downlink on EU868.
TIA
Sorry, we just found some bugs in the downlink in ABP mode, and we are working hard to solve it.
@ZhuQI Can you please elaborate more about the bug in detail?. I will also try from my side.
Also like to know how about OTA mode for downlink with chirpstack?.
FYI, @Fomi
TIA
The server http://209.250.251.9:8080 has no bugs, which is because my test method is wrong.
I retested the abp mode on the http://209.250.251.9:8080 server to send data to the node(my node model is RAK811),Whether in class A or class C, the node can receive the data sent by the server.
I show you my device-profile configuration.
In class A mode, I added a piece of downstream data to the web page.
When the node sends an uplink data, it will receive the data we just added on the page

After the node sends data again, click the refresh button, and the downlink data in the queue will disappear.

Hi @ZhuQI Thanks for all your support. Finally, I tasted the downlink data transmission after I replicate the same configuration on my side and now I can able to get the downlink data on my node.
However, When I enable Class C along with this configuration, the downlink is not working. The lorawan frame log is all below, it looks like it uses 0 frequency for RX2 as per your configuration and I also changed the frequency into 89525000. Still not working for class C. May I know what frequency & DR we used for RX2/Class C?.
Class C when we use RX2 frequency is 0 :
Class C when we use RX2 frequency is 869525000
TIA












