0% found this document useful (0 votes)
35 views2 pages

Basic at Commands of hm-1011

The document outlines a series of AT commands for configuring a Bluetooth module, including querying and setting the MAC address, baud rate, device name, and working mode. It also details commands for connecting to devices, clearing pairing information, setting passwords, restoring factory settings, and resetting the module. Each command includes the syntax, expected responses, and notes on usage and defaults.

Uploaded by

ziane.a.krim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views2 pages

Basic at Commands of hm-1011

The document outlines a series of AT commands for configuring a Bluetooth module, including querying and setting the MAC address, baud rate, device name, and working mode. It also details commands for connecting to devices, clearing pairing information, setting passwords, restoring factory settings, and resetting the module. Each command includes the syntax, expected responses, and notes on usage and defaults.

Uploaded by

ziane.a.krim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

AT commands & Configuration

1 Query the native MAC address


Send: AT + ADDR?
Send after a successful return: OK + LADD: MAC address (address for 12
string)

2 Query the baud rate


Send: AT+BAUD?
Send after a successful return: OK + Get: [para1]
Scope of para1:0 ~ 8. The parameters corresponding to: 0 represents 9600, 1,
2, 9600, 38400, on behalf of the representative representative of 57600,
115200, 5, 4800, 6, 7 represents 1200, 1200 2400. The default baud rate to
9600.

3 Set the baud rate


Send: AT+BAUD[para1]
Send after a successful return: OK+Set:[para1]
Example: send: AT + BAUD1, return: OK + Set: 2.The baud rate is set to 19200.
Note: after the switch to the 1200, module will no longer support the
configurations of the AT command, and press the PIO0 under standby, module
can restore the factory Settings.Do not recommend using the baud rate.After
setting the baud rate, modules should be on electricity, anew set parameters
can take effect.

4 from the device connected to the bluetooth address specified


Send: AT+CON[para1]
Send after a successful return: OK+CONN[para2]
Para2 range is: A, E, F
Example: from the bluetooth address is: 0017EA0943AE, sending the AT +
CON0017EA0943AE, module returns: OK + CONNA or OK + + CONNF
CONNE or OK.

5 removal equipment matching information


Send: AT + CLEAR
Send after a successful return: OK + CLEAR
Clear success had connected device address code information.

6 query module working mode


Send: AT + MODE?
Send after a successful return: OK + Get: [para]
Para: the range of 0 ~ 2. 0 represents passthrough mode, on behalf of the PIO
acquisition + remote control + 1 passthrough, 2 representative passthrough +
remote control mode.The default is 0.
7 set module working mode:
Send: AT + MODE []
Send after a successful return: OK + Set: [para]

8 query device name


Send: AT + NAME?
Send after a successful return: OK + NAME [para1]

9 set the device name


Send: AT + NAME [para1]
Send after a successful return: OK + Set: [para1]
Example: Set the device name to Seeed, sending the AT + NAMESeeed, return
OK + Set: Seeed AT this time, the name of the bluetooth module has been
changed to Seeed. Note: after the instruction execution, required to electricity,
set the parameters of the approval.

10 query matching password


Send: AT + PASS?
Send after a successful return: OK + PASS: [para1]
Para1 range is 000000 ~ 999999, the default is 000000.

11 pairing set password


Send the AT + PASS [para1]
Send after a successful return: OK + Set: [para1]

12 restore factory Settings


The AT + RENEW send
Send after a successful return: OK + RENEW
Restore the default factory Settings module, the module Settings will be reset
so, back to the factory with the status of the factory default, delay module 500
ms after the restart.If no need, please be careful.

13 module reset
Send: AT + RESET
Send after a successful return: OK + RESET
After the instruction execution module will delay 500 ms after the restart.

14 set the master-slave mode


Send: AT + ROLE [para1]
Send after a successful return: OK + Set: [para1]

You might also like