User's Manual
Table Of Contents
User Manual of HC-42 Bluetooth Serial Port Communication Module G
athering information and Carrying Dreams
Website:
http://www.hc01.com
Guangzhou HC Information Technology Co., Ltd
Address: Room 608, No.19, Jiangong Road, Tianhe Science Park, Tianhe District, Guangzhou City, Guangdong Province
Technical customer service QQ: 445253184 Sales hot line: 020-8408-3341
PAGE
15
5.3.12 Master-slave setting
command Response Explanation Details
AT+ROLE OK+ROLE=x
Inquire the current role of
module
S: Slave (default)
P: Peripheral (default)
M: Master
C: Central
S
跟
P
是一样,
M
跟
C
也是一样
S Is the same as P, M also same as C.
AT+ROLE=x OK+ROLE=x Set the current role of module S and P are slaves, M and C are masters.
Examples:
Send: AT+ROLE Return: OK+ROLE=S/P (Inquire the current module as slave)
Send: AT+ROLE=M Return: OK+ROLE=M/C (Set the module as master)
5.3.13 Module reset
command Response Explanation Details
AT+RESET OK+RESET Module reset
Examples:
Send: AT+RESE Return: OK+RESET
5.3.14 iBeacon switch
command Response Explanation Details
AT+IBEN OK+IBEN=x Inquire status of iBeacon
0:OFF(default)
1:ON
AT+IBEN=x OK+IBEN=x Set status of iBeacon
Examples:
Send: AT+IBEN Return: OK+IBEN=0 (iBeacon disenabled)
Send: AT+IBEN=1 Return: OK+IBEN=1(Enable iBeacon)
5.3.15 iBeacon UUID
command Response Explanation Details
AT+IBUUID
OK+IBUUID=********
-****-****-****-********
****
Inquire
iBeacon
UUID
In order to use WeChat's iBeacon function,
related registration must be made on WeChat's
public platform.
AT+IBUUID=********-**
**-****-****-************
OK+IBUUID=********
-****-****-****-********
****
Set iBeacon
UUID
It must be set in strict accordance with the
format requirements. Only hexadecimal
characters in the range of 0~F and "- " are
allowed. The default UUID is as follows:
FDA50693-A4E2-4FB1-AFCF-C6EB07647825










