02-17-2009 09:44 AM
This was asked back in 2002, with no useful resoultion.
In Labview, can I connect to a network port and receive all network traffic? The application I am working on needs to start when a certian packet is sent on the network. I'd like to scan the network traffic for this packet and trigger when I see it.
Thanks,
Solved! Go to Solution.
02-17-2009 09:57 AM
Maybe this will help?
What kind of packet are you looking for? Is it multicast, unicast or broadcast? Ist it UDP or TCP? It is some low level packet (e.g. ARP, etc.)? Where does it come from?
If you only want to use plain LabVIEW, you need to listen on a defined UDP or TCP port.
02-17-2009 10:00 AM - edited 02-17-2009 10:02 AM
You can use the TCP Listen VI to create a listener on a specific port. If a connection is established then you can use TCP Read to read the byte stream. However, you cannot go any lower than that with the LabVIEW functions. It sounds like you want to do something similar to what Wireshark does? If so, you should do a search for WinPCap on these forum. Someone had started writing functions that would interface to WinPCap (which is used by Wireshark). Don't know how far it got. I had written about half a dozen VIs that called the WinPCap library via a helper DLL and used this to capture raw packets going between a PC and an instrument.
EDIT: I see that altenbach found the link.
02-18-2010 08:48 AM
Or you can use the network sniffing library from controlsag. (www.controlsag.ro). Check the software section.
cosmin
02-18-2010 08:53 AM