HC-08 Bluetooth UART Communication Module V2.4 User Guide

HC-08 Bluetooth UART Communication Module V2.4 User Guide

Product Introduction

Bluetooth Modem - Minimum Pass-through Module HC08 is a new generation data transmission module based on Bluetooth Specification V4.0 BLE protocol. Its wireless working frequency band is 2.4GHz ISM with GFSK modulation method. The maximum transmit power is 4d Bm. Its receiving sensitivity is -93d Bm. In the wide open environment, it can reach 80m super long-range communication with iphone4s. It has integrated stamp package holes and pins welding holes. You can both mount package and weld pins. It is very convenient to be embedded into the application system. With built-in LED indicator, you can visually see the connection status of Bluetooth. This module adopts core CC2540F256 configured 256K bit. It supports AT commands. Users can change roles(master/slave mode) as well as parameters like Baud rate and the device name according to their own requirements. It is very flexible to use.

Product size

Pin definition

The HC-08 module has 30 pins on board. Specific definitions of pins are listed in the following table:

Pin

Definition

I/O

Explain

1

TXD

output

UART output, 3.3V TTL level

2

RXD

input, weak pull up

UART input, 3.3V TTL level

3

NC

4

NC

5

NC

6

DC

input

Debug clock

7

DD

Input/output

Debug data

8

PIO20

input, weak pull up

NC

9

PIO17

input, weak pull down

NC

10

PIO16

Input, weak pull down

NC

11

RST

input, pull up

Module reset pin, a low level of not less than 10ms reset

12

VCC

input

Power pin, the requirements of 3.3V DC power supply,

the supply current is not less than 100mA

13

GND

Ground

14

LEDCON

input

LED control pin(Note3)

15

PIO14

input, weak pull down

NC

16

PIO13

output

LED output(Note1)

17

PIO11

input, weak pull down

NC

18

PIO12

input, weak pull down

The master module clear memoryNote2

19

PIO10

input, weak pull down

NC

20

PIO07

input, weak pull up

NC

21

USB_D-

NC

22

USB_D+

NC

23

PIO06

input, weak pull up

NC

24

PIO01

input, weak pull up

NC

25

PIO15

input, weak pull down

NC

26

PIO00

input, weak pull up

27

VCC

input

Power pin, the requirements of 3.3V DC power supply,

the supply current is not less than 100mA

28

GND

Ground

29

RXD

input, weak pull up

UART input, 3.3V TTL level

30

TXD

output

UART output, 3.3V TTL level

Note 1: PIO13 indicates LED output pin, high level output. Please connect LED with resistance in parallel. Before Connection: When the master module do not record the address of the slave module, it will illuminate for 100ms per second; When the master module record the address of the slave module, it will illuminate for 900ms per second; In the slave module, LED illuminates for 1 second between every 2 seconds. After connection: LED lights are always illuminated.

Note 2: Input pin, internal pull-down. This pin is connected to the high electric level. The master module is used to clear the recorded address of the slave module.

Note 3: Input pin, be used to control the LED. If this pin is grounded, LED off. If this pin is left hanging, LED on.

Electrical Characteristics:

Parameter

Test Condition

Representative Value

Working Voltage

-

DC2.0V~3.6V

Master

not connected / connection

21mA/9mA

Working Current

MODE0, not connected / connection

8.5mA/9mA

MODE1, not connected / connection

340μA/1.6mA

not LED

Slave

MODE2, not connected / connection

0.4μA/1.6mA

MODE3, not connected / connection

1.2μA-160μA/1.6mA

Manual AT Command

AT command is used to set module's parameter. Before connection, module can operate under AT command. After connection, it enters into serial port transparent transmission mode. The startup time of this module is about 150ms. So it is better to operate AT command after being powered on for 200ms. Unless otherwise indicated, the parameter setting of AT command is effective immediately. At the same time, the modification of parameters and functions will not be lost once power off. After the successful modification of AT command, it uniformly returns to OK (Except for information checking commands such as "AT+RX, AT+VERSION"). No success achieved, it will not return to any information. ⑴   

 AT Command List

