02-29-2012 02:55 AM
02-29-2012 05:41 PM
Hey Youssef89,
I'm not sure if there is any built-in technique for sniffing USB packets within LabVIEW. You would probably have to know the communication packets in order to decipher the data in LabVIEW.
If you want to sniff a USB port outside of LabVIEW though, I'm sure there are some free tools that you can find if you look around!
03-13-2012 05:14 AM - edited 03-13-2012 05:15 AM
Hi TheCandyMan
yes i found how to sniff usb port outside Labview using snoopypro for example, but i want to listen or spy an usb device to usb traffic between the device and the PC
I found that i can do it using dll, so i think that i coulf transform w source code of an usb sniffer to dll and use it
but i don't know how to do that
please i need help
03-13-2012 07:29 AM
Hey Youssef89,
If you have a dll then you can always use the Call Library Function Node to access it in LabVIEW.
How Do I Call a Dynamic Link Library (DLL) from LabVIEW?
http://digital.ni.com/public.nsf/allkb/DCB90714981A1F148625731E00797C33
Hope that helps!
03-13-2012 08:21 AM
Hey The Candyan
The problem that i don't know how and where i will obtain the code source of an usb sniffer to transfom it to dll then integrate it with labview
because i found a code source of snoopypro but i can't use it to get the dll
03-13-2012 08:25 AM
If you don't have a DLL then why did you say that you can do it with a DLL?
03-13-2012 08:36 AM
Howdy Youssef89,
Sadly this is a problem I might not be able to provide support for because I'm not super familiar with techniques outside of NI software/hardware. My best guess would be that you'd first have to find an open source USB sniffing program. If there isn't already built .dll for that program that you can reference you can probably build one using an IDE like Visual Studio. It would really depend on what language was used to build the USB sniffing program, which, I am not completely aware of.
If you were to use an IDE like Visual Studio, here's a basic tutorial on building DLL's.
http://msdn.microsoft.com/en-us/library/ms235636%28v=vs.80%29.aspx