Connecting IMST LiteGateway ? Stuck

Hi All
I’m stuck with the installation of the IMST Lite Gateway based on a : iC880a-based gateway
After strugling with the initial linux Raspbian. Being able to have ACTIVE but never seen , never on line gateway I decided to delete the SD card and do a from scratch installation based on


and

I user remote github file configuration

I got no error on install / compilation
raspi-config ok also

The only thing I did not setup is the wifi, the gateway being physicall connected to the RJ45 ethernet networks

I have
B827EBFFFE84F259 offline offline , not even Active off line / never seen

Is there any port to open on the router other than 1700 ? I opened UDP and RTP
Is there any debug tool ? Or any test script to check if the hardware is faulty ?

Anyone having any idea ?

The deamon log says a lot of rude things

Mar 9 18:48:38 ttn-gateway systemd[1]: Stopping The Things Network Gateway…
Mar 9 18:48:38 ttn-gateway systemd[1]: Starting The Things Network Gateway…
Mar 9 18:48:38 ttn-gateway systemd[1]: Started The Things Network Gateway.
Mar 9 18:48:38 ttn-gateway ttn-gateway[6730]: /opt/ttn-gateway/gateway-remote-config /opt/ttn-gateway/bin
Mar 9 18:48:42 ttn-gateway ttn-gateway[6730]: Already up-to-date.
Mar 9 18:48:42 ttn-gateway ttn-gateway[6730]: HEAD est maintenant ▒ 8e67da4 Merge pull request #70 from FranzMa/patch-1
Mar 9 18:48:42 ttn-gateway ttn-gateway[6730]: /opt/ttn-gateway/bin
Mar 9 18:48:42 ttn-gateway ttn-gateway[6730]: [TTN Gateway]: Use Gateway EUI B827EBFFFE84F259 based on eth0
Mar 9 18:48:42 ttn-gateway ttn-gateway[6730]: ln: impossible de cr▒er le lien symbolique ▒▒/opt/ttn-gateway/bin/local_conf.json▒▒: Le fichier
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: *** Poly Packet Forwarder for Lora Gateway ***
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: Version: 2.1.0
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: *** Lora concentrator HAL library version info ***
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: Version: 3.1.0; Options: native;
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: ***
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Little endian host
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: found global configuration file global_conf.json, parsing it
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: lorawan_public 1, clksrc 1
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Configuring TX LUT with 16 indexes
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -166.000000, tx en
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -166.000000, tx en
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Lora multi-SF channel 0> radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Lora multi-SF channel 1> radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Lora multi-SF channel 2> radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Lora multi-SF channel 3> radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Lora multi-SF channel 4> radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Lora multi-SF channel 5> radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Lora multi-SF channel 6> radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Lora multi-SF channel 7> radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameter
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: gateway MAC address is configured to AA555A0000000000
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Found 2 servers in array.
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Server 0 configured to “127.0.0.1”, with port up “1680” and port down “1681”
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Server 1 configured to “iot.semtech.com”, with port up “1680” and port down “1680”
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Found 5 system calls in array.
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: System command 0: “df -m”
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: System command 1: “free -h”
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: System command 2: “uptime”
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: System command 3: “who -a”
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: System command 4: “uname -a”
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: monitor hostname or IP address is configured to “127.0.0.1”
Mar 9 18:48:43 ttn-gateway systemd[1]: ttn-gateway.service: main process exited, code=exited, status=1/FAILURE
Mar 9 18:48:43 ttn-gateway systemd[1]: Unit ttn-gateway.service entered failed state.
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: monitor port is configured to “2008”
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: ghost hostname or IP address is configured to “127.0.0.1”
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: ghost port is configured to “1918”
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: downstream keep-alive interval is configured to 10 seconds
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: statistics display interval is configured to 30 seconds
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: upstream PUSH_DATA time-out is configured to 100 ms
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: packets received with a valid CRC will be forwarded
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: packets received with a CRC error will NOT be forwarded
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: packets received with no CRC will NOT be forwarded
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: GPS serial port path is configured to “/dev/ttyAMA0”
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: SSH path is configured to “/usr/bin/ssh”
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: SSH port is configured to 22
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: HTTP port is configured to 80
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: NGROK path is configured to “/usr/bin/ngrok”
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Reference latitude is configured to 10.000000 deg
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Reference longitude is configured to 20.000000 deg
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Reference altitude is configured to -1 meters
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: GPS is enabled
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Using fake GPS coordinates instead of real.
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Upstream data is enabled
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Downstream data is enabled
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Ghoststream data is disabled
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Radiostream data is enabled
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Statusstream data is enabled
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Beacon is disabled
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Monitor is disabled
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Platform configured to “IMST + Rpi”
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Contact email configured to “operator@gateway.tst”
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Description configured to “Update me”
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Successfully contacted server 127.0.0.1
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: Successfully contacted server iot.semtech.com
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: INFO: [main] Starting the concentrator
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: ERROR: Version of calibration firmware not expected, actual:0 expected:2
Mar 9 18:48:43 ttn-gateway ttn-gateway[6730]: ERROR: [main] failed to start the concentrator

