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

Fixing my JK BMS RS485 issue. #508

Merged
merged 1 commit into from
Aug 18, 2024

Conversation

lukolszewski
Copy link
Contributor

This is to fix the issue described by my comment here #506 (comment) also a continuation of this issue #112

It appears to be working fine for me.

The change adds a new serialio called jkserialio. The only difference from serialio is that instead of waiting for a CR it now waits for a specific byte sequence 68 00 00 XX XX (last 2 bytes are the CRC so can be anything). A better approach would be to process frame header and extract length info, but this was quicker to implement.

@jblance
Copy link
Owner

jblance commented Aug 18, 2024

thanks for the contribution - not sure if this is needed (as dalyserial would solve the issue) or generic enough but i dont see it hurting (and mppsolar is a bit of a mess of bits anyway)

@jblance jblance merged commit cf71b6a into jblance:master Aug 18, 2024
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