Chengdu Ebyte Electronic Technology Co., Ltd.
E180-Z5812SP Product Manual
Copyright ©2012–2019,
Chengdu Ebyte Electronic Technology Co., Ltd.
30
channel ID
ADC GPIO port
0x00
VDD supply voltage detection
0x01
PB6 port
0x02
PB7 port
voltage
:
The read ADC channel voltage value (in mV)
Detectable range 0x0000
~
0x0E74 (0
~
3700)
voltage 1 means high 8 bits
voltage 2 means the lower 8 bits
e.g. read value
:
voltage =0x0C
voltage =0xE4
Then the voltage value is
:
voltage =0x0CE4
Note:
1. If the power supply voltage is the highest 3.3V, the detection range of the ADC can reach the voltage of 3.3V at this time
2. The interval between reading the ADC voltage value of the same device twice must be greater than 10ms
6.6.22 Configure all network parameters
Configuration command format
:
command format
command example
send
:
FD 1A FE all_info FF
return
:
FA FE
send
:
FD 1A FE 03 FE 5B 01 0B 0A 09 54 00
00 00 0A 1C 21 FE FF 57 B4 14 02 00 FF 05
05 A8 8A FF
return
:
FA FE
all_info
:
FD 1A FE 03 FE 5B 01 0B 0A 09 54 00 00 00 0A 1C 21 FE FF 57 B4 14 02 00 FF 05 05 A8 8A FF
Node type 03; PANID FE 5B; Network group number 01; Channel 0B; Transmit power 0A; Baud rate 09; Sleep time 54; Destination
network short address 00 00; Destination network group number 00; 57 B4 14; System sending mode 02; Data output mode 00;
Network open time FF (non-coordinator module does not support it); Rejoin cycle 05; Rejoin times 05; Wireless ID A8 8A;
6.6.23 Read all network parameters
Read instruction format:
send
:
FE 2F FE FF
return
:
FB FE all_info
send
:
FE 2F FE FF
return
:
FB FE 03 02 FE 5B
F6 FA 1F 1C 21 FE FF 57
B4 14 00 00 0C 46 0C FE
FF 9F FD 90 01 0B 0A 09
54 00 00 00 0A 1C 21 FE FF
57 B4 14 02 00 FF 05 05 A8
8A
all_info
:
FB FE 03 02 FE 5B F6 FA 1F 1C 21 FE FF 57 B4 14 00 00 0C 46 0C FE FF 9F FD 90 01 0B 0A 09 54 00 00 00 0A 1C
21 FE FF 57 B4 14 02 00 FF 05 05 A8 8A