Closed tannercollin closed 3 years ago
Update:
If I skip the initial query command and go straight to the inverter query it seems to work:
inverter data cmd: APS1100280002216200005100END
raw inverter data: b'APS11023900020001\x00\n !\x06\x03\x18\x13\x08@\x90\x00\x197\x12\x0101\x02X\x00\x90\x00\x92\x00\xf2\x00\x94\x00\xf2@\x90\x00\x194\x99\x0101\x02X\x00\x97\x00\x8f\x00\xf3\x00\x8f\x00\xf3@\x90\x00\x19@U\x0101\x02X\x00\x90\x00\x8f\x00\xf3\x00\x00\x00\xf3@\x90\x00\x19B\x05\x0101\x02X\x00\x91\x00\x8f\x00\xf2\x00\x8f\x00\xf2@\x90\x00\x19@d\x0101\x02X\x00\x97\x00\x8d\x00\xf3\x00\x8e\x00\xf3@\x90\x00\x10b\x06\x0101\x02X\x00\x97\x00\x91\x00\xf2\x00\x8e\x00\xf2@\x90\x00\x10I\x85\x0101\x02X\x00\x91\x00\x8e\x00\xf3\x00\x8f\x00\xf3@\x90\x00\x10a\x89\x0101\x02X\x00\x95\x00\x91\x00\xf3\x00\x8f\x00\xf3@\x90\x00\x10\x91w\x0101\x02X\x00\x8f\x00\x93\x00\xf2\x00\x90\x00\xf2@\x90\x00\x10\x91y\x0101\x02X\x00\x93\x00\x94\x00\xf2\x00\x91\x00\xf2END\n'
If I close and open the socket before each query, everything seems fine.
Hi, I am receiving an empty response when I query the ECU's inverters when running
query_ecu()
. Here's the output with some data I've added:Sometimes I get "Connection reset by peer":
I'm also running
APSystems-ECU-proxy-for-cloudless-operation
and it believes that it has internet connection. I had to adjust the script a bit to get it working:It's sending messages like these every 3 seconds to
ecu.apsema.com
:Any idea what's wrong? Thanks!