Hello Expert,
I have problem that packet forwarder didn’t get status ACK. My packet forwarder was changed from poly forwarder (TTN) to lora forwarder (SEMTECH) due to i got information in this forum, loraserver didn’t support poly forwarder.
while i use server address router “router.as.thethings.network” i check in console TTN, my gateway is connected. then i change server address to my loraserver address with same port 1700, but when i check in loraserever app it did not connected
here log when i use TTN router:
*** Beacon Packet Forwarder for Lora Gateway ***
Version: 4.0.1
*** Lora concentrator HAL library version info ***
Version: 5.0.1;
INFO: Little endian host
INFO: found global configuration file global_conf.json, parsing it
INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters
INFO: lorawan_public 1, clksrc 1
INFO: LBT is disabled
INFO: antenna_gain 0 dBi
INFO: Configuring TX LUT with 16 indexes
INFO: radio 0 enabled (type SX1257), center frequency 923600000, RSSI offset -166.000000, tx enabled 1, tx_notch_freq 0
INFO: radio 1 enabled (type SX1257), center frequency 922600000, RSSI offset -166.000000, tx enabled 0, tx_notch_freq 0
INFO: Lora multi-SF channel 0> radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 1> radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 2> radio 1, IF 200000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 3> radio 1, IF 400000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 4> radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 5> radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 6> radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 7> radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora std channel> radio 1, IF -100000 Hz, 250000 Hz bw, SF 7
INFO: FSK channel> radio 1, IF 200000 Hz, 125000 Hz bw, 50000 bps datarate
INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
INFO: gateway MAC address is configured to B827EBFFFE49E609
INFO: packets received with a valid CRC will be forwarded
INFO: packets received with a CRC error will NOT be forwarded
INFO: packets received with no CRC will NOT be forwarded
INFO: Reference latitude is configured to -6.983017 deg
INFO: Reference longitude is configured to 107.637484 deg
INFO: Reference altitude is configured to 40 meters
INFO: found local configuration file local_conf.json, parsing it
INFO: redefined parameters will overwrite global parameters
INFO: local_conf.json does not contain a JSON object named SX1301_conf
INFO: local_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
INFO: gateway MAC address is configured to B827EBFFFE49E609
INFO: server hostname or IP address is configured to “router.as.thethings.network”
INFO: upstream port is configured to “1700”
INFO: downstream port is configured to “1700”
INFO: packets received with a valid CRC will be forwarded
INFO: packets received with a CRC error will NOT be forwarded
INFO: packets received with no CRC will NOT be forwarded
INFO: Reference latitude is configured to -6.983017 deg
INFO: Reference longitude is configured to 107.637484 deg
INFO: Reference altitude is configured to 40 meters
INFO: [main] concentrator started, packet can now be receivedINFO: Disabling GPS mode for concentrator’s counter…
INFO: host/sx1301 time offset=(1564539042s:977878µs) - drift=-1578837930µs
INFO: Enabling GPS mode for concentrator’s counter.INFO: [down] PULL_ACK received in 20 ms
INFO: [down] PULL_ACK received in 18 ms
INFO: [down] PULL_ACK received in 18 ms
INFO: [down] PULL_ACK received in 18 ms
INFO: [down] PULL_ACK received in 70 ms
INFO: [down] PULL_ACK received in 18 ms
INFO: [down] PULL_ACK received in 18 ms2019-07-31 02:11:15 GMT
[UPSTREAM]
RF packets received by concentrator: 0
CRC_OK: 0.00%, CRC_FAIL: 0.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: 6 (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): 2448253
src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
[GPS]
GPS sync is disabled
END
JSON up: {“stat”:{“time”:“2019-07-31 02:11:15 GMT”,“rxnb”:0,“rxok”:0,“rxfw”:0,“ackr”:0.0,“dwnb”:0,“txnb”:0}}
INFO: [up] PUSH_ACK received in 31 ms
INFO: [down] PULL_ACK received in 18 ms
INFO: [down] PULL_ACK received in 18 ms
INFO: [down] PULL_ACK received in 489 ms
INFO: [down] PULL_ACK received in 489 ms
INFO: [down] PULL_ACK received in 18 ms
INFO: [down] PULL_ACK received in 18 ms
INFO: [down] PULL_ACK received in 69 ms
INFO: [down] PULL_ACK received in 18 ms
^C
and this log while connect to lora server:
*** Beacon Packet Forwarder for Lora Gateway ***
Version: 4.0.1
*** Lora concentrator HAL library version info ***
Version: 5.0.1;
INFO: Little endian host
INFO: found global configuration file global_conf.json, parsing it
INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters
INFO: lorawan_public 1, clksrc 1
INFO: LBT is disabled
INFO: antenna_gain 0 dBi
INFO: Configuring TX LUT with 16 indexes
INFO: radio 0 enabled (type SX1257), center frequency 923600000, RSSI offset -166.000000, tx enabled 1, tx_notch_freq 0
INFO: radio 1 enabled (type SX1257), center frequency 922600000, RSSI offset -166.000000, tx enabled 0, tx_notch_freq 0
INFO: Lora multi-SF channel 0> radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 1> radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 2> radio 1, IF 200000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 3> radio 1, IF 400000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 4> radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 5> radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 6> radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora multi-SF channel 7> radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
INFO: Lora std channel> radio 1, IF -100000 Hz, 250000 Hz bw, SF 7
INFO: FSK channel> radio 1, IF 200000 Hz, 125000 Hz bw, 50000 bps datarate
INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
INFO: gateway MAC address is configured to B827EBFFFE49E609
INFO: packets received with a valid CRC will be forwarded
INFO: packets received with a CRC error will NOT be forwarded
INFO: packets received with no CRC will NOT be forwarded
INFO: Reference latitude is configured to -6.983017 deg
INFO: Reference longitude is configured to 107.637484 deg
INFO: Reference altitude is configured to 40 meters
INFO: found local configuration file local_conf.json, parsing it
INFO: redefined parameters will overwrite global parameters
INFO: local_conf.json does not contain a JSON object named SX1301_conf
INFO: local_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
INFO: gateway MAC address is configured to B827EBFFFE49E609
INFO: server hostname or IP address is configured to “loraserver”
INFO: upstream port is configured to “1700”
INFO: downstream port is configured to “1700”
INFO: packets received with a valid CRC will be forwarded
INFO: packets received with a CRC error will NOT be forwarded
INFO: packets received with no CRC will NOT be forwarded
INFO: Reference latitude is configured to -6.983017 deg
INFO: Reference longitude is configured to 107.637484 deg
INFO: Reference altitude is configured to 40 meters
INFO: [main] concentrator started, packet can now be receivedINFO: Disabling GPS mode for concentrator’s counter…
INFO: host/sx1301 time offset=(1564539178s:415745µs) - drift=-1443400063µs
INFO: Enabling GPS mode for concentrator’s counter.2019-07-31 02:13:30 GMT
[UPSTREAM]
RF packets received by concentrator: 0
CRC_OK: 0.00%, CRC_FAIL: 0.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: 6 (0.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): 2440426
src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
[GPS]
GPS sync is disabled
END
JSON up: {“stat”:{“time”:“2019-07-31 02:13:30 GMT”,“rxnb”:0,“rxok”:0,“rxfw”:0,“ackr”:0.0,“dwnb”:0,“txnb”:0}}
INFO: Disabling GPS mode for concentrator’s counter…
INFO: host/sx1301 time offset=(1564539178s:415857µs) - drift=112µs
INFO: Enabling GPS mode for concentrator’s counter.2019-07-31 02:14:00 GMT
[UPSTREAM]
RF packets received by concentrator: 0
CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
RF packets forwarded: 0 (0 bytes)
PUSH_DATA datagrams sent: 1 (111 bytes)
PUSH_DATA acknowledged: 0.00%
[DOWNSTREAM]
PULL_DATA sent: 6 (0.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): 62440793
src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
[GPS]
GPS sync is disabled
END
JSON up: {“stat”:{“time”:“2019-07-31 02:14:00 GMT”,“rxnb”:0,“rxok”:0,“rxfw”:0,“ackr”:0.0,“dwnb”:0,“txnb”:0}}
^C2019-07-31 02:14:03 GMT
[UPSTREAM]
RF packets received by concentrator: 0
CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
RF packets forwarded: 0 (0 bytes)
PUSH_DATA datagrams sent: 1 (111 bytes)
PUSH_DATA acknowledged: 0.00%
[DOWNSTREAM]
PULL_DATA sent: 1 (0.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): 62440793
src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
[GPS]
GPS sync is disabled
END
INFO: End of upstream thread
INFO: concentrator stopped successfully
INFO: Exiting packet forwarder program
since i use loraserver container so i can’t see log output in bridge gateway. Please your advice.
Regards,
Fadli