EasyManua.ls Logo

RF-Star nRF52832 - Master Scan

RF-Star nRF52832
59 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
nRF52832
www.szrfstar.com V1.3 - Sep., 2020
Shenzhen RF-star Technology Co., Ltd. Page 27 of 58
OK
Remark
This command has six parameters:
Parameter 1: 128-bit UUID function (0: 16-bit; 1: 128-bit, take effect after restart).
Parameter 2: Device service UUID (the3
rd
and 4
th
byte).
Parameter 3: Device receiving channel UUID (the 3
rd
and 4
th
byte in 128-bit mode).
Parameter 4: Device transmitting channel UUID (the 3
rd
and 4
th
byte in 128-bit mode).
Parameter 5: Device AT command channel UUID (the 3
rd
and 4
th
byte in 128-bit mode).
Parameter 6: 128-bit basic UUID values (the 3
rd
and 4
th
byte of the basic UUID are replaced with
the UUID of the above parameters to constitute the actual 128-bit UUID of the device).
This command is only effective to the slave mode.
AT+SERVICE?
Function
Query the setting parameters of current service.
Example
AT+SERVICE?
Return Value
AT+SERVICE=1,0001,0002,0003,0004,9ECADC240EE5A9E093F3A3B50000406E
OK
Remark
AT+SERVICE=
Function
Set the related parameters of device service.
Example
AT+SERVICE=0, FFF0, FFFF1, FFF2, FFF3
Return Value
OK
Remark
The device is 16-bit UUID mode. UUID is FFF0, FFFF1, FFF2, FFF3 respectively.
Take effect after restart, save after power off.
Master Scan
AT+SCAN=?
Function
Query parameter range of this command.
Example
AT+SCAN=?
Return Value
AT+SCAN=[0, 1], <1-65535>
Remark
This command has two parameters:
Parameter 1: Scan status of current device. 0: Stop scanning. 1. Scanning.
Parameter 2: Timeout time (in s).

Table of Contents