Example – IEI Integration AUPS UART Protocal SPC User Manual

Page 10

Advertising
background image

AUPS

IEI Technology Corp.

- 10 -

Example

AP SEND MCU RAED Voltage Command:

AP->MCU

:

Command:<02><01><09><0C><0D>

STX:0x02 Length:0x01

Command:0x09 CR:0x0D

Checksum:

(0x02+0x01+0x09)MOD 0x100 = 0x0C

MCU Response AP Voltage Value:


MCU->AP

:

Response:<02><03><09><3E><80><CC><0D>

STX:0x02 Length:0x03 Command:0x09 Data:0x3E80 CR:0x0D

Checksum:

(0x02+0x03+0x09+0x3E+0x80)MOD 0x100 = 0Xcc

Return Value:0x3E80(16000mV)


AP SEND MCU RAED IP Address Command:

AP->MCU

:

Command:<02><01><50><53><0D>

STX:0x02 Length:0x01

Command:0x50 CR:0x0D

Checksum:

(0x02+0x01+0x50)MOD 0x100 = 0x53


MCU Response AP IP Address:


MCU->AP

:

Response:<02><05><50><A9><FE><01><01><00><0D>

STX:0x02 Length:0x05

Command:0x50 Data1:0xA9

Data2:0xFE Data3: 0x01 Data4 :0x01

CR:0x0D

Checksum:

(0x02+0x05+0x50+0xA9+0xFE+0x01+0x01)MOD 0x100 = 0x00

Return IP Address: A9: FE: 01: 01

AP SEND MCU Write IP Address Command:


AP->MCU

:

Command+ data:<02><05><51><A9><FE><01><01><01><0D>

STX:0x02

Length:0x05

Command:0x51 Data1:0xA9

Data2:0xFE Data3: 0x01 Data4 :0x01 CR:0x0D

Checksum:

(0x02+0x05+0x51+ 0xA9+0xFE+ 0x01+ 0x01)MOD 0x100=0x01



Notes: A

ngle brackets < > : indicate data in hex value.

Advertising