Rf_Scanflags: Modify The Scan Behavior; Example 1; Example 2 - We PROTEUS-III User Manual

Hide thumbs Also See for PROTEUS-III:
Table of Contents

Advertisement

WIRELESS CONNECTIVITY & SENSORS
User manual Proteus-III

8.10. RF_ScanFlags: Modify the scan behavior

Settings
Designation
index
RF_ScanFlags
13
This 8-Bit field configures the scan behavior of the module. To use multiple settings, add the
Bit numbers and choose the result as value for RF_ScanFlags .
Bit no.
Description
If this Bit is set, an active scan is performed when using CMD_SCANSTART_REQ . In this
case, after receiving an advertising packet a scan request is sent to the advertising
module that returns a scan response containing additional information. For the
communication of Proteus-III modules, active scanning is only needed when using
0
Beacons. In this case, it is enabled automatically by the firmware. Note that if
receiving raw Beacon data is enabled ( RF_BeaconFlags is set to 0x02) and raw scan
response packets should be received as well, it is necessary to set this bit manually.
Also note that active scanning increases the current consumption.
7 : 1
Reserved

8.10.1. Example 1

Set the scan flags to 0x01 to enable active scanning using CMD_SET_REQ with settings index 13
Start signal
0x02
Response CMD_SET_CNF : Successfully modified the setting.
Start signal
0x02

8.10.2. Example 2

Request the scan flags of the module using CMD_GET_REQ with settings index 13
Order code 2611011024000
Version 1.8 , July 2022
Permissible
values
See
description
Table 72: Scan configuration flags
Command
Length
0x11
0x02 0x00
Command | 0x40
0x51
Permissions
Default value
0
read/write
Settings index
Parameter
0x0D
0x01
Length
Status
0x01 0x00
0x00
www.we-online.com/wcs
Number
of
Bytes
1
CS
0x1D
CS
0x52
134

Advertisement

Table of Contents
loading

This manual is also suitable for:

Proteus-iii-spi26110110240102611011024000

Table of Contents