How to Change name and Password of Bluetooth using Arduino?

  • Step 1: Make a connection as given in the Image 1. Rx-Rx and Tx-Tx,
  • Pin: EN uses to enable Bluetooth in Attention (AT) mode. So enable it by powering 5V.

Arduino BT Connection

Image 1

 

•Step2: Open Serial Monitor in Arduino software set Baud rate and Encoding in Given image 2
•Now Use Below command to communicate

Serial Monitor Arduino

Image 2

AT Command for Bluetooth

GET NAME:

“AT+NAME?” will return the current name of BT Module

SET NAME:

“AT+NAME=bt_drjslab” will set BT Module name: bt_drjslab.

GET PASSWORD:

“AT+PSWD?”  will return the current name of BT Module

SET PASSWORD:

“AT+PSWD=2344”  will set BT Module password with 2344

 

More AT Command:

S.No Command Response
1 AT Ok
2 AT+VERSION +VERSION:2.0-20100601
3 AT+NAME +NAME:h-C-2010-06-01
4 AT+ADDR +ADDR:98D3:34:9056fa
5 AT+ROLE +ROLE:0
6 AT+CLASS +CLASS:0
7 AT+IAC +IAC:9e8b33
8 AT+PSWD +PSWD:1234
9 AT+UART 38400,0,0
10 AT+BIND 0:0:0
11 AT+POLAR +POLAR:1,1
12 AT+MPIO +MPIO900
13 AT+IPSCAN +IPSCAN:1024,512,1024,512
14 AT+SNIFF +SNIFF:0,0,0,0
15 AT+RMAAD OK
16 AT+STATE +STATE INITIALIZED
17 AT+INIT OK
18 AT+INQ OK
19 AT+INQC OK
20 AT+ORGL OK
21 AT+RESET OK

Share Post