LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get IP address for use with TCP library


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

 

0 Kudos
Message 1 of 4
(4,146 Views)

This should help you ping network devices.

 

http://zone.ni.com/devzone/cda/epd/p/id/949 

Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 2 of 4
(4,139 Views)

 

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

0 Kudos
Message 3 of 4
(4,123 Views)

Have a look at the arp command. On Windows "arp -a" will give you a list of IP addresses and their associated MAC.

0 Kudos
Message 4 of 4
(4,107 Views)