Connecting IMST LiteGateway ? Stuck

How much costs this GW ?

I recently ordered two of them. They were € 229 each, which is okay compared to the iC880A alone.
The gateway was not in the web shop, I had to order it by e-mail.

It was a bit of a hassle to get them working with TTN, but at last I succeeded.
I might try the new packet forwarder soon.

2 Likes

Yes it was hard at the beginning
but working perfectly now
please make a backup of the SD card when it is working

1 Like

Yesterday I received IMST Lite GW, connected to mains and ethernet but could not connect to SSH. What worries me is that I can not see any LED activity on ethernet socket. Both LEDs are dark. Is this normal ?

There might be a contact problem with the SD card.

One of the two gateways I ordered showed the same symptoms as you describe.
I took it apart, checked the RPi and SD card individually, but I did not find any defects.
After putting everything back together it surprisingly worked. :slight_smile:

1 Like

You saved my day! Indeed, after disassembly and connecting HDMI out of the sudden everything started to work ! Thanks a lot.

Ok, got it to work. The reset-stuff was a bit different on my side. Anyway, litegateway-specifc reset procedure can be found here /home/pi/loriot/reset_lgw.sh. Actually, I had to replace original TTN reset code in start.sh with single line calling /home/pi/loriot/reset_lgw.sh start
And had to stop and disable loriot and IoTSemtech services as per original documentation from IMST. Hopefully this will help other in desperation.

1 Like

we had a great day at the Thinsgnetwork hackathon in copenhagen today; however I got stuck with the lite gateway. We did not make acopy of the original SD card.
Now i am wondering if it would be possible to get a working image from somebody burnt on the SD and change parameters like pwd and wifi and then it should work?
Cheers, Gernot

I have now a running setup, still try to do it better. My solution from scratch:

Fire it up unchanged, download the reset_lgw.sh script (~/loriot/reset_lgw.sh) to your computer and shut it down, disasemble and stuff.

Take a new sd card.

Set it up the GitHub - ttn-zh/ic880a-gateway: Reference setup for iC880a gateways running The Things Network way.

Copy the reset_lgw.sh somewhere to you system. (I put it to ~/scripts/reset_lgw.sh).

Replace > SX1301_RESET_BCM_PIN=25

echo “$SX1301_RESET_BCM_PIN” > /sys/class/gpio/export
echo “out” > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/direction
echo “0” > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/value
sleep 0.1
echo “1” > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/value
sleep 0.1
echo “0” > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/value
sleep 0.1
echo “$SX1301_RESET_BCM_PIN” > /sys/class/gpio/unexport

in /opt/ttn-gateway/bin/start.sh with just

PATH/reset_lgw.sh stop
sleep 0.1
PATH/reset_lgw.sh start

It worked for me. If I have time this weekend i’ll try to hack the GitHub - ttn-zh/ic880a-gateway: Reference setup for iC880a gateways running The Things Network scripts.

1 Like

@tibo Missed the chance to secure the image on the SD card - any way to get the ~/scripts/reset_lgw.sh and how to copy to the location - (am Linux newbie ;–) )
Thx

Here it is, replace GPIO7 with GPIO5

i just used nano and then copy paste. I think some guys would kill me for doing it this way though :wink:

1 Like

This looks like that my board is working or ?

Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: Little endian host
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: found global configuration file global_conf.json, parsing it
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: lorawan_public 1, clksrc 1
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: Configuring TX LUT with 16 indexes
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -166.000000, tx enabled 1
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -166.000000, tx enabled 0
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: Lora multi-SF channel 0>  radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: Lora multi-SF channel 1>  radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: Lora multi-SF channel 2>  radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: Lora multi-SF channel 3>  radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: Lora multi-SF channel 4>  radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: Lora multi-SF channel 5>  radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: Lora multi-SF channel 6>  radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: Lora multi-SF channel 7>  radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: gateway MAC address is configured to AA555A0000000000
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: Found 2 servers in array.
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: Server 0 configured to "127.0.0.1", with port up "1680" and port down "1681"
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: Server 1 configured to "iot.semtech.com", with port up "1680" and port down "1680"
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: Found 5 system calls in array.
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: System command 0: "df -m"
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: System command 1: "free -h"
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: System command 2: "uptime"
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: System command 3: "who -a"
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: System command 4: "uname -a"
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: monitor hostname or IP address is configured to "127.0.0.1"
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: monitor port is configured to "2008"
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: ghost hostname or IP address is configured to "127.0.0.1"
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: ghost port is configured to "1918"
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: downstream keep-alive interval is configured to 10 seconds
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: statistics display interval is configured to 30 seconds
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: upstream PUSH_DATA time-out is configured to 100 ms
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: packets received with a valid CRC will be forwarded
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: packets received with a CRC error will NOT be forwarded
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: packets received with no CRC will NOT be forwarded
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: GPS serial port path is configured to "/dev/ttyAMA0"
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: SSH path is configured to "/usr/bin/ssh"
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: SSH port is configured to 22
Jun  2 21:18:51 ttn-gateway ttn-gateway[18966]: INFO: HTTP port is configured to 80

Are you sure the imst light gateway pcb uses Raspberry pin 11? i mine uses raspberry pin 29

For the actual IMST LITE Gateway it’s definitely pin 29 or GPIO no. 5 on the RPi!
The reset script expects the GPIO number, so you need to set IOT_SK_SX1301_RESET_PIN=5.
Same goes for the new packet forwarder, where you should add reset-pin: 5 to the config.

They have just uploaded a new video: Registering a LoRa® Lite Gateway (LGW) into The Things Network server in 5 min

2 Likes

Hi there!

I have also just checked out their new video. On minute 4:50 they say that line number 13 in start.sh needs to be removed. This solved the problem for me that was described in this thread immediately (“ERROR: Version of calibration firmware not expected, actual:0 expected:2”).

So you need to comment out this line and the reset works!

# echo "$SX1301_RESET_BCM_PIN" > /sys/class/gpio/unexport

LgS

1 Like

I’ve made a transcript of the procedure in the IMST video which might be useful if, like me, you prefer to follow text instructions, or you want to be able to copy and paste commands across to the terminal:

http://www.technoblogy.com/show?1XKI

Regards, David

3 Likes

Just a hint:

I also have not been successful with the video-procedure for the TTN-forwarder.

But with the Sentech-forwarder which is pre-installed the gateway (I have a post june 2017 version) runs more or less out of the box with only a few steps:

enable rw-access to the SD-card
stop and disable loriot
enable IoTSemtech
(these steps are in the quickstart-manual)

edit /home/pi/github//packet_forwarder//lora_pkt_fwd/local_conf.json
(you even don’t have to use vi, mc is pre-installed)

set appropriate values in the local_conf.json:
For a working gateway ID put FFFE between the first and the second half of the device’s MAC (which was printed onto the device at my IMST Lite)

start IoT semtech

O.K: It’s not TTN’s forwarder but it worked

Christian

…and the future of TTN’s forwarder (if that’s the one you’re referring to) is unknown anyhow:

I spent some time finding back this post after reinstalling my Pi. Reply to be able to find it quicker in the future.
For my board (got it on Ali with the gateway as a set) this pin works.