Post Go back to editing

How to connect CN0401 node to ValueCAN 4-2 or Kvaser Leaf v3 for CAN FD packets sending and receiving?

Thread Summary

The user encountered issues with CAN FD packets being received with CAN ID 0 and zero length when connecting a CN0401 demo setup to ValueCAN 4-2 or Kvaser Leaf v3. The solution involved setting the arbitration bitrate to 500 kbps and data bitrate to 1000 kbps on the external CAN FD devices, and configuring the tx_obj_header_str->ide to 1 for extended CAN ID transmission. However, the user noted that the CN0401 demo code does not explicitly support setting the receive filter for extended CAN IDs, leading to inconsistent reception of short messages.
AI Generated Content
Category: Hardware
Product Number: ADM3055E

We bought two  EVAL-ADM3055EARDZ and two EVAL-ADICUP3029, followed the instructions from

www.analog.com/.../CN0401.pdf

So far have successfully achieved the full CN0401 demo - to have the two CAN nodes talk to each other (as indicated https://www.analog.com/CN0401)

Then we started trying to connect one of this CAN node to ValueCAN 4-2 (or Kvaser Leaf v3), to emulate an engine to produce CAN FD packets, but stopped at first step:

from this CAN node, any messages transmitted through CAN, the far end (ValueCAN or Kvaser) received packets with CAN ID 0 but packets length were always 0.

Would you please suggest or provide any tips/tricks how to set the speed(assumed arbitration 500kbps and data 2Mbps), termination, and any heads up?

Thank you very much.

Mike

Parents Reply Children
  • Thank you Eric.

    I've looked through, and don't think settings in the struct can_ctrl_init_param could help.

    also tried to set some settings, e.g. set eid=1, sid11=1, in a send out header (tx_obj_header type struct), to enable extended sid, from the default CAN ID 0x300 to 0xB00, but Kvaser Leaf 3 side (based on canecho demo app) could not received any valid CAN packets, many packages were marked as 0 bytes and CAN ID are 0.

    Hopefully anyone with the experience could help.

    Thank you very much.

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.