Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
For now I've cut the CAN bus and inserted https://github.com/mck1117/proteus in the middle - that's the black box on the photo - this way I can Lua script what packets to let through and what packets to substitute with my version of the payload. Since rusEFI would not have the proper torque model I would have to come up with some approximation of torque to have the TCU somewhat happy.
The default man-in-the-middle Lua script looks like this - https://github.com/rusefi/rusefi/blob/master/firmware/controllers/lua/examples/man-in-the-middle.txt
Luckily for me there is a lot of data to build on top - there is https://mdac.com.au/2021/04/11/dsg-control-with-rabbit-ecu/ article, there is https://github.com/RabbitECUProject/RabbitECUTeensyMCUXpresso/blob/main/source/Client/DIAG.c source code of how RabbitECU solved the same problem, and there is a https://github.com/commaai/opendbc/blob/master/vw_golf_mk4.dbc
Luckily for me there is a lot of data to build on top - there is https://mdac.com.au/2021/04/11/dsg-control-with-rabbit-ecu/ article, there is https://github.com/RabbitECUProject/RabbitECUTeensyMCUXpresso/blob/main/source/Client/DIAG.c source code of how RabbitECU solved the same problem, and there is a https://github.com/commaai/opendbc/blob/master/vw_golf_mk4.dbc