rebooted after installation of a dev library with no more success
Looks like “Version of calibration firmware not expected, actual:0 expected:2” is the issue
ANy help would be warmfully accepted :slight_smile:

Mar 9 19:01:48 ttn-gateway ttn-gateway[1748]: INFO: Platform configured to “IMST + Rpi”
Mar 9 19:01:48 ttn-gateway ttn-gateway[1748]: INFO: Contact email configured to “operator@gateway.tst”
Mar 9 19:01:48 ttn-gateway ttn-gateway[1748]: INFO: Description configured to “Update me”
Mar 9 19:01:48 ttn-gateway ttn-gateway[1748]: INFO: Successfully contacted server 127.0.0.1
Mar 9 19:01:48 ttn-gateway ttn-gateway[1748]: INFO: Successfully contacted server iot.semtech.com
Mar 9 19:01:48 ttn-gateway ttn-gateway[1748]: INFO: [main] Starting the concentrator
Mar 9 19:01:48 ttn-gateway ttn-gateway[1748]: ERROR: Version of calibration firmware not expected, actual:0 expected:2
Mar 9 19:01:48 ttn-gateway ttn-gateway[1748]: ERROR: [main] failed to start the concentrator

Did you see the other posts?

https://www.thethingsnetwork.org/forum/search?q=Version%20of%20calibration%20firmware%20not%20expected

Yes. Nothing sounds clear to me (probably because I’m new in this electronic field)
The power supply issue does not seem to be the issue as it is the power suply given by IMST :frowning:
I was able to have an ACTIVE status at the beginning before I reinstall Raspbian Jessy from a new SD card)
raspi-config is ok also with SPI activated

Looks like it’s not picking up your local configuration file local_conf.json. Did you make one? I noticed you said “I user remote github file configuration” but apparently that’s not working properly.

thnx for the message.
No I did not create any local file : /opt/ttn-gateway/bin/local_conf.json
My understanding , at setup, when you ask the sysrtem to use the github config, you do not need any local_conf.json
Am I right ?

in the directory I have
-rw-r–r-- 1 root root 7440 mars 9 18:33 global_conf.json

lrwxrwxrwx 1 root root 60 mars 9 18:33 local_conf.json -> /opt/ttn-gateway/gateway-remote-config/B827EBFFFE84F259.json

lrwxrwxrwx 1 root root 59 mars 9 18:33 poly_pkt_fwd -> /opt/ttn-gateway/packet_forwarder/poly_pkt_fwd/poly_pkt_fwd

-rwxr-xr-x 1 root root 1789 mars 9 18:33 start.sh

Could it be “root” rights ?

Did you setup your github with the config file and have the correct Gateway ID as the filename?

