I am working on a project where i need to communicate with a number of LIN bus devices. These will all be put together to create a functional dash The devices include a drive mode switch, a lighting control switch and the HVAC controller. The devices are all built by Audi/VW (though come from a range of cars). The key point...I do not have access to the original cars, so i cannot sniff the various lin buses. That would make life too easy. I'm left with trying to hack and decode each device individually.
I've started with the drive mode switch and have a basic lin bus library on a Mega. Since there are essentially only 60 possible addresses, I was able to quickly find its ID. (11 if anyone else was wondering about the Aventador drive mode switch). There are two bits in the data from ID 11 that represent when the drive mode up and down buttons are pushed.
Now for the hard part....
I have 3 leds on the device that I need to control. I believe that these would be controlled by 3 separate pwm values that I must (continually?) send to the device. But what else is needed? Does anyone have any thoughts or insight on how to determine what id and data is needed to control the leds?
....I tried sending random data slowly through all addresses in the hope that I'd stumble on to the correct address, but no luck yet. Doing a bit by bit trial could take years, so it's not an option.