|
CAN programming help
This is probably a long shot but I thought I'd ask anyway.
I've been playing around with the Multiplex Engineering T16-014 OBD interface. It supports all the major protocols, CAN included. I wrote a simple Perl script to talk through the device using the ISO 9141 protocol for the standard OBD parameters.
Now I'd like to explore the CAN functions on the adapter. I've been googling around trying to learn about CAN. While I've come across some helpful resources I still have some pretty basic questions left unanswered, so I'll just start with the first:
Anybody understand how CAN masks and filters work? I understand the network is of the broadcast type and I imagine setting the mask and filter for a node on the network determines what messages it pulls from the bus, but how exactly are they used. Are they somehow applied to the SID/EID addresses of each CAN message?
BTW, all the stuff I'm doing is open source (Apache license), so any help I can get will I'm sure be appreciated by others as well.
|