The default only picks files from the ttn-zh github repo - https://github.com/ttn-zh/gateway-remote-config - if you’re not a member of that you need to change it to your own repo and create a file such as 00029BFFFEA1A57A.json where the hex string matches your gateway EUI (you can see it in your logs above).

You can use the contents of one of the files there as an example but you really need to configure it with your own settings.

I feel I understand what the issue is

Typo error in the file name

B827EBFFFE84F259.json in /opt/ttn-gateway/gateway-remote-config/B827EBFFFE84F259.json
B827EBFFFF84F259.json on github

B827EBFFFE84F259.json asked by my config
B827EBFFFF84F259.json github

I’m trying to rename on GitHub. And let you know.

It may probably take a few hours for the admin to validate my filename rename request

I’ve managed to solve the GITHUB step but still stuck
I have this in the log : local_conf.json does not contain a JSON object named SX1301_conf
Is this a problem ?

I still get a faled to start the concentrator
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: ERROR: Version of calibration firmware not expected, actual:0 expected:2
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: ERROR: [main] failed to start the concentrator

Hard to be a beginner. I can compile a linux kernel :slight_smile: but cannot inderstand an issue which seems basic
Help !!!

Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: NGROK path is configured to “/usr/bin/ngrok”
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Reference latitude is configured to 10.000000 deg
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Reference longitude is configured to 20.000000 deg
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Reference altitude is configured to -1 meters
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: GPS is enabled
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Using fake GPS coordinates instead of real.
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Upstream data is enabled
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Downstream data is enabled
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Ghoststream data is disabled
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Radiostream data is enabled
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Statusstream data is enabled
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Beacon is disabled
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Monitor is disabled
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Platform configured to “IMST + Rpi”
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Contact email configured to “operator@gateway.tst”
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Description configured to “Update me”
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: found local configuration file local_conf.json, parsing it
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: redefined parameters will overwrite global parameters
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: local_conf.json does not contain a JSON object named SX1301_conf
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: local_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: gateway MAC address is configured to B827EBFFFE84F259
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Found 1 servers in array.
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Server 0 configured to “router.eu.thethings.network”, with port up “1700” and port down “1700”
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: packets received with a valid CRC will be forwarded
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: packets received with a CRC error will NOT be forwarded
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: packets received with no CRC will NOT be forwarded
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Reference latitude is configured to 47.910100 deg
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Reference longitude is configured to 1.903900 deg
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Reference altitude is configured to 40 meters
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: GPS is enabled
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Upstream data is enabled
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Downstream data is enabled
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Ghoststream data is disabled
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Radiostream data is enabled
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Statusstream data is enabled
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Beacon is disabled
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Monitor is disabled
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Contact email configured to "orleans.lorawan@gmail.com"
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Description configured to “TTN Orleans City France, Gare Centrale”
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: Successfully contacted server router.eu.thethings.network
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: INFO: [main] Starting the concentrator
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: ERROR: Version of calibration firmware not expected, actual:0 expected:2
Mar 11 13:23:16 ttn-gateway ttn-gateway[4114]: ERROR: [main] failed to start the concentrator
Mar 11 13:23:16 ttn-gateway systemd[1]: ttn-gateway.service: main process exited, code=exited, status=1/FAILURE
Mar 11 13:23:16 ttn-gateway systemd[1]: Unit ttn-gateway.service entered failed state.

This is quit the same error i had when i started up with my gateway [quote=“ccadic, post:9, topic:5959”]
ERROR: Version of calibration firmware not expected, actual:0 expected:2
ERROR: [main] failed to start the concentrator
[/quote]
I did resolve it with a strong powersupply and very short cabling from Rasperry to IMST Board. Do you use a shield or just wires to connect?

Did you get a power supply with your board from IMST? I did not. Don’t you power the IMST Board from Raspberry?

Can you post your global_conf and local_conf contents somewhere?

