Closed gratjetost closed 2 months ago
Thank you for your feedback, I guess the ECU-C is not compatible with the way this integration works. Some years ago I placed wireshark between the ECU-R and ecu.apsystemsema.com to have insight in how the communication works. The ECU-C might function differently. Since I do not own an ECU-C I can't replicate issues. We might have to wait for other ECU-C owners for experiences or you will have to investigate how communication works. Sorry about this, I didn't expect it to fail.
I'm one step further: looks like ECU-C is communication on socket port 9001, 9002 and 9003 now have to figure out what it sends with wireshark.
Fri Aug 23 11:47:07 2024 [262328]
TCP 192.168.1.206:36961 --> 3.67.1.32:9001 | A (0)
Fri Aug 23 11:47:07 2024 [262652]
TCP 192.168.1.206:36961 --> 3.67.1.32:9001 | A (0)
Fri Aug 23 11:47:07 2024 [266061]
TCP 192.168.1.206:36961 --> 3.67.1.32:9001 | AP (529)
.......1/+.8..K.*`....F.........;$#.....j.Sz|.n..RT...j.....KL.N...".n..w..v.v....2-~.(k.`...Z.1....x.....r...)...iM|:^...|..>^-.w................{d..0`..}.........pD..Q=...,k.k..D.....r/.s.i{}JrJk.h?Z..".NY;KM..c.BO....b...=.bp... B.[.....B.;Y...H...}?*....qB.^.\...%.0.a)F...'uU.+....E......^q.i.l...+ED..a..g.=..Q.Z..v..Bw....\.....R'..r..H...D.....fM...(.......f[,.C.L..>...}#G.4.p...>.=
p...5a..}A.......7w..[.$hU..N-.O..\^T........*...jvR.d..+F?..KoNl......... D.........g....G.c..w......y..iQO.(.5...3SHHk\J..%t...p
It now shows some logs in the debug: but with errors:
2024-08-23 17:56:59.685 DEBUG (MainThread) [custom_components.apsystems_ecu_proxy.api] Connected clients: 1
2024-08-23 17:56:59.687 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Exception error with 'utf-8' codec can't decode byte 0x9c in position 11: invalid start byte
2024-08-23 17:57:29.695 DEBUG (MainThread) [custom_components.apsystems_ecu_proxy.api] Client disconnected
2024-08-23 18:18:23.605 DEBUG (MainThread) [custom_components.apsystems_ecu_proxy.api] Connected clients: 1
2024-08-23 18:18:23.606 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Exception error with 'utf-8' codec can't decode byte 0x93 in position 11: invalid start byte
2024-08-23 18:18:53.612 DEBUG (MainThread) [custom_components.apsystems_ecu_proxy.api] Client disconnected
2024-08-23 18:19:05.604 DEBUG (MainThread) [custom_components.apsystems_ecu_proxy.api] Connected clients: 1
2024-08-23 18:19:08.772 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Exception error with 'utf-8' codec can't decode byte 0xa8 in position 12: invalid start byte
Data still not getting passed to EMA
Because of the exception error the code will stop and not upload data to EMA.
In api.py modify line 102 in message = data.decode('utf-8').strip()
and see what happens. Add a line before 102 _LOGGER.warning("message = %s", message)
to see what data it holds. Then the checksum must also be adapted... -1 must be deleted probably.
Dont think my programming skills are good enough probably the checksum part. Don't see the raw data only a warming.
2024-08-24 09:11:31.250 DEBUG (MainThread) [custom_components.apsystems_ecu_proxy.api] Connected clients: 1
2024-08-24 09:11:31.514 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Exception error with cannot access local variable 'message' where it is not associated with a value
api.py:
Even if I disable the whole checksum part. # before every line. I get the same messages in the log. But still can't see the raw data.
My bad, message is defined in the next line. Line 101 must be placed behind 102 (on 103)
swapped the line 101 to 103. disabled the whole checksum. Still it doens't look like its displaying the raw data.
2024-08-24 10:12:33.424 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Exception error with 'utf-8' codec can't decode byte 0xa3 in position 11: invalid start byte
2024-08-24 10:15:00.244 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Exception error with 'utf-8' codec can't decode byte 0xb3 in position 11: invalid start byte
2024-08-24 10:15:42.422 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Exception error with 'utf-8' codec can't decode byte 0xff in position 12: invalid start byte
2024-08-24 10:16:27.473 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Exception error with 'utf-8' codec can't decode byte 0xee in position 11: invalid continuation byte
Data can be either ISO-8859-1 or latin-1 encoded but to make sure I get to see how the received data looks like, just do _LOGGER.warning("Data = %s", data)
2024-08-25 13:41:51.781 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Data = b"\x16\x03\x01\x01 \x01\x00\x01\x1c\x03\x03\xe8\xa93\xf3|\x84\xc8&\xf7:7\xbe\xa3aM\xf1h\x7fu\xfcQ\xa3\xd4\xdc 8\xc0\xc4\xac\x16\x18C p\xed\xdc\xfb\xfe:L\x16x\xac/\x1d\x0c\x01]\xad\x1au [cE\xc1\xeeAMA\xc8\x83eC\x85\x00>\x13\x02\x13\x03\x13\x01\xc0,\xc00\x00\x9f\xcc\xa9\xcc\xa8\xcc\xaa\xc0+\xc0/\x00\x9e\xc0$\xc0(\x00k\xc0#\xc0'\x00g\xc0\n\xc0\x14\x009\xc0\t\xc0\x13\x003\x00\x9d\x00\x9c\x00=\x00<\x005\x00/\x00\xff\x01\x00\x00\x95\x00\x0b\x00\x04\x03\x00\x01\x02\x00\n\x00\x0c\x00\n\x00\x1d\x00\x17\x00\x1e\x00\x19\x00\x18\x00#\x00\x00\x00\x16\x00\x00\x00\x17\x00\x00\x00\r\x000\x00.\x04\x03\x05\x03\x06\x03\x08\x07\x08\x08\x08\t\x08\n\x08\x0b\x08\x04\x08\x05\x08\x06\x04\x01\x05\x01\x06\x01\x03\x03\x02\x03\x03\x01\x02\x01\x03\x02\x02\x02\x04\x02\x05\x02\x06\x02\x00+\x00\t\x08\x03\x04\x03\x03\x03\x02\x03\x01\x00-\x00\x02\x01\x01\x003\x00&\x00$\x00\x1d\x00 U \xb00\xf7K\x04\x08\xd8\xb9\xbf\xb2\x99\xdf\x94\x90\xd5Gv\xb8\x00\x05\x9ek\x12\x16\x1f\x1a2\xdc\x99)"
2024-08-25 13:41:51.789 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Exception error with 'utf-8' codec can't decode bytes in position 11-12: invalid continuation byte
2024-08-25 13:42:21.796 DEBUG (MainThread) [custom_components.apsystems_ecu_proxy.api] Client disconnected
2024-08-25 13:42:33.805 DEBUG (MainThread) [custom_components.apsystems_ecu_proxy.api] Connected clients: 1
2024-08-25 13:42:33.849 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Data = b"\x16\x03\x01\x01 \x01\x00\x01\x1c\x03\x03&\x9a\xde\xe1z\x9bB\x17\x91\\sR4\x0e\xda\x16\x8a\tSCJ\x8f{\xa2P\xbbV\x8c\xdb\xf1\xa0\x13 \x93\xc8\xfck,\xb3\x85\xdd\xc3\xa5\x91\xb0\xa18,\xb8\x93\xa7c\x8e\xd4\xd7\xd7\x90v\xd1V\t\x04z\x17\xac\x00>\x13\x02\x13\x03\x13\x01\xc0,\xc00\x00\x9f\xcc\xa9\xcc\xa8\xcc\xaa\xc0+\xc0/\x00\x9e\xc0$\xc0(\x00k\xc0#\xc0'\x00g\xc0\n\xc0\x14\x009\xc0\t\xc0\x13\x003\x00\x9d\x00\x9c\x00=\x00<\x005\x00/\x00\xff\x01\x00\x00\x95\x00\x0b\x00\x04\x03\x00\x01\x02\x00\n\x00\x0c\x00\n\x00\x1d\x00\x17\x00\x1e\x00\x19\x00\x18\x00#\x00\x00\x00\x16\x00\x00\x00\x17\x00\x00\x00\r\x000\x00.\x04\x03\x05\x03\x06\x03\x08\x07\x08\x08\x08\t\x08\n\x08\x0b\x08\x04\x08\x05\x08\x06\x04\x01\x05\x01\x06\x01\x03\x03\x02\x03\x03\x01\x02\x01\x03\x02\x02\x02\x04\x02\x05\x02\x06\x02\x00+\x00\t\x08\x03\x04\x03\x03\x03\x02\x03\x01\x00-\x00\x02\x01\x01\x003\x00&\x00$\x00\x1d\x00 ;\x0c\x8d\xe0\xc9\x81\xb2\x8em\xb6\x0f\xbf\\\xa3F+\x8c\xab\x17?h\xf7\x10~\xc6\r\x9f\xb31\xc41H"
2024-08-25 13:42:33.849 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Exception error with 'utf-8' codec can't decode byte 0x9a in position 12: invalid start byte
2024-08-25 13:43:03.837 DEBUG (MainThread) [custom_components.apsystems_ecu_proxy.api] Client disconnected
2024-08-25 13:43:15.885 DEBUG (MainThread) [custom_components.apsystems_ecu_proxy.api] Connected clients: 1
2024-08-25 13:43:15.924 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Data = b"\x16\x03\x01\x01 \x01\x00\x01\x1c\x03\x03\x8cigc\xbf\xf5-\xe7E\xc2\xac\xebUz\xe8\x88zQ\x96\x93\x16\xa4\xe3M&\xc5\x87\xf3\xdezc\xc9 1\xd4{\xb8\x1f\xcb2\x11\x142=<\xab\x03\x92\x11&\xf6\x06@3\xa1{B\xe6!\xcb\x92\xf4F-\x88\x00>\x13\x02\x13\x03\x13\x01\xc0,\xc00\x00\x9f\xcc\xa9\xcc\xa8\xcc\xaa\xc0+\xc0/\x00\x9e\xc0$\xc0(\x00k\xc0#\xc0'\x00g\xc0\n\xc0\x14\x009\xc0\t\xc0\x13\x003\x00\x9d\x00\x9c\x00=\x00<\x005\x00/\x00\xff\x01\x00\x00\x95\x00\x0b\x00\x04\x03\x00\x01\x02\x00\n\x00\x0c\x00\n\x00\x1d\x00\x17\x00\x1e\x00\x19\x00\x18\x00#\x00\x00\x00\x16\x00\x00\x00\x17\x00\x00\x00\r\x000\x00.\x04\x03\x05\x03\x06\x03\x08\x07\x08\x08\x08\t\x08\n\x08\x0b\x08\x04\x08\x05\x08\x06\x04\x01\x05\x01\x06\x01\x03\x03\x02\x03\x03\x01\x02\x01\x03\x02\x02\x02\x04\x02\x05\x02\x06\x02\x00+\x00\t\x08\x03\x04\x03\x03\x03\x02\x03\x01\x00-\x00\x02\x01\x01\x003\x00&\x00$\x00\x1d\x00 J\x04\xd2\x82\xe30\x84.\xb1\x85KQ\x8cA\xc6\x95\xb6\xa7YC\xcc\x15\xc0\xd7V\xe0B\xb3\xd9yH\x16"
2024-08-25 13:43:15.925 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Exception error with 'utf-8' codec can't decode byte 0x8c in position 11: invalid start byte
2024-08-25 13:43:45.917 DEBUG (MainThread) [custom_components.apsystems_ecu_proxy.api] Client disconnected
2024-08-25 13:43:57.953 DEBUG (MainThread) [custom_components.apsystems_ecu_proxy.api] Connected clients: 1
2024-08-25 13:43:57.984 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Data = b"\x16\x03\x01\x01 \x01\x00\x01\x1c\x03\x03\xb2\xf6\xb9Q`\xda\x03\xe0O8\xf3\xb8Z \xa9\x13\xbfz\x84\xdb\xcfm\xf43DSr\xea|3<\xab \xe3,\xc5\xff\xff\xa6\x87\x7fzT\x9b\x84\x90PK]\xd0\xb1\xa0x\xcf\xc9}\x80\xf4\x13\x91\x9d\xdf\x81\xe08\x00>\x13\x02\x13\x03\x13\x01\xc0,\xc00\x00\x9f\xcc\xa9\xcc\xa8\xcc\xaa\xc0+\xc0/\x00\x9e\xc0$\xc0(\x00k\xc0#\xc0'\x00g\xc0\n\xc0\x14\x009\xc0\t\xc0\x13\x003\x00\x9d\x00\x9c\x00=\x00<\x005\x00/\x00\xff\x01\x00\x00\x95\x00\x0b\x00\x04\x03\x00\x01\x02\x00\n\x00\x0c\x00\n\x00\x1d\x00\x17\x00\x1e\x00\x19\x00\x18\x00#\x00\x00\x00\x16\x00\x00\x00\x17\x00\x00\x00\r\x000\x00.\x04\x03\x05\x03\x06\x03\x08\x07\x08\x08\x08\t\x08\n\x08\x0b\x08\x04\x08\x05\x08\x06\x04\x01\x05\x01\x06\x01\x03\x03\x02\x03\x03\x01\x02\x01\x03\x02\x02\x02\x04\x02\x05\x02\x06\x02\x00+\x00\t\x08\x03\x04\x03\x03\x03\x02\x03\x01\x00-\x00\x02\x01\x01\x003\x00&\x00$\x00\x1d\x00 \xbcv\t'\xca7\x86\x1c<\xb2\xd2\x1e,\x7f\xa6z\xaa\xe1\xbdq~U\xd1\xd9B\xb7\xdbm\xa7\xdb\x9b]"
2024-08-25 13:43:57.984 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Exception error with 'utf-8' codec can't decode byte 0xb2 in position 11: invalid start byte
2024-08-25 13:44:28.980 DEBUG (MainThread) [custom_components.apsystems_ecu_proxy.api] Client disconnected
2024-08-25 13:44:39.978 DEBUG (MainThread) [custom_components.apsystems_ecu_proxy.api] Connected clients: 1
2024-08-25 13:44:40.002 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Data = b"\x16\x03\x01\x01 \x01\x00\x01\x1c\x03\x03\xa9\xb3\x82\x8f7\x1c\xf8\xce\xc0\xf3%QF=\x96\x97\x87\xde\xb1\xb5\xa1*t\x96\xad\xf4\xa1\x97\x8b~7\xe3 \xa8\xb9O\xf3\xe7%\xcbW\xa7\xbf\xfa\x91\xa3\xd8\x1e}x8NY\xa3\x9ea\xa6\xb6c\x9ez\x98\x13\x1b\x99\x00>\x13\x02\x13\x03\x13\x01\xc0,\xc00\x00\x9f\xcc\xa9\xcc\xa8\xcc\xaa\xc0+\xc0/\x00\x9e\xc0$\xc0(\x00k\xc0#\xc0'\x00g\xc0\n\xc0\x14\x009\xc0\t\xc0\x13\x003\x00\x9d\x00\x9c\x00=\x00<\x005\x00/\x00\xff\x01\x00\x00\x95\x00\x0b\x00\x04\x03\x00\x01\x02\x00\n\x00\x0c\x00\n\x00\x1d\x00\x17\x00\x1e\x00\x19\x00\x18\x00#\x00\x00\x00\x16\x00\x00\x00\x17\x00\x00\x00\r\x000\x00.\x04\x03\x05\x03\x06\x03\x08\x07\x08\x08\x08\t\x08\n\x08\x0b\x08\x04\x08\x05\x08\x06\x04\x01\x05\x01\x06\x01\x03\x03\x02\x03\x03\x01\x02\x01\x03\x02\x02\x02\x04\x02\x05\x02\x06\x02\x00+\x00\t\x08\x03\x04\x03\x03\x03\x02\x03\x01\x00-\x00\x02\x01\x01\x003\x00&\x00$\x00\x1d\x00 \ru\xf3\x92b\x8ar\xa6v}A\x95\xab\xc5:\x90M\x12\x05+!\x9fV\xebq\x9cH\x1b\xc9>\x00q"
2024-08-25 13:44:40.003 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Exception error with 'utf-8' codec can't decode byte 0xa9 in position 11: invalid start byte
2024-08-25 13:45:10.012 DEBUG (MainThread) [custom_components.apsystems_ecu_proxy.api] Client disconnected
2024-08-25 13:45:22.129 DEBUG (MainThread) [custom_components.apsystems_ecu_proxy.api] Connected clients: 1
2024-08-25 13:45:22.130 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Data = b"\x16\x03\x01\x01 \x01\x00\x01\x1c\x03\x03e\xa2\x1f\xc5&\x9c\\U2\x97xc`/o\x84\x92\xa4\x04\x03RIr_,:\xe85U\xc7T, \xca\xb7\x14>\xab\xb7H\x14\xb9\xab\xc1,!\x07\xa4e\xe3\r0\x8bV\xb2\x9c*\x1c$R\x89\x82\xd8\x8c\x86\x00>\x13\x02\x13\x03\x13\x01\xc0,\xc00\x00\x9f\xcc\xa9\xcc\xa8\xcc\xaa\xc0+\xc0/\x00\x9e\xc0$\xc0(\x00k\xc0#\xc0'\x00g\xc0\n\xc0\x14\x009\xc0\t\xc0\x13\x003\x00\x9d\x00\x9c\x00=\x00<\x005\x00/\x00\xff\x01\x00\x00\x95\x00\x0b\x00\x04\x03\x00\x01\x02\x00\n\x00\x0c\x00\n\x00\x1d\x00\x17\x00\x1e\x00\x19\x00\x18\x00#\x00\x00\x00\x16\x00\x00\x00\x17\x00\x00\x00\r\x000\x00.\x04\x03\x05\x03\x06\x03\x08\x07\x08\x08\x08\t\x08\n\x08\x0b\x08\x04\x08\x05\x08\x06\x04\x01\x05\x01\x06\x01\x03\x03\x02\x03\x03\x01\x02\x01\x03\x02\x02\x02\x04\x02\x05\x02\x06\x02\x00+\x00\t\x08\x03\x04\x03\x03\x03\x02\x03\x01\x00-\x00\x02\x01\x01\x003\x00&\x00$\x00\x1d\x00 w\xc8\xe6\xc6\xf0\xf3=D\xe0\xc5\xef\x7fA\xc6jeh\xaf\xf8x\xf5\xb1\xd9\xf8\xe7\x01\x84\xea\xd8%\xa3J"
2024-08-25 13:45:22.130 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Exception error with 'utf-8' codec can't decode byte 0xa2 in position 12: invalid start byte
2024-08-25 13:45:52.195 DEBUG (MainThread) [custom_components.apsystems_ecu_proxy.api] Client disconnected
2024-08-25 13:46:04.085 DEBUG (MainThread) [custom_components.apsystems_ecu_proxy.api] Connected clients: 1
2024-08-25 13:46:04.147 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Data = b'\x16\x03\x01\x01 \x01\x00\x01\x1c\x03\x03\xd9\xb9Z\xb9\xc2;\xca:P\xd1$`\x9e;\xe8n\xa0\xf5\x9d \xbb\xc2\x17L\xfcM\x9cM\x04Jx f\x18\t;\x94\xda\xa0\x8e\x92-[\x1ecM\x8c]zV\xa8\xfc6\xf8\x9a\xd0x\n"\xc4\xb8OY\x95\x00>\x13\x02\x13\x03\x13\x01\xc0,\xc00\x00\x9f\xcc\xa9\xcc\xa8\xcc\xaa\xc0+\xc0/\x00\x9e\xc0$\xc0(\x00k\xc0#\xc0\'\x00g\xc0\n\xc0\x14\x009\xc0\t\xc0\x13\x003\x00\x9d\x00\x9c\x00=\x00<\x005\x00/\x00\xff\x01\x00\x00\x95\x00\x0b\x00\x04\x03\x00\x01\x02\x00\n\x00\x0c\x00\n\x00\x1d\x00\x17\x00\x1e\x00\x19\x00\x18\x00#\x00\x00\x00\x16\x00\x00\x00\x17\x00\x00\x00\r\x000\x00.\x04\x03\x05\x03\x06\x03\x08\x07\x08\x08\x08\t\x08\n\x08\x0b\x08\x04\x08\x05\x08\x06\x04\x01\x05\x01\x06\x01\x03\x03\x02\x03\x03\x01\x02\x01\x03\x02\x02\x02\x04\x02\x05\x02\x06\x02\x00+\x00\t\x08\x03\x04\x03\x03\x03\x02\x03\x01\x00-\x00\x02\x01\x01\x003\x00&\x00$\x00\x1d\x00 \xb7dZ<\xea\x9f\xe3\x7fG<\x04\xb8\xf1\xefM\x88\xdb\x12\x16\x12\x88\xafCB\xb1\xfa5_\'\x96\xae\x11'
2024-08-25 13:46:04.148 WARNING (MainThread) [custom_components.apsystems_ecu_proxy.api] Exception error with 'utf-8' codec can't decode byte 0xb9 in position 14: invalid start byte
2024-08-25 13:46:34.118 DEBUG (MainThread) [custom_components.apsystems_ecu_proxy.api] Client disconnected
When I decode this, nothing comes out. This differs a lot from what I expected so I might as well say the integration is not compatible with the ECU-C unfortunately...
For now this issue will be closed, concluded that this integration is not compatible with the ECU-C.
I tried this integration for my ECU-C. ECU-ID 215*** But its not doing anything. Tried rewriting the DNS with PiHole and Adguard Home. After 10-20 minutes there is still "No devices or entities". enabled the debug logging, but nothing is in there. When I reload or disable/enable the integration something pops up in the debug log:
in const.py SEND_TO_EMA is TRUE. and EMA_HOST = "3.67.1.32"