04-08-2019 12:43 AM
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?
04-09-2019 12:53 AM
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.
04-09-2019 01:42 AM
Thanks for your help!
04-09-2019 01:56 AM
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.
04-09-2019 02:16 AM
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?
04-09-2019 02:27 AM
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.
04-09-2019 03:26 AM
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?
04-09-2019 03:35 AM
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.
05-06-2019 09:54 PM
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.
05-10-2019 01:47 AM
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.