Closed virtualdj closed 5 months ago
Is the V5 frame contains invalid sequence number error related to the concurrency of the different clients? If yes, is it by design, provided that they are using a different IP? So, is this a limitation of the stick?
Yes, it is a concurrency problem caused by the limitations of the stick. The latter broadcasts the repspones to all connected clients. Try to update directly from Github as the main branch already has patches in this regard.
I also noticed, with the same inverter and without any concurrency, that if I ask a quantity greater than 60 I always get a umodbus.client.serial.redundancy_check.CRCError: CRC validation failed exception.
No expirience with Sofar, but this looks like a limitation of the inverter. The protocol allows up to 125 registers per request.
Thanks for the answer; I'll close the issue as it was meant to be only a question.
Hi, I'm using your wonderful library with a Sofar/ZCS HYD5000 HP with a Wi-Fi USB stick with firmware LSW3_15_270A_1.68 and serial number starting with 29.
My Python test script is very basic and based on your example:
When running that code I sometimes get the error
V5FrameError: V5 frame contains invalid sequence number
:But when running the same code again, without any change, one or two times I eventually get the data back:
I'm running this on a PC, while I have another Home Assistant instance on another PC that queries the same inverter with your library once a minute.
Is the V5 frame contains invalid sequence number error related to the concurrency of the different clients? If yes, is it by design, provided that they are using a different IP? So, is this a limitation of the stick?
I also noticed, with the same inverter and without any concurrency, that if I ask a quantity greater than 60 I always get a
umodbus.client.serial.redundancy_check.CRCError: CRC validation failed
exception. As I'm able to workaround by doing multiple calls, I'm just asking if this is something that happens to your devices, too.