Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With a faulty/missing RTC, the Arduino sends bad data to the Pi #122

Open
greiginsydney opened this issue Jul 19, 2022 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@greiginsydney
Copy link
Owner

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.

@greiginsydney greiginsydney added the enhancement New feature or request label Jul 19, 2022
@greiginsydney greiginsydney self-assigned this Jul 19, 2022
@greiginsydney
Copy link
Owner Author

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<

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant