User's Manual

command and restart); “AT+err_code\r\n” (Operation failed, refer to“Returned
error code indication”for detailed err_code)
9.5 Read BLE MAC Address
Example: “AT+getAddr\r\n”
Hex: 41 54 2B 20 67 65 74 41 64 64 72 0D 0A
Replies: “AT+ok FF:11:22:33:66:FF\r\n” (Operation completed); “AT+err_code\r\n”
(Operation failed, refer to“Returned error code indication”for detailed err_code)
9.6 Set BLE MAC Address
Example: “AT+setAddr=112233445566\r\n”
Hex: 41 54 2B 20 73 65 74 41 64 64 72 3D 31 31 32 32 33 33 34 34 35 35 36 36
0D 0A
Replies: “AT+ok restart effect!\r\n” (Operation completed, valid after sending
command and restart); “AT+err_code\r\n” (Operation failed, refer to“Returned
error code indication”for detailed err_code)
9.7 Read BLE Status: Broadcast/Connected
Example: “AT+getStatus\r\n”
Hex: 41 54 2B 20 67 65 74 53 74 61 74 75 73 0D 0A
Replies: “AT+ok status_code\r\n”(Operation completed), status_code as below:
00
Idle
01
Broadcasting
02
Connecting
03
Scan with response
04
scan without response
“AT+err_code\r\n” (Operation failed, refer to“Returned error code indication”for
detailed err_code)
9.8 Set Broadcast Interval
Not valid until manual restart.
Example: “AT+setAdvInt 80 100\r\n” (min interval 80*0.625ms, max interval
100*0.625ms)
Hex: 41 54 2B 20 73 65 74 41 64 76 49 6E 74 20 38 30 20 31 30 30 0D 0A
(Maximum and minimum of broadcast interval,“min<=max”, 80~16000 correspond
to 50ms~10000ms)
Replies: “AT+ok restart effect!\r\n” (Operation completed, valid after sending
command and restart); “AT+err_code\r\n” (Operation failed, refer to“Returned error
code indication”for detailed err_code)
9.9 Set Connection Interval
Notice: valid immediately, constantly setting will get dropped.
Example: “AT+setConnInt 36 24 2 300 \r\n ”(The value respectively max, min,
latency, timeout)
Hex: 41 54 2B 20 73 65 74 43 6F 6E 6E 49 6E 74 20 33 36 20 32 34 20 32 20 33
30 30 0D 0A
In the example above, max interval 36*1.25ms, min interval 24*1.25ms, latency 2,
connecting timeout 300*10ms.
Min and max broadcast interval range: 0x0006~0x0C80(7.5ms~4000ms),
min<=max.
Latency: value range: 0x0000~0x01F3(0~499).
Connecting time out: value range: 0x000A~0x0C80. Connection interval must less
than connecting timeout: [max*1.25 * (1+latency)] < 10 * timeout.
Replies: “AT+ok\r\n” (Operation completed, valid immediately without restart);
“AT+err_code\r\n” (Operation failed, refer to“Returned error code indication”for