# \[IMST IC880A + RPi\] Gateway "hangs" every few weeks

**URL:** <https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027>\
**Category:** Gateways\
**Created:** [May 3, 2016, 8:55pm UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027 "2016-05-03T20:55:29Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ernestopace](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ernestopace/32/30510_2.png) [@ernestopace](https://www.thethingsnetwork.org/forum/u/ernestopace)\
**Post date:** [May 3, 2016, 8:55pm UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027/1 "2016-05-03T20:55:29Z")

</div>

I have a gateway consisting of an IMST IC880a and a RaspberryPi, connected via SPI and connected to a good (=2.5A) power source.  
The gateway usually works well, but every month or so, it stops forwarding messages. The logfile /var/log/daemon.log shows no real problems (but is very verbose, so I might have missed something)

A reboot helps of course. Only doing a **sudo service restart ttn-gateway** also fixes the problem.

The day before yesterday the gateway seemed to not forward messages from two of my three nodes. Restarting the service fixed this once again.

Are other people experiencing similar problems?

---

<div class="post-metadata">

**Author:** ![arthoo](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arthoo/32/35697_2.png) [@arthoo](https://www.thethingsnetwork.org/forum/u/arthoo)\
**Post date:** [May 3, 2016, 9:35pm UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027/2 "2016-05-03T21:35:49Z")

</div>

Yes, I do. And @JeroenB did. My gateway runs since the end of december and has stopped about 5 times.  
The Pi keeps running OK but the IC880A hangs. Status messages are still being send but the crc-errors on noise stop.  
The ‘failures’ were not evenly spread in time but happened 3 times in one week and the other two several weeks later.  
JeroenB was having a lot more trouble but has resolved it (hopefully) by giving it an other case with proper shielding.  
So that’s my plan too. In time.

---

<div class="post-metadata">

**Author:** ![Batilan](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/batilan/32/38420_2.png) [@Batilan](https://www.thethingsnetwork.org/forum/u/Batilan)\
**Post date:** [May 3, 2016, 9:43pm UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027/3 "2016-05-03T21:43:07Z")

</div>

I’m experiencing exactly the same. SPI communications with the iMST seems to be OK as no errors are logged. The symptom is that I do not receive any packets anymore. Simply restarting the ttn-gateway process “solves” this issue.

I may also try to get a better case, and have a look at the receptions statistics: if no packets are received within some set time interval restart the packet forwarder. Not nice, but better than missing lots of packets.

---

<div class="post-metadata">

**Author:** ![ernestopace](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ernestopace/32/30510_2.png) [@ernestopace](https://www.thethingsnetwork.org/forum/u/ernestopace)\
**Post date:** [May 3, 2016, 9:45pm UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027/4 "2016-05-03T21:45:43Z")

</div>

I’ll try a real case with some shielding (how much??). The thing is now “mounted” in the cardboard box the Raspberry was mailed in.

I can calculate how much of my own packets I miss, but the gateway may be missing other persons packets too; that’s harder to monitor.

---

<div class="post-metadata">

**Author:** ![melvin](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/m/77aa72/32.png) [@melvin](https://www.thethingsnetwork.org/forum/u/melvin)\
**Post date:** [May 4, 2016, 4:49pm UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027/5 "2016-05-04T16:49:10Z")

</div>

Same here. Rpi with iC880a on top in a small plastic box. Would work for hours (at the office, noisy RF environment) or days (at home, less noisy RF environment), then stop receiving radio packets. No errors or anything, just not receiving anything:

`RF packets received by concentrator: 0`

A restart of the ttn-gateway service solves it temporarily.  
I tried another iC880a with the same result.

I’ve ordered an [aluminum box](https://www.conrad.nl/nl/proma-131020-universele-behuizing-168-x-103-x-42-aluminium-transparant-geeloxeerd-1-stuks-523224.html), let’s see if that helps.

---

<div class="post-metadata">

**Author:** ![jamesUS](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/j/5fc32e/32.png) [@jamesUS](https://www.thethingsnetwork.org/forum/u/jamesUS)\
**Post date:** [May 4, 2016, 7:11pm UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027/6 "2016-05-04T19:11:28Z")

</div>

same issue here

---

<div class="post-metadata">

**Author:** ![gonzalo](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/gonzalo/32/40499_2.png) [@gonzalo](https://www.thethingsnetwork.org/forum/u/gonzalo)\
**Post date:** [May 5, 2016, 9:39am UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027/7 "2016-05-05T09:39:09Z")

</div>

Some guys in Zurich had the same problem, and as @arthoo said, the main suspect is the casing because this mostly happened with gateways that were not in a proper enclosure. We have other gateways using the plastic outdoor-ready enclosure that I show on the wiki and those have been running for several months already without issues.

In any case, is something we’ll try to start monitoring more in detail in the coming weeks.

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [May 5, 2016, 10:05am UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027/8 "2016-05-05T10:05:03Z")

</div>

> [@gonzalocasas](#):
>
> We have other gateways using the plastic outdoor-ready enclosure that I show on the wiki and those have been running for several months already without issues.

A plastic enclosure working well, sounds like the problem is not about shielding for radio interference? Then I wonder how many people above use the gateway indoors, and still run into problems. Like:

> [@ernestopace](#):
>
> The thing is now “mounted” in the cardboard box the Raspberry was mailed in.

…which is installed inside, I assume?

---

<div class="post-metadata">

**Author:** ![ernestopace](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ernestopace/32/30510_2.png) [@ernestopace](https://www.thethingsnetwork.org/forum/u/ernestopace)\
**Post date:** [May 5, 2016, 12:14pm UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027/9 "2016-05-05T12:14:10Z")

</div>

The cardboard enclosure is standing inside front of a window.  
I think the shielding capacities of cardboard are similar to those of plastic, so it might not be a shielding problem.

That leaves the Raspberry itself, the power brick, the ic880a itself and the connections as problem sources.  
The fact that restarting the gateway service and not the whole Raspberry suggests a problem with the ic880a or the software. Once I think I saw the gateway forwarding only 1 of my 3 nodes. This could also indicate problems in the ic880a.

Do these gateway components have updatable firmware?

---

<div class="post-metadata">

**Author:** ![arthoo](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arthoo/32/35697_2.png) [@arthoo](https://www.thethingsnetwork.org/forum/u/arthoo)\
**Post date:** [May 5, 2016, 6:56pm UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027/10 "2016-05-05T18:56:36Z")

</div>

Maybe you should put some shielding around the cardboardbox, just for the fun of it and see what happens.  
Can we be sure the plastic box does not have any shielding capabilities? Is there carbon fiber in it?

Another option is to see whether the problem IC880a’s are all perpendicular to the antenna or have the antenna directly mounted to it or have a pigtail.  
Mine has a pigtail and is laying mostly flat (antenna standing upright of course). =\> medium problems (~once a month)

---

<div class="post-metadata">

**Author:** ![jamesUS](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/j/5fc32e/32.png) [@jamesUS](https://www.thethingsnetwork.org/forum/u/jamesUS)\
**Post date:** [May 9, 2016, 8:28am UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027/11 "2016-05-09T08:28:38Z")

</div>

Maybe it would be worth making some kind of script that runs

> sudo service restart ttn-gateway

once in a while

---

<div class="post-metadata">

**Author:** ![gonzalo](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/gonzalo/32/40499_2.png) [@gonzalo](https://www.thethingsnetwork.org/forum/u/gonzalo)\
**Post date:** [May 16, 2016, 3:56pm UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027/12 "2016-05-16T15:56:09Z")

</div>

I think it is possible to configure auto restart directly on the `systemd` service file with something like:

```auto
[Service]
-Restart=on-failure
+Restart=always
+Type=notify
+WatchdogSec=604800

```

But I’d like to find out more about the root cause of this before going this route.

Cheers

---

<div class="post-metadata">

**Author:** ![melvin](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/m/77aa72/32.png) [@melvin](https://www.thethingsnetwork.org/forum/u/melvin)\
**Post date:** [May 18, 2016, 7:12pm UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027/13 "2016-05-18T19:12:17Z")

</div>

The aluminum box helped quite a lot, but did not solve the problem. Uptime in the (RF-noisy) office went up from several hours to several days. For now cron restarts the ttn-gateway service (which resets the iC880a) every night.

> [@gonzalocasas](#):
>
> But I’d like to find out more about the root cause of this before going this route.

Me too! Has anyone contacted IMST yet?

---

<div class="post-metadata">

**Author:** ![Batilan](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/batilan/32/38420_2.png) [@Batilan](https://www.thethingsnetwork.org/forum/u/Batilan)\
**Post date:** [May 18, 2016, 9:28pm UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027/14 "2016-05-18T21:28:22Z")

</div>

> [@melvin](#):
>
> Has anyone contacted IMST yet?

I did send a mail to the personal mail address of one of the people I had contact with before but did not yet receive a reply. I just sent a message via the contact form in the hope they will reply.

I wonder how it is with the Lorank8 gateways as they are based on the same board AFAIK. Anyone?

---

<div class="post-metadata">

**Author:** ![telkamp](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/telkamp/32/35697_2.png) [@telkamp](https://www.thethingsnetwork.org/forum/u/telkamp)\
**Post date:** [May 19, 2016, 7:12am UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027/15 "2016-05-19T07:12:21Z")

</div>

> [@Batilan](#):
>
> I wonder how it is with the Lorank8 gateways as they are based on the same board AFAIK. Anyone?

The Lorank8 uses the same IMST hardware, and does not have this problem at all. The software is the same as well.

The differences are BaegleBone vs Raspberry, and a (passive) PCB between the BeagleBone and the IMST board.

---

<div class="post-metadata">

**Author:** ![Batilan](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/batilan/32/38420_2.png) [@Batilan](https://www.thethingsnetwork.org/forum/u/Batilan)\
**Post date:** [May 19, 2016, 7:28am UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027/16 "2016-05-19T07:28:20Z")

</div>

> [@Thomas](#):
>
> The differences are BaegleBone vs Raspberry, and a (passive) PCB between the BeagleBone and the IMST board.

Thanks Thomas. Could it be “flaky connections” due to using jumper wires instead of proper soldering or using real headers. However then I wouldn’t expect restarting only the software fixes it (although it does reset the iMST board, so maybe that does the trick). Also people use these jumper wires for lots of other prototypes successfully, so it seems unlikely to me (but with RF you never know ;-))

---

<div class="post-metadata">

**Author:** ![Batilan](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/batilan/32/38420_2.png) [@Batilan](https://www.thethingsnetwork.org/forum/u/Batilan)\
**Post date:** [May 19, 2016, 11:28am UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027/17 "2016-05-19T11:28:30Z")

</div>

Got a reply from iMST:

_Thanks for your Email._

_Sometimes, customers had problems when catching an impulse on the reset line._

_So iC880A is reset and linux host is still running._

_We have started a long term test with several iC880A-USB to reproduce this problem._

_We will keep you informed about the results._

_For the further communication please use our Ticket System:_

_[https://wireless-solutions.de/support/](https://wireless-solutions.de/support/)_

_This is more easy to handle for us._

_Best Regards,_

_Heinz_

Note that I am using the SPI version

---

<div class="post-metadata">

**Author:** ![JeroenB](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jeroenb/32/48515_2.png) [@JeroenB](https://www.thethingsnetwork.org/forum/u/JeroenB)\
**Post date:** [May 19, 2016, 5:47pm UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027/18 "2016-05-19T17:47:30Z")

</div>

I the beginning i had allot of problems, the gateway stops working after a few hours.  
Then i build it into an old router case, which solves allmost all problems, but an sporadic hangup is always possible.  
I hope iMST can find the cause of this problem !

![](https://www.thethingsnetwork.org/forum/uploads/default/original/2X/d/dc6a7cb15d85ed3130853dab3de7ca00ab930005.png)

---

<div class="post-metadata">

**Author:** ![mihaim](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/mihaim/32/2867_2.png) [@mihaim](https://www.thethingsnetwork.org/forum/u/mihaim)\
**Post date:** [May 20, 2016, 10:41pm UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027/19 "2016-05-20T22:41:54Z")

</div>

> [@Thomas](#):
>
> … and a (passive) PCB between the BeagleBone and the IMST board.

1. Would it be possible to get the drawings of that in-between PCB ? - I’d like to take a look - I “suspect” it does the shielding between the 880 and the MCU.
2. Also using shielded, mono microphone-style cables for connecting the 880 to the Pi (signal cables CLK, MISO, MOSI, NSS and RESET) should help (gut-feeling). This means soldering pins … can be a bit tedious. Shields go to the signal GND (not power GND) on the Pi side and are left unconnected at the 880 end.
3. SSTP Cat6a Cables can also be used. 2 cables are necessary (because each cable has 4 pairs of wires shielded by pair, and we will use only **ONE wire in each pair** - [see this image](https://www.thethingsnetwork.org/forum/uploads/default/original/2X/3/3c70d0aaed036cc519edcf63ce3b3c6d6169a250.png)). One cable will carry CLK, MISO, MOSI and NSS, for example, and the other RESET and 3 left unused. Again, shields and ALL unused core wires go to the GND on the Pi side and left unconnected on the 880 side.

---

<div class="post-metadata">

**Author:** ![IoT\_Marco](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/iot_marco/32/45432_2.png) [@IoT\_Marco](https://www.thethingsnetwork.org/forum/u/IoT_Marco)\
**Post date:** [May 21, 2016, 8:30am UTC](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027/20 "2016-05-21T08:30:46Z")

</div>

In the earlier days, when we were active on the radio band we built something like this:

\<img src="/forum/uploads/default/original/2X/4/47ffb293730ba431eeeacf99d7e18d8edba7da43.jpg" width=“690” height=“459”  
Cheap 2-layer pcb, excellent shielding!

[Next page](https://www.thethingsnetwork.org/forum/t/imst-ic880a-rpi-gateway-hangs-every-few-weeks/2027.md?page=2)
