06-21-2024 10:31 AM
Hi community,
I'm having trouble initializing CAN-FD hardware on a test system. I have the DUT connected to a PCAN device and an XNET-9860 transceiver. In the first image below you can see communication as received by each device. PCAN explorer sees all regular traffic and it sees a UDS command/response I sent (highlighted in green). XNET bus monitor sees the UDS command/response pair (so I know the XNET device is working and communicating) and it sees ERROR frames but it does not see the regular traffic...
...I was able to configure the PCAN device with the following settings...
...but when I go to configure the XNET device I don't know how to map the settings to XNET...
...If I set TSEG1 and TSEG2 to match PCAN my baud rate changes, etc. I can't get the NI settings to match.
How do I translate the PCAN settings to match? Is there a better way to do this?
12-12-2024 01:42 PM
Did you end up figuring this out? I have the same question - I have settings that work with PCAN, and I'm trying to figure out how to properly set the custom baud rate for my XNET device to work the same.
03-06-2025 09:46 AM
I did receive an answer, the main problem I was having was that my PCAN hardware was set at 80MHz, it *should* have been set at 40MHz.
NI hardware is also 40MHz, once I had the frequencies correct everything else mapped 1:1
03-06-2025 10:57 AM
Custom baud rate settings can be a bit of a pain sometimes. Here is a VI NI posted a while ago which will show you the compatible timing settings, given a baud and sample point. And yes as you have discovered this assumes the 40MHz timing that I think NI typically uses.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord