skpang / Teensy32_LIN-bus_master_send_demo

MIT License
3 stars 1 forks source link

LIN 2.X compatibility #1

Open hugovw1976 opened 5 years ago

hugovw1976 commented 5 years ago

Hi, I try to control a Bosch Wiper motor http://www.bosch-motorsport.de/content/downloads/Raceparts/en-GB/50954635117964683.html#/Tabs=50966027/ without success, after some research I found this code send the lin bus message for Lin protocol 1.x and the motor I want to controll is Lin 2.x. I only change code in lin-bus.cpp line 17 from: uint8_t cksum = dataChecksum(data,data_size,0); to: uint8_t cksum = dataChecksum(data,data_size,addrbyte); Maybe this help some one with similar problem.

diegorivera commented 3 years ago

Man, you saved me hours of research. Thanks!