Intervalometerator
Intervalometerator copied to clipboard
With a faulty/missing RTC, the Arduino sends bad data to the Pi
This is what the Arduino sends to the Pi if the RTC is faulty - or missing:
[2022-07-19 03:30:04 +1000] [429] [DEBUG] GET /getTime
[2022-07-19 03:30:05 +1000] [429] [DEBUG] ASCII = 48
[2022-07-19 03:30:05 +1000] [429] [DEBUG] Status received was: >20000000<
[2022-07-19 03:30:05 +1000] [429] [DEBUG] Exception in getArduinoDate: time data '20000000' does not match format '%Y%m%d'
[2022-07-19 03:30:05 +1000] [429] [DEBUG] ASCII = 49
[2022-07-19 03:30:05 +1000] [429] [DEBUG] Status received was: >000000<
TODO: Detect this in the Pi and flash an error to the user.
Same here:
[2023-09-25 14:17:40 +1000] [448] [DEBUG] ASCII = 53
[2023-09-25 14:17:40 +1000] [448] [DEBUG] Status received was String: >255255<
$FF came from the EEPROM, which indicates an empty/unused memory location. This needs to be trapped in the Arduino.
It should look like this:
[2023-12-10 10:03:38 +1100] [537] [DEBUG] ASCII = 53
[2023-12-10 10:03:38 +1100] [537] [DEBUG] Status received was String: >2510<