“local_conf.json does not contain a JSON object named SX1301_conf” is the real problem and it causes the error you’re seeing.

You have a problem somewhere in your configuration files.

Usually global_conf.json would contain the SX1301_conf information and should match what’s here: https://github.com/TheThingsNetwork/packet_forwarder/blob/master/poly_pkt_fwd/global_conf.json

Thnx for the answer

After strugling I think the good global_conf.json is in /opt/ttn-gateway/bin
Here it the content

{
“SX1301_conf”: {
“lorawan_public”: true,
“clksrc”: 1, /* radio_1 provides clock to concentrator /
“radio_0”: {
“enable”: true,
“type”: “SX1257”,
“freq”: 867500000,
“rssi_offset”: -166.0,
“tx_enable”: true
},
“radio_1”: {
“enable”: true,
“type”: “SX1257”,
“freq”: 868500000,
“rssi_offset”: -166.0,
“tx_enable”: false
},
“chan_multiSF_0”: {
/
Lora MAC channel, 125kHz, all SF, 868.1 MHz /
“enable”: true,
“radio”: 1,
“if”: -400000
},
“chan_multiSF_1”: {
/
Lora MAC channel, 125kHz, all SF, 868.3 MHz /
“enable”: true,
“radio”: 1,
“if”: -200000
},
“chan_multiSF_2”: {
/
Lora MAC channel, 125kHz, all SF, 868.5 MHz /
“enable”: true,
“radio”: 1,
“if”: 0
},
“chan_multiSF_3”: {
/
Lora MAC channel, 125kHz, all SF, 867.1 MHz /
“enable”: true,
“radio”: 0,
“if”: -400000
},
“chan_multiSF_4”: {
/
Lora MAC channel, 125kHz, all SF, 867.3 MHz /
“enable”: true,
“radio”: 0,
“if”: -200000
},
“chan_multiSF_5”: {
/
Lora MAC channel, 125kHz, all SF, 867.5 MHz /
“enable”: true,
“radio”: 0,
“if”: 0
},
“chan_multiSF_6”: {
/
Lora MAC channel, 125kHz, all SF, 867.7 MHz /
“enable”: true,
“radio”: 0,
“if”: 200000
},
“chan_multiSF_7”: {
/
Lora MAC channel, 125kHz, all SF, 867.9 MHz /
“enable”: true,
“radio”: 0,
“if”: 400000
},
“chan_Lora_std”: {
/
Lora MAC channel, 250kHz, SF7, 868.3 MHz /
“enable”: true,
“radio”: 1,
“if”: -200000,
“bandwidth”: 250000,
“spread_factor”: 7
},
“chan_FSK”: {
/
FSK 50kbps channel, 868.8 MHz /
“enable”: true,
“radio”: 1,
“if”: 300000,
“bandwidth”: 125000,
“datarate”: 50000
},
“tx_lut_0”: {
/
TX gain table, index 0 /
“pa_gain”: 0,
“mix_gain”: 8,
“rf_power”: -6,
“dig_gain”: 0
},
“tx_lut_1”: {
/
TX gain table, index 1 /
“pa_gain”: 0,
“mix_gain”: 10,
“rf_power”: -3,
“dig_gain”: 0
},
“tx_lut_2”: {
/
TX gain table, index 2 /
“pa_gain”: 0,
“mix_gain”: 12,
“rf_power”: 0,
“dig_gain”: 0
},
“tx_lut_3”: {
/
TX gain table, index 3 /
“pa_gain”: 1,
“mix_gain”: 8,
“rf_power”: 3,
“dig_gain”: 0
},
“tx_lut_4”: {
/
TX gain table, index 4 /
“pa_gain”: 1,
“mix_gain”: 10,
“rf_power”: 6,
“dig_gain”: 0
},
“tx_lut_5”: {
/
TX gain table, index 5 /
“pa_gain”: 1,
“mix_gain”: 12,
“rf_power”: 10,
“dig_gain”: 0
},
“tx_lut_6”: {
/
TX gain table, index 6 /
“pa_gain”: 1,
“mix_gain”: 13,
“rf_power”: 11,
“dig_gain”: 0
},
“tx_lut_7”: {
/
TX gain table, index 7 /
“pa_gain”: 2,
“mix_gain”: 9,
“rf_power”: 12,
“dig_gain”: 0
},
“tx_lut_8”: {
/
TX gain table, index 8 /
“pa_gain”: 1,
“mix_gain”: 15,
“rf_power”: 13,
“dig_gain”: 0
},
“tx_lut_9”: {
/
TX gain table, index 9 /
“pa_gain”: 2,
“mix_gain”: 10,
“rf_power”: 14,
“dig_gain”: 0
},
“tx_lut_10”: {
/
TX gain table, index 10 /
“pa_gain”: 2,
“mix_gain”: 11,
“rf_power”: 16,
“dig_gain”: 0
},
“tx_lut_11”: {
/
TX gain table, index 11 /
“pa_gain”: 3,
“mix_gain”: 9,
“rf_power”: 20,
“dig_gain”: 0
},
“tx_lut_12”: {
/
TX gain table, index 12 /
“pa_gain”: 3,
“mix_gain”: 10,
“rf_power”: 23,
“dig_gain”: 0
},
“tx_lut_13”: {
/
TX gain table, index 13 /
“pa_gain”: 3,
“mix_gain”: 11,
“rf_power”: 25,
“dig_gain”: 0
},
“tx_lut_14”: {
/
TX gain table, index 14 /
“pa_gain”: 3,
“mix_gain”: 12,
“rf_power”: 26,
“dig_gain”: 0
},
“tx_lut_15”: {
/
TX gain table, index 15 */
“pa_gain”: 3,
“mix_gain”: 14,
“rf_power”: 27,
“dig_gain”: 0
}
},

