pez-globo / pufferfish-software

All software for the Pufferfish ventilator.
Apache License 2.0
0 stars 1 forks source link

`pgpiod` build and service autostart. #187

Closed Tanmay06 closed 4 years ago

Tanmay06 commented 4 years ago

The new rotary encoder driver is built upon pigpio, which requires pigpiod daemon running in background. The deployment process needs to build the daemon during installation process and start the daemon before the backend. This issue is related to PR #184, and issue #176.

ethanjli commented 4 years ago

Would it work fine to install pigpiod using sudo apt-get install pigpio rather than downloading and building it ourselves?

Tanmay06 commented 4 years ago

I haven't tested it. I'll test it tomorrow and update it in this thread.

Tanmay06 commented 4 years ago

I guess sudo apt-get install pigpio is the right way to go. On pigpio's repo they've mentioned that pigpio is currently experimental for RPi 4 , so there is a huge chance of pigpios latest release breaking our deployment process. Furthermore, I've discovered that pigpio is pre-installed on the RPi OS version that we are using, minimizing the need to reinstall it during deployment. However, adding sudo apt-get install pigpio to deployment process will ensure that the daemon is present in the system irrespective of the OS.