AT Command

Function

Default

Role

"x"- parameter

1

AT

Test command

-

M/S

2

AT+RX

Check the basic parameters

-

M/S

3

AT+DEFAULT

Restore factory setting

-

M/S

4

AT+RESET

Reset the module

-

M/S

5

AT+VERSION

Check version and date

-

M/S

6

AT+ROLE=x

Change master/slave role

S

M/S

7

AT+NAME=xxxxxxxxxxxx

Revise name

HC-08

M/S

8

AT+ADDR=xxxxxxxxxxxx

Revise address

Hardware

M/S

address

9

AT+RFPM=x

Revise RF power

0(4dBm)

M/S

10

AT+BAUD=x,y

Revise UART baud

9600,N

M/S

11

AT+CONT=x

Set connectability

0(Can be

M/S

connected)

12

AT+MODE=x

Set working mode

0

S

13

AT+AVDA=xxxxxxxxxxxx

Change the broadcast data

-

S

14

AT+TIME=x

Mode 3 broadcast cycle

5(s)

S

The master module to clear

15

AT+CLEAR

the slave module address

-

M

have been recorded.

 

Note:

1.    The AT command behind no newline; if no special instructions, all AT commands are not transmitted using newline.

2.    The last 4 senior commands, must be used in combination, can play its due role BLE Bluetooth low energy. Using a Bluetooth low energy, there will be special instructions and program introduced in the following sections.

Command Explain 1.Test command

Command:AT Return:OK.

Check the basic parameters

  View the basic parameters such as Bluetooth name, master/slave role, UART baud rate, address and password. Command:AT+RX Return: Name:HC-08    -------->>>> bluetooth name Role:Slave    -------->>>> master/slave role Baud:9600,NONE    -------->>>> UART baud rate Addr:xx,xx,xx,xx,xx,xx    -------->>>> bluetooth address PIN :000000    -------->>>> bluetooth password Note: Temporarily does not support change password!

Reset to default

Command:AT+DEFAULT Return:OK The module will automatically restart, please carry out new operation on the restart 200ms!

Reset the module

Command:AT+ RESET Return:OK The module will automatically restart, please carry out new operation on the restart200ms! 


Check version and date

Command:AT+ VERSION Return:HC-08V2.0,2014-08-22

Change master/slave role Set

command:AT+ROLE=x Query command:AT+ROLE=? X:role(M or S), M:master; S:slave. Default setting is S(slave). Send:AT+ROLE=M Return:OK Set master role,the module will automatically restart Send:AT+ROLE=? Return:Master You can view the role is the master module.

Revise name

Set command: AT+ NAME=xxxxxxxxxxxx Query command: AT+ NAME=? Default name is HC-08, you can set the other name (Valid within 12 characters, support the visualized ASCII code and part of the escape character. The module supports chinese, but android devices must be converted to "UTF8 code" in order to display normally. More than 12 characters, then it will read the first 12 characters only.). Setup is complete, effective after module automatically reset! Example: Send:AT+NAME=HCKJ Return:OKsetNAME Send:AT+NAME=? Return:HCKJ

Revise address

Set command:AT+ADDR=xxxxxxxxxxxx Query command:AT+ADDR=? The address must be 12 bit "0~F" uppercase characters, namely hexadecimal characters. Example: Send:AT+ADDR=1234567890AB Return:OKsetADDR Setup is complete, effective after module automatically resett! Send:AT+ADDR=? Return:1234567890AB Send:AT+ADDR=000000000000 Return:OKsetADDR Send "000000000", module to restore the default hardware address. Module factory default is hardware address.

Revise RF power

Set command:AT+RFPM=x Query command:AT+RFPM=? X:RF power,as shown in the following table: