|
From: Krakora, R. V <rob...@de...> - 2007-09-22 20:21:11
|
If you can afford it, Device Monitor Studio (USB Version) by HDDSoftware is outstanding. www.hddsoftware.com=20 Rob Krakora Software Engineer Delphi Electronics & Safety e-mail: rob...@de... phone: 765-451-8574 -----Original Message----- From: lib...@li... [mailto:lib...@li...] On Behalf Of lib...@li... Sent: Saturday, September 22, 2007 3:09 PM To: lib...@li... Subject: Libusb-win32-devel Digest, Vol 16, Issue 12 Send Libusb-win32-devel mailing list submissions to lib...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel or, via email, send a message with subject or body 'help' to lib...@li... You can reach the person managing the list at lib...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Libusb-win32-devel digest..." Today's Topics: 1. Possibility of acquiring raw USB packets with Libusb-win32 (Varuna De Silva) 2. Re: Possibility of acquiring raw USB packets with Libusb-win32 (Xiaofan Chen) ---------------------------------------------------------------------- Message: 1 Date: Sat, 22 Sep 2007 15:16:37 +0530 From: "Varuna De Silva" <va...@gm...> Subject: [Libusb-win32-devel] Possibility of acquiring raw USB packets with Libusb-win32 To: lib...@li... Message-ID: <cfa...@ma...> Content-Type: text/plain; charset=3D"iso-8859-1" Hi, I need to get raw USB packets with its protocol headers, these protocol packets we need to convert to a pcap format to be decode by WireShark. Is it possible with Libusb-win32 API to get these raw packets by sniffing the USBus , or do we have to write a special kernel level filter for this. Please be kind enough to guide us. Thank you Varuna -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Sat, 22 Sep 2007 18:14:09 +0800 From: "Xiaofan Chen" <xia...@gm...> Subject: Re: [Libusb-win32-devel] Possibility of acquiring raw USB packets with Libusb-win32 To: lib...@li... Message-ID: <a27...@ma...> Content-Type: text/plain; charset=3DISO-8859-1 On 9/22/07, Varuna De Silva <va...@gm...> wrote: > > I need to get raw USB packets with its protocol headers, these protocol > packets we need to convert to a pcap format to be decode by WireShark. > > Is it possible with Libusb-win32 API to get these raw packets by sniffing > the USBus , or do we have to write a special kernel level filter for this. > > Please be kind enough to guide us. > I am not an USB expert but I guess that the answer is no and you need a special filter driver. Do the existing open source sniffers like SnoopyPro and SniffUSB work for you? Both of them use a filter driver. 1. SnoopyPro: http://sourceforge.net/projects/usbsnoop/ 2. SniffUSB http://benoit.papillault.free.fr/usbsnoop/doc.php.en http://www.pcausa.com/Utilities/UsbSnoop/default.htm For libusb-win32, you can capature the debug message and I think you are asking more than that. Three steps to capature the debug message. * add usb_set_debug(255) to your code after the call of usb_init() * download DebugView from microsoft.com http://www.microsoft.com/technet/sysinternals/utilities/debugview.mspx * run DebugView to capture the driver's an the DLL's debug messages Example output: http://forum.microchip.com/tm.aspx?m=3D270049&mpage=3D2 Regards, Xiaofan ------------------------------ ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ ------------------------------ _______________________________________________ Libusb-win32-devel mailing list Lib...@li... https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel End of Libusb-win32-devel Digest, Vol 16, Issue 12 ************************************************** ***************************************************************************= ************* Note: If the reader of this message is not the intended recipient, or an= employee or agent responsible for delivering this message to the intended= recipient, you are hereby notified that any dissemination, distribution or= copying of this communication is strictly prohibited. If you have received= this communication in error, please notify us immediately by replying to= the message and deleting it from your computer. Thank you.=20 ***************************************************************************= ************* |