User Manual
HLK-B40
13
ROLE
module
BLE role
1 slave
2 host
Default value: 1
send
response
AT+ROLE=?
AT+ROLE=1
OK
send
response
AT+ROLE=2
AT+ROLE=2
OK
14
ENCRYPT
Pairing binding
Enable
0 does not require pairing
binding
1 requires pairing and
binding
Default value: 0
send
response
AT+ENCRYPT=?
AT+ENCRYPT=0
OK
send
response
AT+ENCRYPT=1
AT+ENCRYPT=1
OK
15
PINCODE
Pairing code
6-bit integer
Default value: 000000
send
response
AT+PINCODE=?
AT+PINCODE=000000
OK
send
response
AT+PINCODE=123456
AT+PINCODE=123456
OK
16
PEERMAC
When the
module is the
master, it
automatically
goes to the
MAC address of
the slave
MAC address, 12
hexadecimal numbers
send
response
AT+PEERMAC=?
AT+PEERMAC=AABBCC000001
OK
send
response
AT+PEERMAC=AABBCC000001
AT+PEERMAC=AABBCC000001
OK
17
AUTHPWG
OTA and air-
configured
access
passwords
Up to 8 characters
Default: Hi- Link
send
response
AT+AUTHPWG=?
AT+AUTHPWG=HiLink
OK
send
response
AT+AUTHPWG=68686868
AT+AUTHPWG=68686868
OK
18
CONNSTATE
Query the
device
information for
the current
Bluetooth
connection
Read-only
Responses includes:
Number of devices currently
connected
Each
device's Role, MAC
send
respnse
AT+CONNSTATE=?
AT+CONNSTATE=2
M,4E21FB831492
M,539FD7108A6D
OK