“gateway_conf”: {
“gateway_ID”: “B827EBFFFE84F259”,
/* change with default server address/ports, or overwrite in local_conf.json /
“server_address”: “router.eu.thethings.network”,
“serv_port_up”: 1700,
“serv_port_down”: 1700,
/
adjust the following parameters for your network /
“keepalive_interval”: 10,
“stat_interval”: 30,
“push_timeout_ms”: 100,
/
forward only valid packets */
“forward_crc_valid”: true,
“forward_crc_error”: false,
“forward_crc_disabled”: false
}

}

For the local_conf.json there is a symbolioc link

The content of /opt/ttn-gateway/bin/local_conf.json is

Do you think it would be easier for me to get a rid of remote config & do it locally ?

You global_conf.json looks OK, but I’d start with a fresh copy from https://raw.githubusercontent.com/TheThingsNetwork/packet_forwarder/master/poly_pkt_fwd/global_conf.json just in case. You don’t need to change this file as local_conf.json will override the necessary parts (“gateway_conf” section). Use it as it comes.

What I notice is poly_pkt_fwd isn’t seeing your global_conf.json file. If it does it should print “INFO: found global configuration file global_conf.json, parsing it”

From where are you trying to start this service from? You need to be inside /opt/ttn-gateway/bin
The poly_pkg_fwd executable only looks for global_conf.json within the current working directory.

I removed the remote github config option, reinstalled everything (to eliminate a step)

My /opt/ttn-gateway/bin/local_conf.json is

{
“gateway_conf”: {
“gateway_ID”: “B827EBFFFE84F259”,
“servers”: [ { “server_address”: “router.eu.thethings.network”, “serv_port_up”: 1700, “serv_port_down”: 1700, “serv_enabled”: true } ],
“ref_latitude”: 47.9101,
“ref_longitude”: 1.9039,
“ref_altitude”: 40,
“contact_email”: "orleans.lorawan@gmail.com",
“description”: “Orleans TTN GW”
}
}

And the /opt/ttn-gateway/bin/global_conf.json is

