-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommands.txt
104 lines (74 loc) · 2.01 KB
/
commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
HM-10 AT commands
=================
Full info: http://www.seeedstudio.com/wiki/images/c/cd/Bluetooth4_en.pdf
1. Test
-------
Send: AT
Receive: OK
2. Firmware version
-------------------
Send: AT+VERS?
Receive: HMSoft V532 (for example)
3. Module name:
---------------
Get
Send: AT+NAME?
Receive: HM10
Set
Send: AT+NAMEbill_gates
Receive: OK+SetName:bill_gates
4. Baud rate
------------
Get
Send: AT+BAUD?
Receive: OK+Get:0
Set
Send: AT+BAUD1 (baud rate 19200, see baud rates below)
Receive: OK+Set:1
Baud rates
0---------9600
1---------19200
2---------38400
3---------57600
4---------115200
5---------4800
6---------2400
7---------1200
8---------230400
Default: 0(9600)
5. Work mode
------------
Get
Send: AT+MODE?
Receive: AT+MODE0
Set
Send: AT+MODE1
Receive: OK+Set:1
Modes description
Mode 0:
Before establishing a connection, you can use the AT command
configuration module through UART.
After established a connection, you can send data to remote side from
each other.
Mode 1:
Before establishing a connection, you can use the AT command
configuration module through UART.
After established a connection, you can send data to remote side. Remote
side can do fellows:
Send AT command configuration module.
Collect PIO04 to the PIO11 pins input state of HM-10.
Collect PIO03 pins input state of HM-11.
Remote control PIO2, PIO3 pins output state of HM-10.
Remote control PIO2 pin output state of HM-11.
Send data to module UART port (not include any AT command and per
package must less than 20 bytes).
Mode 2:
Before establishing a connection, you can use the AT command
configuration module through UART.
After established a connection, you can send data to remote side. Remote
side can do fellows:
Send AT command configuration module.
Remote control PIO2 to PIO11 pins output state of HM-10.
Remote control PIO2, PIO3 pins output state of HM-11.
Send data to module UART port (not include any AT command and per
package must less than 20 bytes).