Chengdu Ebyte Electronic Technology Co.,Ltd
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
Actual named ID
CMD:
CHANNEL:
Command terminator
FF:
Read return format:FB CMD DATA
FB : fixed head
CMD: Command ID
DATA: parameter
Local serial port configuration format
FD : fixed head
LEN: Actual length of DATA
Actual named ID
CMD:
Actual parameter
DATA:
Command terminator
FF:
Configuration return
FA: fixed head
Command ID
CMD:
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
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
Copyright ©2012–2019,Chengdu Ebyte Electronic Technology Co., Ltd.
4-15
Channel selection for PWM, ADC, GPIO read
:FD LEN CMD DATA FF
:FA CMD
The default is A8 8A (The value can be modified), for example:
The configuration format is
Parameter reading format:
A8 8A FD LEN CMD DATA FF
A8 8A FE LEN CMD (CHANNEL) FF
E180-Z6907A User Manual