pez-globo / pufferfish-software

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

Add deployment script to set up the MAX3231 RTC #395

Closed ethanjli closed 3 years ago

ethanjli commented 3 years ago

This PR fixes #199.

ethanjli commented 3 years ago

I've tested this from a fresh RPi image, where I skipped running install.sh and instead only ran deploy/scripts/rtc_setup.sh twice (including a scripted reboot in the middle), disabled Wi-Fi, and then shut down the RPi for several minutes and then booted up the RPi; it successfully received the time from the MAX3231 RTC module.

@rohanpurohit Do you have a MAX3231 module at your end? If not, @renjipanicker do you know if Bharat Forge has one? I believe @hongquanli sent some to Bharat Forge.

rohanpurohit commented 3 years ago

I've tested this from a fresh RPi image, where I skipped running install.sh and instead only ran deploy/scripts/rtc_setup.sh twice (including a scripted reboot in the middle), disabled Wi-Fi, and then shut down the RPi for several minutes and then booted up the RPi; it successfully received the time from the MAX3231 RTC module.

@rohanpurohit Do you have a MAX3231 module at your end? If not, @renjipanicker do you know if Bharat Forge has one? I believe @hongquanli sent some to Bharat Forge.

No, I don't @ethanjli, and even if Bharat forge has it, we don't know if/when we'll get it! so maybe it's best if you can merge it and we can test once we get it?

ethanjli commented 3 years ago

Ok - I will merge this without approval, and we can create an issue for it later if there are any problems.

For records-keeping:

  1. This project is licensed under Apache License v2.0 for any software, and Solderpad Hardware License v2.1 for any hardware - do you agree that your contributions to this project will be under these licenses, too? Yes
  2. Were any of these contributions also part of work you did for an employer or a client? No
  3. Does this work include, or is it based on, any third-party work which you did not create? No