Ask Your Question
0

Capture from a PC based BACnet device?

asked 2024-11-06 01:58:12 +0000

Boyd gravatar image

updated 2024-11-06 05:59:27 +0000

Jaap gravatar image

I have a PC base BACnet device. Can I write traffic to a virtual com port then have Wireshark read the virtual com port as if it was a physical com port?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2024-11-06 13:03:52 +0000

Bob Jones gravatar image

Do you mean some technique like this:

https://www.netburner.com/learn/how-to-create-a-virtual-serial-port/?srsltid=AfmBOooBf9pdPJgR6QvmEAYJNdbZYsEag4BuEMsuZUnU9sbhEQs7FdV0

Then yes if the virtual com port uses the network as its underlying transport medium. You would determine what protocol and ports that are in use and configure Wireshark to capture on the appropriate interface, filter, and the serial data would be available.

I have used this SW to do this when I needed to see the raw serial bytes but had no access to them otherwise and we just know that Wireshark does a great job at displaying this kind of information: https://github.com/cminyard/ser2net

Note that we are not pointing Wireshark to capture on the virtual or physical com port directly; we are making use of the fact that the virtual com port uses the network to move data. We are forcing our serial data across the network so we can capture it via Wireshark.

Also this device has (well, used to - its been a few years) a driver that can dump the serial bytes into their small debug tool that is provided. Avoids extra moving parts of forcing serial traffic through a network for analysis.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2024-11-06 01:58:12 +0000

Seen: 147 times

Last updated: Nov 06