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

US2000 Assertion Error #24

Open
jasonmadigan opened this issue Dec 18, 2022 · 1 comment
Open

US2000 Assertion Error #24

jasonmadigan opened this issue Dec 18, 2022 · 1 comment

Comments

@jasonmadigan
Copy link

Traceback (most recent call last):
  File "pylontech/pylontech.py", line 250, in <module>
    print(p.get_values_single(2))
  File "pylontech/pylontech.py", line 236, in get_values_single
    f = self.read_frame()
  File "pylontech/pylontech.py", line 186, in read_frame
    f = self._decode_hw_frame(raw_frame=raw_frame)
  File "pylontech/pylontech.py", line 167, in _decode_hw_frame
    assert got_frame_checksum == int(frame_chksum, 16)
AssertionError

Hooked up via instructions in readme. Dumping raw frames shows some data, but doesn't seem to decode:

b'\xb0\xf7\xf7\xf7\xf7w\xf7\xf7\xf7\xbf\xbf\xbf\xbf\xbf\xf7\xff\xbb\xbb\xef\x00~20024600C06E11020F0CA30CA50CA30CA30CA20CA40CA50CA30CA30CA50CA60CA50CA50CA50CA4050B0F0AF10AF10AF10AF10000BD9D157C02C3500283E517\r\x00'

it's a vanilla US2000, made in 2019

@petero-dk
Copy link

I sometimes see this error if I ask too quickly or if I accidentally have two processes asking at the same time on the same device.

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

No branches or pull requests

2 participants