ERROR: [main] failed to start the concentrator


(Ehsan) #1

Hi to all,
My iC880a has arrived today and I tried to setting up my gateway according to instructions from the TTN. I also added remote config file according to my gateway MAC address into github. But when I start my gateway it does not appear on gateway status (http://staging.thethingsnetwork.org/gatewaystatus/
). I have also tried to get log from it. In the log file I encountered the "Failed to start concentrator" error. So I currently need help. I am a newbie in this field. Is anybody help me please?


(Jac Kersing) #2

Check the first few lines of the log. There should be a line '*** Lora concentrator HAL library version info ***' What does it say on the next line? If that line contains 'ftdi' you have build the USB version of the code, in that case go back to the instructions and make sure to build the SPI version of the software.


(Gonzalo Casas) #3

Best would be if you post a good chunk of your log, so that we can see what's going on.


(Ehsan) #4

Dear kersing, excuse me for my late replay. I've checked as you said and it is such as following:

*** 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 1


(Ehsan) #5

Hi, thanks a million for replay. Log is as follow:

*** 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 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 867500000, RSSI offset -165.000000, tx enabled 1, tx_notch_freq 129000
INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -165.000000, tx enabled 0, tx_notch_freq 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 B827EBFFFE1D4781
INFO: server hostname or IP address is configured to "192.168.13.110"
INFO: upstream port is configured to "1700"
INFO: downstream port is configured to "1700"
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: gateway MAC address is configured to B827EBFFFE1D4781
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
ERROR: [main] failed to start the concentrator


(Gonzalo Casas) #6

Which instructions did you follow? You're not using the poly packet forwarder that the installer configures normally, you're using the beacon packet forwarder.


(Jac Kersing) #7

All instructions I know of use poly_pkt_fwd, can't help you with this. Please try again using instructions for the the poly forwarder.


(Ehsan) #8

Hi, thank you so much. I have solved the problem yesterday by resetting the iC880a-SPI board before starting the packet forwarder.


(Celia Garrido-Hidalgo) #9

Hi,

I have the same problem (iC880a + spi in a Raspberry Pi), I get the error [main] failed to start the concentrator. I have followed the instructions based on: https://github.com/ttn-zh/ic880a-gateway/wiki but in this case I read *** Poly Packet Forwarder for Lora Gateway *** in the log.

I copy here part of the log file in case it helps:

