Skip to content

Configure Raspberry Pi to Run Logger and Web Flasher Simultaneously #587

Description

@ManushPatell

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions