Chengdu Ebyte Electronic Technology Co.,Ltd E180-Z6907A User Manual
Copyright ©2012–2019,Chengdu Ebyte Electronic Technology Co., Ltd.
4-15
6.5 HEX User instruction set
6.5.1 Instruction rule
Local serial port read format:
Network parameter reading FE LEN CMD FF
Peripheral parameter reading FE LEN CMD CHANNEL FF
FE :fixed head
LEN: Actual length of DATA
CMD: Actual named ID
CHANNEL: Channel selection for PWM, ADC, GPIO read
FF
:Command terminator
Read return format:FB CMD DATA
FB : fixed head
CMD: Command ID
DATA: parameter
Local serial port configuration format:
FD LEN CMD DATA FF
FD : fixed head
LEN: Actual length of DATA
CMD: Actual named ID
DATA: Actual parameter
FF
:Command terminator
Configuration return:
FA CMD
FA: fixed head
CMD: Command ID
Return when reading / configuring access: F7 FF does not exist the information / reading / configuration / format failed
Wireless remote reading/ configuration format: add the wireless configuration ID before the instruction format of local
serial port mode
The default is A8 8A (The value can be modified), for example:
The configuration format is A8 8A FD LEN CMD DATA FF
Parameter reading format: A8 8A FE LEN CMD (CHANNEL) FF
Network operation format:F5 LEN CMD DATA FF
F5 : fixed head
LEN: Actual length of DATA
CMD: Actual named ID
DATA: Actual parameter
FF:Command terminator
Configuration return:FC CMD STATUS
FC: Fixed head
CMD: Actual named ID
Status: 00 operation succeeded