Condemn the copycat company copied behavior on HM-10!!!!!!
If you buy a fake, please apply for a refund guarantee your legitimate rights
and interests
-------------------------------------------------------Last Version V530 2014-08-05
1
HM Bluetooth module datasheet
JNHuaMao Technology Company
Bluetooth 4.0 BLE module
Datasheet
-------------------------------------------------------Last Version V530 2014-08-05
2
HM Bluetooth module datasheet
² Professional bluetooth products suppliers.
² Remote control module provider
² data transmission module provider
² PIO state acquisition module provider
² Customizable bluetooth module and bluetooth solutions
² Jinan high and new technology enterprise
² SIG members
Address: D-4020, Qilu soft zone Jinan city,Shandong, China
Telephone: (86) 0531-85117999
WebSite: http://www.jnhuamao.cn
WebSite: http://www.huamaosoft.com
Mail: webmaster@jnhuamao.cn
-------------------------------------------------------Last Version V530 2014-08-05
3
HM Bluetooth module datasheet
The most complete, most convenient, the most stable of
luetooth data transmission, remote control, PIO
acquisition module
---- Master and slave role in one
---- Remote control without other MCU
---- The PIO data acquisition without other MCU
13. Product parameters
Ø BT Version: Bluetooth Specification V4.0 BLE
Ø Send and receive no bytes limit.
Ø Working frequency: 2.4GHz ISM band
Ø Modulation method: GFSK(Gaussian Frequency Shift Keying)
Ø 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; HM-11 18*13.5*2.2mm
-------------------------------------------------------Last Version V530 2014-08-05
4
HM Bluetooth module datasheet
2. Product overview
Thanks for you choose our products. If you want to know more,
www.jnhuamao.cn can help you (Videos, New version datasheet, Module work
flow, project Codes, etc.)
HM Bluetooth module use CSR BlueCore or TI CC2540, Master and slave
roles in one, transmission version and remote control version and PIO state
acquisition functions in one, Support the AT command modify module
parameters, Convenient and flexible.
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.
The PIO state acquisition version can be used to acquisition PIO ports
state without any other MUC. (Only support Bluetooth V2.1)
HM-01, HM-02, HM-03, HM-04, HM-05, HM-06, HM-07, HM-08, HM-09 is
Bluetooth V2.1 version. Use CSR Chip.
HM-10, HM-11, HM-12 is Bluetooth V4.0 BLE version. Use TI Chip.
HM-01, HM-02, HM-09, HM-10 have same size and same pins.
HM-05, HM-06, HM-07, HM-11 have same size and same pins.
-------------------------------------------------------Last Version V530 2014-08-05
6.8 HM-15
HM-15 is based HM-10, a real USB interface.
6.9 HM-Sensor
-------------------------------------------------------Last Version V530 2014-08-05
13
HM Bluetooth module datasheet
-------------------------------------------------------Last Version V530 2014-08-05
14
HM Bluetooth module datasheet
7. System function
How to wake up module from sleep mode?
There are two ways to wake up module from sleep mode.
7.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.
7.2 Long press system KEY >=1000 ms.
After wake up module, you can send and receive AT commands.
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.
-------------------------------------------------------Last Version V530 2014-08-05
15
HM Bluetooth module datasheet
System KEY function (PIO0)
Press if Low > 1000ms:
7.3.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.
7.3.2 If Module has already connected to remote device
Module will disconnect from remote device.
7.3.3 If Module is standby mode
Module will reset to default configuration. Then restart.
System LED function (PIO1)
In sleep mode, LED has turned off.
If AT+PIO10 is setup
Unconnected status: Output High 500 ms, Low 500 ms
Connected status: Output High
If AT+PIO11 is setup
Unconnected status: Output Low.
Connected status: Output High.
System work 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, a) serial data transmission. b) Control of the PIO2,3 output
state(HM-11 has none). c) The acquisition of PIO4 ~ 11 input state(HM-11 only
PIO2,3).
C) Mode 2(Remote control mode):
When not connected, through the AT command configuration module,
connection, a) serial data transmission. b) Control of the PIO2~11 output
state(HM-11 only PIO2,3).
-------------------------------------------------------Last Version V530 2014-08-05
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.
Bluetooth V2.1 version Command is not here, please download datasheet
from http://www.jnhuamao.cn/Bluetooth_en.rar
1. Test Command
-------------------------------------------------------Last Version V530 2014-08-05
17
HM Bluetooth module datasheet
Send Receive Parameter
AT OK
None
OK+LOST
If Module is not connected to remote device will receive: “OK”
If Module has connected, module will disconnected from remote device, if “AT
+ NOTI” is setup to 1, will receive: “OK+LOST”
The maximum 1285ms recommendations form the IOS system. That is to
say, 1285ms is apple allowed, but in response to scan and connected all the
time will be long.
Default: 000
This command added in V527.
3FF == 001111111111, left to right side is map to PIO0~PIOB, PIO0 and
PIo1 is used by system. Only Pio2~PIOB pins is available.
e.g. Set PIO2~PIOB all output high after power supplied.
Send: AT+BEFC3FF
Recv:OK+Set:3FF
When next time power on, module PIO2~PIOB will output high.
Note: Query PIO pins current state please use AT+PIO?? Command.
Note: Please don’t use this command when “AT+MODE1” is setup.
9. Query/Set Module pin output state, After connection is established
Send Receive Parameter
Default: 000
This command added in V527.
3FF == 001111111111, Left to right side is map to PIO0~PIOB, PIO0 and
PIo1 is used by system. Only Pio2~PIOB pins is available.
e.g. Set PIO2~PIOB all output high when connection is established.
Send: AT+AFTC3FF
Recv: OK+Set:3FF
When Bluetooth connection is established, module PIO2~PIOB will output
high.
Note: Query PIO pins current state please use “AT+PIO??” command.
Note: Please don’t use this command when “AT+MODE1” is setup.
-------------------------------------------------------Last Version V530 2014-08-05
11. Query battery information
Send Receive Parameter
AT+BATT? OK+BATT:[Para] Para: 000~100
There has three ways to get battery information:
a. Before establishing a connection, Send “AT+BATT?” through UART.
b. After established a connection, In Mode 1 or 2, remote side send
“AT+BATT?”
Battery information has included in scan response data package, one hour
update once. You can use Android or IOS discovery module, when module has
been discovered, you can get it from scan result array.
Data format is 0x02, 0x16, 0x00, 0xB0, [FLAG], [temperature], [ humidity],
[battery].
Android:
Included in OnLeScan function result array, you can see it direct.
private BluetoothAdapter.LeScanCallback mLeScanCallback = new BluetoothAdapter.LeScanCallback() {
@Override
public void onLeScan(final BluetoothDevice device, int rssi,
byte[] scanRecord) {
......<Other code>......
String sBatt = ""; //Battery
String sTemp = ""; //Temperature
-------------------------------------------------------Last Version V530 2014-08-05
Receive: OK+Get:0
Setup baud:
Send: AT+BAUD1
Receive: OK+Set:1
Note: If setup to Value 7, After next power on, module will not support any
AT Commands, until PIO0 is pressed, Module will change Baud to 9600.
-------------------------------------------------------Last Version V530 2014-08-05
24
HM Bluetooth module datasheet
AT+CHAR[para1] OK+Set:[para1] Default: 0xFFE1
e.g. change characteristic value to 0xAAA0
Send: AT+CHAR0xAAA0
Recv: OK+Set:0xAAA0
15. Clear Last Connected device address
Send Receive Parameter
AT+CLEAR OK+CLEAR None
Notice: Only Central role is used.
16. Try connect to last succeeded device
Send Receive Parameter
AT+CONNL OK+CONN[Para1] Para1: L, E, F, N
L: Connecting
E: Connect error
F: Connect Fail
N: No Address
Notice: Only Central role is used.
If remote device has already connected to other device or shut down,
“OK+CONNF” will received after about 10 seconds.
17. Try connect an address
Send Receive Parameter
AT+CON[Para1] OK+CONN[Para2] Para1: Address
Like: 0017EA090909
Para2: A, E, F
A: Connecting
E: Connect error
F: Connect Fail
Notice: Only central role is used.
If remote device has already connected to other device or shut down,
“OK+CONNF” will received after about 10 Seconds.
-------------------------------------------------------Last Version V530 2014-08-05
25
HM Bluetooth module datasheet
e.g.
Try to connect an device which MAC address is 00:17:EA:09:09:09
Send: AT+CON0017EA090909
May receive a reply:
OK+CONNA ========= Accept request, connecting
OK+CONNE ========= Connect error
OK+CONN ========= Connected, if AT+NOTI1 is setup
OK+CONNF ========= Connect Failed, After 10 seconds
18. Query PIO04~PIO11 input(output) state
Send Receive Parameter
AT+COL?? OK+ Col:[Para1] Para1: 0x00~0xFF
Para1 is a byte, has 8 bits, bit 7 ~ bit 0 is map to the PIO4 ~ PIO11.
This command is added since V515 version.
19. Query/Set PIO collection rate
Send Receive Parameter
AT+CYC?? OK+ Get:[para1]
AT+CYC[para1] OK+ Set:[para1]
Para1: 00~99
Unit: seconds
Default: 10
In mode 1, when PIO state is change, module will send OK+Col:[xx] to
UART or remote side. This command is set send interval.
This command is added since V515 version.
20. Start a device discovery scan
Send Receive Parameter
AT+DISC? OK+DISC[para1] Para1: S, E, Address
string
S: Start discovery
E: End discovery
Address string:
Discovered device
-------------------------------------------------------Last Version V530 2014-08-05
26
HM Bluetooth module datasheet
address information
max results is 6 devices
Please set AT+ROLE1 and AT+IMME1 first.
e.g.
Send: AT+DISC?
Recv: OK+DISCS
Recv: OK+DISC:123456789012 (discovered device address information)
If AT+SHOW1 is setup, you will receive then Name information as follow
Recv: OK+NAME: xxx
After send Name value, will send two extra “\r\n” value ASCII byte
Recv: OK+DISC:234567890123
Recv: OK+NAME: xxx
After send Name value, will send two extra “\r\n” value ASCII byte
…..(Max results is 6, use array 0~5)
Recv: OK+DISCE
Connect to a discovered device: AT+CONN0, AT+CONN1……AT+CONN5
21. Connect to an Discovery device
Send Receive Parameter
AT+CONN[para1] OK+CONN[para2] Para1: 0~5
Para2: E, F, 0~5
E: Link error
F: Link failed
0~5: Try to connect
This command is use after execute AT+DISC?
This command will clear all discovery data.
22. Query/Set iBeacon deploy mode
Send Receive Parameter
AT+DELO[para1] OK+DELO[para1] Para1: 1, 2
1: Allowed to broadcast
-------------------------------------------------------Last Version V530 2014-08-05
27
HM Bluetooth module datasheet
and scanning
2: Only allow broadcast
After receive OK+DELO[para1], module will reset after 500ms.
This command will let module into non-connectable status until next power on.
23. Set advertising data FLAG byte
Send Receive Parameter
AT+FLAG[P1] OK+ Set:[P1] P1: 0~FF (one byte)
Note: This command added in V530. Please ref to AT+BATT? Command.
24. Query/Set filter of HM modules
Send Receive Parameter
AT+FILT? OK+ Get:[para1]
AT+FILT[para1] OK+ Set:[para1]
Para1: 0, 1
0: Will find all BLE modules
1: Only find HM Modules
Default: 1
Note: This command is removed since V530
25. Remove bond information
Send Receive Parameter
AT+ERASE OK+ERASE
Note1: Added in V524 version.
26. Query/Set flow control switch
Send Receive Parameter
AT+FIOW? OK+ Get:[para1]
AT+FIOW[para1] OK+ Set:[para1]
Para1: 0, 1
0: Off
1: On
Default: 0
27. System Help Information
Send Receive Parameter
AT+HELP? Help Information None
28. Query/Set Module work type
-------------------------------------------------------Last Version V530 2014-08-05
28
HM Bluetooth module datasheet
Send Receive Parameter
AT+IMME? OK+ Get:[para1]
AT+IMME[para1] OK+ Set:[para1]
This command is only used for Central role.
29. Query/Set Module iBeacon switch
Send Receive Parameter
AT+IBEA? OK+Get:[para1]
Para1: 0, 1
1: When module is powered
on, only respond the AT
Command, don’t do anything.
until AT + START is received,
or can use
AT+CON,AT+CONNL
0: When power on, work
immediately
Default: 0
Para1: 0, 1
AT+IBEA[para1] OK+Set:[para1]
0: Turn off iBeacon
1: Turn on iBeacon
Default: 0
iBeacon UUID is: 74278BDA-B644-4520-8F0C-720EAF059935.
This command is added since V517 version.
30. Query/Set iBeacon UUID
Send Receive Parameter
AT+IBE0? OK+Get:[para1]
AT+IBE0[para1] OK+Set:[para1]
Para1: 00000001~
FFFFFFFE
Default: 74278BDA
iBeacon UUID is: 74278BDA-B644-4520-8F0C-720EAF059935.
This command can change red color string in iBeacon UUID.
This command is added since V520 version.
e.g.: Send: AT+IBE012345678 change iBeacon UUID red color string to
-------------------------------------------------------Last Version V530 2014-08-05
29
HM Bluetooth module datasheet
“12345678”
31. Query/Set iBeacon UUID
Send Receive Parameter
AT+IBE1? OK+Get:[para1]
AT+IBE1[para1] OK+Set:[para1]
Para1: 00000001~
FFFFFFFE
Default: B6444520
iBeacon UUID is: 74278BDA-B644-4520-8F0C-720EAF059935.
This command can change red color string in iBeacon UUID.
This command is added since V520 version.
e.g.: Send: AT+IBE112345678 change iBeacon UUID red color string to
“12345678”
32. Query/Set iBeacon UUID
Send Receive Parameter
AT+IBE2? OK+Get:[para1]
AT+IBE2[para1] OK+Set:[para1]
Para1: 00000001~
FFFFFFFE
Default: 8F0C720E
iBeacon UUID is: 74278BDA-B644-4520-8F0C-720EAF059935.
This command can change red color string in iBeacon UUID.
This command is added since V520 version.
e.g.: Send: AT+IBE112345678 change iBeacon UUID red color string to
“12345678”
33. Query/Set iBeacon UUID
Send Receive Parameter
AT+IBE3? OK+Get:[para1]
AT+IBE3[para1] OK+Set:[para1]
Para1: 00000001~
FFFFFFFE
Default: AF059935
iBeacon UUID is: 74278BDA-B644-4520-8F0C-720EAF059935.
This command can change red color string in iBeacon UUID.
This command is added since V520 version.
-------------------------------------------------------Last Version V530 2014-08-05
30
HM Bluetooth module datasheet
e.g.: Send: AT+IBE112345678 change iBeacon UUID red color string to
“12345678”
34. Query/Set Module iBeacon Marjor version
Send Receive Parameter
AT+MARJ? OK+Get:[para1]
AT+MARJ[para1] OK+Set:[para1]
Para1: 0x0001, 0xFFFE
Default: 0xFFE0
E.g. Change marjor version to 0x0102
Send: AT+MARJ0x0102, if all is okay, module will send back OK+Set:
0x0102
This command is added since V517 version.
35. Query/Set Module iBeacon minor
Send Receive Parameter
AT+MINO? OK+Get:[para1]
AT+MINO[para1] OK+Set:[para1]
Para1: 0x0001, 0xFFFE
Default: 0xFFE1
This command is added since V517 version.
36. Query/Set Module iBeacon Measured power
Send Receive Parameter
AT+MEAS? OK+Get:[para1]
Para1: 0x0001, 0xFFFE
AT+MEAS[para1] OK+Set:[para1]
This command is added since V519 version.
37. Query/Set Module Work Mode
Send Receive Parameter
AT+MODE? OK+Get:[para1]
AT+MODE[para1] OK+Set:[para1]
-------------------------------------------------------Last Version V530 2014-08-05
43. Query/Set PIO pins output high or low (Only this time, when module next
power on, this value is not be used)
Send Receive Parameter
AT+PIO[para1]? OK+PIO:[para1][para2]
AT+PIO[para1][para2] OK+PIO:[para1][para2]
Para1: 2~B, ?
Para2: 0, 1, ?
HM-11 only has 4 pins.
e.g.
Query PIO2
Send: AT+PIO2?
-------------------------------------------------------Last Version V530 2014-08-05
Para1 is which PIO pin
you want to Query/Set
Value:
2,3,4,5,6,7,8,9,A,B.
Para2 is Query or setup
value.
“0” is low and “1” is high
and “?” is query
34
HM Bluetooth module datasheet
Setup PIO2 output high
Send: AT+PIO21
Receive: OK+PIO21
HM-10 HMSensor version: para1 value is 2~A
HM-10 HMSoft version: para1 value is 2~B
HM-11 HMSensor version: para1 value is 2
HM-11 HMSoft version: para1 value is 2, 3
V525 added PIO2 PWM function, Para2 value is 0~9
AT+TCON[para1] OK+Set:[para1] Para1 is timeout value.
when time is up module
will not connect this
address anymore, then
-------------------------------------------------------Last Version V530 2014-08-05
39
HM Bluetooth module datasheet
enter search mode.
Para1 allowed value:
000000~999999
Unit is ms.
Default:
000000 Connect forever
This value is only used for Central Role, when module has Last Connected
address.
63. Query/Set Module Bond Mode
Send Receive Parameter
AT+TYPE? OK+Get:[para1] None
AT+TYPE[para1] OK+Set:[para1] Para1: 0~2
0:Not need PIN Code
1:Auth not need PIN
2:Auth with PIN
3:Auth and bond
Default: 0
Important: If your module version is less than V515, please don’t use
this command. Under android 4.3 AT+TYPE1 is same to AT+TYPE2.
Note1: Value 3 is added in V524.
64. Query/Set service UUID
Send Receive Parameter
AT+UUID? OK+Get:[para1]
AT+UUID[para1] OK+Set:[para1]
Para1: 0x0001~0xFFFE
Default: 0xFFE0
e.g. Change UUID value to 0xAAA0
Send: AT+UUID0xAAA0
Recv: OK+Set:0xAAA0
65. Query/Set UART sleep type
Send Receive Parameter
-------------------------------------------------------Last Version V530 2014-08-05
40
HM Bluetooth module datasheet
AT+UART? OK+Get:[para1]
AT+UART[para1] OK+Set:[para1]
Note: This command is only use for HMSensor.
66. Query Software Version
Send Receive Parameter
AT+VERR?
Version Information None
AT+VERS?
Para1: 0~1
0: When module into
sleep mode, you can
wake up module through
UART.
1: When module into
sleep mode, shutdown
UART too.
Default: 0xFFE0
-------------------------------------------------------Last Version V530 2014-08-05
41
HM Bluetooth module datasheet
Resource:
Bluetooth Module 2.1 datasheet:
http://www.jnhuamao.cn/Bluetooth_en.zip
Bluetooth Module 4.0 datasheet:
http://www.jnhuamao.cn/Bluetooth40_en.zip
Bluetooth Module 4.0 USB Dongle
http://www.jnhuamao.cn/HMDongle40_en.zip
Bluetooth 2.1 Com Assistant for android:
http://www.jnhuamao.cn/HMComAssistant.rar
Bluetooth 4.0 Com Assistant for android 4.3:
http://www.jnhuamao.cn/HMBLEComAssistant.rar
Bluetooth 4.0 IOS Code:
http://www.jnhuamao.cn/HMSoft_iso7.zip
http://www.jnhuamao.cn/HMSoft_iso7.zip
-------------------------------------------------------Last Version V530 2014-08-05
42
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.