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

BT4.0 - AT-Commands

This document outlines various AT commands for configuring a Bluetooth 4.0 module via UART. It describes commands for checking and setting the UART baud rate, parity and stop bits, as well as commands for setting the module's discoverable status, PIO1 output, name, role as master or slave, PIN, and checking the MAC address. Parameters for each command customize the specific configuration value.

Uploaded by

Lê Xuân Tùng
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)
117 views2 pages

BT4.0 - AT-Commands

This document outlines various AT commands for configuring a Bluetooth 4.0 module via UART. It describes commands for checking and setting the UART baud rate, parity and stop bits, as well as commands for setting the module's discoverable status, PIO1 output, name, role as master or slave, PIN, and checking the MAC address. Parameters for each command customize the specific configuration value.

Uploaded by

Lê Xuân Tùng
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

Bluetooth 4.

0 Module – AT Commands
Checking and Setting UART Baud Rate:
Command Return Argument
Checking: AT+BAUD? OK+BAUD:[Param] Param:1~C stand for
1200,2400,4800,9600,19200,38400,5
7600,115200,230400,46800,921600,1
382400
Setting: AT+BAUD[Param] OK+Set:[Param]

Setting UART Parity Bit


Command Return Argument
Checking:AT+CHK? OK+CHK:[Param] NO
Setting:AT+CHK[Param] OK+Set:[Param] Param:0,1,2
0:NONE
1:ODD
2:EVEN

Setting UART Stop Bit


Command Return Argument
Checking:AT+STOP? OK+STOP:[Param] NO
Setting:AT+STOP[Param] OK+Set:[Param] Param:1,2
1:1 stop bit
2:2 stop bit

Setting All UART Parameters


Command Return Argument
Checking:AT+UART? OK+UART:[Param1][Param2] Param1:Baud Rate 1~C stand
[Param3] for:1200,2400,4800,9600,19200,3840
0,57600,115200,230400,46800,92160
Setting:AT+UART[Param1][Param2] OK+Set:[Param1][Param2][Param3]
0,1382400 default is 4 (9600)
[Param3]
Param2:Checking 0,1,2
0:NONE
1:ODD
2:EVEN
Param3:stop bit 1,2
1:1 stop bit
2:2 stop bit

Set Module's Discoverable Status


Command Return Argument
Checking:AT+DISC? OK+DISC:[Param] Param:0,1,2
0:discoverable & connect
Setting:AT+DISC[Param] OK+Set:[Param]
1:only discoverable
2:only connect

Set PIO1 Output Status


Command Return Argument
Checking:AT+LED? OK+LED:[Param] Param:0,1
0:standby blinking slow, pare blinking
Setting:AT+LED[Param] OK+Set:[Param]
fast, connected stay HIGH
1:only stay HIGH when is connected

Page 1 / 2 www.smart-prototyping.com
Set module's NAME
Command Return Argument
Checking:AT+NAME? OK+NAME:[Param] Param:NAME
MAX is 12 Character
Setting:AT+NAME[Param] OK+Set:[Param]

Set Module as Master/Slave


Command Return Argument
Checking:AT+ROLE? OK+ROLE:[Param] Param:M or S
M: Master
Setting:AT+ROLE[Param] OK+Set:[Param]
S:Slaver
default(S)

Set Module's PIN


Command Return Argument
Checking:AT+PIN? OK+PIN:[Param] Param:password
MAX 12 character
Setting:AT+PIN[Param] OK+Set:[Param]
default(1234)

Checking the MAC Address of the Module


Command Return Argument
Checking:AT+LADD? OK+LADD:MAC Address

Page 2 / 2 www.smart-prototyping.com

You might also like