[go: up one dir, main page]

0% found this document useful (0 votes)
27 views6 pages

Ew-Ups Communication Protocol v01

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views6 pages

Ew-Ups Communication Protocol v01

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Host Side

Host Communication Interface

• UART Host Communication Interface


UART Setting Parameter

Parameter Value

Baud rate 115200

Data 8 bits

Parity None

Stop Bits 1 bit

Flow Control None


Host Communication Interface

• Host to EC CMD (Read)


Host Read Data Package
Start Byte0 Start Byte1 CMD Checksum
1 byte 1 byte 1 byte 1 bytes
EX: 0x55 0xAA 0x01 0x00

Host Read CMD Description


0x00 Host request to read the battery remaining capacity from EC.
Host request to read the battery X% threshold notifying
0x01
shutdown event.
Host request to read the X mins parameter to turn off UPS power
0x02
after shutdown event notified.
0x03 Host request to read the temperature reported by adc.(0~40)
Host Communication Interface
• Host to EC CMD (Write)
Host Write Data Package
Data
Start Byte0 Start Byte1 CMD Checksum
Byte 0
1 byte 1 byte 1 byte 1 byte 1 byte
EX: 0x55 0xAA 0x11 or 0x12 0x40, 0x50 … ??

Host Write CMD Description


Write the battery X% threshold notifying shutdown
0x11
event. (Data range is 10~50)
Write the X mins parameter to turn off UPS power
0x12
after shutdown event notified.(Data range is 1~10)
EC Side
EC Communication Interface

EC Return Data Package List


Start Start EC Return Data Data
Check Sum/Return Data
Byte 0 Byte 1 CMD Byte 0 Byte 1
0x55 0xAA 0x00 Data0 Null According Data Value
0x55 0xAA 0x01 Data0 Null According Data Value
0x55 0xAA 0x02 Data0 Null According Data Value
0x55 0xAA 0x11 Null Null Return 0x55 0xAA if valid
0x55 0xAA 0x12 Null Null Return 0x55 0xAA if valid

You might also like