Hello Rob,
Above all, I would like to know if you are referring to AdderD last example updates in the CAN library.
If not, I would recommend you to download his zip file (see reply #118 in this thread).
What I understand from you question is that you need a kind of CAN traffic reader or so.
I believe AdderD can answer better your question but what I know from a CAN node as receiver independent from ID
is that, at least, you have to set the following parameters:
1. Controller: You have to chose controller 0 or 1 as receiver.
2. Protocol: You have to chose Standard or Extended.
3. Baud rate: You have to chose the kBit/s of the emitter.
Examples 1-3 work in standard mode and example 4 in extended.
In reference to the ISO definition: Our CAN library implemented for Arduino Due is defined under ISO/11898A (2.0 Part A and 2.0 Part B) standards for high speeds and ISO/11519-2 for low speeds. The standard you mentioned (SAE J1939) is equivalent to ISO 11992, thus, I need to check if that definition works. I.E. in my personal case, I have a Honda Odyssey that uses ISO 14230-4, ISO 9141-2 (also called K-line protocol) that sadly doesn't work with the library.
Just one note to think. Even though SAE J1939 includes CAN 2.0b, also defines higher layers (above the Physical and Data Link layers), that in my opinion, lie beyond the reach of the CAN here.
Hello AdderD,
Any ideas? Thank you.