Question: How can I use pigpio to "sniff" or monitor an existing USB connection between two devices? Electronics SE: How do USB to serial adapters work?.Superuser SE: How does a RS-232 to USB converter work?.I don't think I can add a USB hub and use a USB to serial converter, because it would not pick up the traffic intended for a different USB device. since it's a different protocol, there's a chance that pi.bb_serial_read_open(pin, baud) might not collect anything because it doesn't recognize the signal.there may be a lot of extra information exchanged constantly that I'd have to filter out.Once read, I'd look through the chunk of data for the particular "set" and "read" commands that I'm interested in.Īlas the connection is USB which I think poses several challenges If it were RS-232 I'd just tap into the serial line, perhaps use a buffer amplifier then have pigpio read for several seconds at the appropriate baud rate with something like the script below. I would like to monitor or sniff their communication with a RPi without interrupting it. I have a list of the "set" and "read" commands that are exchanged over USB. A controller module (power supply) for piece of scientific equipment in our lab uses a Windows program on a PC for a human interface via USB connection.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |