From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Acknowledging CAN signals with USB-8502/2 and XNET

Solved!
Go to solution

Hello,

 

I have a device which acts as a master on a LIN network, and converts the signals to both CAN and RS-232. 

 

The RS-232 signals are being read fine by the dedicated software on the computer.

 

However, the NI-XNET bus monitor only shows the first CAN signal transmitted and none after that. I am told the reason is that the CAN card has not acknowledged (ack) the signal and therefore an error is generated and this frame is repeatedly tried. 

 

Please let me know if you know how to resolve this issue.

0 Kudos
Message 1 of 3
(3,563 Views)
Solution
Accepted by topic author CM6666

In the bus monitor settings, "Listen Only" mode will control whether or not incoming frames will be acknowledged by the chosen CAN interface. If "Listen Only" mode is checked, the selected interface will not issue an acknowledgement.

 

You can also check the "Bus Error Frames" box to see a frame with ID = 0x0 whose payload indicates the type of errors detected. Byte 3 (zero based) indicates the type of error with 0x3 being an Ack error or lack of acknowledgement. Additional details on special frames can be found here.

Jeff L
National Instruments
Message 2 of 3
(3,530 Views)

Many thanks Jeff, it was indeed in "Listen Only" mode, so after changing that it is working perfectly.

0 Kudos
Message 3 of 3
(3,522 Views)