First time here? Check out the FAQ!

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 May 13 '19

stbimudd gravatar image

updated May 14 '19

Guy Harris gravatar image

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

Preview: (hide)

Comments

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

grahamb gravatar imagegrahamb ( May 13 '19 )

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 ( May 13 '19 )

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 ( May 14 '19 )

1 Answer

Sort by » oldest newest most voted
0

answered May 14 '19

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.

Preview: (hide)
link

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: May 13 '19

Seen: 6,663 times

Last updated: May 14 '19