The newly purchased module, the default is slave mode, baud rate 57600, 8 bit data bit, no test bit, 1 bit stop bit.
Send +++a, enter command mode.
1. Set the module name
At+name=bt_shining
2, set the transmitting power (maximum power +3dbm)
At+tpl=8
3. Set the password
at+pass=123456
4, set the serial port parameters (baud rate 115200, 8 bit data bits, no test bit, 1 bit stop bit)
at+uart=115200,8,0,0
5, set the boot welcome (superfluous, set to empty)
at+hello=
There are two modes of usr-ble101 master-slave Connection:
- The way to use search
- Bind the MAC address from the device
The second method is used here.
For slave machines:
First, query the slave MAC address
At+mac?
return: +mac:d8b04cb1f48f
Turn on the broadcast so that it can be discovered by the main device
At+adp=on
For hosts:
Configure primary Mode First
At+mode=m
Then bind the slave MAC address
at+connadd=d8b04cb1f48f
USR-BLE101 Configuration