HM-10 CC2541 4.0 BLE Bluetooth to UART Transceiver Module

HM-10 CC2541 4.0 BLE Bluetooth to UART Transceiver Module

1.1 Description

 

HM-10 is Bluetooth V4.0 BLE version, using CC2541 from TI. It support three working modes: remote control, data transmission and PIO state acquisition. Module parameters can be modified through AT command conveniently. Transmission version can be used to transmit data between two Bluetooth devices. Remote Control version can be used to Control PIO ports output high or low level without any other MCU.

Key features


CC2541 Bluetooth Chip Solution

BT Version: Bluetooth Specification V4.0 BLE

Send and receive no bytes limit.

Range: 100inches(60meters)

With firmware pre-loaded, support IOS and Android 4.3

RF Power: -23dbm, -6dbm, 0dbm, 6dbm, can modify through AT Command AT+POWE.

Speed:     Asynchronous: 6K Bytes

Synchronous: 6K Bytes

Security: Authentication and encryption

Service: Central & Peripheral UUID FFE0,FFE1

Power: +3.3VDC 50mA

Long range: Open space have 100 Meters with iphone4s

Power: In sleep mode 400uA~1.5mA, Active mode 8.5mA.

Working temperature:–5 ~ +65 Centigrade

Size: HM- 10 26.9mm x 13mm x 2.2 mm;

 

 

  1. Product technical specifications

    1.2.1 Schematic

1.2.2 Package information

1.2.3 Pin definitions

No Name Description CC254X
1 UART_TX UART interface P1_6
2 UART_RX UART interface P1_7
3 UART_CTS UART interface P1_4
4 UART_RTS UART interface P1_5
5 NC NC
6 NC NC
7 NC NC P2_2
8 NC NC P2_1
9 NC NC P2_0
10 NC NC
11 RESETB Reset if low>100ms. RESET_N
12 VCC 3.3V
13 GND Ground
14 GND Ground
15 USB_D- USB interface PIN3
16 NC NC
17 NC NC
18 NC NC
19 NC NC
20 UB_D+ USB interface PIN2
21 GND Ground GND
22 GND Ground GND
23 PIO0 System Key P1_3
24 PIO1 System LED P1_2
25 PIO2 GPIO pin. PWM output P1_1
26 PIO3 GPIO pin/ADC P1_0
27 PIO4 GPIO pin/ADC P0_7
28 PIO5 GPIO pin/ADC P0_6
29 PIO6 GPIO pin/ADC P0_5
30 PIO7 GPIO pin/ADC P0_4
31 PIO8 GPIO pin/ADC P0_3
32 PIO9 GPIO pin/ADC P0_2

 

1.3 FAQ

1.3.1 How to wake up module from sleep mode?

There are two ways to wake up module from sleep mode.

1) Send “I am iron man, I am iron man, I am iron man I am iron…..” string.

Yes, that is a joke, in sleep mode, you can send a long string (Length > 80 or more), that string can made module wake up, and you will receive “OK+WAKE” string through UART. That string can’t include any AT commands.

2) Long press system KEY >=1000 ms.

After wake up module, you can send and receive AT commands.

1.3.2 How to let module into sleep mode?

In discoverable mode, send “AT+SLEEP” string through UART, if all is okay, module will return “OK+SLEEP” string and into sleep mode.

1.3.3 System KEY function (PIO0)

Press if Low > 1000ms:

1) If Module is in sleep mode

Module will wake up immediately, if AT+NOTI value is “1”, module will send “OK+WAKE” string through UART.

2) If Module has already connected to remote device. Module will disconnect from remote device.

3) If Module is standby mode Module will reset to default configuration. Then restart.

1.3.4 System LED function (PIO1)

In sleep mode, LED is turned off.

If AT+PIO10 is set

Unconnected status: Output High 500 ms, Low 500 ms

Connected status: Output High

If AT+PIO11 is set

Unconnected status: Output Low.

Connected status: Output High.

1.3.5 System working Mode

A) Mode 0(Transmission mode):

When not connected, through the AT command configuration module, connection, only for serial data transmission.

B) Mode 1(PIO acquisition mode):

When not connected, through the AT command configuration module, connection,

  • serial data transmission.
  • Control of the PIO2,3 output state
  • The acquisition of PIO4 ~ 11 input state.

C) Mode 2(Remote control mode):

When not connected, through the AT command configuration module, connection,

  • serial data transmission.
  • Control of the PIO2~11 output state.

1.4 AT commands

Factory default setting:

  • Name: HMSoft;
  • Baud: 9600, N, 8, 1;
  • Pin code: 000000;
  • Peripheral Role;
  • transmit mode.

AT Command format:

Uppercase AT command format. string format, without any other symbol. (e.g. r or n).

On Transmit version: Only accept AT Command from UART interface when Bluetooth device is not connected with remote device.

On Remote version: Can accept AT Command from UART interface when Bluetooth Device is not connected with remote device, Also can accept AT Command from remote Bluetooth device when connected that.

On PIO
collection version: Only accept AT Command from UART interface when Bluetooth device is not connected with remote device.

1.4.1 AT commands table

AT                                 (Test command)
AT+BAUD                  (Query/Set Baud rate)
AT+CHK                     (Query/Set parity)
AT+STOP                   (Query/Set stop bit)
AT+UART                  (Query/Set uart rate,parity, stop bit)
AT+PIO                      (Query/Set PIO pins status Long command)
AT+PIO                      (Query/Set a PIO pin sttus Short command)
AT+NAME                 (Query/Set device friendly name)
AT+PIN                      (Query/Set device password code)
AT+DEFAULT          (Reset device settings)
AT+RESTART          (Restart device)
AT+ROLE                  (Query/Set device mode, Master or Slave)
AT+CLEAR                (Clear remote device address if has)
AT+CONLAST           (Try to connect last connect succeed device)
AT+VERSION           (Show software version information)
AT+HELP                   (Show help information)
AT+RADD                  (Query remote device address)
AT+LADD                   (Query self address)
AT+IMME                  (Query/Set Whether the device boot immediately)
AT+WORK                 (if device not working, start work, use with AT+IMME command)
AT+TCON                  (Query/Set Try to connect remote times)
AT+TYPE                    (Query/Set device work type, transceiver mode or remote mode)
AT+START                (Switch remote control mode to transceiver mode)
AT+BUFF                   (Query/Set How to use buffer data, Duing mode switching time)
AT+FILT                    (Query/Set device filter when device searching)
AT+COD                    (Query/Set Class of Device. eg: phone, headset etc.)

 



1.5 References:

[1] HM-10 datasheet from Huamao

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>