10-01-2024 06:01 PM
Hello,
I am using NI XNET USB 8502 and Bus monitor to communicate with microcontroller. I was able to send and receive messages but getting error frames now
Getting bus off stage when I try to send message from bus monitor.
Getting error frames along with messages when I try to receive message
Receive messages on Bus monitor:
Bus statistics page for Transmitting message:
Bus statistics page for CAN transmit message:
Solved! Go to Solution.
10-01-2024 07:11 PM
According to Special Frames, you are encountering with Stuff Error. This is usually caused by improper termination. My CAN Device is Failing to Communicate or is Inconsistent at High Baud Rates
Make sure your CAN network is terminated at both ends. Or you can enable the termination in USB-8502.
10-02-2024 10:45 AM
I have 120ohm termination and also I have enabled termination in XNET bus monitor
From Bus monitor end, I am able to receive Data frame along with Error frame but getting bus off stage when I try to transmit.
10-02-2024 06:01 PM
It is odd to see stuff bit error with the slow baud rate of 125kBaud.
Do you have another CAN adapter like PCAN-USB or Kvaser USB CAN to test if the CAN communication of your microcontroller is working correctly?
10-03-2024 12:01 PM
The problem was with my XNET 8502 device, and it was resolved after replacing the device. With the same settings, I'm now able to send and receive messages successfully.
It's surprising that the device failed so suddenly