NetLinx Programming of DXLink Transmitters and Receivers
77
Hardware Reference Manual – DXLink™ Twisted Pair Transmitters/Receiver
DXLink Transmitter USB SEND_COMMANDs
DXLink Transmitter USB SEND_COMMANDs are sent to Port 5.
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 Transmitters and
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 (Transmitter)
Command
Description
?USB_HID_SERVICE
Requests the status for the USB HID
pass through setting (Enable or
Disable).
Syntax:
SEND_COMMAND <DEV>,"'?USB_HID_SERVICE'"
Example:
SEND_COMMAND dvTX,"'?USB_HID_SERVICE'"
Returns a COMMAND of the form:
USB_HID_SERVICE-<ENABLE/DISABLE>
USB_HID_SERVICE
Sets the USB HID pass through to
Enable or Disable.
NOTE:
When enabled, the USB port addressed by D:P:S is runn
ing in auto switching mode.
Syntax:
SEND_COMMAND <DEV>,"'USB_HID_SERVICE-<ENABLE|DISABLE>'"
Example:
SEND_COMMAND dvTX,"'USB_HID_SERVICE-ENABLE'"
NOTE:
This command persists through power cycling.
Serial SEND_COMMANDs (Transmitters and Receivers)