Spanni26 / pyHPSU

Python Script to read and send commands to a Rotex HPSU
26 stars 15 forks source link

Getting lots of "msg not sync" messages #25

Closed adieball closed 5 years ago

adieball commented 5 years ago

Hi

running pyHPSU in background, I get a low of the following error messages:

pi@can:~ $ pyHPSU.py -a & [1] 651 pi@can:~ $ error - SEND:[49, 0, 250, 9, 32, 0, 0] error - RECV:bytearray(b' \n\x0c\x00\xf0\x00\x00') warning - msg not sync, retry: 1 error - SEND:[49, 0, 250, 193, 1] error - RECV:bytearray(b' \n\x0c\x00\xf0\x00\x00') warning - msg not sync, retry: 1 error - SEND:[49, 0, 250, 6, 108, 0, 0] error - RECV:bytearray(b'1\x00\xfa\xc0\xf6\x00\x00') warning - msg not sync, retry: 1 error - SEND:[49, 0, 250, 6, 108, 0, 0] error - RECV:bytearray(b'1\x00\xfa\xc0\xf7\x00\x00') warning - msg not sync, retry: 2 error - SEND:[49, 0, 250, 6, 108, 0, 0] error - RECV:bytearray(b'1\x00\xfa\xc0\xf8\x00\x00') warning - msg not sync, retry: 3 error - SEND:[49, 0, 250, 6, 108, 0, 0] error - RECV:bytearray(b'1\x00\xfa\xc0\xf9\x00\x00') warning - msg not sync, retry: 4 error - SEND:[49, 0, 250, 6, 108, 0, 0] error - RECV:bytearray(b'1\x00\xfa\xc0\xfa\x00\x00') warning - msg not sync, retry: 5 error - SEND:[49, 0, 250, 6, 108, 0, 0] error - RECV:bytearray(b'1\x00\xfa\xc0\xfb\x00\x00') warning - msg not sync, retry: 6 error - SEND:[49, 0, 250, 6, 108, 0, 0] error - RECV:bytearray(b'"\n\xfa\xc0\xf6\x00\x00') warning - msg not sync, retry: 7 error - SEND:[49, 0, 250, 6, 108, 0, 0] error - RECV:bytearray(b'"\n\xfa\xc0\xf7\x00\x00') warning - msg not sync, retry: 8 error - SEND:[49, 0, 250, 6, 108, 0, 0] error - RECV:bytearray(b'"\n\xfa\xc0\xf8\x00\x00') warning - msg not sync, retry: 9 error - SEND:[49, 0, 250, 6, 108, 0, 0] error - RECV:bytearray(b'"\n\xfa\xc0\xf9\x00\x00') warning - msg not sync, retry: 10 error - SEND:[49, 0, 250, 6, 108, 0, 0] error - RECV:bytearray(b'"\n\xfa\xc0\xfa\x00\x00') warning - msg not sync, retry: 11 error - SEND:[49, 0, 250, 6, 108, 0, 0] error - RECV:bytearray(b'"\n\xfa\xc0\xfb\x00d') warning - msg not sync, retry: 12 error - SEND:[49, 0, 250, 192, 255] error - RECV:bytearray(b'1\x00\xfa\xc0\xf6\x00\x00') warning - msg not sync, retry: 1 error - SEND:[49, 0, 250, 192, 249] error - RECV:bytearray(b'1\x00\xfa\xc0\xf7\x00\x00') warning - msg not sync, retry: 1 error - SEND:[49, 0, 250, 192, 249]

Spanni26 commented 5 years ago

What adapter are you useing?

adieball commented 5 years ago

Mqtt

Von meinem iPhone gesendet

Am 22.08.2019 um 08:32 schrieb Spanni26 notifications@github.com:

 What adapter are you useing?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Spanni26 commented 5 years ago

No :) How are you connected to the HPSU :)

adieball commented 5 years ago

Ups :-) PiCAN

Von meinem iPhone gesendet

Am 22.08.2019 um 09:42 schrieb Spanni26 notifications@github.com:

 No :) How are you connected to the HPSU :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Spanni26 commented 5 years ago

Hmmm. not bad, not terrible :) This messages comes up if a lot off values are queried at once. Sometimes the messages get out of the sended order. But I haven't figuered it out deeper.

adieball commented 5 years ago

ok, thanks