phev-remote / phevctl

41 stars 15 forks source link

Further protocol reversing - XOR algorithm #20

Open zivillian opened 2 years ago

zivillian commented 2 years ago

I started to look into the protocol and could need some help with logs to find the nasty details of the currently unknown XOR algorithm and registration process - I've posted all the details at buxtronix/phev2mqtt#16 maybe someone want's to join...

buxtronix commented 2 years ago

zivillian@ successfully reverse engineered this part of the protocol, and I have implemented it within phev2mqtt, see https://github.com/buxtronix/phev2mqtt/commit/3db6f8370ae9f62f987f2260b96ed5cae32838ac

Perhaps phev-remote can implement the algorithm also? In my tests with phev-remote I noticed that the XOR encoding issues lead to a lot of stuck requests and similar, but now we know how it works it could be improved.