5.3.3.2 Start Extended Bluetooth Low Energy Scanning (FE,<hex16>...)
Format: FE,<hex16>,<hex16>,<hex8>,<hex8>[,<Device Name Filter Data>,<Service Filter Data>,<Manufacturer Specific Filter Data>
]
Command FE
performs extended Bluetooth Low Energy scanning to be used on the advertising physical channels. The command receives seven input parameters.
The parameters supported by FE
commands are:
- 16-bit hex value of scan interval
- 16- bit hex value of scan window
- 8-bit value of scanning PHYS
- 8-bit value of filter option
- Scan interval <hex16> – Time interval from when the controller started its last scan until it begins the subsequent scan on the primary advertising physical channel. The unit is 0.625 ms, and the range is from 2.5 ms to 40.959s.
- Scan window <hex16> – Duration of the scan on the primary advertising physical channel. The unit is 0.625 ms, and the range is from 2.5 ms to 40.959s.
Bit number | Parameter Description |
---|---|
0 | Scan advertisements on the LE 1M PHY |
1 | Scan advertisements on the LE Coded PHY |
Bit number | Parameter Description |
---|---|
0 | Enable device name filter |
1 | Enable service data filter |
2 | Enable manufacturer specific data filter |
Device name filter data – A string representing the device name content, where the first byte indicates the length of the device name. The maximum length allowed is 16 bytes.
Service filter data – The service filter data consists of four elements. The first element is the UUID length, the second element is the UUID data (16 bytes), the third element is the service data length and the fourth element is the service data (16 bytes). For example: FE,01e0,0190,01,02,02dafe02ff01
.
Manufacture specific filter data – The Manufacture filter data consists of three elements. The first element is the company ID that is two bytes, the second element is the manufacture data length, the third element is the manufacture data (16 bytes). For example: FE,01e0,0190,01,04,4C0000
.
Example: | FE,01e0,0190,01,01,0C524e42443435785f38323431 | // Start inquiry with 300 ms scan interval and 250 ms scan window and use the 12 bytes device name RNBD451_8241 to filter scan on the 1M PHY |
Response: | Scanning | // Start scanning |
Connectable | // %<Address>,<Addr_Type>,<Name>,<UUIDs>,<RSSI>,<Tx PHY>,<Rx PHY>% | |
Non-connectable | // %<Address>,<Addr_Type>,<RSSI>,Brcst:<Broadcast Payload>% | |
Note: The command expects a carriage return at the end. |