LXI Device Discovery & IP Address Troubleshooting
One difference with Ethernet-connected devices is how to discover an LXI device's IP address. Since it is impossible to predict the IP address a customer wishes to use for any particular device, and shipping an LXI device with a fixed IP address could cause problems, most products are shipped configured to obtain their IP address from a system DHCP server.
If no DHCP server is present, the device should fall back to automatic IP address selection. In both cases, the user cannot know in advance what that IP address might be, although in the Auto-IP case, it is sufficiently known for discovery to be practicable.
The LXI Specification specifies two discovery protocols. LXI products all provide mechanisms based on the VXI-11 and mDNS discovery protocols. Pickering devices include both protocols.
Neither mechanism can resolve the IP address in all network conditions, but with a little care, either should be able to discover the LXI device. An LXI Discovery Tool is also available on the LXI consortium website, offering many advanced features to aid discovery across a wide range of circumstances.
Both NI Measurement and Automation Explorer (MAX) and the Keysight Connection Expert (ACE) can discover LXI devices; examples are provided in the manuals that accompany Pickering products. Pickering also provides some discovery tools on the distribution disk for those without an NI or Keysight installation. The LXI Consortium has made a discovery tool available from their website: LXI Discovery tool
Pickering also provides some discovery tools at the following locations:
http://www.pickeringtest.info/downloads/drivers/Sys60/
http://www.pickeringtest.info/downloads/Utils/
Common Difficulties
Some users have experienced difficulties discovering LXI devices; most of these have been caused by the instrument and user computer being connected to different subnets of the network. A search on the internet will soon uncover many pages explaining network configuration; we shall not try to explain it here. Resolution of that issue typically results in quick, easy discovery.
These are some situations users have reported to Pickering:
Second Internet Connection (e.g., Wireless connection on a Laptop Computer)
There are a number of scenarios where this situation can arise. For example, a laptop computer with an LXI product connected via a crossover ethernet cable, a computer with a second ethernet connection via an additional ethernet card, or a computer with a single ethernet connection but virtual ethernet cards created by a virtualization product.
In these cases, the LXI device may not find a DHCP server and will therefore fall back to an Auto-IP address in the 169.x.x.x range. x.x.x. The computer, however, may obtain an IP address through another Ethernet port in a different range, perhaps 192.168.x.x. Under these circumstances, the discovery mechanisms are unlikely to succeed. In some cases, this is caused by the gateway address of the LXI-connected port being set to the other network address range.
The easy solution in the above case is to disable the other Ethernet connections and force the computer to also select an Auto-IP address; with both devices on the same subnet, discovery will work. In the case of a laptop, disable the wireless Ethernet connection.
To determine your computer's IP address, open a command prompt and type 'ipconfig'. This will usually provide a list that includes the computer's IP address. On a Linux system, use 'ifconfig'.
To view the gateway addresses on your computer, type 'route print' to obtain a listing of the IP addresses and gateway addresses assigned to the PC.
Firewall
A firewall is blocking access; once again, the easy solution is to disable the firewall, not always an acceptable solution, or to modify the firewall to permit the connection. In some cases, we have encountered a 'hidden' firewall within antivirus software.
Forgotten IP Address
An LXI instrument has been set to a fixed IP address, but the user doesn't know the address; in this case, the only real solution is to perform a factory reset on the LXI device to restore it to the default DNS-based IP address selection. On a Pickering LXI device, this can be performed by holding the rear-panel reset button for 5 seconds; upon release, the product should restart with factory defaults, including the DHCP address setting.
Solutions
It is not always possible for a user to resolve the problem alone; in such cases, the local IT department should be consulted to diagnose the issue and arrive at an acceptable solution. The LXI Consortium offers resources for using LXI instruments, including a guide for IT departments.
Programmatic Discovery
Pickering software drivers include discovery as part of the API, thus allowing programmers to determine the IP address of Pickering LXI products at run-time. Refer to the API documentation and example programs for details of this facility.