ttn-zh / ic880a-gateway

Reference setup for iC880a gateways running The Things Network
GNU General Public License v3.0
457 stars 210 forks source link

Gateway #26

Closed udaikumar59 closed 6 years ago

udaikumar59 commented 7 years ago

Hi, we are setting up a lora gateway and we followed the same steps mentioned in https://github.com/ttn-zh/ic880a-gateway. but we are unable to find complete procedure to run the gateway connected to thethings network. we will be glad to help us in resolving the issue. Thanks in Advance! Regards

gonzalocasas commented 7 years ago

Please describe the error otherwise it's hard to say what didn't work

udaikumar59 commented 7 years ago

hi

Thanks for your reply. We had tried with all the possibilities to start the concentrator but another important thing is that our gateway status is shown connected and packets are transmitted from the node also received at the ttn. We just viewed the data by integrating the cayenne LLP and registered the devices in mydevices website.

Attached log file

when we started the device again after 2 days, now the device is not connecting to ttn which means the ttn shows that gateway is not connected. attached a screenshot of this also with the log file of sudo tail -f /var/log/syslog and service ttn-gateway status

elektroniklab logo for Signature (2)

Thanks and regards ,

T .udhaya Kumar GM ( Tecchnical )

elektroniklab pvt ltd

10 A , Masilamani street, T.Nagar, Chennai - 600017

Ph:91 44 24336953 Fax :91 4424322819 mobile : 91 9840613199

Skype : udai.kumar1 - web : www.elektroniklab.com http://www.elektroniklab.com/

