Instead of designing and building my own daughter-board for the Chumby, I bought an EasySync CAN USB converter which only has one CAN interface [and its not worth buying two]. This means I will have to use the Mazda’s MS-CAN bus only [That’s where the fuel/trip computer information is]. Only one problem, I didn’t pay much attention to the MS-CAN bus before and the MS-CAN bus isn’t as interesting as the HS-CAN.
So new mission to find out what else is on the MS-CAN bus now. Problem is, the nature of the information on the MS-CAN is different to the HS-CAN. For example, something like Speed on the HS-CAN was pretty easy to decipher from just logging the data then plotting again. Trying to figure out ‘door open’ for example on the MS-CAN is a lot hard this way.
How it works
- A background PHP script talks to the EasySync converter and reads the CAN messages that is being sent on the bus and makes this available to another data retrieval PHP script via sessions.
- The XML is parsed and is rendered into a table for display, data is refreshed at periodic intervals.
- A keypress monitor allows the user to ‘reset’ the changed background colours.
- Code attached below if you want to peek at the mess…
How I used it
Basically sat in the car with the sniffer running and trying various combinations to see which bit/byte changed. e.g. Run sniffer, open a door, see message ‘433’ byte ‘0’ change colour, write down what changed, reset fields, open another door/do something else.
There were a few useful fields that I found/reconfirmed. Nothing too interesting though and alot is disappointing. For example there is information regarding headlight high beam being on, but not just normal headlights. I suppose that’s because the high beam is displayed on the instrument panel whilst normal headlights doesn’t display/do anything.
Another disappointing thing is that the ‘ass/arse sensor’ (that’s what I call the passenger seat detection gizmo) is only a boolean signal…no pressure sensing in it at all. Would have been useful if it was an analogue signal, could have been good for the mChumby display – “Warning, the girl on the passenger seat weighs 87kg, do not go on another date”.
I’ll be updating the new information to the Mazda CAN Bus page in the next couple of days… check back then to see what’s new.
Download cansniffer.zip (There’s still a bug with the timestamp I’m too lazy to fix… disclaimer this is hobby/crappy code :P)