CAN Decoder Program

PURPOSE - The CAN Decoder program is for use with Norm's CAN-View product on a Toyota Prius. Once you capture CAN data from CAN-View's serial port you need a way to decode it.

HOW IT WORKS - This program converts a binary file of RAW CAN data to a CSV text file that can be loaded into a spreadsheet program such as Excel. It searches for recognizable CAN data packets and decodes particular data bytes within those packets. Decoding it based on information provided by Attila's spreadsheet and Norm's web page. Graphs can then be created in Excel to examine certain parameters from the captured CAN data. The program converts data into more useful units when those are known (ie: it converts SOC from a 1/2% count into a decimal percentage)

USAGE - The program has no user interface (hey - you get what you pay for). It simply looks for a file called test_raw.bin in the folder where the program is running, reads the binary data from that file and creates a file called test_raw.csv in the same folder. Each time you want to run it with a different data file you must put the data file into the folder with the executable, rename it test_raw.bin and then run the program. (Not very convenient, but not that hard either)

The following options may be specified on the command line if the program is started from a .bat file or from DOS command prompt. If you want to see all the CAN packets in hex, for example, use the -d switch and redirect the stderr output to a file (ie: "CAN_decoder -d 2> decode.log") Here are the command line options:

COLLECTING DATA - Click here to learn how to collect the CAN data from CAN-View into a binary data file suitable for using as input to this program.

DOWNLOAD (updated May 17, 2006)

CSV FILE - The columns in the CSV file contain the following items (this may change as new versions are released) You can download a sample file produced by the program taken from actually driving the Prius.

Acronyms

CAN Decoder / 06-04-23 / mggm.net / webmaster@mggm.net