Hello @brocaar, @kersing and everybody else,
I’ve managed to get the rxPacketsReceivedOK to be greater then 0 and most of the times equal to the rxPacketsReceived. I believe the gateway is now receiving correct messages from the end node, which can be seen below:
mosquitto_sub -t “#” -d
Client mosqsub|13908-iotrix-pi sending CONNECT
Client mosqsub|13908-iotrix-pi received CONNACK
Client mosqsub|13908-iotrix-pi sending SUBSCRIBE (Mid: 1, Topic: #, QoS: 0)
Client mosqsub|13908-iotrix-pi received SUBACK
Subscribed (mid: 1): 0
Client mosqsub|13908-iotrix-pi received PUBLISH (d0, q0, r0, m0, ‘gateway/c0ee40ffff2938c6/stats’, … (163 bytes))
{“mac”:“c0ee40ffff2938c6”,“time”:“2017-12-19T13:03:20Z”,“rxPacketsReceived”:4,“rxPacketsReceivedOK”:4,“txPacketsReceived”:0,“txPacketsEmitted”:0,“customData”:null}
Client mosqsub|13908-iotrix-pi received PUBLISH (d0, q0, r0, m0, ‘gateway/c0ee40ffff2938c6/stats’, … (163 bytes))
{“mac”:“c0ee40ffff2938c6”,“time”:“2017-12-19T13:03:50Z”,“rxPacketsReceived”:6,“rxPacketsReceivedOK”:6,“txPacketsReceived”:0,“txPacketsEmitted”:0,“customData”:null}
Client mosqsub|13908-iotrix-pi sending PINGREQ
Client mosqsub|13908-iotrix-pi received PINGRESP
The problem is I am not seeing any messages from the “gateway/mac/rx” topic, which can be seen above and below:
mosquitto_sub -t “gateway/c0ee40ffff2938c6/rx” -d
Client mosqsub|13590-iotrix-pi sending CONNECT
Client mosqsub|13590-iotrix-pi received CONNACK
Client mosqsub|13590-iotrix-pi sending SUBSCRIBE (Mid: 1, Topic: gateway/c0ee40ffff2938c6/rx, QoS: 0)
Client mosqsub|13590-iotrix-pi received SUBACK
Subscribed (mid: 1): 0
Client mosqsub|13590-iotrix-pi sending PINGREQ
Client mosqsub|13590-iotrix-pi received PINGRESP
Client mosqsub|13590-iotrix-pi sending PINGREQ
Client mosqsub|13590-iotrix-pi received PINGRESP
I can aso see these messages on the gateway log:
RG1xx2938C6 php-cgi user.info Dec 19 13:38:00 lrd-sdk: LRD_WF_GetSSID():2976 returned SDCERR_FAIL
RG1xx2938C6 php-cgi user.info Dec 19 13:37:55 lrd-sdk: LRD_WF_GetSSID():2976 returned SDCERR_FAIL
RG1xx2938C6 php-cgi user.info Dec 19 13:37:50 lrd-sdk: LRD_WF_GetSSID():2976 returned SDCERR_FAIL
RG1xx2938C6 lora user.notice Dec 19 02:12:34 src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
RG1xx2938C6 lora user.notice Dec 19 02:12:34 ### [JIT] ###
RG1xx2938C6 lora user.notice Dec 19 02:12:34 # BEACON rejected: 0
RG1xx2938C6 lora user.notice Dec 19 02:12:34 # BEACON sent so far: 0
RG1xx2938C6 lora user.notice Dec 19 02:12:34 # BEACON queued: 0
RG1xx2938C6 lora user.notice Dec 19 02:12:34 # TX errors: 0
RG1xx2938C6 lora user.notice Dec 19 02:12:34 # RF packets sent to concentrator: 0 (0 bytes)
RG1xx2938C6 lora user.notice Dec 19 02:12:34 # PULL_RESP(onse) datagrams received: 0 (0 bytes)
RG1xx2938C6 lora user.notice Dec 19 02:12:34 # PULL_DATA sent: 3 (100.00% acknowledged)
RG1xx2938C6 lora user.notice Dec 19 02:12:34 ### [DOWNSTREAM] ###
RG1xx2938C6 lora user.notice Dec 19 02:12:34 # PUSH_DATA acknowledged: 100.00%
RG1xx2938C6 lora user.notice Dec 19 02:12:34 # PUSH_DATA datagrams sent: 1 (113 bytes)
RG1xx2938C6 lora user.notice Dec 19 02:12:34 # RF packets forwarded: 0 (0 bytes)
RG1xx2938C6 lora user.notice Dec 19 02:12:34 # CRC_OK: 100.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
RG1xx2938C6 lora user.notice Dec 19 02:12:34 # RF packets received by concentrator: 1
RG1xx2938C6 lora user.notice Dec 19 02:12:34 ### [UPSTREAM] ###
RG1xx2938C6 lora user.notice Dec 19 02:12:34 ##### 2017-12-19 13:36:20 GMT #####
RG1xx2938C6 lora user.notice Dec 19 02:12:34 INFO: [up] PUSH_ACK received in 1 ms
**RG1xx2938C6 lora user.notice Dec 19 02:12:34 JSON up: {“rxpk”:[{“tmst”:2339877916,“chan”:7,“rfch”:1,“freq”:914.800000,“stat”:-1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:-12.2,“rssi”:-108,“size”:65,“data”:“rzMQTaO90wK4nm2NtbW4TKvFHF6zfz2jCUc8i0jR9cuF9Ldj6uws5IDPVmhveme2JXrie+D2CslxPqKMp/nSZ6A=”}]} **
RG1xx2938C6 lora user.notice Dec 19 02:12:34 INFO: [down] PULL_ACK received in 1 ms
RG1xx2938C6 lora user.notice Dec 19 02:12:34 INFO: Enabling GPS mode for concentrator’s counter.
RG1xx2938C6 lora user.notice Dec 19 02:12:34 INFO: host/sx1301 time offset=(1513688210s:274970µs) - drift=-35µs
RG1xx2938C6 lora user.notice Dec 19 02:12:34 INFO: Disabling GPS mode for concentrator’s counter…
RG1xx2938C6 lora user.notice Dec 19 02:12:34 INFO: [up] PUSH_ACK received in 3 ms
RG1xx2938C6 lora user.notice Dec 19 02:12:34 JSON up: {“rxpk”:[{“tmst”:2331543619,“chan”:0,“rfch”:0,“freq”:914.000000,“stat”:-1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/6”,“lsnr”:-12.8,“rssi”:-71,“size”:110,“data”:“YtMqaOzbwKxQh5UO1nueV9V9CZfJFP7oLQ1wLToiT7g1JzVlc06myjk0BBZW/xcGcxACvKm+5EcBkvuEVUZ6azYuIe3CeckBCuP/ZVWCJvfmo3Q6yGgFaK70Xfz+huRuzat2ioKrR5O935yNVSU=”}]}
This is my gateway’s dashboard:
Do you have any idea why I am not getting messages from the “gateway/mac/rx” topic?
Thanks in advance!