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: 

devicenet bus scanning

Is there a way to passively read traffic off of a devicenet bus using a PCI-CAN card and Labview 7.1? The bus would already have a master and multiple slaves, the thought was to somehow use the CAN card to sniff the network and log items of interest. Is this feasible or does the CAN card also act as a master?
0 Kudos
Message 1 of 4
(3,637 Views)
Sorry its a PCI-DNET card.
0 Kudos
Message 2 of 4
(3,635 Views)
Hi rm,

If you were using an NI-CAN card, you could easily run the CAN bus monitor to see what was being sent across the bus. Unfortunately, this option is not available on an NI-DNET card. I'll start looking into it and see if there are any other ways of doing this. Anyone else have any ideas?

john
Applications Engineer
0 Kudos
Message 3 of 4
(3,623 Views)
Hi rm,

You can see the raw data on the bus using NI-CAN:
Make sure that you have install NI-CAN installed along with NI-DNET (1.4 or higher required).
You’ll notice that your PCI-DNET card is listed as a PCI-CAN card under Devices and Interfaces in the Measurement and Automation Explorer (MAX). Right-click on the card and change the ‘Protocol’ to ‘CAN’.
Now you can use NI-CANs APIs and examples with your PCI-DNET card, but you can only use the CAN or the DeviceNet protocol at a time.
Note that once you changed the protocol of a card, the right-click menu for a given port changes. Instead of the SimpleWho utility ‘BusMonitor’ is listed. Try it out, it lists all traffic that is received by that CAN port.

-B2k
0 Kudos
Message 4 of 4
(3,617 Views)