{
“SX1301_conf”: {
“lorawan_public”: true,
“clksrc”: 1, /* radio_1 provides clock to concentrator /
“radio_0”: {
“enable”: true,
“type”: “SX1257”,
“freq”: 867500000,
“rssi_offset”: -166.0,
“tx_enable”: true
},
“radio_1”: {
“enable”: true,
“type”: “SX1257”,
“freq”: 868500000,
“rssi_offset”: -166.0,
“tx_enable”: false
},
“chan_multiSF_0”: {
/
Lora MAC channel, 125kHz, all SF, 868.1 MHz /
“enable”: true,
“radio”: 1,
“if”: -400000
},
“chan_multiSF_1”: {
/
Lora MAC channel, 125kHz, all SF, 868.3 MHz /
“enable”: true,
“radio”: 1,
“if”: -200000
},
“chan_multiSF_2”: {
/
Lora MAC channel, 125kHz, all SF, 868.5 MHz /
“enable”: true,
“radio”: 1,
“if”: 0
},
“chan_multiSF_3”: {
/
Lora MAC channel, 125kHz, all SF, 867.1 MHz /
“enable”: true,
“radio”: 0,
“if”: -400000
},
“chan_multiSF_4”: {
/
Lora MAC channel, 125kHz, all SF, 867.3 MHz /
“enable”: true,
“radio”: 0,
“if”: -200000
},
“chan_multiSF_5”: {
/
Lora MAC channel, 125kHz, all SF, 867.5 MHz /
“enable”: true,
“radio”: 0,
“if”: 0
},
“chan_multiSF_6”: {
/
Lora MAC channel, 125kHz, all SF, 867.7 MHz /
“enable”: true,
“radio”: 0,
“if”: 200000
},
“chan_multiSF_7”: {
/
Lora MAC channel, 125kHz, all SF, 867.9 MHz /
“enable”: true,
“radio”: 0,
“if”: 400000
},
“chan_Lora_std”: {
/
Lora MAC channel, 250kHz, SF7, 868.3 MHz /
“enable”: true,
“radio”: 1,
“if”: -200000,
“bandwidth”: 250000,
“spread_factor”: 7
},
“chan_FSK”: {
/
FSK 50kbps channel, 868.8 MHz /
“enable”: true,
“radio”: 1,
“if”: 300000,
“bandwidth”: 125000,
“datarate”: 50000
},
“tx_lut_0”: {
/
TX gain table, index 0 /
“pa_gain”: 0,
“mix_gain”: 8,
“rf_power”: -6,
“dig_gain”: 0
},
“tx_lut_1”: {
/
TX gain table, index 1 /
“pa_gain”: 0,
“mix_gain”: 10,
“rf_power”: -3,
“dig_gain”: 0
},
“tx_lut_2”: {
/
TX gain table, index 2 /
“pa_gain”: 0,
“mix_gain”: 12,
“rf_power”: 0,
“dig_gain”: 0
},
“tx_lut_3”: {
/
TX gain table, index 3 /
“pa_gain”: 1,
“mix_gain”: 8,
“rf_power”: 3,
“dig_gain”: 0
},
“tx_lut_4”: {
/
TX gain table, index 4 /
“pa_gain”: 1,
“mix_gain”: 10,
“rf_power”: 6,
“dig_gain”: 0
},
“tx_lut_5”: {
/
TX gain table, index 5 /
“pa_gain”: 1,
“mix_gain”: 12,
“rf_power”: 10,
“dig_gain”: 0
},
“tx_lut_6”: {
/
TX gain table, index 6 /
“pa_gain”: 1,
“mix_gain”: 13,
“rf_power”: 11,
“dig_gain”: 0
},
“tx_lut_7”: {
/
TX gain table, index 7 /
“pa_gain”: 2,
“mix_gain”: 9,
“rf_power”: 12,
“dig_gain”: 0
},
“tx_lut_8”: {
/
TX gain table, index 8 /
“pa_gain”: 1,
“mix_gain”: 15,
“rf_power”: 13,
“dig_gain”: 0
},
“tx_lut_9”: {
/
TX gain table, index 9 /
“pa_gain”: 2,
“mix_gain”: 10,
“rf_power”: 14,
“dig_gain”: 0
},
“tx_lut_10”: {
/
TX gain table, index 10 /
“pa_gain”: 2,
“mix_gain”: 11,
“rf_power”: 16,
“dig_gain”: 0
},
“tx_lut_11”: {
/
TX gain table, index 11 /
“pa_gain”: 3,
“mix_gain”: 9,
“rf_power”: 20,
“dig_gain”: 0
},
“tx_lut_12”: {
/
TX gain table, index 12 /
“pa_gain”: 3,
“mix_gain”: 10,
“rf_power”: 23,
“dig_gain”: 0
},
“tx_lut_13”: {
/
TX gain table, index 13 /
“pa_gain”: 3,
“mix_gain”: 11,
“rf_power”: 25,
“dig_gain”: 0
},
“tx_lut_14”: {
/
TX gain table, index 14 /
“pa_gain”: 3,
“mix_gain”: 12,
“rf_power”: 26,
“dig_gain”: 0
},
“tx_lut_15”: {
/
TX gain table, index 15 */
“pa_gain”: 3,
“mix_gain”: 14,
“rf_power”: 27,
“dig_gain”: 0
}
},