From: Gonzalo Casas [mailto:notifications@github.com] Sent: Friday, October 27, 2017 3:41 PM To: ttn-zh/ic880a-gateway Cc: udaikumar59; Author Subject: Re: [ttn-zh/ic880a-gateway] Gateway (#26)

Please describe the error otherwise it's hard to say what didn't work

— You are receiving this because you authored the thread. Reply to this email directly, view https://github.com/ttn-zh/ic880a-gateway/issues/26#issuecomment-339931643 it on GitHub, or mute https://github.com/notifications/unsubscribe-auth/AdhGSX_J4b5jg012GFNDrLwZ21lDPQizks5swaw_gaJpZM4QIuFs the thread. https://github.com/notifications/beacon/AdhGSfJR6P_hT9qakOkR1_YiYiimtO3eks5swaw_gaJpZM4QIuFs.gif

elabindia@ttn-gateway:/opt/ttn-gateway/packet_forwarder/poly_pkt_fwd $ sudo ta -f /var/log/syslog Oct 30 08:23:53 ttn-gateway rsyslogd-2007: action ‘action 17’ suspended, next retry is Mon Oct 30 08:25:23 2017 [try http://www.rsyslog.com/e/2007 ] Oct 30 08:23:53 ttn-gateway kernel: [ 8112.644351] usb 1-1.4: New USB device found, idVendor=046d, idProduct=c534 Oct 30 08:23:53 ttn-gateway kernel: [ 8112.644365] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 Oct 30 08:23:53 ttn-gateway kernel: [ 8112.644373] usb 1-1.4: Product: USB Receiver Oct 30 08:23:53 ttn-gateway kernel: [ 8112.644381] usb 1-1.4: Manufacturer: Logitech Oct 30 08:23:53 ttn-gateway kernel: [ 8112.653000] input: Logitech USB Receiver as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:046D:C534.0003/input/input2 Oct 30 08:23:53 ttn-gateway kernel: [ 8112.721037] hid-generic 0003:046D:C534.0003: input,hidraw0: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-3f980000.usb-1.4/input0 Oct 30 08:23:53 ttn-gateway kernel: [ 8112.728772] input: Logitech USB Receiver as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.1/0003:046D:C534.0004/input/input3 Oct 30 08:23:53 ttn-gateway kernel: [ 8112.790561] hid-generic 0003:046D:C534.0004: input,hiddev0,hidraw1: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-3f980000.usb-1.4/input1 Oct 30 08:23:53 ttn-gateway systemd-udevd[2985]: failed to execute ‘/lib/udev/mtp-probe’ ‘mtp-probe /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4 1 5’: No such file or directory Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # PUSH_DATA acknowledged: 0.00% Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ### [DOWNSTREAM] ### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # PULL_DATA sent: 3 (100.00% acknowledged) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # PULL_RESP(onse) datagrams received: 0 (0 bytes) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # RF packets sent to concentrator: 0 (0 bytes) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # TX errors: 0 Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ### [GPS] ### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # Invalid gps time reference (age: 1509348124 sec) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # Manual GPS coordinates: latitude 13.02370, longitude 80.14300, altitude -1 m Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ##### END ##### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 149 ms Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 148 ms Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 149 ms Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ##### 2017-10-30 07:22:34 GMT ##### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ### [UPSTREAM] ### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # RF packets received by concentrator: 0 Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # RF packets forwarded: 0 (0 bytes) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # PUSH_DATA datagrams sent: 1 (217 bytes) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # PUSH_DATA acknowledged: 0.00% Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ### [DOWNSTREAM] ### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # PULL_DATA sent: 3 (100.00% acknowledged) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # PULL_RESP(onse) datagrams received: 0 (0 bytes) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # RF packets sent to concentrator: 0 (0 bytes) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # TX errors: 0 Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ### [GPS] ### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # Invalid gps time reference (age: 1509348154 sec) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # Manual GPS coordinates: latitude 13.02370, longitude 80.14300, altitude -1 m Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ##### END ##### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 148 ms Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 149 ms Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 149 ms Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ##### 2017-10-30 07:23:04 GMT ##### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ### [UPSTREAM] ### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # RF packets received by concentrator: 0 Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # RF packets forwarded: 0 (0 bytes) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # PUSH_DATA datagrams sent: 1 (217 bytes) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # PUSH_DATA acknowledged: 0.00% Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ### [DOWNSTREAM] ### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # PULL_DATA sent: 3 (100.00% acknowledged) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # PULL_RESP(onse) datagrams received: 0 (0 bytes) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # RF packets sent to concentrator: 0 (0 bytes) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # TX errors: 0 Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ### [GPS] ### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # Invalid gps time reference (age: 1509348184 sec) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # Manual GPS coordinates: latitude 13.02370, longitude 80.14300, altitude -1 m Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ##### END ##### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 149 ms Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 148 ms Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 149 ms Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ##### 2017-10-30 07:23:34 GMT ##### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ### [UPSTREAM] ### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # RF packets received by concentrator: 0 Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # RF packets forwarded: 0 (0 bytes) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # PUSH_DATA datagrams sent: 1 (217 bytes) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # PUSH_DATA acknowledged: 0.00% Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ### [DOWNSTREAM] ### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # PULL_DATA sent: 3 (100.00% acknowledged) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # PULL_RESP(onse) datagrams received: 0 (0 bytes) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # RF packets sent to concentrator: 0 (0 bytes) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # TX errors: 0 Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ### [GPS] ### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # Invalid gps time reference (age: 1509348214 sec) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # Manual GPS coordinates: latitude 13.02370, longitude 80.14300, altitude -1 m Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ##### END ##### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 149 ms Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 149 ms Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 149 ms Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ##### 2017-10-30 07:24:04 GMT ##### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ### [UPSTREAM] ### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # RF packets received by concentrator: 0 Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # RF packets forwarded: 0 (0 bytes) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # PUSH_DATA datagrams sent: 1 (217 bytes) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # PUSH_DATA acknowledged: 0.00% Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ### [DOWNSTREAM] ### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # PULL_DATA sent: 3 (100.00% acknowledged) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # PULL_RESP(onse) datagrams received: 0 (0 bytes) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # RF packets sent to concentrator: 0 (0 bytes) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # TX errors: 0 Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ### [GPS] ### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # Invalid gps time reference (age: 1509348244 sec) Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # Manual GPS coordinates: latitude 13.02370, longitude 80.14300, altitude -1 m Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ##### END ##### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 149 ms Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 148 ms Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 148 ms Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ##### 2017-10-30 07:24:34 GMT ##### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: ### [UPSTREAM] ### Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # RF packets received by concentrator: 0 Oct 30 08:24:34 ttn-gateway ttn-gateway[2564]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% ^Celabindia@ttn-gateway:/opt/ttn-gateway/packet_forwarder/poly_pkt_fwd $ servicetn-gateway status ? ttn-gateway.service - The Things Network Gateway Loaded: loaded (/lib/systemd/system/ttn-gateway.service; enabled) Active: active (running) since Mon 2017-10-30 06:28:51 CET; 1h 58min ago Main PID: 2564 (start.sh) CGroup: /system.slice/ttn-gateway.service +-2564 /bin/bash /opt/ttn-gateway/bin/start.sh +-2628 ./poly_pkt_fwd

logs on running the packet forwarder

elabindia@ttn-gateway:/opt/ttn-gateway/packet_forwarder/poly_pkt_fwd $ ./poly_pkt_fwd Poly Packet Forwarder for Lora Gateway Version: 2.1.0 Lora concentrator HAL library version info Version: 3.1.0; Options: native;

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: Configuring TX LUT with 16 indexes INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -166.000000, tx enabled 1 INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -166.000000, tx enabled 0 INFO: Lora multi-SF channel 0> radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 1> radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 2> radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 3> radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 4> radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 5> radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 6> radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 7> radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7 INFO: FSK channel> radio 1, IF 300000 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 B827EBFFFEFADC64 INFO: Found 2 servers in array. INFO: Server 0 configured to “router.eu.thethings.network”, with port up “1700” and port down "1700" INFO: Server 1 configured to “eu1.loriot.io”, with port up “1780” and port down "1780" INFO: Found 5 system calls in array. INFO: System command 0: "df -m" INFO: System command 1: "free -h" INFO: System command 2: "uptime" INFO: System command 3: "who -a" INFO: System command 4: "uname -a" INFO: monitor hostname or IP address is configured to "192.168.1.160" INFO: monitor port is configured to "2008" INFO: ghost hostname or IP address is configured to "127.0.0.1" INFO: ghost port is configured to "1918" 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: GPS serial port path is configured to "/dev/ttyAMA0" INFO: SSH path is configured to "/usr/bin/ssh" INFO: SSH port is configured to 22 INFO: HTTP port is configured to 80 INFO: NGROK path is configured to "/usr/bin/ngrok" INFO: Reference latitude is configured to 13.023700 deg INFO: Reference longitude is configured to 80.143000 deg INFO: Reference altitude is configured to -1 meters INFO: GPS is enabled INFO: Using fake GPS coordinates instead of real. INFO: Upstream data is enabled INFO: Downstream data is enabled INFO: Ghoststream data is disabled INFO: Radiostream data is enabled INFO: Statusstream data is enabled INFO: Beacon is disabled INFO: Monitor is disabled INFO: Platform configured to "rpiimst" INFO: Contact email configured to "elab.ttn@gmail.com" INFO: Description configured to "elabindia" 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 B827EBFFFEFADC64 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: GPS is enabled INFO: Upstream data is enabled INFO: Downstream data is enabled INFO: Ghoststream data is disabled INFO: Radiostream data is enabled INFO: Statusstream data is enabled INFO: Beacon is disabled INFO: Monitor is disabled INFO: Successfully contacted server router.eu.thethings.network INFO: Successfully contacted server eu1.loriot.io INFO: [main] Starting the concentrator ERROR: [main] failed to start the concentrator

elabindia@ttn-gateway:/opt/ttn-gateway/bin $ ./poly_pkt_fwd Poly Packet Forwarder for Lora Gateway Version: 2.1.0 Lora concentrator HAL library version info Version: 3.1.0; Options: native;

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: Configuring TX LUT with 16 indexes INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -166.000000, tx enabled 1 INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -166.000000, tx enabled 0 INFO: Lora multi-SF channel 0> radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 1> radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 2> radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 3> radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 4> radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 5> radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 6> radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 7> radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7 INFO: FSK channel> radio 1, IF 300000 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 B827EBFFFEFADC64 INFO: Found 2 servers in array. INFO: Server 0 configured to “router.eu.thethings.network”, with port up “1700” and port down "1700" INFO: Server 1 configured to “eu1.loriot.io”, with port up “1780” and port down "1780" INFO: Found 5 system calls in array. INFO: System command 0: "df -m" INFO: System command 1: "free -h" INFO: System command 2: "uptime" INFO: System command 3: "who -a" INFO: System command 4: "uname -a" INFO: monitor hostname or IP address is configured to "192.168.1.160" INFO: monitor port is configured to "2008" INFO: ghost hostname or IP address is configured to "127.0.0.1" INFO: ghost port is configured to "1918" 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: GPS serial port path is configured to "/dev/ttyAMA0" INFO: SSH path is configured to "/usr/bin/ssh" INFO: SSH port is configured to 22 INFO: HTTP port is configured to 80 INFO: NGROK path is configured to "/usr/bin/ngrok" INFO: Reference latitude is configured to 13.023700 deg INFO: Reference longitude is configured to 80.143000 deg INFO: Reference altitude is configured to -1 meters INFO: GPS is enabled INFO: Using fake GPS coordinates instead of real. INFO: Upstream data is enabled INFO: Downstream data is enabled INFO: Ghoststream data is disabled INFO: Radiostream data is enabled INFO: Statusstream data is enabled INFO: Beacon is disabled INFO: Monitor is disabled INFO: Platform configured to "rpiimst" INFO: Contact email configured to "elab.ttn@gmail.com" INFO: Description configured to "elabindia" 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 B827EBFFFEFADC64 INFO: Found 1 servers in array. INFO: Server 0 configured to “router.eu.thethings.network”, with port up “1700” and port down "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 13.023700 deg INFO: Reference altitude is configured to -1 meters INFO: GPS is enabled INFO: Using fake GPS coordinates instead of real. INFO: Upstream data is enabled INFO: Downstream data is enabled INFO: Ghoststream data is disabled INFO: Radiostream data is enabled INFO: Statusstream data is enabled INFO: Beacon is disabled INFO: Monitor is disabled INFO: Contact email configured to "elab.ttn@gmail.com" INFO: Description configured to "elabindia" INFO: Successfully contacted server router.eu.thethings.network INFO: [main] Starting the concentrator ERROR: [main] failed to start the concentrator

gonzalocasas commented 7 years ago

If it was working and it started failing with INFO: [main] Starting the concentrator - ERROR: [main] failed to start the concentrator then something like the power supply might be faulty. Try replacing your PSU, making sure it's delivering stable output.

udaikumar59 commented 7 years ago

Thanks and lot will get back after trying

Sent from Samsung tablet

-------- Original message -------- From: Gonzalo Casas notifications@github.com Date: 30/10/2017 15:51 (GMT+05:30) To: ttn-zh/ic880a-gateway ic880a-gateway@noreply.github.com Cc: udaikumar59 udhaya@elektroniklab.com, Author author@noreply.github.com Subject: Re: [ttn-zh/ic880a-gateway] Gateway (#26)

If it was working and it started failing with INFO: [main] Starting the concentrator - ERROR: [main] failed to start the concentrator then something like the power supply might be faulty. Try replacing your PSU, making sure it's delivering stable output. —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

udaikumar59 commented 7 years ago

Hi

Thanks for the help , we changed the PSU & still the issue “failed to start the concentrator “ persists in the system. However the ttn network shows the connected status.

These are the problems, we found out in the system,

1.On a fresh day start, the ttn network shows connected status but last connected shows the previously connected time interval. So on every fresh day start, we reset the concentrator and make it live

  1. There is some issue in lgw_connect() & lgw_hal_success() and that’s why the problem still persists.

  2. when we run the test_loragw_hal() function it results “Impossible to start the concentrator”

  3. when we tested test_loragw_spi(), it shows data received=48.

  4. The data sent through program is ELAB and those data is not been received at the ttn end as payload.

6.Some raw data is been transmitted to the end on previous connect to ttn. Please let us know how to decrypt the data.

7.how to make the node to transmit the data or how to make the concentrator to receive the data.

I followed https://github.com/matthijskooijman/arduino-lmic this page to makeup the node and even it shows these status

Starting…

Packet queued

178975: EV_TX COMPLETE (Waiting for RX Window)

Packet queued

  1. Do we need to setup the pin configuration as per SX1301 PIN Configuration given in https://github.com/Lora-net/lora_gateway/wiki/SX1301-GPIO-output-configuration

  2. Pin configuration of imst and rpi as we connected in our style

Imst rpi

13 Reset 11

14

SPI CLK

23

15

MISO

21

16

MOSI

19

17

NSS

24

Attached log file. Please help us to resolve these issue.

elektroniklab logo for Signature (2)

Thanks and regards ,

T .udhaya Kumar GM ( Tecchnical )

elektroniklab pvt ltd

10 A , Masilamani street, T.Nagar, Chennai - 600017

Ph:91 44 24336953 Fax :91 4424322819 mobile : 91 9840613199

Skype : udai.kumar1 - web : www.elektroniklab.com http://www.elektroniklab.com/

From: Gonzalo Casas [mailto:notifications@github.com] Sent: Monday, October 30, 2017 3:51 PM To: ttn-zh/ic880a-gateway Cc: udaikumar59; Author Subject: Re: [ttn-zh/ic880a-gateway] Gateway (#26)

If it was working and it started failing with INFO: [main] Starting the concentrator - ERROR: [main] failed to start the concentrator then something like the power supply might be faulty. Try replacing your PSU, making sure it's delivering stable output.

— You are receiving this because you authored the thread. Reply to this email directly, view https://github.com/ttn-zh/ic880a-gateway/issues/26#issuecomment-340402194 it on GitHub, or mute https://github.com/notifications/unsubscribe-auth/AdhGSTI2hGoAiNws7Ghg7YJv_mblaCinks5sxaMTgaJpZM4QIuFs the thread. https://github.com/notifications/beacon/AdhGSfV_1uxnn9cuQb2nh8Wc6S8AQuIQks5sxaMTgaJpZM4QIuFs.gif

elabindia@ttn-gateway:~ $ service ttn-gateway status ? ttn-gateway.service - The Things Network Gateway Loaded: loaded (/lib/systemd/system/ttn-gateway.service; enabled) Active: active (running) since Wed 2017-11-01 09:38:29 +05; 42s ago Main PID: 3323 (start.sh) CGroup: /system.slice/ttn-gateway.service +-3323 /bin/bash /opt/ttn-gateway/bin/start.sh +-3385 ./poly_pkt_fwd

elabindia@ttn-gateway:/opt/ttn-gateway/lora_gateway/util_tx_test $ ./util_tx_test -f 868 -r 1257 Sending -1 packets on 868000000 Hz (BW 125 kHz, SF 10, CR 1, 16 bytes payload, 8 symbols preamble) at 14 dBm, with 1000 ms between each ERROR: failed to start the concentrator

elabindia@ttn-gateway:/opt/ttn-gateway/lora_gateway/util_tx_test $ ./util_tx_test -f 868 -r 1257 Sending -1 packets on 868000000 Hz (BW 125 kHz, SF 7, CR 1, 16 bytes payload, 8 symbols preamble) at 14 dBm, with 1000 ms between each ERROR: failed to start the concentrator

elabindia@ttn-gateway:/opt/ttn-gateway/lora_gateway/util_tx_continuous/src $ sudo tail -f /var/log/syslog Nov 1 06:00:40 ttn-gateway ttn-gateway[3323]: # Invalid gps time reference (age: 1509512409 sec) Nov 1 06:00:40 ttn-gateway ttn-gateway[3323]: # Manual GPS coordinates: latitude 13.02370, longitude 80.14300, altitude -1 m Nov 1 06:00:40 ttn-gateway ttn-gateway[3323]: ##### END ##### Nov 1 06:00:40 ttn-gateway ttn-gateway[3323]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 162 ms Nov 1 06:00:40 ttn-gateway ttn-gateway[3323]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 161 ms Nov 1 06:00:40 ttn-gateway ttn-gateway[3323]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 161 ms Nov 1 06:00:40 ttn-gateway ttn-gateway[3323]: ##### 2017-11-01 05:00:39 GMT ##### Nov 1 06:00:40 ttn-gateway ttn-gateway[3323]: ### [UPSTREAM] ### Nov 1 06:00:40 ttn-gateway ttn-gateway[3323]: # RF packets received by concentrator: 0 Nov 1 06:00:40 ttn-gateway ttn-gateway[3323]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: # RF packets forwarded: 0 (0 bytes) Nov 1 06:03:09 ttn-gateway rsyslogd-2007: action 'action 17' suspended, next retry is Wed Nov 1 06:04:39 2017 [try http://www.rsyslog.com/e/2007 ] Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: # PUSH_DATA datagrams sent: 1 (217 bytes) Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: # PUSH_DATA acknowledged: 0.00% Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: ### [DOWNSTREAM] ### Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: # PULL_DATA sent: 3 (100.00% acknowledged) Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: # PULL_RESP(onse) datagrams received: 0 (0 bytes) Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: # RF packets sent to concentrator: 0 (0 bytes) Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: # TX errors: 0 Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: ### [GPS] ### Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: # Invalid gps time reference (age: 1509512439 sec) Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: # Manual GPS coordinates: latitude 13.02370, longitude 80.14300, altitude -1 m Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: ##### END ##### Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 161 ms Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 161 ms Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 161 ms Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: ##### 2017-11-01 05:01:09 GMT ##### Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: ### [UPSTREAM] ### Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: # RF packets received by concentrator: 0 Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: # RF packets forwarded: 0 (0 bytes) Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: # PUSH_DATA datagrams sent: 1 (217 bytes) Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: # PUSH_DATA acknowledged: 0.00% Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: ### [DOWNSTREAM] ### Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: # PULL_DATA sent: 3 (100.00% acknowledged) Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: # PULL_RESP(onse) datagrams received: 0 (0 bytes) Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: # RF packets sent to concentrator: 0 (0 bytes) Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: # TX errors: 0 Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: ### [GPS] ### Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: # Invalid gps time reference (age: 1509512469 sec) Nov 1 06:03:09 ttn-gateway ttn-gateway[3323]: # Manual GPS coordinates: latitude 13.02370, longitude 80.14300, altitude -1 m Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: ##### END ##### Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 161 ms Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 162 ms Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 161 ms Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: ##### 2017-11-01 05:01:39 GMT ##### Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: ### [UPSTREAM] ### Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # RF packets received by concentrator: 0 Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # RF packets forwarded: 0 (0 bytes) Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # PUSH_DATA datagrams sent: 1 (217 bytes) Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # PUSH_DATA acknowledged: 0.00% Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: ### [DOWNSTREAM] ### Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # PULL_DATA sent: 3 (100.00% acknowledged) Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # PULL_RESP(onse) datagrams received: 0 (0 bytes) Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # RF packets sent to concentrator: 0 (0 bytes) Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # TX errors: 0 Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: ### [GPS] ### Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # Invalid gps time reference (age: 1509512499 sec) Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # Manual GPS coordinates: latitude 13.02370, longitude 80.14300, altitude -1 m Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: ##### END ##### Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 161 ms Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 161 ms Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 161 ms Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: ##### 2017-11-01 05:02:09 GMT ##### Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: ### [UPSTREAM] ### Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # RF packets received by concentrator: 0 Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # RF packets forwarded: 0 (0 bytes) Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # PUSH_DATA datagrams sent: 1 (217 bytes) Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # PUSH_DATA acknowledged: 0.00% Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: ### [DOWNSTREAM] ### Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # PULL_DATA sent: 3 (100.00% acknowledged) Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # PULL_RESP(onse) datagrams received: 0 (0 bytes) Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # RF packets sent to concentrator: 0 (0 bytes) Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # TX errors: 0 Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: ### [GPS] ### Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # Invalid gps time reference (age: 1509512529 sec) Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # Manual GPS coordinates: latitude 13.02370, longitude 80.14300, altitude -1 m Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: ##### END ##### Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 161 ms Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 161 ms Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 162 ms Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: ##### 2017-11-01 05:02:39 GMT ##### Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: ### [UPSTREAM] ### Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # RF packets received by concentrator: 0 Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # RF packets forwarded: 0 (0 bytes) Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # PUSH_DATA datagrams sent: 1 (217 bytes) Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # PUSH_DATA acknowledged: 0.00% Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: ### [DOWNSTREAM] ### Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # PULL_DATA sent: 3 (100.00% acknowledged) Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # PULL_RESP(onse) datagrams received: 0 (0 bytes) Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # RF packets sent to concentrator: 0 (0 bytes) Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # TX errors: 0 Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: ### [GPS] ### Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # Invalid gps time reference (age: 1509512559 sec) Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # Manual GPS coordinates: latitude 13.02370, longitude 80.14300, altitude -1 m Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: ##### END ##### Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 161 ms Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 162 ms Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: INFO: [down] for server router.eu.thethings.network PULL_ACK received in 161 ms Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: ##### 2017-11-01 05:03:09 GMT ##### Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: ### [UPSTREAM] ### Nov 1 06:03:10 ttn-gateway ttn-gateway[3323]: # RF packets received by concentrator: 0

elabindia@ttn-gateway:/opt/ttn-gateway/lora_gateway/libloragw $ sudo ./test_loragw_spi Beginning of test for loragw_spi.c data received (simple read): 48 End of test for loragw_spi.c

elabindia@ttn-gateway:/opt/ttn-gateway/lora_gateway/libloragw $ sudo ./test_loragw_hal -a 868 -b 867.5 -t 868 -r 1257 -k 1 Beginning of test for loragw_hal.c Library version information Version: 3.1.0; Options: native;

Impossible to start concentrator

gonzalocasas commented 6 years ago

This issue is very confusingly mixing gateway and node issues. I will close it because I've retested the gateway installation and it works fine, so, the issue is not related to this software repository (it could be hardware, or other environmental condition).