Chengdu Ebyte Electronic Technology Co.,Ltd.
E180-ZG120B User Manual
Copyright ©2012–2020, Chengdu Ebyte Electronic Technology Co.,Ltd.
26
adcid
:
ADC
channel
ID
Channel
ID
ADC GPIO Port
0x00
VDD
Power supply voltage
detection
0x01
PC8 Port
0x02
PC9 Port
0x03
PC10 Port
0x04
PC11 Port
Voltage
:
Read ADC channel voltage value
(
mV
)
Detectable range
0x0000
~
0x0E74
(
0
~
3700
)
voltage 1
Indicates high 8 digits
voltage 2
Indicates lower 8 bits
If
Read value
:
voltage =0x0C
voltage =0xE4
Then voltage
:
voltage =0x0CE4
Note: If the power supply voltage is the highest 3.7V, the detection range of the ADC can reach 3.7V.
6.6.23 Configure all network parameters
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
;
Network PANID FE 5B
;
Network group number 01
;
Channel 0B
;
Transmitting power 0A
;
Baud rate 09
;
Sleep time 54
;
Target network short address 00 00
;
Target network group number 00
;
Target long address 0A 1C 21 FE FF 57
B4 14
;
System transmitting mode 02
;
Data output mode 00
;
Network open time FF
;
rejoin period 05
;
rejoin times 05
;
Wireless
ID A8 8A
;
6.6.24 Configure all network parameters
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
Node type 03
;
Network status 02
;
Network PANID FE 5B; Local network short address F6 FA
;
Local MAC
address 1F 1C 21 FE FF 57 B4 14
;
Parent node network short address 00 00
;
Parent node MAC address 0C 46 0C FE FF 9F FD
90
;
Network group 01
;
Channel 0B
;
Transmitting power 0A
;
Baud rate 09
;
sleep time 54
;
Target network short address 00 00
;
Target network group 00
;
Target long address 0A 1C 21 FE FF 57 B4 14
;
System transmitting mode 02
;
Data output mode 00
;
Network open time FF
;
rejoin period 05
;
rejoin times 05
;
Wireless ID A8 8A
;
6.6.25 Number of end-devices of the parent node
Child_count:
Refers to the number of end-device nodes currently managed by the coordinator or router, and manages
up to 50 end-device devices.
6.6.26 Parent node's end-device list
index: Indicates the serial number of the end-device node, the range is from 0 to child_count-1, 1 byte
dev_type
:
device type of
end-device node
,
1 byte
Short_Addr
:
Network short address of the end-device node
,
2 bytes
Mac_Addr
:
MAC address of the end-device node
,
8 byte
After receiving the instruction "FE 0E 33 FF" to read the end-device list, the coordinator or router node will print
out the end-device node information every 50ms interval according to the sequence number (index) of the end-device