HC-05-Bluetooth to Serial Port Module
Overview
HC-05 module is an easy to use Bluetooth SPP (Serial Port Protocol) module, designed for transparent
wireless serial connection setup. Serial port Bluetooth module is fully qualified Bluetooth V2.0+EDR
(Enhanced Data Rate) 3Mbps Modulation with complete 2.4GHz radio transceiver and baseband. It uses
CSR Bluecore 04-External single chip Bluetooth system with CMOS technology and with AFH(Adaptive
Frequency Hopping Feature). It has the footprint as small as 12.7mmx27mm. Hope it will simplify your overall
design/development cycle.
Specifications
Hardware features
-80dBm sensitivity
1.8V Operation ,1.8 to 3.6V I/O
Software features
Supported baud rate: 9600,19200,38400,57600,115200,230400,460800.
-disconnected, high-connected;
When master and slave are paired,
red and blue led blinks 1time/2s in interval, while disconnected only blue led blinks 2times/s.
-connect to the last device on power as default.
-pairing PINCODE:”0000” as default
-reconnect in 30 min when disconnected as a result of beyond the range of connection.
Hardware
AT command Default:
How to set the mode to server (master):
1. Connect PIO11 to high level.
2. Power on, module into command state.
3. Using baud rate 38400, sent the “AT+ROLE=1\r\n” to module, with “OK\r\n” means setting successes.
4. Connect the PIO11 to low level, repower the module, the module work as server (master).
AT commands: (all end with \r\n)
1. Test command:
Command Response Parameter
AT OK -
2. Reset:
Command Response Parameter
AT+RESET OK -
3. Get Firmware Version
Command Response Parameter
AT+VERSION? +VERSION:<Param> Param : firmware version
OK
Example:
AT+VERSION?\r\n
+VERSION: 2.0-20100601
OK
4. Restore default
Command Response Parameter
AT+ORGL OK -
Default state:
Slave mode, pin code: 1234, device name: H-C-2010-06-01, Baud 38400bits/s.
5. Get module address
Command Response Parameter
AT+ADDR? +ADDR:<Param> Param: address of Bluetooth
OK module
Bluetooth address: NAP: UAP: LAP
Example:
AT+ADDR?\r\n
+ADDR:1234:56:abcdef
OK
6. Set/Check module name:
Command Response Parameter
AT+NAME=<Param> OK Param: Bluetooth module name
AT+NAME? +NAME:<Param> (Default:HC-05)
OK (/FAIL)
Example:
AT+NAME=HC-\r\n set the module name to “HC-05”
OK
AT+NAME=Synes\r\n
OK
AT+NAME?\r\n
+NAME: Synes
OK
7. Get the Bluetooth device name:
Command Response Parameter
AT+RNAME?<Param1> 1. +RNAME:<Param2> Param1: the address of Bluetooth
OK device
2. FAIL Param2: Bluetooth Device name
Example: (Device address 00:02:72:od:22:24,name:syn)
AT+RNAME? 0002,72,od2224\r\n
+RNAME:syn
OK
8. Set/Check module mode:
Command Response Parameter
AT+ROLE=<Param> OK Param:
AT+ ROLE? +ROLE:<Param> 0-Slave
OK 1-Master
2-Slave-Loop
9. Set/Check device class
Command Response Parameter
AT+CLASS=<Param> OK Param: Device Class
AT+ CLASS? 1. +CLASS:<Param>
OK
2. FAIL
You can get details of any AT Command from http://synes.co.th/nicupload/20130121093745.pdf