Apr 6 13:50:27 ttn-gateway systemd[1]: Stopping Link Labs LoRa Gateway...
Apr 6 13:50:27 ttn-gateway systemd[1]: Starting Link Labs LoRa Gateway...
Apr 6 13:50:27 ttn-gateway systemd[1]: Started Link Labs LoRa Gateway.
Apr 6 13:50:27 ttn-gateway systemd[1]: Stopping The Things Network Gateway...
Apr 6 13:50:27 ttn-gateway systemd[8850]: Failed at step CHDIR spawning /opt/linklabs/bin/start.sh: No such file or directory
Apr 6 13:50:27 ttn-gateway systemd[1]: Starting The Things Network Gateway...
Apr 6 13:50:27 ttn-gateway systemd[1]: Started The Things Network Gateway.
Apr 6 13:50:27 ttn-gateway systemd[1]: linklabs.service: main process exited, code=exited, status=200/CHDIR
Apr 6 13:50:27 ttn-gateway systemd[1]: Unit linklabs.service entered failed state.
Apr 6 13:50:27 ttn-gateway ttn-gateway /opt/ttn-gateway/bin
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: Already up-to-date.
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: HEAD is now at 51375e3 Merge pull request #108 from Advil-Robin/patch-1
Apr 6 13:50:29 ttn-gateway ttn-gateway
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: [TTN Gateway]: Use Gateway EUI B827EBFFFEE927AD based on eth0
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: *** Poly Packet Forwarder for Lora Gateway ***
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: Version: 2.1.0
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: *** Lora concentrator HAL library version info ***
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: Version: 3.1.0; Options: native;
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: ***
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Little endian host
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: found global configuration file globalconf.json, parsing it_
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: globalconf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters_
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: lorawanpublic 1, clksrc 1_
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Configuring TX LUT with 16 indexes
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -166.000000, tx enabled 1
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -166.000000, tx enabled 0
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Lora multi-SF channel 0> radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Lora multi-SF channel 1> radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Lora multi-SF channel 2> radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Lora multi-SF channel 3> radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Lora multi-SF channel 4> radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Lora multi-SF channel 5> radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Lora multi-SF channel 6> radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Lora multi-SF channel 7> radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: globalconf.json does contain a JSON object named gateway_conf, parsing gateway parameters_
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: gateway MAC address is configured to AA555A0000000000
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Found 2 servers in array.
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Server 0 configured to "127.0.0.1", with port up "1680" and port down "1681"
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Server 1 configured to "iot.semtech.com", with port up "1680" and port down "1680"
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Found 5 system calls in array.
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: System command 0: "df -m"
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: System command 1: "free -h"
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: System command 2: "uptime"
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: System command 3: "who -a"
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: System command 4: "uname -a"
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: monitor hostname or IP address is configured to "127.0.0.1"
Apr 6 13:50:29 ttn-gateway systemd[1]: ttn-gateway.service: main process exited, code=exited, status=1/FAILURE
Apr 6 13:50:29 ttn-gateway systemd[1]: Unit ttn-gateway.service entered failed state.
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: monitor port is configured to "2008"
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: ghost hostname or IP address is configured to "127.0.0.1"
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: ghost port is configured to "1918"
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: downstream keep-alive interval is configured to 10 seconds
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: statistics display interval is configured to 30 seconds
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: upstream PUSHDATA time-out is configured to 100 ms_
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: packets received with a valid CRC will be forwarded
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: packets received with a CRC error will NOT be forwarded
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: packets received with no CRC will NOT be forwarded
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: GPS serial port path is configured to "/dev/ttyAMA0"
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: SSH path is configured to "/usr/bin/ssh"
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: SSH port is configured to 22
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: HTTP port is configured to 80
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: NGROK path is configured to "/usr/bin/ngrok"
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Reference latitude is configured to 10.000000 deg
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Reference longitude is configured to 20.000000 deg
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Reference altitude is configured to -1 meters
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: GPS is enabled
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Using fake GPS coordinates instead of real.
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Upstream data is enabled
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Downstream data is enabled
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Ghoststream data is disabled
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Radiostream data is enabled
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Statusstream data is enabled
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Beacon is disabled
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Monitor is disabled
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Platform configured to "IMST + Rpi"
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Contact email configured to "operator@gateway.tst"
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Description configured to "Update me"
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: found local configuration file localconf.json, parsing it_
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: redefined parameters will overwrite global parameters
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: localconf.json does not contain a JSON object named SX1301_conf_
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: localconf.json does contain a JSON object named gateway_conf, parsing gateway parameters_
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: gateway MAC address is configured to B827EBFFFEE927AD
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Found 1 servers in array.
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Server 0 configured to "router.eu.thethings.network", with port up "1700" and port down "1700"
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: packets received with a valid CRC will be forwarded
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: packets received with a CRC error will NOT be forwarded
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: packets received with no CRC will NOT be forwarded
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Reference latitude is configured to 38.977400 deg
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Reference longitude is configured to -1.856700 deg
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Reference altitude is configured to 40 meters
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: GPS is enabled
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Upstream data is enabled
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Downstream data is enabled
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Ghoststream data is disabled
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Radiostream data is enabled
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Statusstream data is enabled
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Beacon is disabled
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Monitor is disabled
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Contact email configured to "celia.gh@hotmail.com"
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Description configured to "ECOSENSE's LoRaWAN"
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: Successfully contacted server router.eu.thethings.network
Apr 6 13:50:29 ttn-gateway ttn-gateway8852: INFO: [main] Starting the concentrator
_Apr 6 13:50:29 ttn-gateway ttn-gateway8852: ERROR: [main] failed to start the concentrator_

Additionally, when I check the status of the service in the Raspberry Pi I can see sometimes "running" and sometimes "failure", as follows:

ttn@ttn-gateway:~/ic880a-gateway $ service ttn-gateway status
● ttn-gateway.service - The Things Network Gateway
_ Loaded: loaded (/lib/systemd/system/ttn-gateway.service; enabled)_
_ Active: activating (auto-restart) (Result: exit-code) since Thu 2017-04-06 14:10:00 CEST; 3s ago_
_ Process: 20946 ExecStart=/opt/ttn-gateway/bin/start.sh (code=exited, status=1/FAILURE)_
_ Main PID: 20946 (code=exited, status=1/FAILURE)_
_ CGroup: /system.slice/ttn-gateway.service_

ttn@ttn-gateway:~/ic880a-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 Thu 2017-04-06 14:10:05 CEST; 718ms ago_
_ Main PID: 21019 (start.sh)_
_ CGroup: /system.slice/ttn-gateway.service_
_ ├─21019 /bin/bash /opt/ttn-gateway/bin/start.sh_
_ ├─21038 git pull_
_ ├─21039 /bin/sh /usr/lib/git-core/git-pull_
_ ├─21059 git fetch --update-head-ok_
_ └─21060 git-remote-https origin https://github.com/ttn-zh/gateway-remote-config.git_

