Skip to content

brainiac27/cwa400_lin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

CWA400_LIN

LIN Example for CWA400

PID B0 B1 B2 B3 B4 B5 B6 B7
TX 0x26 RPM 0x00 CKSM
RX 0x25 RPM VLT TMP I B4 B5 B6 CKSM

Purpose

This python file describes requesting and sending data with a Pierburg CWA400 water pump over LIN. It's been confirmed to work with a OE BMW unit on a bench.

Method

Several functions are used to generate LIN-specific functions like the break pulse, PID parity bits, and enhanced checksum (LIN2.0). These are combined into an example program that sweeps through the RPM range and turns the pump off. Status data is logged to a local file for analysis. A USB-LIN adapter from embeddedProjects on Tindie is used to interface with a PC. Cheap TJA1020 breakout boards may work as well.

ToDo

Only some of the returned data bytes have been mapped to values. High confidence on Voltage, RPM, and temperature. Current (I) seems to track but at unconfirmed units. The final byte changes with the second byte of TX data but with no apparent functional changes.

About

LIN Example for CWA400

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages