Click here to Skip to main content
15,884,537 members
Please Sign up or sign in to vote.
4.20/5 (2 votes)
See more:
Hi,
I'm looking for a way to snif a usb protocol between a software and a card plugged.
All the lib I've found are not able to snif a plugged hardware.
I don't mind the langage even if I prefer c#
Thanks a lot
Posted
Comments
Sergey Alexandrovich Kryukov 31-May-11 12:39pm    
First, re-phrase your question title to make it less confusing -- there is not "USB Sniffer protocol". Just write "How to sniff USB" or something.
Do you want to develop such tool or you just need to use one?
--SA
Sergey Alexandrovich Kryukov 31-May-11 12:40pm    
The question is interesting, my 5.
--SA

Did you see this Open Source product: http://sourceforge.net/projects/usbsnoop/[^]?

—SA
 
Share this answer
 
You can use Open Source sniffer: USBPcap[^]

This logs data on specified roothub and then you can analyse it using Wireshark.

It shows the basic IRP information like USBD_STATUS, URB function, IRP direction (from PDO to FDO or the other way round) and basic USB information like device address, endpoint and transfer type alongside the transfer buffer data.
 
Share this answer
 
v2
USB Sniffer (driver filter) source code http://tellmeword.com/dh9ic/usb_sniffer_(source_code)
 
Share this answer
 
v2
Comments
H.Brydon 23-Jun-13 9:45am    
The question is over 2 years old. Why are you answering it now?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900