However, in TTN's console it always appears as "not connected". Any idea?

Thank you in advance!


(Ehsan) #10

Did you reset the concentrator before you run the command? (My problem solved by this tricky solution)
In the following link (iC880A spi data sheet) you can find useful instruction about resetting the board in each RPi startup:
https://wireless-solutions.de/forum/images/stories/downloads/Radio%20Modules/iC880A/iC880A-SPI_QuickStartGuide.pdf

Note: According to my experiments, it is possible that you counter error again even after resetting the board. Just calm down and try to run desired command again and again.


(Celia Garrido-Hidalgo) #11

Thank you for the datasheet, really useful! However, I have tried and it doesn't still work :sweat:

I have changed the reset pin (according to the datasheet) from 22 to 11, and run the reset script on each startup. To check it I'm loading the console once I turn on the Pi, I suppose there's nothing missing (?)

I have also notices the following error: Apr 7 12:56:06 ttn-gateway ttn-gateway[1186]: error: object file .git/objects/3d/d51859579e05707b4ad4bc043a5268e0aa0cbe is empty

Any ideas?


(Ehsan) #12

First, connect pins according to instructions from https://github.com/ttn-zh/ic880a-gateway/wiki
then based on datasheet you must to use wiringPi pin 6 in order to reset the concentrator. After that you can use sample code provided by the datasheet to reset the concentrator. Compile it using -lwiringpi library and run it from root.

Note: I did not use *** Poly Packet Forwarder for Lora Gateway *** at all. First I used instructions from https://github.com/ttn-zh/ic880a-gateway/wiki to setup a ttn gateway. After that in order to setup a gateway that be able to operate with my own lora network server I used instruction from the datasheet.


#13

https://www.thethingsnetwork.org/forum/t/known-issue-gateways-show-as-not-connected-in-the-console/6527


(Celia Garrido-Hidalgo) #14

Hi again,

Sorry for disappearing, I've had no internet access for a week.

I tried what you said but still it didn't work. This morning I started from zero (installing Raspbian, etc) and... now it works! At least I can see my gateway is "connected" in the console :grin:

However, the platform says I don't own any gateway, I don't really know why it happens.

Thank you very much for the guide and the help, I'm sure it will be very useful.
Regards,
Celia


(Gerardvtk) #15

I used the https://github.com/ttn-zh/ic880a-gateway/wiki and always received the error Concentrator failed to start.
With the great help of Gonzalo Casas the problems are solved. the power for the raspberry was too low. led 2 on 880 boards was blinking every 10 seconds. with a better power this problem is solved and the gateway is connected.
thanks Gonzalo.


(Designelektronik) #16

Hi Mr.gonzalo, i have the similar issue as celiagarridoh mentioned. i had done the gateway configuration in all the global & local configuration json files howver, my concentrator failed to start and here is the log given below. i had followed the steps given in this link https://github.com/ttn-zh/ic880a-gateway/wiki and my log is given below. please help me to sort out this issue.

labindia@ttn-gateway:/opt/ttn-gateway/bin $ ls
global_conf.json local_conf.json poly_pkt_fwd start.sh
elabindia@ttn-gateway:/opt/ttn-gateway/bin $ sudo ./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 3 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: Server 2 configured to “iot.semtech.com”, with port up “1680” and port down "1680"
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 "1993"
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 0 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 "IMST + Rpi"
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 longitude is configured to 80.143000 deg
INFO: Reference altitude is configured to 0 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

also when i run the status of ttn-gateway service. i found the similar issue what celiagarridoh as mentioned.

