NetLinx Programming of DXLink Receivers
57
Hardware Reference Manual – DXLink™ Twisted Pair 4K Transmitters/Receivers
DXLink Receiver USB SEND_COMMANDs
DXLink Receiver USB SEND_COMMANDs are sent to Port 5.
NOTE:
Transmitters referenced in the commands below must meet the compatibility requirements described on page 89.
RXON
Start transmitting received
characters to the Master.
Enables sending incoming received
characters to the Master.
This command is automatically sent by the Master when a 'CREATE_BUFFER' program instruction
is executed.
Syntax:
SEND_COMMAND <DEV>,"'RXON'"
Example:
SEND_COMMAND dvRXRS232,"'RXON'"
Sets the RX RS-232 port to transmit received characters to the Master.
TXCLR
Stop and clear all characters waiting
in the transmit out buffer and stops
transmission.
Syntax:
SEND_COMMAND <DEV>,"'TXCLR'"
Example:
SEND_COMMAND dvRXRS232,"'TXCLR'"
Stops and clears all characters waiting in the RX serial port’s transmit buffer.
SET BAUD
(shown in examples)
Or
TSET BAUD
Use either of these commands to set
the serial communication
parameters.
NOTE:
DXLink Receivers only
support RS-232 serial
communication.
NOTE:
This value is not saved in non-volatile memory and is reset to default (9600, N, 8, 1)
at power-up.
Syntax:
SEND_COMMAND <DEV>,"'SET BAUD <baud>,<parity>,<data>, <stop>'"
Valid responses:
• baud = 115200, 76800, 57600, 38400, 19200, 9600, 4800, 2400, 1200, 600, 300, 150.
• parity = N (none), O (odd), E (even), M (mark), S (space)
• data = 7 or 8 data bits
• stop = 1 or 2 stop bits
NOTE:
The only valid 9 bit combination is (baud),N,9,1.
Example:
SEND_COMMAND DEVICE_1,"'SET BAUD 115200,N,8,1'"
Sets the DEVICE_1 port’s communication parameters to 115,200 baud, no parity, 8 data bits,
and 1 stop bit.
USB SEND_COMMANDs (Receiver)
Command
Description
?USB_HID_ROUTE
Requests the IP address or hostname
of the host device (Transmitter)
sending USB keyboard/mouse data
to the Receiver.
Syntax:
SEND_COMMAND <DEV>,"'?USB_HID_ROUTE'"
Example:
SEND_COMMAND dvRX,"'?USB_HID_ROUTE'"
Returns a COMMAND of the form:
USB_HID_ROUTE-<IP address or hostname>
USB_HID_ROUTE
Set the IP address or hostname of
the host device (Transmitter) that will
be sending USB keyboard/mouse
data to the Receiver.
NOTE:
When a hostname is specified, a maximum of 50 characters can be used.
Syntax:
SEND_COMMAND <DEV>,"'USB_HID_ROUTE-<IP address or hostname>'"
Example:
SEND_COMMAND dvRX,"'USB_HID_ROUTE-192.168.1.5'"
NOTE:
To eliminate the connection, specify 0.0.0.0 as the IP address. To redirect to a new host
device (Transmitter), send the new IP address or hostname.
Serial SEND_COMMANDs (Receivers)