"gateway_conf": {
    /* change with default server address/ports, or overwrite in local_conf.json */
    "gateway_ID": "B827EBFFFE84F259",
    /* Devices */
    "gps": true,
    "beacon": false,
    "monitor": false,
    "upstream": true,
    "downstream": true,
    "ghoststream": false,
    "radiostream": true,
    "statusstream": true,
    /* node server */
    "server_address": "127.0.0.1",
    "serv_port_up": 1680,
    "serv_port_down": 1681,
    /* node servers for poly packet server (max 4) */
    "servers":
    [ { "server_address": "127.0.0.1",
        "serv_port_up": 1680,
        "serv_port_down": 1681,
        "serv_enabled": true },
      { "server_address": "iot.semtech.com",
        "serv_port_up": 1680,
        "serv_port_down": 1680,
        "serv_enabled": true } ],
    /* adjust the following parameters for your network */
    "keepalive_interval": 10,
    "stat_interval": 30,
    "push_timeout_ms": 100,
    /* forward only valid packets */
    "forward_crc_valid": true,
    "forward_crc_error": false,
    "forward_crc_disabled": false,
    /* GPS configuration */
    "gps_tty_path": "/dev/ttyAMA0",
    "fake_gps": true,
    "ref_latitude": 10,
    "ref_longitude": 20,
    "ref_altitude": -1,
    /* Ghost configuration */
    "ghost_address": "127.0.0.1",
    "ghost_port": 1918,
    /* Monitor configuration */
    "monitor_address": "127.0.0.1",
    "monitor_port": 2008,
    "ssh_path": "/usr/bin/ssh",
    "ssh_port": 22,
    "http_port": 80,
    "ngrok_path": "/usr/bin/ngrok",
    "system_calls": ["df -m","free -h","uptime","who -a","uname -a"],
    /* Platform definition, put a asterix here for the system value, max 24 chars. */
    "platform": "*", 
    /* Email of gateway operator, max 40 chars*/
    "contact_email": "operator@gateway.tst", 
    /* Public description of this device, max 64 chars */
    "description": "Update me" 
    
       
}

}

My profile says it is connected

But the https://staging.thethingsnetwork.org/gatewaystatus/ page says I’m OFFLINE / OFFLINE

Does it take minutes or hours for https://staging.thethingsnetwork.org/gatewaystatus/ to reflect the change ? Am I too impatient ?

The food thing, is, when I have something running after these torture moments, I will make a step by step tutorial for this gateway to avoid all that loss of energy :slight_smile:

