RS-232 Commands

RS-232 transmission Format

Baud rate: 9600

Data bit: 8

Parity: None

Set Command

Command Code

 

Response

Description

Data

Check SUM

ACK

SET

0x08 0x4d 0x41 0x51 0x44 0x05 *0x01~0xff

0x31~0x2f

0xaa

SET MA-5144 Device ID

0x0c 0x4d 0x41 0x51 0x44

0x0c+…+port4

0xaa

Set MA-5144 Source

Device_Id 0x02 port1 port2 port3 port4

 

 

Mapping of Output Port

Status Command

Command Code

 

Response

 

Description

Data

 

Check

Get Status

Check SUM

Status

 

SUM

 

 

 

 

 

0x05

0x4d 0x4f 0x44

0xe5

0xaa 0x06 0x4d 0x41

0x29

Get Device Type

0x51 0x44

(MA-5144)

 

 

 

 

0x07

0x4d 0x41 0x53 0x57

0x43

0xaa 0x3 0x01~0xff

0x04~0x02

Get Device ID

0x04

 

 

 

 

 

 

0x08

0x4d 0x41 0x51 0x44

0x2e~0x2c

0xaa 0x06 port1 port2

0x06 +

Get Source Mapping of

*0x01~0xFF 0x01

port3 port4

port1~port4

Output Port

 

0x08

0x4d 0x41 0x51 0x44

0x30~0x2e

0xaa 0x08 0x56 0x33

0x81

Software Version V.3.01a

*0x01~0xFF 0x04

0x2e 0x30 0x31 0x61

 

 

 

Check sum:

Check sum = (Data value sum)%256 The check sum of response is not included 0xaa.

0x01 ~ 0xFF:

This data is device ID. The Device ID saved in the device, if the device ID of the controlled device is 0xff , the device will ignore its own ID and carry out the commands.

16

Page 17
Image 17
Cable Electronics HSW44C instruction manual RS-232 Commands, Check sum, 0x01 ~ 0xFF