# Installing a script

**URL:** <https://forums.balena.io/t/installing-a-script/349960>\
**Category:** balenaOS\
**Tags:** raspberrypi3\
**Created:** [November 4, 2021, 8:36pm UTC](https://forums.balena.io/t/installing-a-script/349960 "2021-11-04T20:36:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![HaSch](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/hasch/32/6992_2.png) [@HaSch](https://forums.balena.io/u/HaSch)\
**Post date:** [November 4, 2021, 8:36pm UTC](https://forums.balena.io/t/installing-a-script/349960/1 "2021-11-04T20:36:35Z")

</div>

Hello,

I’m new to Balena and very confused about many new issues.  
I successful migrated a TTN V2 Gateway with RPi3 and an IMST iC880A concentrator to TTS V3 and tried to reinstall the same behavior I had before. I use a ch2i-hat for the Pi which can address four LEDs on GPIO 4, 18, 23 and 24 and I am unable to do. I need a little help to get it work with BalenaOS.

The Pi has a USV attached that safely shut down the Pi on power cut. It is controlled by a little routine (piusvmonitor) that need to be installed in BalenaOS. How can I do it?

BR,  
Hans

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [December 20, 2021, 2:56pm UTC](https://forums.balena.io/t/installing-a-script/349960/2 "2021-12-20T14:56:42Z")

</div>

Hello @HaSch first of all apologizes for the long delay answering your question! Did you finally succeed migrating your gateway from TTNv2 to TTNv3?

I don’t have a LoRa concentrator IMST iC880A, having said that, usually the problem it is on the `RESET GPIO` and it depends on the hat/adapter you are using to connect the iC880A to the Raspberry Pi.

If the loRa concentrator is not properly reset before stablishing the connection via SPI it will probably fail (`concentrator not found`).

Check as well what GPIO is using the “old packet forwarder”, if it’s Gonzalo Casas’ backplane it uses `GPIO25` (physical pin #22).

Let me know if that works!

---

<div class="post-metadata">

**Author:** ![HaSch](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/hasch/32/6992_2.png) [@HaSch](https://forums.balena.io/u/HaSch)\
**Post date:** [December 20, 2021, 4:04pm UTC](https://forums.balena.io/t/installing-a-script/349960/3 "2021-12-20T16:04:34Z")

</div>

I succeeded migrating the TTNv2 gateway to TTNv3 but NOT using Balena. As I tried Balena I succeeded too, but NOT with the same behavior as before. Therefore I used another way. If it were possible to get the LEDs, sensors and the PiUSV working in Balena I would switch back.

---

<div class="post-metadata">

**Author:** ![danthegoodman1](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@danthegoodman1](https://forums.balena.io/u/danthegoodman1)\
**Post date:** [December 23, 2021, 4:36pm UTC](https://forums.balena.io/t/installing-a-script/349960/4 "2021-12-23T16:36:59Z")

</div>

Hi @hasch what was your alternative? RPi3 should have no issues with the LED, but I am guessing that TTN could possibly be using something specific to an OS for accessing the LEDs, rather than something that is cross-OS.

---

<div class="post-metadata">

**Author:** ![HaSch](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/hasch/32/6992_2.png) [@HaSch](https://forums.balena.io/u/HaSch)\
**Post date:** [December 23, 2021, 6:37pm UTC](https://forums.balena.io/t/installing-a-script/349960/7 "2021-12-23T18:37:53Z")

</div>

Hi @danthegoodman1 I made it with [this](https://github.com/ch2i/LoraGW-Setup) repo.

---

<div class="post-metadata">

**Author:** ![rahul-thakoor](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@rahul-thakoor](https://forums.balena.io/u/rahul-thakoor)\
**Post date:** [March 23, 2022, 1:29pm UTC](https://forums.balena.io/t/installing-a-script/349960/11 "2022-03-23T13:29:01Z")

</div>

Hello

> If it were possible to get the LEDs, sensors and the PiUSV working in Balena I would switch back.

Can you please provide more details showcasing how this is failing on balenaOS? some logs would be helpful. Thanks

---

<div class="post-metadata">

**Author:** ![HaSch](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/hasch/32/6992_2.png) [@HaSch](https://forums.balena.io/u/HaSch)\
**Post date:** [March 24, 2022, 4:19pm UTC](https://forums.balena.io/t/installing-a-script/349960/13 "2022-03-24T16:19:51Z")

</div>

Unfortunately it isn‘t possible to send that informations because the gateway us running NOT using Balena. Sorry.
