Skip to content

cellular-tracking-technologies/station-update-patch-v1

Repository files navigation

Update Scripts for CTT Sensor Station v1

station-lte-modem.sh

station-supersim-update.sh

station-2g-modem.sh

  • use the on board 2g modem

station-checkin.sh

  • runs a python script to check into the server

station-rtlsdr.sh

  • installs software to enable RTL-SDR support on the SensorGnome software

station-health-checkins.sh

  • installs (writes) a python script that checks into our server backend with voltage information every hour
  • writes a bash script that calls the python script - used in the cronjob
  • checks if a cronjob exists that calls the bash script - if it does not exist: add the script to run at 51 minutes after the hour
  • runs the script to checkin at the time update is applied

station-lcd-update.sh

  • enable i2c0 bus if not enabled in /boot/config.txt
  • copies LCD python driver code to /home/pi/ctt/ as base 64
  • decode base64 file to tar.bz2 file
  • decompress compressed archive
  • delete compressed file / base64 file
  • daemonize LCD driver as systemd script station-lcd.service
  • enable on boot; restart driver on crash;
  • reboot if i2c0 bus was modified or enabled

station-shut-2g-modem-off.sh

  • this shuts off the 2G modem which may cause issues when operating in certain network conditions

manage systemd script

sudo systemctl [start|stop|restart|status] station-lcd

view station lcd log

journalct -u station-lcd

About

Update patches for the original V1 CTT Sensor Station

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages