CAN-Bus Data Capture with Wireshark on Raspberry Pi

20/11/2014

This project shows you how to setup Wireshark for use with the PiCAN board to capture data on the Raspberry Pi.

Install the CAN drivers according to this:

http://skpang.co.uk/blog/archives/1165

Make sure the command line candump works first.

Install Wireshark

sudo apt-get install wireshark

Bring up the CAN interface and start the GUI.

sudo su
ip link set can0 up type can bitrate 500000
startx

Start Wireshark, the icon is under “Other”.

 

Select the 1. “can0″ interface then click the 2. “Start a new live capture” icon.

Ensure the PiCAN is connected to an active CAN line you should see data like this:

The above capture shows a CAN ID of 7DF. Data 02 01 05 – coolant temperature request. A reply of 03 41 05 86

 

TODO:

It would be nice if Wireshark can decode a list of PIDs.

Parts List

 

 

Short URL:

Tags: , , ,

One Response to CAN-Bus Data Capture with Wireshark on Raspberry Pi

  1. [...] SK Pang electronics. This project shows you how to setup Wireshark for use with the PiCAN board to capture data on the [...]

Leave a Reply

Your email address will not be published. Required fields are marked *

*