Ask Your Question
0

How to capture real-time data from a COM port, and provide it to Wireshark, using named pipes on Windows 10?

asked 2019-05-13 12:03:02 +0000

stbimudd gravatar image

updated 2019-05-14 06:24:19 +0000

Guy Harris gravatar image

I want to read data from COM port into a named pipe on Windows 10.

edit retag flag offensive close merge delete

Comments

How is this a Wireshark question, it seems like a general programming question?

grahamb gravatar imagegrahamb ( 2019-05-13 12:28:19 +0000 )edit

Yeah, but its a part of a named pipe which I want to add to Wireshark. I'm not able to figure out how to read the serial data into the named pipe. Could you please help? Thanks.

stbimudd gravatar imagestbimudd ( 2019-05-13 12:56:28 +0000 )edit

What's worse is that there are some protocol layers to implement between raw serial bytes and frames/packets which Wireshark can handle. So either you make your extcap send each serial byte as a separate "packet", and do this assembling of serial bytes into protocol frames using a dissector in Wireshark itself, or you have to implement the protocol handling layer in extcap and feed the queue with these higher layer protocol frames.

sindy gravatar imagesindy ( 2019-05-14 20:24:23 +0000 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-05-14 05:52:29 +0000

Jaap gravatar image

There's a partial example here, but you'll have to add your own serial interfacing to it. I'm not a Windows programmer, so can't vouch for the validity of this code.

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: 2019-05-13 12:03:02 +0000

Seen: 6,208 times

Last updated: May 14 '19