Chengdu Ebyte Electronic Technology Co.,Ltd.
E104-BT12LSP User Manual
Copyright ©2012–2021
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
13
4.2.1 Parameter Configuration
Configuration data is used for reading and writing module parameter information and for device access operations
in the following format:
Directive
(
1 byte
)
Operational code
(
1
byte
)
Data
(
N byte
)
Send
0xC0
0~255
Request data
Receive 0x40
0~255
Response data
Instructions: Proper configuration operation gives corresponding response data. If the configuration error returns the
error code, the following:
Error code
Explanation
0x0D
invalid parameter
0x0E
Parameter length error
0x0F
error instruction
4.2.1.1 Get the current network address and status of the device
Network keys are used for network IDs assigned by provisers during network formation in the following format.
Operation
al code
Parameter
Request
0x00
Respond
0x40
06 40 00 data
Example
Request
:
02 C0 00
Respond
:
06 40 00 DATA[3]
Description:
This instruction is only applicable to E104-BT12SP-L, E104-BT12SP-N to obtain network
addresses and configure networks
DATA analysis
Unorganized network:
DATA[0] =0x00
,
DATA[2],DATA[3]0
Network :
DATA[0] =0x01
,
DATA[2],DATA [3] is the module network address.
4.2.1.2 Baud Settings
Operational code
Parameter
Request
0x01
Baud rate serial number to be set (range 0x00~0x07)
Respond
0x01
Returns the current baud rate serial number.
Example
Order
Baud rate specification
03 C0 01 xx
Xx represents the baud rate label to be set
(
0x00~0x07
)
00
:
230400