I still get a
Mar 12 15:35:12 ttn-gateway ttn-gateway[2498]: ERROR: Version of calibration firmware not expected, actual:0 expected:2
Mar 12 15:35:12 ttn-gateway ttn-gateway[2498]: ERROR: [main] failed to start the concentrator
Mar 12 15:35:12 ttn-gateway systemd[1]: ttn-gateway.service: main process exited, code=exited, status=1/FAILURE
Mar 12 15:35:12 ttn-gateway systemd[1]: Unit ttn-gateway.service entered failed state.

Looks like I have rubbish with these oit.semtech.com and port 1681 things

Thanks for helping
I deleted the /opt/ttn-gateway/global_conf.json and replaced with the one you suggested

Looks like /opt/ttn-gateway/local_conf.json is not good and laking some config.
Is there an example of a working local_conf.json file somewhere ?

I’m not starting the service. It is started at bootup

I made a sudo /opt/ttn/gateway/bin/start.sh > error.txt copy below
Still exciting for error
How should I populate the local_conf.json ?

*** 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 B827EBFFFE84F259
INFO: Found 2 servers in array.
INFO: Server 0 configured to “127.0.0.1”, with port up “1680” and port down “1681”
INFO: Server 1 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 “127.0.0.1”
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 10.000000 deg
INFO: Reference longitude is configured to 20.000000 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 “IMST + Rpi”
INFO: Contact email configured to “operator@gateway.tst”
INFO: Description configured to “Update me”
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 B827EBFFFE84F259
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 47.910100 deg
INFO: Reference longitude is configured to 1.903900 deg
INFO: Reference altitude is configured to 40 meters
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: Contact email configured to "orleans.lorawan@gmail.com"
INFO: Description configured to “Orleans TTN GW”
INFO: Successfully contacted server router.eu.thethings.network
INFO: [main] Starting the concentrator
ERROR: Version of calibration firmware not expected, actual:0 expected:2
ERROR: [main] failed to start the concentrator

Could it be the old default config (loriot.service and IoTSemtech.service) running previously on the IMST gateway ? It is delivered by default

Thank for posting the full log, everything is a lot clearer to me now. Now I can see my assumption was wrong, your poly_pkt_fwd is indeed reading the global_conf.json file successfully! (or at least it is now)

I’m not 100% sure about this but I think your official iMST board uses a different RESET pin than @gonzalo’s.

Can you try editing start.sh (in /opt/ttn-gateway/bin/ ) and changing

SX1301_RESET_BCM_PIN=25

to

SX1301_RESET_BCM_PIN=17

then try restarting it again.

1 Like

I tried with no more success in pin17

*** 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 B827EBFFFE84F259
INFO: Found 2 servers in array.
INFO: Server 0 configured to “127.0.0.1”, with port up “1680” and port down “1681”
INFO: Server 1 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 “127.0.0.1”
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 10.000000 deg
INFO: Reference longitude is configured to 20.000000 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 “IMST + Rpi”
INFO: Contact email configured to “operator@gateway.tst”
INFO: Description configured to “Update me”
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 B827EBFFFE84F259
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 47.910100 deg
INFO: Reference longitude is configured to 1.903900 deg
INFO: Reference altitude is configured to 40 meters
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: Contact email configured to "orleans.lorawan@gmail.com"
INFO: Description configured to “Orleans TTN GW”
INFO: Successfully contacted server router.eu.thethings.network
INFO: [main] Starting the concentrator
ERROR: Version of calibration firmware not expected, actual:0 expected:2
ERROR: [main] failed to start the concentrator

The full daemon.log is there
http://www.electronictricks.com/daemon.log

I can open a SSH access to my Raspberry if needed so you have a look.
I really want to have this GW running. A bit desperated :slight_smile:
1 week of fight to make this run ? Wondering about throwing to the bin and buy another hardware… :slight_smile: