Есть устройство TE550, необходимо отправлять/считывать данные по Com(rs232) порту.
Использую кабель Конвертер USB на COM-порт (9 pin DB9, RS232)
Открываю порт через CoolTerm (9600 8 bits of data, 1 bit of stop, and no
parity.)
Вот такую команду необходимо отправить: 020115003011EE
а именно
Command 50: status request
The status request command is used to request the register response package, without later actions that
may alter the status of the system.
STX = Start byte of the frame (0x02)
ADDR = TE550 logical address [2 bytes]
CMOD = CMOD to refer [1 byte]
TKN1/0 = Frame identification bytes [2 bytes]
TYPE = Selection byte for customizable box (RiqA/B)* [1 byte]
CHKH/L = Checksum [2 bytes]
END = End byte of the frame (0x0D)
Example:
status request from PC to TE550 (address 01), CMOD 1, Token 01, Type 1
[0x02]0115003011EE[0x0D]
А в ответ тишина ....
TX frames are structured as described before, RX frames are different: they preserve the acknowledgebyte (0x06), the ASCII checksum and the end-byte (0x0D), other information are binary coded (not in
ASCII). Both frames present an identification byte (token).
020115003011EE0D
через send string в hex-режиме. Но похоже тут какая-то ошибка. По описанию должно быть 10 байт, а в строке020115003011EE0D
всего 8.