labindia@ttn-gateway:~/ic880a-gateway $ service ttn-gateway status
● ttn-gateway.service - The Things Network Gateway
Loaded: loaded (/lib/systemd/system/ttn-gateway.service; enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2017-10-26 05:45:34 UTC; 3s ago
Process: 5529 ExecStart=/opt/ttn-gateway/bin/start.sh (code=exited, status=1/FAILURE)
Main PID: 5529 (code=exited, status=1/FAILURE)
elabindia@ttn-gateway:~/ic880a-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 Thu 2017-10-26 05:45:39 UTC; 2s ago
Main PID: 5596 (start.sh)
CGroup: /system.slice/ttn-gateway.service
├─5596 /bin/bash /opt/ttn-gateway/bin/start.sh
├─5607 /bin/bash /opt/ttn-gateway/bin/start.sh
├─5609 ping -c1 google.com
└─5610 grep 0% packet loss

please help me to sort out this issuse. i’m using ic880a with rpi3 in spi


(Luisft Silva) #17

Hello, I do not know if I can put the question here but I have a similar problem.

I follow this https://github.com/ch2i/LoraGW-Setup

and i have a raspberry 3 B, a ch2i shield v1.1, and a ic880a concentrator

Mar 29 19:24:20 loragw systemd[1]: loragw.service: Main process exited, code=exited, status=1/FAILURE
Mar 29 19:24:20 loragw systemd[1]: loragw.service: Unit entered failed state.
Mar 29 19:24:20 loragw systemd[1]: loragw.service: Failed with result ‘exit-code’.
Mar 29 19:24:25 loragw systemd[1]: loragw.service: Service hold-off time over, scheduling restart.
Mar 29 19:24:25 loragw systemd[1]: Stopped Lora Gateway.
Mar 29 19:24:25 loragw systemd[1]: Started Lora Gateway.
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 *** Multi Protocol Packet Forwarder for Lora Gateway ***
Mar 29 19:24:25 loragw loragw[9737]: Version: 3.0.20
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 *** Lora concentrator HAL library version info ***
Mar 29 19:24:25 loragw loragw[9737]: Version: 5.0.1; Options: native;
Mar 29 19:24:25 loragw loragw[9737]: ***
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Little endian host
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: found global configuration file global_conf.json, parsing it
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: lorawan_public 1, clksrc 1
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: no configuration for LBT
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: antenna_gain 0 dBi
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Configuring TX LUT with 16 indexes
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -166.000000, tx enabled 1
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -166.000000, tx enabled 0
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Lora multi-SF channel 0> radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Lora multi-SF channel 1> radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Lora multi-SF channel 2> radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Lora multi-SF channel 3> radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Lora multi-SF channel 4> radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Lora multi-SF channel 5> radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Lora multi-SF channel 6> radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Lora multi-SF channel 7> radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: gateway MAC address is configured to B827EBFFFEF74BD2
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Found 3 servers in array.
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Server 0 configured to “bridge.eu.thethings.network”
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Server 1 configured to “127.0.0.1”
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Skipping disabled server “127.0.0.1”
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: packets received with a valid CRC will be forwarded
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: packets received with a CRC error will NOT be forwarded
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: packets received with no CRC will NOT be forwarded
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Reference latitude is configured to 40.137010 deg
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Reference longitude is configured to -7.502001 deg
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Reference altitude is configured to 0 meters
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: GPS is enabled
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Using fake GPS coordinates instead of real.
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Upstream data is enabled
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Downstream data is enabled
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Ghoststream data is disabled
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Radiostream data is enabled
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Statusstream data is enabled
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Beacon is disabled
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Packet logger is disabled
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Flush output after statistic is disabled
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Flush after each line of output is disabled
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Watchdog is disabled
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Contact email configured to “”
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: Description configured to “inc”
Mar 29 19:24:25 loragw loragw[9737]: 19:24:25 INFO: [Transports] Initializing protocol for 2 servers
Mar 29 19:24:26 loragw loragw[9737]: 19:24:26 INFO: [TTN] server “bridge.eu.thethings.network” connected
Mar 29 19:24:26 loragw loragw[9737]: 19:24:26 INFO: Successfully contacted server 127.0.0.1
Mar 29 19:24:26 loragw loragw[9737]: 19:24:26 INFO: [main] Starting the concentrator
Mar 29 19:24:26 loragw loragw[9737]: 19:24:26 ERROR: [main] failed to start the concentrator
Mar 29 19:24:26 loragw systemd[1]: loragw.service: Main process exited, code=exited, status=1/FAILURE
Mar 29 19:24:26 loragw systemd[1]: loragw.service: Unit entered failed state.
Mar 29 19:24:26 loragw systemd[1]: loragw.service: Failed with result ‘exit-code’.


(Jac Kersing) #18

SPI has been enabled? Reset pin set correctly in the script?


(Designelektronik) #19

Hi LuisftSilva,

Make sure the three things are perfect when you use the IC880A Concentrator with Rpi

  1. Input power 5.0V & Current rating 1.0A
  2. Make sure that you had enabled the SPI in Rpi by entering into sudo raspi-config->interfacing options->SPI
  3. Try connecting the RPI & concentrator via jumpers and observe the changes in the log, if it works then there is a problem at your reset pin which is not exited while starting the concentrator when you connect it using ch2i backplane.

(Duineuk) #20

Have you edited local_conf.json? Don’t see it referenced in the log…