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

Single serial port object #99

Merged
merged 4 commits into from
Mar 9, 2022
Merged

Conversation

CaptKrisp
Copy link
Contributor

Implement single serial port object for all reads during refresh_data instead of multiple open/close for each data set read.
This results in a notably faster refresh_data processing and reduced read errors.
Currently implemented for daly only as I do not have other BMS available for testing.
It was noted during testing that reading too many data sets in each cycle (by combining data set reads into less poll steps), of those found in the poll_step logic, would cause invalid data returned (but have not yet isolated which data sets have this issue). So at this time they remain as separate reads.

User configurable options:
-TimeToSoC points
-TimeToSoC update frequency (loop cycles)
-TimeToSoC display of negative time when moving away from SoC points
-TimeToSoC display format of seconds or time string or both
-Battery Cell data format
Removed import of timedelta
Implement single serial port object for all reads during refresh_data instead of multiple open/close for each data set read.
This results in a notably faster refresh_data processing and reduced read errors.
Currently implemented for daly only as I do not have other BMS available for testing.
It was noted during testing that reading too many data sets in each cycle (by combining data set reads into less poll steps), of those found in the poll_step logic, would cause invalid data returned (but have not yet isolated which data sets have this issue). So at this time they remain as separate reads.
@Louisvdw Louisvdw merged commit a2d218f into Louisvdw:TimeToSoc Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants