covidcommander
Member
- Thread starter
- #1
Wondering if anyone has had any luck using wireshark to log the can bus?
Sponsored
I'm trying to add an adaptive cruise control system to my car. The sensor has 2 can buses I'm just not sure which is which or if the sensor works. I wanted to hook up power and ground and see if it starts talking. Hoping that will let me figure out which can bus its talking on.I'm familiar with wireshark and used it a lot with Ethernet but not can bus.
What's the problem?
Well, here's what I know. First you'll need a canbus-to-USB adapter to link the device to the CAN-high and CAN-low wires. Install the adapter driver, then Wireshark should be able to use that driver and be set to read the raw canbus data.I'm trying to add an adaptive cruise control system to my car. The sensor has 2 can buses I'm just not sure which is which or if the sensor works. I wanted to hook up power and ground and see if it starts talking. Hoping that will let me figure out which can bus its talking on.
The wiring diagrams don't really tell me much. Trying to figure another way to figure this out. I have a feeling based on the wiring diagrams there's a private bus between the sensor and the forward facing camera on 1 bus and the other bus is talking to various modules like the bcm and abs systems.
Thought wireshark night help.
New to this.
Sure does. I got this canbus adapter...Well, here's what I know. First you'll need a canbus-to-USB adapter to link the device to the CAN-high and CAN-low wires. Install the adapter driver, then Wireshark should be able to use that driver and be set to read the raw canbus data.
This won't be in human readable format but you'll be able to tell if you're seeing canbus traffic. To read the traffic you'll need a translation file (multiple ones apparently exist) and can be uploaded into Wireshark. I've never used them and don't know how good the translation is. But any detail it provides is better than raw.
One thing that I'm not sure of is that the available canbus-to-USB adapters appear to have vastly different prices and I'm not sure why. Ranging from about $18 for a basic board with wire connectors, to around $125 or so with serial ports, to $300+ for an ODB-II connector to USB. I'm not sure what each of those get you other than maybe the convenience of the ODB-II connector.
I do know that vehicles (and devices) often have multiple canbus, operating at different speeds for different purposes and/or isolation. So your feeling that there is a private bus is likely correct. If the devices on that bus don't need to talk to any vehicle device, like a front sensor to a controller box, it's very wise to keep that data isolated on its own private canbus to eliminate any possibility of an unexpected interaction or network congestion.
Hope that helps.