Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

XNET support CAN and CAN-FD in the same interface


Hello

Could I use XNET to send CAN and CAN FD on the same interface at the same time? I tried to create cluster for CAN and another cluster for CAN FD. When running the VI, the error code is  –1074384742. And the error means "Error –1074384742/0xBFF6309A is generated when trying to use different clusters on the same interface." Do you have any method to send CAN and CAN FD on the same interface at the same time?

0 Kudos
Message 1 of 11
(4,925 Views)

Hi,

Regarding the error, I found this Error –1074384742 in XNET

This forum shows how to setup to use CAN FD: https://forums.ni.com/t5/Automotive-and-Embedded-Networks/XNET-CAN-FD-write-payload-length/m-p/38682...

And there are different types of CAN-FD, ISO and non ISO: http://zone.ni.com/reference/en-XX/help/372841L-01/nixnet/canfdisoversusnoniso/

Help on using CAN-FD ISO Mode: http://zone.ni.com/reference/en-XX/help/372841L-01/nixnet/canfdisoversusnoniso/

I don't think you can use CAN and CAN FD at the same time because they have

different frame styles, as seen in this link.  You can only have the port configured as one of the two I/O modes at any time, so you cannot output both CAN and CAN FD at the same time.  The Frame type is controlled by the XNET database. You can switch between the two modes by closing the session and creating a new one using a different database.  This will make it very difficult to receive information from the other nodes.

It is possible to convert a CAN HS database to a CAN FD database.  This is controlled by the I/O Mode drop down box in the XNET Database Editor.

0 Kudos
Message 2 of 11
(4,906 Views)

Thanks for your help!

0 Kudos
Message 3 of 11
(4,899 Views)

If you create a CAN FD session you can transmit CAN or CAN FD frames in it.

1. In a frame stream session set the type of the transmitted frame to CAN 2.0

2. In a signal session set the I/O mode of the frame in the database editor to CAN.

0 Kudos
Message 4 of 11
(4,894 Views)

Hello WaldemarM

I am not clear what you said.

First I create a frame stream session for CAN FD, then I can send the CAN FD frame. Then you told me in a signal session, do you mean I need to create a signal session?

Download All
0 Kudos
Message 5 of 11
(4,888 Views)

You can also send a CAN frame in the CAN FD session.

Just change the type of the frame in your VI. For every transmitted frame you can decide if it will be send as CAN 2.0 or CAN FD.

0 Kudos
Message 6 of 11
(4,886 Views)

I tried to change the type to CAN Data, but it was interpreted as CAN FD in canoe. Can I only change the data type to CAN 2.0?

0 Kudos
Message 7 of 11
(4,877 Views)

CAN Data type matches the type of the interface which is working in CAN FD mode in your VI. So it is correct that it will send a CAN FD frame. You have to use CAN 2.0 to send a non-FD frame.

0 Kudos
Message 8 of 11
(4,875 Views)

According to your advice, I tried to change the CAN FD data  to CAN 2.0 Data to send the non-FD frame. But it doesn't work. The frame in the CANoe is also been interpreted as the CAN FD frame.

0 Kudos
Message 9 of 11
(4,757 Views)

I'm sorry, but I have overlooked first that you try to use the non-ISO-mode. This is was the preliminary CAN-FD standard which has been replaced by the ISO CAN-FD. The abily to mix CAN 2.0 and CAN-FD is a new feature of ISO mode and is not supported by non-ISO.

Are you sure, you need the non-ISO mode? Most CAN-FD hardware nowadays use ISO.

0 Kudos
Message 10 of 11
(4,739 Views)