![Ebyte E104-BT53C3 Скачать руководство пользователя страница 19](http://html1.mh-extra.com/html/ebyte/e104-bt53c3/e104-bt53c3_user-manual_3899429019.webp)
Chengdu Ebyte Electronic Technology Co.,Ltd
E104-BT53C3 Manual User
Copyright ©2012–2020
,Chengdu Ebyte Electronic Technology Co.,Ltd
19
6.3.11Slave role service
Command
Reply
Inquire
AT+SERVICE?
+ SERVICE =<para1>, <para2>, <para3>, <para4>,
<para5>, <para6>
Setting
AT+ SERVICE=<para1>, <para2>,
<para3>, <para4>, <para5>, <para6>
+OK:succcess
+ERR=[NUM]:Error
Parameter
para1:UUID bits (0:16 bits; 1:128 bits)
para2: module server UUID (third and fourth bytes), length 4
Para3: indicates the module receive channel UUID (the third and fourth bytes of the 128-bit
UUID). The length is 4
Para4: Module send channel UUID (the third and fourth bytes of the 128-bit UUID), length
4
Para5: Wireless AT instruction channel UUID (the third and fourth bytes of the 128-bit UUID),
length 4
Para6: 128-bit base UUID (the third and fourth bytes of the base UUID are replaced with the
UUID of the preceding parameters to form the actual 128bit UUID of the module). The length
is 32
Description
Restart takes effect, power failure save;
This directive is only valid for slave roles (single-slave, master-slave, and Beacon);
The base UUID of 0000xxxx-0000-1000-8000-00805F9B34FB is unavailable.
Example
Example Query the default 16-bit secondary role service
Command :AT+SERVICE?
Return :+SERVICE=0,FFF0,FFF1,FFF2,FFF3
Example Set the 128-bit slave role service
Instruction: the AT + SERVICE = 1000, 1000, 2000, 3000, 4, 9 ECADC240EE5A9E093F3A3B50000406E
Return :+OK
Example Query the configured 128-bit secondary role service
Command :AT+SERVICE?
Returns: + SERVICE = 1000, 1000, 2000, 3000, 4, 9 ECADC240EE5A9E093F3A3B50000406E
6.3.12 Master role scan
Command
Reply
Inquire
AT+SCAN?
+ SCAN=[para1], [para2], [para3]
Setting
AT+ SCAN =[para1], <para2>, <para3>
+OK:success
0 02:83:E1:66:C2:D0 -89
1 9C:19:C2:39:7D:35 -75
……
+ERR=[NUM]:Error
Parameters
para1: Current scanning status. 0: stop. 1: Scanning is being performed
para2: indicates the scanning timeout period. The value ranges from 1 to 65535, in seconds