Working with serial
(COM) and USB ports
In computing, a serial port is a serial communication physical
interface through which information transfers in or out one bit at
a time (contrast parallel port). Throughout most of the history of
personal computers, data transfer through serial ports connected
the computer to devices such as terminals or modems.
The term "serial port" usually identifies hardware more or less
compliant to the RS-232 standard, intended to interface with a
modem or with a similar communication device.
Universal Serial Bus (USB) is an industry standard developed in
the mid-1990s that defines the cables, connectors and
communications protocols used in a bus for connection,
communication and power supply between computers and electronic
In computing, the USB human interface device class (USB HID
class) is a part of the USB specification for computer peripherals:
it specifies a device class (a type of computer hardware) for human
interface devices such as keyboards, mice, game controllers and
alphanumeric display devices.
NetDecision script functions allow the user to manage serial
RS-232/USB connection to a compliant device, read data
from ports and send data or commands (including USB HID
To communicate via serial connection, you must first open serial
session by using OpenSerialPort() function. At the end
of your script the serial session must be closed by using CloseSerialPort() function.