Skip to content

App for controlling the USB modems plugged into the Raspberry Pi

License

Notifications You must be signed in to change notification settings

TheCacophonyProject/modemd

Folders and files

NameName
Last commit message
Last commit date
Oct 1, 2024
Sep 30, 2024
Oct 15, 2024
Oct 2, 2024
May 24, 2024
Jun 6, 2023
Aug 15, 2023
Oct 1, 2024
May 15, 2019
Jan 12, 2020
Sep 30, 2024
Sep 30, 2024

Repository files navigation

modemd

modemd together with modemd.connrequester control how the Raspberry Pi on the Thermal Camera accesses the internet. If the wifi is working then that will be used. If not then the USB modem plugged into the Raspberry Pi will be turned on.

Project modemd
Platform Thermal camera (Raspbian)
Requires
Build Status Build Status
Licence GNU General Public License v3.0

Instructions

Download and install the latest release from Github. Then restart the device.

Development Instructions

Follow our go instructions to download and build this project.

Using modemd in an application

  1. Make sure that modemd is running on your thermal-camera
  2. Import "github.com/TheCacophonyProject/modemd/connrequester" into your go file
  3. Before each time your application needs to access the internet do the following:
	cr := connrequester.NewConnectionRequester()
	log.Println("requesting internet connection")
	cr.Start()
	cr.WaitUntilUpLoop(connectionTimeout, connectionRetryInterval, -1)
	log.Println("internet connection made")
	defer cr.Stop()

On some devices the USB modem only remains on for a short period after each connrequester call, so it is important to do this everytime.

Releases

Releases are created using travis and git and saved on Github. Follow our release instructions to create a new release.