BusPirate / Bus_Pirate

Community driven firmware and hardware for Bus Pirate version 3 and 4
625 stars 130 forks source link

LIN protocol support #101

Open whitelynx opened 6 years ago

whitelynx commented 6 years ago

Related to issue #14 in the old Google Code repo.

I could use this for troubleshooting a broken IKEA Bekant desk, which uses LIN.

whitelynx commented 6 years ago

Quote from the original issue:

I originally thought LIN was just UART over a single wire with a transceiver, but it also has some special characters and auto baud rates (I believe). I have yet to find public domain LIN code in C to include in the project. I'm going to remove myself as the owner, but leave the project as 'started'.

I found a couple of LIN libraries, but they're both Arduino-related:

Would it make sense to grab one of these and port it?

agatti commented 6 years ago

Wouldn't LIN support be tied to a particular transceiver model, then? I mean, initialisation sequences, modes set-up, and so on aren't standardised across transceivers as far as I know. I suspect your best bet for now would be to use the binary I/O scripting support and try to implement transceiver communication on top of this - if there is anything that is not available in the interface that is mandatory to get it working, then let us know and we'll see what can be done for it!