Set up the Raspberry pi to run both the CAN logger (scripts/daq/logger.py) and the CanFlash tool (scripts/canflash) as independent systemd services that start on boot up and run in parallel.
I haven't checked the state of our CanFlash tool, however this configuration should not be affected by any future development.
Solution
Use systemd to manage both processes as services that:
- Auto-start on RPi boot
- Run in the background as independent processes
- Automatically restart if they crash
- Share the same CAN interface (can0, can1) without conflict
- Can be managed with standard systemctl commands
Files
Create two Service Flasher files: can-flasher.service, and can-logger.service
On the raspberry pi, enable and start these services so that they will enable on boot and start both immediately.
Set up the Raspberry pi to run both the CAN logger (
scripts/daq/logger.py) and the CanFlash tool (scripts/canflash) as independent systemd services that start on boot up and run in parallel.I haven't checked the state of our CanFlash tool, however this configuration should not be affected by any future development.
Solution
Use systemd to manage both processes as services that:
Files
Create two Service Flasher files: can-flasher.service, and can-logger.service
On the raspberry pi, enable and start these services so that they will enable on boot and start both immediately.