You could preload an image with an application container so you have the container running without internet access:
If you don’t want to do this from the container, this can be done from hostOS.
If your modem is supported by our OS then you should only add a systemd script that toggles the GPIO and udev + ModemManager should take care of connecting.
To add a systemd service to your board you could use multiple methods.
Remount your board’s fs as RW:
mount -o remount,rw
Add your systemd service that toggles the GPIOS in the
Enable your service with:
systemctl enable your_service_name
- you need to do this manually for every board
- if you do hostOS updates you will lose your service
Clone our RPi repo and build your own OS where you add a package into the build that contains your systemd service
- some Yocto know-how is needed, but not very complicated
Pay Balena for custom device type and we will maintain an image for your board.