Linx-technologies LICAL-TRC-MT Manual de usuario Pagina 14

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 21
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 13
22 23
MT Series Transcoder Serial Interface Engine Command Set
Definition Command Reply
Read Local Settings 0x00 - 0x01 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF 0x00 - 0x41 - 0x43 - 0x4B - A1 - A2 - A3 - IOs - 0xFF
Write Local Settings 0x00 - 0x02 - A1 - A2 - A3 - IOs - 0x00 - 0xFF 0x00 - 0x41 - 0x43 - 0x4B - 0xFF
Read Next User ID 0x00 - 0x11 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF 0x00 - 0x41 - 0x43 - 0x4B - ID - 0xFF
Write Next User ID 0x00 - 0x12 - ID - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF 0x00 - 0x41 - 0x43 - 0x4B - 0xFF
Read Specific User 0x00 - 0x21 - ID - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF 0x00 - 0x41 - 0x43 - 0x4B - A1 - A2 - A3 - CP - 0xFF
Write Specific User 0x00 - 0x22 - A1 - A2 - A3 - CP - ID - 0xFF 0x00 - 0x41 - 0x43 - 0x4B - 0xFF
Read Target Address 0x00 - 0x31 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF 0x00 - 0x41 - 0x43 - 0x4B - A1 - A2 - A3 - 0xFF
Write Target Address 0x00 - 0x32 - A1 - A2 - A3 - 0x00 - 0x00 - 0xFF 0x00 - 0x41 - 0x43 - 0x4B - 0xFF
Read Custom Data Value 0x00 - 0x41 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF 0x00 - 0x41 - 0x43 - 0x4B - Data - 0xFF
Write Custom Data Value 0x00 - 0x42 - Data - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF 0x00 - 0x41 - 0x43 - 0x4B - 0xFF
Read Latch Mask Value 0x00 - 0x51 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF 0x00 - 0x41 - 0x43 - 0x4B - Mask - 0xFF
Write Latch Mask Value 0x00 - 0x52 - Mask - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF 0x00 - 0x41 - 0x43 - 0x4B - 0xFF
Read Status Outputs 0x00 - 0x61 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF 0x00 - 0x41 - 0x43 - 0x4B - Outputs - 0xFF
Write Status Inputs 0x00 - 0x62 - Status - Packets - 0x00 - 0x00 - 0x00 - 0xFF 0x00 - 0x41 - 0x43 - 0x4B - 0xFF
Read Confirmation EN 0x00 - 0x71 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF 0x00 - 0x41 - 0x43 - 0x4B - VAL - 0xFF
Write Confirmation EN 0x00 - 0x72 - VAL - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF 0x00 - 0x41 - 0x43 - 0x4B - 0xFF
Read Device Targeting EN 0x00 - 0x81 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF 0x00 - 0x41 - 0x43 - 0x4B - VAL - 0xFF
Write Device Targeting EN 0x00 - 0x82 - VAL - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF 0x00 - 0x41 - 0x43 - 0x4B - 0xFF
Read Custom Data EN 0x00 - 0x91 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF 0x00 - 0x41 - 0x43 - 0x4B - VAL - 0xFF
Write Custom Data EN 0x00 - 0x92 - VAL - 0x00 - 0x00 - 0x00 - 0x00 - 0xFF 0x00 - 0x41 - 0x43 - 0x4B - 0xFF
A1, A2, A3 = 8-bit values totaling 24-bit address
IOs = Status line input/output settings (0 = output, 1 = input; line D0 corresponds to bit b0)
ID = User ID value (decimal notation, 1 to 60)
CP = Control permissions for the learned transcoder (0 = not authorized, 1 = authorized; line D0 corresponds to bit b0)
Data = value of the custom data byte transferred when the option is enabled
Mask = value used to define which outputs are latched when Latch Mode is enabled (0 = momentary, 1 = latched; line D0 corresponds to bit b0)
Outputs = Current state of the status line outputs (0 = low, 1 = high; line D0 corresponds to bit b0)
Packets = Number of packets to be sent
VAL = Option enable value (0x00 = Off, 0x01 = On)
To delete a specific user, perform a Write Specific User operation with A1, A2, A3, and IOs set to 0xFF
Figure 18: MT Series Transcoder Serial Interface Engine Command Set
Serial Interface Connections
The serial interface on the MT Series can be connected to any device
capable of serial communication, including microcontrollers, RS-232 drivers
and computers. Figure 17 gives an example of connecting the MT to the
Linx QS Series USB module for connection to a computer.
The USB module follows the RS-232 convention of using separate lines
for data input and data output while the transcoder has a single line for all
data. This requires a switch to alternatively connect the transcoder’s SER_
IO line to the DATA_IN and DATA_OUT lines on the module.
The RTS line is used to throw the switch as well as to activate the CRT/
LRN line placing the transcoder into Serial Mode. This gives the PC the
ability to control when communication is initiated.
The MODE_IND line goes high when the transcoder is prepared to send
data, so the CTS line on the USB module is used to monitor the MODE_
IND line. This allows the computer to know when to throw the switch and
look for data from the transcoder.
One point of note is that voltage translation may be necessary if the 5V
USB module is used to communicate with a transcoder operating at 3V.
There are many components and methods for implementing level shifting,
so it is up to the designer to determine the best solution for the product.
USBDP
USBDM
GND DSR
DATA_IN
DATA_OUT
RTS
CTS
DTR
TX_IND
VCC
SUSP_IND
RX_IND
485_TX
RI
DCD
1
2
3
4
5
6
7
89
10
11
12
13
14
15
16
VCC
D6
D7
CRT/LRN
ENC_SEL
SER_IO
CONFIRM
TR_PDN
TR_SEL
TR_DATA
GND
D5
D4
D3
LATCH
SEL_BAUD
MODE_IND
D2
D1
D0
1
2
3
4
5
6
7
8
9
10 11
12
13
14
15
16
17
18
19
20
LICAL-TRC-MT
SDM-USB-QS
8
7
6
5
1
2
3
4
V+
NC
NC
GND
MAX4544
USB Type B
Connector
GND
5V
DAT -
DAT+
GND
GSHD
GSHD
1
2
3
4
5
6
VCC
VCC
Figure 17: MT Series Transcoder Serial Interface to a PC
Vista de pagina 13
1 2 ... 9 10 11 12 13 14 15 16 17 18 19 20 21

Comentarios a estos manuales

Sin comentarios