Chengdu Ebyte Electronic Technology Co.,Ltd.
E180-Z5812SX User Manual
Copyright ©2012–2021, Chengdu Ebyte Electronic Technology Co., Ltd.
29
6.6.21 User adc parameter
Command format for Read:
Command Format
Command Example
Send: FE 03 22 adcid FF
Reply: FB 22 adcid voltage1
voltage2
Send: FE 03 22 00 FF
Reply: FB 22 00 0C E4
Adc: Peripheral read data format (3 Byte): acid voltage 1 voltage2
adcid:ADCChannel ID
Channel ID
ADC GPIO interface
0x00
VDD Power supply voltage detection
0x01
PB6 interface
0x02
PB7 interface
voltage: ADC channel voltage value read (unit mV)
The detectable range is 0x0000
~
0x0E74 (0
~
3700)
voltage 1 means high 8 bits
voltage 2 means lower 8 bits
Column such as read value: voltage =0x0C voltage =0xE4
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 3.3V at this time
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
Command format for Configuration:
Command Format
Command Example
Send: FD 1A FE all_info FF
Reply: 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
Reply: 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. Target
network short address 00 00. Target network group number 00. Target long address 0A 1C 21 FE FF 57 B4 14. System sending mode
02. Data output mode 00. Network open time FF (not supported by this module of non-coordinator). Period of rejoin 05. Number of
rejoins 05. Wireless ID A8 8A.