Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #234642 > unrolled thread
| Started by | "Martin McCormick" <martin.m@suddenlink.net> |
|---|---|
| First post | 2021-04-30 04:20 +0200 |
| Last post | 2021-04-30 15:40 +0200 |
| Articles | 6 — 6 participants |
Back to article view | Back to linux.debian.user
Is there any way to snoop on a USB port? "Martin McCormick" <martin.m@suddenlink.net> - 2021-04-30 04:20 +0200
Re: Is there any way to snoop on a USB port? Jeremy Ardley <jeremy@ardley.org> - 2021-04-30 05:00 +0200
Re: Is there any way to snoop on a USB port? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2021-04-30 05:00 +0200
Re: Is there any way to snoop on a USB port? Joe <joe@jretrading.com> - 2021-04-30 10:40 +0200
Re: Is there any way to snoop on a USB port? Dan Ritter <dsr@randomstring.org> - 2021-04-30 15:40 +0200
Re: Is there any way to snoop on a USB port? IL Ka <kazakevichilya@gmail.com> - 2021-04-30 15:40 +0200
| From | "Martin McCormick" <martin.m@suddenlink.net> |
|---|---|
| Date | 2021-04-30 04:20 +0200 |
| Subject | Is there any way to snoop on a USB port? |
| Message-ID | <C9qV3-1Ov-1@gated-at.bofh.it> |
I have a Windows box that has software on it which programs two-way radios and it would be nice to know what the radio and computer are saying to each other. After trying a Windows application that reportedly can capture serial port traffic, I find that it doesn't appear to work with usb ports and unix/linux is my preferred world anyway so is there any sort of hardware that would pass through a USB connection from the Windows box to the radio and let me siphon off the traffic to a linux system and log it? The Windows app I tried to use has been around for a decade or more and probably works well with RS-232 ports but the traffic I need to grab comes from a usb device that creates /dev/ttyACM0 if plugged in to a Linux box and comm2 on the Windows system When I tried it today, it did nothing but complain that it was not connected. It finally dawned on me that it probably sees no serial ports at all as it is supposed to automatically find and log all port I/O and this is a relatively new HP Pavilion desktop computer which has no native RS-232 ports or parallel ports on it and, even if it did, the connection from the radio to the usb port is a usb plug with the usb hardware in it and a cable that plugs in to the radio that would most likely not be practical to tap. Thanks for any good thoughts. Martin WB5AGZ
[toc] | [next] | [standalone]
| From | Jeremy Ardley <jeremy@ardley.org> |
|---|---|
| Date | 2021-04-30 05:00 +0200 |
| Message-ID | <C9rxM-217-3@gated-at.bofh.it> |
| In reply to | #234642 |
[Multipart message — attachments visible in raw view] — view raw
On 30/4/21 10:12 am, Martin McCormick wrote: > I have a Windows box that has software on it which programs > two-way radios and it would be nice to know what the radio and > computer are saying to each other. > > After trying a Windows application that reportedly can > capture serial port traffic, I find that it doesn't appear to > work with usb ports and unix/linux is my preferred world anyway > so is there any sort of hardware that would pass through a USB > connection from the Windows box to the radio and let me siphon > off the traffic to a linux system and log it? > > The Windows app I tried to use has been around for a > decade or more and probably works well with RS-232 ports but the > traffic I need to grab comes from a usb device that creates > /dev/ttyACM0 if plugged in to a Linux box and comm2 on the > Windows system > > When I tried it today, it did nothing but complain that > it was not connected. It finally dawned on me that it probably > sees no serial ports at all as it is supposed to automatically > find and log all port I/O and this is a relatively new HP > Pavilion desktop computer which has no native RS-232 ports or > parallel ports on it and, even if it did, the connection from the > radio to the usb port is a usb plug with the usb hardware in it > and a cable that plugs in to the radio that would most likely > not be practical to tap. > > Thanks for any good thoughts. > > Martin WB5AGZ > Wireshark. https://www.wireshark.org/ -- Jeremy
[toc] | [prev] | [next] | [standalone]
| From | Joe Pfeiffer <pfeiffer@cs.nmsu.edu> |
|---|---|
| Date | 2021-04-30 05:00 +0200 |
| Message-ID | <C9rxM-217-1@gated-at.bofh.it> |
| In reply to | #234642 |
"Martin McCormick" <martin.m@suddenlink.net> writes: > I have a Windows box that has software on it which programs > two-way radios and it would be nice to know what the radio and > computer are saying to each other. > > After trying a Windows application that reportedly can > capture serial port traffic, I find that it doesn't appear to > work with usb ports and unix/linux is my preferred world anyway > so is there any sort of hardware that would pass through a USB > connection from the Windows box to the radio and let me siphon > off the traffic to a linux system and log it? > > The Windows app I tried to use has been around for a > decade or more and probably works well with RS-232 ports but the > traffic I need to grab comes from a usb device that creates > /dev/ttyACM0 if plugged in to a Linux box and comm2 on the > Windows system > > When I tried it today, it did nothing but complain that > it was not connected. It finally dawned on me that it probably > sees no serial ports at all as it is supposed to automatically > find and log all port I/O and this is a relatively new HP > Pavilion desktop computer which has no native RS-232 ports or > parallel ports on it and, even if it did, the connection from the > radio to the usb port is a usb plug with the usb hardware in it > and a cable that plugs in to the radio that would most likely > not be practical to tap. First, I assume the software isn't CHIRP, since that also runs under Linux (and is open source besides). When I faced a similar problem (reverse engineering the protocol used to talk to a hobby rocket altimeter), I put Windows on a virtualbox VM on my Linux machine, and then used wireshark to watch the protocol.
[toc] | [prev] | [next] | [standalone]
| From | Joe <joe@jretrading.com> |
|---|---|
| Date | 2021-04-30 10:40 +0200 |
| Message-ID | <C9wQN-5iI-7@gated-at.bofh.it> |
| In reply to | #234642 |
On Thu, 29 Apr 2021 21:12:10 -0500 "Martin McCormick" <martin.m@suddenlink.net> wrote: > I have a Windows box that has software on it which programs > two-way radios and it would be nice to know what the radio and > computer are saying to each other. > > After trying a Windows application that reportedly can > capture serial port traffic, I find that it doesn't appear to > work with usb ports and unix/linux is my preferred world anyway > so is there any sort of hardware that would pass through a USB > connection from the Windows box to the radio and let me siphon > off the traffic to a linux system and log it? > > The Windows app I tried to use has been around for a > decade or more and probably works well with RS-232 ports but the > traffic I need to grab comes from a usb device that creates > /dev/ttyACM0 if plugged in to a Linux box and comm2 on the > Windows system > > When I tried it today, it did nothing but complain that > it was not connected. It finally dawned on me that it probably > sees no serial ports at all as it is supposed to automatically > find and log all port I/O and this is a relatively new HP > Pavilion desktop computer which has no native RS-232 ports or > parallel ports on it and, even if it did, the connection from the > radio to the usb port is a usb plug with the usb hardware in it > and a cable that plugs in to the radio that would most likely > not be practical to tap. That's still probably the easiest way. The USB connection will carry a lot of USB protocol overhead, which you won't want to wade through to find the data being carried. And serial is fairly easy to analyse with one of those tiny 8-bit data loggers. They were about 100GBP ten years ago, and are now under 10GBP from China. The magic search word is 'saleae', whose software is generally used. And you can be fairly confident that what you see is what you get, where computer software might do some interpreting. -- Joe -- Joe
[toc] | [prev] | [next] | [standalone]
| From | Dan Ritter <dsr@randomstring.org> |
|---|---|
| Date | 2021-04-30 15:40 +0200 |
| Message-ID | <C9Bxa-82O-39@gated-at.bofh.it> |
| In reply to | #234642 |
Martin McCormick wrote: > I have a Windows box that has software on it which programs > two-way radios and it would be nice to know what the radio and > computer are saying to each other. > > After trying a Windows application that reportedly can > capture serial port traffic, I find that it doesn't appear to > work with usb ports and unix/linux is my preferred world anyway > so is there any sort of hardware that would pass through a USB > connection from the Windows box to the radio and let me siphon > off the traffic to a linux system and log it? There is Windows software: https://github.com/SnoopWare/usbsnoop which captures USB packets in both directions. If you can run the Windows software in a VM under Linux, there is usbmon built into the kernel's USB subsystem; it can monitor all the USB traffic, too. -dsr-
[toc] | [prev] | [next] | [standalone]
| From | IL Ka <kazakevichilya@gmail.com> |
|---|---|
| Date | 2021-04-30 15:40 +0200 |
| Message-ID | <C9Bxf-82O-95@gated-at.bofh.it> |
| In reply to | #234664 |
[Multipart message — attachments visible in raw view] — view raw
> > There is Windows software: > https://github.com/SnoopWare/usbsnoop > which captures USB packets in both directions. > > If you can run the Windows software in a VM under Linux, there > is usbmon built into the kernel's USB subsystem; it can monitor > all the USB traffic, too. > There is also https://wiki.wireshark.org/CaptureSetup/USB (although I never used it for anything except network sniffing) > >
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web