birdie1 / victron

Victron bluetooth and serial communication at a python script. With MQTT and HomeAssistant support.
GNU General Public License v3.0
123 stars 16 forks source link

Unreliable serial Connection #18

Open fti7 opened 2 years ago

fti7 commented 2 years ago

Hi,

my read out is very unreliable Its an Smartsolar 75/15 connected via the original ve.direct USB Cable to an Raspberry pi Zero (1 and 2)

It throws Errors like:

[WARNING] (2022-07-01 11:28:46) victron_smartsolar.py::58 smartsolar2: H2c
PID not found in mapping dictionary
[WARNING] (2022-07-01 11:28:51) victron_smartsolar.py::58 smartsolar2: LOAD not found in mapping dictionary
[WARNING] (2022-07-01 11:28:51) victron_smartsolar.py::58 smartsolar2: Mr
PID not found in mapping dictionary
[WARNING] (2022-07-01 11:28:51) victron_smartsolar.py::58 smartsolar2: H2T
PID not found in mapping dictionary
[WARNING] (2022-07-01 11:28:51) victron_smartsolar.py::58 smartsolar2: H2c
PID not found in mapping dictionary

Looks like Serial protocol parsing issues. Does anyone experience similar issues?

Also ive noticed that the vedirect Lib is unmaintained. There are at least 2 Forks:

https://github.com/karioja/vedirect (original) https://github.com/nznobody/vedirect (micropython only?) https://github.com/jmfife/vedirect (incompatible?) any plans to support one of these?

Thx

birdie1 commented 2 years ago

Hi, do you always have this problem, or does it come and go? If you receive the warning, do you still get the other values or no values at all?

I don't know if the micropython version is compatible and I don't have access to my victron devices right now. I hope I will be able to check that end of august.

Regards

birdie1 commented 1 year ago

I updated today the serial part of the code, as I had also problem with some values. This could fix your issues as well. Please try...