Skip to content

New monitor

vaclavstepan edited this page Mar 16, 2017 · 11 revisions

External services

GPS daemon

  • Description: Available as system service, automatically started on boot.

Gammu GSM modem service

  • Description: Handles sending and receiving SMS using the GPRS modem.
  • Note: Available as system service, automatically started on boot.

SMS can be injected into the queue by: gammu-smsd-inject TEXT +420777642401 -text "All your base are belong to us"

This approach does not handle modem shutdown.

More elegant would be to use python-gammu library as interface, described here.

TODO: Save Candy data

  • Description: Record data from ttyUSB3 into file.

TODO: Still imager service

  • Description: Save recorded still images from secondary camera
  • On start: Start loop, where in each iteration a free disk space is checked and images is saved from the camera.
  • On status: Report OK if images are being saved, ERROR if it can not be.
  • On stop: Abort the recording process gracefully.

Status:

If video recording is in progress, fswebcam image capture fails:

odroid@balon:~/git/balon/fik2$ fswebcam 
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
Adjusting resolution from 384x288 to 320x240.
Error starting stream.
VIDIOC_STREAMON: No space left on device
Unable to use mmap. Using read instead.
Unable to use read.

Reason for this is overload of the USB bandwidth.

Video recording service

  • Description: Save recorded video from C920 to disk, in one file per run.

Done:

fik2/vlc_file.sh records video into date-time.avi on the SD card, about ~1.2 GB/hour.

Todo:

  • Implement restart on failure.