This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CAN multi frame mesaages

Trying to find some example code for dealing with a multi-frame message exchange on a CAN bus.

As found on most cars.

  •  Can BUS frame is same as message, on examples exists single message send receive as multiple message send/receive.

     <TIVAWARE_BaseDiR>/examples/peripherals/can

     <TIVAWARE_BaseDiR>/examples/boards/dk-tm4c123g/can

     What are you searching for?

  • Hi, 

    If the data to be transfered is bigger than normal eight bytes, the result is multi-frame transmission. Such concept is used in CANopen standard implementation, but it is not free. A free alternative is openCAN, poster DanK made an implementation for Stellaris/Tiva And posted here. Don' t have the link at hand just now, but I will search and let you know.

    Petrei

    Edit: here it is the link: http://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/p/68824/797737.aspx#797737

  • thanks. will review the above link. 

    is it possible to declare an array of transmit or receive objects?

  • Hi, 

    The original CANopen standard support something called "segmented transfer" that allow data of any size to be transmitted. If the content does not fit into a single message, then it is automatically segmented and distributed via multiple messages.

    But this is the original. I did not checked if the free version comply with that - better to ask the author, he has a site.

    One note: if you intend to do/use such thing, and your module/product should be commercially released, then your product must comply with the standard and be verified by a third party. If it will be used internally, without any external other modules, that verification can be avoided.

    Petrei