First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

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

  • retag add tags

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

stbimudd's avatar
1
stbimudd
asked 2019-05-13 12:03:02 +0000
Guy Harris's avatar
19.9k
Guy Harris
updated 2019-05-14 06:24:19 +0000
edit flag offensive 0 remove flag close merge delete

Comments

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

grahamb's avatar grahamb (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's avatar stbimudd (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's avatar sindy (2019-05-14 20:24:23 +0000) edit
add a comment see more comments

1 Answer

0

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.

Jaap's avatar
13.7k
Jaap
answered 2019-05-14 05:52:29 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer