I’ve tried to make it as generic as possible.


For roadster, SW1 is #2 and S1 is off.

It is exposed to the ESP32 as an async port, at 3.3v levels. But the transceiver handles the bus at 5v or 12v. It works with K-line, and should also work with LIN, if required. EGPIO8 is used to enabled/disable the transceiver (normally disabled).

Regards, Mark.

P.S. Circuit schematic attached.