This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Hi All,

I have used wireshark but not tshark.

Is it possible with tshark to capture the barcodes from a USB reader, and send them as raw TCP to a IP address?

Would this be difficult to script?

Cheers in advance,

-Al

asked 08 Aug '14, 17:36

bigalnz's gravatar image

bigalnz
1111
accept rate: 0%


I have used wireshark but not tshark. Is it possible with tshark to capture the barcodes from a USB reader,

If you are able to do that with Wireshark (sounds like, according to your comments), you can do it with tshark as well. In that case, I'll need more information about how you did it with Wireshark. As soon as you post that information, I can (possibly) 'translate' it into a way to do the same with tshark.

and send them as raw TCP to a IP address?
Would this be difficult to script?

sending data does not work with tshark, so you'll have to write a script that is able to send data via TCP or use netcat or similar tools.

Regards
Kurt

permanent link

answered 10 Aug '14, 06:48

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 10 Aug '14, 09:20

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×832
×752
×69
×20
×1

question asked: 08 Aug '14, 17:36

question was seen: 2,277 times

last updated: 10 Aug '14, 09:20

p​o​w​e​r​e​d by O​S​Q​A