Chengdu Ebyte Electronic Technology Co.,Ltd.
E180-ZG120A User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd.
1
PWM
Read/Write
1
~
65535ms
Access/control module duty cycle and period of the PWM
channel;
ADC value
Read
0
~
3700mv
Read the ADC value of the device, where 0 channel can read the
device power voltage value, and the ADC can detect 3.7V voltage
when the voltage is up to 3.7V;
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