Sie sind auf Seite 1von 6

X3 transparent transmission protocol

Application topology:

command: WSTC

1. Device connect with X3 by “RS232 to TTL convertor”


2. Protocol number is: 0X9B
3. Baud rate: 9600

WSTC,A,B#
A:ON or OFF
B:device type:

WSTC,ON,1#
(means: transparent transmission mode.)
WSTC# (check working mode) 
WSTC,OFF#
(close transparent transmission feature.)
RFID protocol:
Platform received RFID data from X3 tracker:
79 79 00 14 9B 03 02 31 42 30 30 31 33 46 37 37 37 38 38 03 00 0B E8 E9 0D 0A

Packet type: transparent transmission protocol (9B)


    CRC: CRC is correct, E8E9
    Package length = 20 (0014)
    Plug-in module encoding = unknown module type (03)
    Transparent content:
    02 31 42 30 30 31 33 46 37 37 37 38 38 03

RFID data: 02 31 42 30 30 31 33 46 37 37 37 38 38 03

RFID card NO. 31 42 30 30 31 33 46 37 37 37  (hexadecimal convert to ASCII)

1. 9600bps,N,8,1

2. CHECKSUM: card 10byte DATA entire do XOR operation

Example: card number: 62E3086CED


CHECKSUM: (62H) XOR (E3H) XOR (08H) XOR (6CH) XOR (EDH)=08H
Output data:02H 36H、32H、45H、33H、30H、38H、36H、43H、45H、44H,30H,38H,03H
Car alarm
1.set up X3 tracker parameter.
Send command to X3: WSTC,ON,2#
Enable X3 “transparent transmission” feature first.

(means: transparent transmission mode.)


WSTC# (check working mode) 
WSTC,OFF#
(close transparent transmission feature.)

2.transparent transmission protocol:


Length
Format Description
(Byte)
Start Bit 2 0x79 0x79
Length = Protocol Number + Information
Packet Length 2 Content + Information Serial Number +
Error Check
Protocol Number 1 0x9B
External It is used to identify the external device
device type 1 type. Data transferred by different types of
Info
code device has different meanings. See below.
Content
Transparent
N Date from external device by RS232 port
content
Information Serial Serial number of data sent later at each
2
Number time will be automatically added ‘1’.
Error check (From “Packet Length”
to“Information Serial Number”) , are
values of CRC-ITU. CRC error occur when
Error Check 2 the received information is calculated, the
receiver will ignore and discard the data
packet. (See
Appendix 1)
Stop Bit 2 Fixed value:0x0D0x0A

Car alarm:
3.GPS platform send ARM# command to device:

79 79 00 0A 9B 03 41 52 4D 23 00 1D C7 C3 0D 0A

Packet type: plug-in module transparent transmission protocol (9B)


    CRC: CRC is correct, C7C3
    Package length = 10 (000A)
    Plug-in module encoding = unknown module type (03)
    Transparent content:
    41 52 4D 23
(converted to ASCII is: ARM# )

4. tracker X3 received command from GPS platform, and then send data “ARM#” to Car
alarm by RS232 PORT.
( below image is for reference, use PC to test X3 tracker transparent transmission protocol,
PC connect X3 tracker by USB to RS232 convertor)

PC received “ARM#” from GPS platform.

5. other device Send data: ARM# to X3 tracker


GPS platform received data “ARM#” from
X3 tracker.

79 79 00 0A 9B 03 41 52 4D 23 00 1D C7 C3
0D 0A

Das könnte Ihnen auch gefallen