Identifying XJLink2-3070 cards

BT-BASIC uses IP addresses to identify the correct plug-in card to use, even if the device is attached via USB and not via ethernet. The serial number of the XJLink2-3070 must therefore be encoded into an IP address. The software expects this IP address to be entered into the system hosts file (typically c:\Windows\system32\drivers\etc\hosts). The name attached to the IP address is the name that the XJLink2-3070 is referred to in BT-BASIC commands.

Encoding

An IP address is a 32 bit number written as 4 decimal octets separated by dots. The serial number is encoded in the least significant two octets — the most significant two are ignored. Here is the procedure for calculating the IP address for a given serial number. Alternatively, contact XJTAG support for assistance.

In this procedure, we will use 24002 as an example serial number.

  • Convert the serial number to hexadecimal, which yields two bytes.

      24002 -> 5DC2 -> 5D, C2
  • Convert the two bytes back into decimal.

      5D, C2 -> 93, 194
  • Unless you end up with an IP address that conflicts with a local one, select 10 and 1 as the most significant octets of the IP address and then add the two octets derived above. A bug in the some versions of the Keysight software means that zeroes in IP addresses are not handled correctly, so avoid using zeroes in the IP address.

      10.1.93.194
  • Add an entry for the XJLink to the hosts file. The name you use in the hosts file will be the name you use to refer to the XJLink2-3070 card in BT-BASIC.

      10.1.93.194   xjlink1