PduApi 2.2.1
PduApi - Toolbox
Loading...
Searching...
No Matches
Usecase Debug any other D-PDU API

wireshark can be used to display/trace the communication of D-PDU API calls and CAN-BUS or DoIP synchronously.

Load the pduapi_tcp_wrap instead of the D-PDU API and forward the calls by setting PDUConstruct( "pduapi_file=..." ) or setting environment Variable PDUAPI_FILE.

Start wireshark and load the pduapi_dissector.

For further details see also pduapi_dissector.

Linux

Capture CAN-BUS and Ethernet Interface in wireshark. To see all interfaces which can be recorded/analysed use.

ip link

In wireshark put

pduapi || can || canfd || doip

in the filter line above to filter only D-PDU API calls and see synchronously what happens on the CAN-BUS and any PDUAPI interface.

Windows

For Windows no standard CAN interface exists and only Ethernet and USB can be captured. To capture the CAN-BUS messages, it is required to forward the CAN-BUS messages to Ethernet via can_eth_gw can.

Wireshark has already a CAN-ETH dissector included.

To display D-PDU API messages and CAN-BUS messages synchronously both dissectors are required at the same time.

In wireshark put

pduapi || caneth || doip

in the filter line above to filter only D-PDU API calls and see synchronously what happens on the CAN-BUS and any PDUAPI interface.