-
Please learn how to format forum messages so people can read them. Do not just dump a lot of text in a message and expect us to sort it out.
-
Your gateway is not receiving any downlink data (at least not in this partial log). Just uplink (node to back-end) traffic which is forwarded according to the log. If you are receiving downlink data (back-end to node) the counters in the [DOWNSTREAM] section (apart from PULL_DATA which is just a heart beat) would be <> 0.
Hello, sorry for previous format of my message. My mistake.
In DOWNSTREAM section is PULL_DATA sent:3 , so this is data which network server want to send to end node,or not?
My end device is Adeunis RF field tester. If I send data through basic multitech lora-packet forwarder, I got ack back to Adeunis tester. Buf If I send data throuth ttn-pkt-forwarder, I never got ack back to Adeunis tester. Configuration of multitech gateway for both packet forwarders is the same.
There is a log from basic lora packet forwarder from multitech:
root@mtcdt:/var/run/lora/1# ./lora_pkt_fwd
*** Beacon Packet Forwarder for Lora Gateway ***
Version: 3.1.0
*** Lora concentrator HAL library version info ***
Version: 4.1.3;
***
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 0
lgw_board_setconf:397: Note: board configuration; lorawan_public:1, clksrc:0
INFO: LBT is disabled
INFO: antenna_gain 0 dBi
INFO: Configuring TX LUT with 16 indexes
INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -165.000000, tx enabled 1, tx_notch_freq 0
lgw_rxrf_setconf:446: WARNING: NOT A VALID TX NOTCH FILTER FREQUENCY [126000..250000]Hz
lgw_rxrf_setconf:458: Note: rf_chain 0 configuration; en:1 freq:867500000 rssi_offset:-165.000000 radio_type:2 tx_enable:1 tx_notch_freq:0
INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -165.000000, tx enabled 0, tx_notch_freq 0
lgw_rxrf_setconf:458: Note: rf_chain 1 configuration; en:1 freq:868500000 rssi_offset:-165.000000 radio_type:2 tx_enable:0 tx_notch_freq:0
INFO: Lora multi-SF channel 0> radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:577: Note: LoRa 'multi' if_chain 0 configuration; en:1 freq:-400000 SF_mask:0x7e
INFO: Lora multi-SF channel 1> radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:577: Note: LoRa 'multi' if_chain 1 configuration; en:1 freq:-200000 SF_mask:0x7e
INFO: Lora multi-SF channel 2> radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:577: Note: LoRa 'multi' if_chain 2 configuration; en:1 freq:0 SF_mask:0x7e
INFO: Lora multi-SF channel 3> radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:577: Note: LoRa 'multi' if_chain 3 configuration; en:1 freq:-400000 SF_mask:0x7e
INFO: Lora multi-SF channel 4> radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:577: Note: LoRa 'multi' if_chain 4 configuration; en:1 freq:-200000 SF_mask:0x7e
INFO: Lora multi-SF channel 5> radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:577: Note: LoRa 'multi' if_chain 5 configuration; en:1 freq:0 SF_mask:0x7e
INFO: Lora multi-SF channel 6> radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:577: Note: LoRa 'multi' if_chain 6 configuration; en:1 freq:200000 SF_mask:0x7e
INFO: Lora multi-SF channel 7> radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:577: Note: LoRa 'multi' if_chain 7 configuration; en:1 freq:400000 SF_mask:0x7e
INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7
lgw_rxif_setconf:551: Note: LoRa 'std' if_chain 8 configuration; en:1 freq:-200000 bw:2 dr:2
INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate
lgw_rxif_setconf:607: Note: FSK if_chain 9 configuration; en:1 freq:300000 bw:3 dr:50000 (50000 real dr) sync:0xC194C1
INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
INFO: gateway MAC address is configured to 00800000A0001B6D
INFO: server hostname or IP address is configured to "localhost"
INFO: upstream port is configured to "1680"
INFO: downstream port is configured to "1680"
INFO: downstream keep-alive interval is configured to 10 seconds
INFO: statistics display interval is configured to 30 seconds
INFO: upstream PUSH_DATA time-out is configured to 100 ms
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: 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: server hostname or IP address is configured to "home.jump-soft.com"
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: FPGA supported features: [TX filter] [Spectral Scan]
lgw_start:793: Note: calibration started (time: 2300 ms)
lgw_start:814: Note: calibration finished (status = 191)
Info: Initialising AGC firmware...
Info: putting back original RADIO_SELECT value
INFO: [main] concentrator started, packet can now be received
INFO: Disabling GPS mode for concentrator's counter...
INFO: host/sx1301 time offset=(1513780985s:130772”s) - drift=-1713180908”s
INFO: Enabling GPS mode for concentrator's counter.
INFO: [down] PULL_ACK received in 2 ms
lgw_receive:1125: FIFO content: 1 39 0 5 c
lgw_receive:1144: [6 17]
Note: LoRa packet
INFO: Received pkt from mote: EB001043 (fcnt=15081)
JSON up: {"rxpk":[{"tmst":3716452,"chan":6,"rfch":0,"freq":867.700000,"stat":1,"modu":"LORA","datr":"SF12BW125","codr":"4/5","lsnr":-13.0,"rssi":-119,"size":12,"data":"YEMQAOsg6TrLBU2c"}]}
INFO: [up] PUSH_ACK received in 2 ms
lgw_receive:1125: FIFO content: 1 10 0 5 19
lgw_receive:1144: [7 17]
Note: LoRa packet
INFO: Received pkt from mote: EB001031 (fcnt=18537)
JSON up: {"rxpk":[{"tmst":3763180,"chan":7,"rfch":0,"freq":867.900000,"stat":1,"modu":"LORA","datr":"SF12BW125","codr":"4/5","lsnr":-17.0,"rssi":-118,"size":25,"data":"gDEQAOsAaUgC8GNbuGyqDkifdwUL+IK76w=="}]}
INFO: [up] PUSH_ACK received in 2 ms
lgw_receive:1125: FIFO content: 1 55 0 5 16
lgw_receive:1144: [2 17]
Note: LoRa packet
INFO: Received pkt from mote: A1010058 (fcnt=2861)
JSON up: {"rxpk":[{"tmst":5592268,"chan":2,"rfch":1,"freq":868.500000,"stat":1,"modu":"LORA","datr":"SF10BW125","codr":"4/5","lsnr":-3.5,"rssi":-110,"size":22,"data":"QFgAAaGALQsFSQVPBcwK+gUhGXxXEg=="}]}
INFO: [up] PUSH_ACK received in 3 ms
lgw_receive:1125: FIFO content: 1 7b 0 5 15
lgw_receive:1144: [1 17]
Note: LoRa packet
INFO: Received pkt from mote: 26011B11 (fcnt=6)
JSON up: {"rxpk":[{"tmst":9103028,"chan":1,"rfch":1,"freq":868.300000,"stat":1,"modu":"LORA","datr":"SF12BW125","codr":"4/5","lsnr":10.0,"rssi":-74,"size":21,"data":"gBEbASaABgABXji3vIhZhBaE7g4R"}]}
INFO: [up] PUSH_ACK received in 3 ms
INFO: [down] PULL_RESP received - token[0:0] :)
JSON down: {"txpk":{"imme":false,"tmst":10103028,"freq":868.3,"rfch":0,"powe":14,"modu":"LORA","datr":"SF12BW125","codr":"4/5","ipol":true,"size":12,"data":"YBEbASYg1QGkZnia"}}
59.13.33.0.9a.23.18.9.0.9c.c.18.0.8.0.0.60.11.1b.1.26.20.d5.1.a4.66.78.9a.end
INFO: [down] PULL_ACK received in 2 ms
lgw_receive:1125: FIFO content: 1 a0 0 7 e3
lgw_receive:1144: [7 17]
Note: LoRa packet
lgw_receive:1125: FIFO content: 1 93 1 5 14
lgw_receive:1144: [2 17]
Note: LoRa packet
INFO: Received pkt from mote: 070707A5 (fcnt=11878)
JSON up: {"rxpk":[{"tmst":19684644,"chan":2,"rfch":1,"freq":868.500000,"stat":1,"modu":"LORA","datr":"SF10BW125","codr":"4/5","lsnr":-12.8,"rssi":-118,"size":20,"data":"QKUHBweAZi4ITO+ef2sslI2FW+k="}]}
INFO: [up] PUSH_ACK received in 2 ms
INFO: [down] PULL_ACK received in 2 ms
##### 2017-12-20 14:43:37 GMT #####
### [UPSTREAM] ###
# RF packets received by concentrator: 6
# CRC_OK: 83.33%, CRC_FAIL: 16.67%, NO_CRC: 0.00%
# RF packets forwarded: 5 (100 bytes)
# PUSH_DATA datagrams sent: 5 (1013 bytes)
# PUSH_DATA acknowledged: 100.00%
### [DOWNSTREAM] ###
# PULL_DATA sent: 3 (100.00% acknowledged)
# PULL_RESP(onse) datagrams received: 1 (169 bytes)
# RF packets sent to concentrator: 1 (12 bytes)
# TX errors: 0
# TX rejected (collision packet): 0.00% (req:1, rej:0)
# TX rejected (collision beacon): 0.00% (req:1, rej:0)
# TX rejected (too late): 0.00% (req:1, rej:0)
# TX rejected (too early): 0.00% (req:1, rej:0)
# BEACON queued: 0
# BEACON sent so far: 0
# BEACON rejected: 0
### [JIT] ###
src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
### [GPS] ###
# GPS sync is disabled
##### END #####
Via this packet forwarder is ACK received successfully.
And there is a log from ttn-packet-forwader:
root@mtcdt:/opt/lora# ./mp_pkt_fwd -c /var/config/lora
15:48:18 *** Multi Protocol Packet Forwarder for Lora Gateway ***
Version: 3.0.10
15:48:18 *** Lora concentrator HAL library version info ***
Version: 5.0.1; Options: native;
***
15:48:18 INFO: Little endian host
15:48:18 INFO: found global configuration file /var/config/lora/global_conf.json, parsing it
15:48:18 INFO: /var/config/lora/global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters
15:48:18 INFO: lorawan_public 1, clksrc 0
lgw_board_setconf:437: Note: board configuration; lorawan_public:1, clksrc:0
15:48:18 INFO: no configuration for LBT
15:48:18 INFO: antenna_gain 0 dBi
15:48:18 INFO: Configuring TX LUT with 16 indexes
15:48:18 INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -166.000000, tx enabled 1
lgw_rxrf_setconf:486: WARNING: NOT A VALID TX NOTCH FILTER FREQUENCY [126000..250000]Hz
lgw_rxrf_setconf:498: Note: rf_chain 0 configuration; en:1 freq:867500000 rssi_offset:-166.000000 radio_type:2 tx_enable:1 tx_notch_freq:0
15:48:18 INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -166.000000, tx enabled 0
lgw_rxrf_setconf:498: Note: rf_chain 1 configuration; en:1 freq:868500000 rssi_offset:-166.000000 radio_type:2 tx_enable:0 tx_notch_freq:0
15:48:18 INFO: Lora multi-SF channel 0> radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:617: Note: LoRa 'multi' if_chain 0 configuration; en:1 freq:-400000 SF_mask:0x7e
15:48:18 INFO: Lora multi-SF channel 1> radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:617: Note: LoRa 'multi' if_chain 1 configuration; en:1 freq:-200000 SF_mask:0x7e
15:48:18 INFO: Lora multi-SF channel 2> radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:617: Note: LoRa 'multi' if_chain 2 configuration; en:1 freq:0 SF_mask:0x7e
15:48:18 INFO: Lora multi-SF channel 3> radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:617: Note: LoRa 'multi' if_chain 3 configuration; en:1 freq:-400000 SF_mask:0x7e
15:48:18 INFO: Lora multi-SF channel 4> radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:617: Note: LoRa 'multi' if_chain 4 configuration; en:1 freq:-200000 SF_mask:0x7e
15:48:18 INFO: Lora multi-SF channel 5> radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:617: Note: LoRa 'multi' if_chain 5 configuration; en:1 freq:0 SF_mask:0x7e
15:48:18 INFO: Lora multi-SF channel 6> radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:617: Note: LoRa 'multi' if_chain 6 configuration; en:1 freq:200000 SF_mask:0x7e
15:48:18 INFO: Lora multi-SF channel 7> radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
lgw_rxif_setconf:617: Note: LoRa 'multi' if_chain 7 configuration; en:1 freq:400000 SF_mask:0x7e
15:48:18 INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7
lgw_rxif_setconf:591: Note: LoRa 'std' if_chain 8 configuration; en:1 freq:-200000 bw:2 dr:2
15:48:18 INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate
lgw_rxif_setconf:647: Note: FSK if_chain 9 configuration; en:1 freq:300000 bw:3 dr:50000 (50000 real dr) sync:0xC194C1
15:48:18 INFO: /var/config/lora/global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
15:48:18 INFO: Found 1 servers in array.
15:48:18 INFO: Server 0 configured to "router.eu.thethings.network"
15:48:18 INFO: downstream keep-alive interval is configured to 10 seconds
15:48:18 INFO: statistics display interval is configured to 30 seconds
15:48:18 INFO: upstream PUSH_DATA time-out is configured to 100 ms
15:48:18 INFO: packets received with a valid CRC will be forwarded
15:48:18 INFO: packets received with a CRC error will NOT be forwarded
15:48:18 INFO: packets received with no CRC will NOT be forwarded
15:48:18 INFO: GPS is disabled
15:48:18 INFO: Upstream data is enabled
15:48:18 INFO: Downstream data is enabled
15:48:18 INFO: Ghoststream data is disabled
15:48:18 INFO: Radiostream data is enabled
15:48:18 INFO: Statusstream data is enabled
15:48:18 INFO: Beacon is disabled
15:48:18 INFO: Monitor is disabled
15:48:18 INFO: Packet logger is disabled
15:48:18 INFO: Flush output after statistic is disabled
15:48:18 INFO: Flush after each line of output is disabled
15:48:18 INFO: Watchdog is disabled
15:48:18 INFO: Platform configured to "MultiTech SPI"
15:48:18 INFO: found local configuration file /var/config/lora/local_conf.json, parsing it
15:48:18 INFO: redefined parameters will overwrite global parameters
15:48:18 INFO: /var/config/lora/local_conf.json does not contain a JSON object named SX1301_conf
15:48:18 INFO: /var/config/lora/local_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
15:48:18 INFO: gateway MAC address is configured to 00800000A0001B6D
15:48:18 INFO: Found 2 servers in array.
15:48:18 INFO: Server 0 configured to "home.jump-soft.com"
15:48:18 INFO: Server 1 configured to "bridge.eu.thethings.network"
15:48:18 INFO: packets received with a valid CRC will be forwarded
15:48:18 INFO: packets received with a CRC error will be forwarded
15:48:18 INFO: packets received with no CRC will be forwarded
15:48:18 INFO: GPS is disabled
15:48:18 INFO: Upstream data is enabled
15:48:18 INFO: Downstream data is enabled
15:48:18 INFO: Ghoststream data is disabled
15:48:18 INFO: Radiostream data is enabled
15:48:18 INFO: Statusstream data is enabled
15:48:18 INFO: Beacon is disabled
15:48:18 INFO: Monitor is disabled
15:48:18 INFO: Packet logger is disabled
15:48:18 INFO: Flush output after statistic is disabled
15:48:18 INFO: Flush after each line of output is disabled
15:48:18 INFO: Watchdog is disabled
15:48:18 INFO: Contact email configured to "davidhrbaty@gmail.com"
15:48:18 INFO: Description configured to ""
15:48:18 INFO: [Transports] Initializing protocol for 2 servers
15:48:18 INFO: Successfully contacted server home.jump-soft.com
15:48:18 INFO: [TTN] server "bridge.eu.thethings.network" connected
15:48:18 INFO: [main] Starting the concentrator
INFO: FPGA supported features: [TX filter] [Spectral Scan]
lgw_start:833: Note: calibration started (time: 2300 ms)
lgw_start:854: Note: calibration finished (status = 191)
Info: Initialising AGC firmware...
Info: putting back original RADIO_SELECT value
15:48:21 INFO: [main] concentrator started, radio packets can now be received.
15:48:21 INFO: Disabling GPS mode for concentrator's counter...
15:48:21 INFO: host/sx1301 time offset=(1513781299s:330160”s) - drift=-1398981520”s
15:48:21 INFO: Enabling GPS mode for concentrator's counter.
15:48:21 INFO: JIT thread activated.
15:48:21 INFO: [up] Thread activated for all servers.
lgw_receive:1165: FIFO content: 1 10 0 5 16
lgw_receive:1184: [1 17]
Note: LoRa packet
15:48:27 INFO: [up] TTN lora packet send to server "bridge.eu.thethings.network"
lgw_receive:1165: FIFO content: 1 36 0 5 14
lgw_receive:1184: [2 17]
Note: LoRa packet
15:48:29 INFO: [up] TTN lora packet send to server "bridge.eu.thethings.network"
lgw_receive:1165: FIFO content: 1 5a 0 5 16
lgw_receive:1184: [6 17]
Note: LoRa packet
15:48:33 INFO: [up] TTN lora packet send to server "bridge.eu.thethings.network"
lgw_receive:1165: FIFO content: 1 80 0 5 39
lgw_receive:1184: [0 17]
Note: LoRa packet
15:48:42 INFO: [up] TTN lora packet send to server "bridge.eu.thethings.network"
lgw_receive:1165: FIFO content: 1 c9 0 5 19
lgw_receive:1184: [1 17]
Note: LoRa packet
15:48:43 INFO: [up] TTN lora packet send to server "bridge.eu.thethings.network"
lgw_receive:1165: FIFO content: 1 f2 0 7 16
lgw_receive:1184: [0 17]
Note: LoRa packet
15:48:43 INFO: [up] TTN lora packet send to server "bridge.eu.thethings.network"
lgw_receive:1165: FIFO content: 1 18 1 7 14
lgw_receive:1184: [0 17]
Note: LoRa packet
15:48:46 INFO: [up] TTN lora packet send to server "bridge.eu.thethings.network"
##### 2017-12-20 14:48:51 GMT #####
### [UPSTREAM] ###
# RF packets received by concentrator: 7
# CRC_OK: 71.43%, CRC_FAIL: 28.57%, NO_CRC: 0.00%
# RF packets forwarded: 7 (188 bytes)
# PUSH_DATA datagrams sent: 7 (1702 bytes)
# PUSH_DATA acknowledged: 100.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 IS DISABLED!
### [JIT] ###
# INFO: JIT queue contains 0 packets.
# INFO: JIT queue contains 0 beacons.
### GPS IS DISABLED!
### [PERFORMANCE] ###
# Upstream radio packet quality: 71.43%.
# Upstream datagram acknowledgment quality for server "home.jump-soft.com" is 100.00%.
# Downstream heart beat acknowledgment quality for server "home.jump-soft.com" is 100.00%.
# Downstream datagram content quality for server "home.jump-soft.com" is 0.00%.
# Downstream radio transmission quality for server "home.jump-soft.com" is 100.00%.
# Semtech status report send.
##### END #####
I thnik, that problem is, that the ttn forwarder listen to downlink messages only from ttn network and not from my own network server.
No, that is the gateway sending a keep alive to the back-end. Not downstream data.
I am not seeing any indication in the log youâre quoting that the uplink packet is forwarded to your server, so I do not expect that server to send downlink data.
Hi kersing
would appreciate if you could help with the issue connecting Multitech Conduit AEP to TTN, bascially I setup up by following the guide athttps://www.thethingsnetwork.org/docs/gateways/multitech/aep.html.
However once started, I always get error message saying that connection to server failed, such as:
15:33:19 ERROR: [TTN] Connection to server âthethings.meshed.com.auâ failed, retry in 240 seconds
Meanwhile I can ping the URL from the conduit, I tried both DHCP and static IP but no difference made. Thought this might be related to DNS, I double checked and confirmed that 8.8.8.8 has been setup as DNS server, and I even put the server IP to /etc/hosts but still no success.
The conduit FW is version 1.4.3, with AU915 Lora mCard.
@leoy you will have to jump into the local_conf.json file and add a server port 1882
In /var/config/lora/local_conf.json
Look for the line starting with âserver_addressâ and change the server to
âserver_addressâ: âthethings.meshed.com.au:1882â,
Save and reboot, should work for you now
cheers
Paul