Device name

This option allows you to choose a specific device name (DEVNAME) when you connect to a TN5250 server or AS/400.

Some special characters in the device name field can be used to generate the device name:

  =        Collision Avoidance ID
  *        Short Session ID
  %        Session Type ID
  &COMPN   Device network host name (Supported by the Android version only)
  &COMPNBT Device Bluetooth name (Supported by the Android version only)
  &WIP     Wifi IP address (Supported by the Android version only)
  &MAC     Mac address (Supported by the Android version only)
  &MAC_    Short Mac address (Supported by the Android version only)
  &MAC#n   Last n characters of the Mac address (Supported by the Android version only)
  or use  
  %m - %r  Represents the six octets of the Mac address. For example, %m%n%o%p%q%r for full Mac address
  %a - %d  Represents the four octets of the WiFi IP address.  
  

The Collision Avoidance ID enables the generation of a new Device name if the Telnet server rejects the previous name. The Collision Avoidance ID has a value in the range 1-9 and A-Z. For example, if ABC= is specified, ABC1, ABC2 and so on will be generated. If ABC== is specified, a random 2-character string will replace the == characters, and so on for ABC=== and ABC====.

The Short Session ID gets the value A if you start one session only. If you start multiple sessions within Glink, the second session will get the Value B and so on. For example, if ABC* is specified, the first session will get ABCA. If that name is already in use, the session will be rejected.

The Session Type ID replaces the character % with the character S for Screen models and P for Printer models. For example, if %ABC* is specified, the first session will get SABCA if the model is a display type and PABCA if the model is a printer type.

Android only
The &COMPN is replaced by the network device name (hostname) if defined for the device. For some Android devices only the Device Bluetooth name is set. To pick up the Device Bluetooth name use &COMPNBT.

Android only
The &WIP is replaced by the Wifi IP address formatted as a hex string. For example, if the Wifi IP address of the device is 10.66.1.133, the string 0A420185 will represent the address and will be used as the device name.

Android only
The &MAC is replaced by the device Mac address formatted as a hex string. The 6 octets mac address is formatted as a 12-character hex string.

Android only
The &MAC_ is replaced by the last part of the device Mac address formatted as a hex string. The last 3 octets is formatted as a 6-character hex string.

Android only
The &MAC#n (where n is a number from 1 to 9) is replaced by the last n characters of the device Mac address formatted as a hex string.

Keep in mind that the device name should not exceed 10 characters. If the resulting string is longer than 10 characters, Glink will strip excessive characters. Normally at the beginning, but if &WIP is used, Glink will cut up to 4 of the first characters in the IP address before stripping off characters from the beginning of the generated device name. For example, will the first device name RFT&WIP= on a device with IP address 10.66.1.133 become RFT4201851.