06-24-2013 01:38 PM
I'm using Labwindows/CVI to develop a user interface application to extract data from an embedded controller
that uses a WiFi module to communicate.
This "black box" has no front panel. Only communication is the WiFi.
I'm using the LabWindows/CVI TCP support library functions to communicate.
The WiFi module module joins to a wireless router and uses DHCP to acquire an IP address.
I would like to present the user with a list of IP address and their associated MAC addresses.
They can then select the unit to which they would like to connect.
Remember no front panel or display. How can I scan the network to find all the active devices?
I realize that this may not be considered a LabWindows issue but the group here on the support
forum has a huge amount of knowledge and I'm hoping someone can point me to examples, web-pages, or other
information that I can use to get up to speed on how to accomplish this.
Thanks much for your help with this,
Kirk
06-24-2013
03:51 PM
- last edited on
10-06-2025
01:20 PM
by
Content Cleaner
This should help you ping network devices.
http://zone.ni.com/devzone/cda/epd/p/id/949
06-25-2013 12:50 PM
I took a look at the "printerReady" example. Looks like I may be able to use the InetPing (...) function to ping through a range of IP addresses looking for a response.
Any ideas on how to find the MAC address associated with the IP addresses that respond?
We may have multiple units responding and the MAC address will allow the operator to determing which unit to connect to.
I'll try the InetPing to see how it works,
Kirk
06-26-2013 12:03 AM
Have a look at the arp command. On Windows "arp -a" will give you a list of IP addresses and their associated MAC.