01-29-2020 01:55 PM
Guys,
Do you know if USB powered XNET devices (i.e NI 8502) require CAN ground (COM) to be connected? Or just CAN_H and CAN_L? The reason I ask this is because I'm troubleshooting a system and I want to use an NI 8502 as a monitor but I only see CAN error frames in the XNET bus monitor. I know this is a LabVIEW forum, but I wanted to get your thoughts.
Thanks!
01-29-2020 02:03 PM
not necessarily need ground. unless you are providing power over the db9.
Error Frames, usually are with regards to:
01-29-2020 02:10 PM
I have received high speed and CAN FD frames on a 8502 that only had CAN-H and CAN-L connected. Sorry, the problem must be some where else. Is the CAN lines to the proper CAN 2.0 spec of two 120 Ohm resistors on the bus one at each end, and no node comes off of the bus by more than 15cm (or something)? Does the sample point need to be adjusted?
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
01-29-2020 03:06 PM
Found the issue!
Here’s what was going on: I got a system that is using CANoe and a CAN case (1640A) with a CAN FD transceiver. Systems settings: Baud rate 500K, FD data rate 2M. So, I set those parameters in the XNET bus monitor. But as I mentioned I only got error frames while reading the bus.
I read Sam’s reply (thank you Sam) and I checked all connections again, checked my impedance on both ends of the bus and all seem to be OK.
Solution:
Within CANoe if you open the settings of your hardware you will not see all the transceiver settings in the general page (that's what I missed), you must go to the full setup category:
Inside the setup make sure to check out the Sample Point (%) setting. You need to match that parameters for both Baud Rate and Data Phase in the XNET monitor as well:
And the only way to do that is by setting a custom Baud and Data date from the drop-down list (not by default). If you’re setting this via the XNET driver then make sure to check this KB:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019LvUSAU&l=en-US
That's it! Hope you find this useful if you ever want to match CAN settings with Vector tools.
01-29-2020 03:12 PM - edited 01-29-2020 03:12 PM
Hey Brian,
I hoped your message had arrived earlier. That was my issue. The Sample Point %.
01-29-2020 03:19 PM
Yeah we recently had issues with that too. I wanted a UI where a user could type in the baud and sample point and have XNet take care of it. With the help from some at NI you can calculate that custom baud hex value given that information:
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
01-29-2020 03:23 PM
Another fun thing about NI and CAN FD is that for VeriStand you must use the decimal version of the Custom Baudrate to configure CAN FD. Note: These are not the same values but examples of where I am talking about for reference.
Not completely on the topic but another gotcha with NI and CAN FD.
01-29-2020 05:02 PM
Good information guys.
Thanks. Hope to see you in our next UGM.
02-18-2020 08:44 AM
The good news is that CAN FD is now natively supported in VeriStand 2019