The sniffer enable command enables and configures the working mode of an AP's built-in Bluetooth module.
The undo sniffer enable command disables the configured working mode of an AP's built-in Bluetooth module.
By default, the Bluetooth function of an AP's built-in Bluetooth module is disabled.
Parameter |
Description |
Value |
---|---|---|
ibeacon-mode |
Enables the Bluetooth monitoring function of an AP's built-in Bluetooth module. |
- |
tag-mode |
Enables the Bluetooth tag location function of an AP's built-in Bluetooth module. |
- |
transparent-mode |
Enables the Bluetooth data transparent transmission function of an AP's built-in Bluetooth module. |
- |
Usage Scenario
After enabling the Bluetooth monitoring or Bluetooth tag location function, the built-in Bluetooth module of an AP will scan and obtain information about surrounding BLE devices or Bluetooth tags, and reports the obtained information such as MAC addresses, RSSIs, BLE broadcast frame contents, and battery power.
After the Bluetooth monitoring function is enabled, an AP obtains battery power information about surrounding BLE devices at WLAN service off-peak time (for example, 2:00 am of the system time), and then reports the obtained information to the AC. Precisely configure the system time of an AC to ensure that WLAN services are not affected when the AC obtains battery power of Bluetooth devices.
After the Bluetooth data transparent transmission function is enabled, the built-in Bluetooth module of an AP scans surrounding Bluetooth clients, and reports information about the scanned Bluetooth clients, such as packet data, MAC addresses, and RSSIs.
The Bluetooth broadcast and Bluetooth monitoring functions can be enabled simultaneously for an AP's built-in Bluetooth module. When the two functions are enabled simultaneously, the AP's built-in Bluetooth module is also monitored.
After you run the undo sniffer enable command to disable the BLE monitoring or Bluetooth tag location function, the AC will trigger an alarm indicating that BLE devices or Bluetooth tags are offline.
Precautions
Enabling both the Bluetooth scanning and broadcast functions of an AP affects the efficiency for the AP's Bluetooth module to scan surrounding BLE devices. When an AP does not serve as a Bluetooth base station, it is recommended that the broadcast function of the AP be disabled.
# Enable the Bluetooth monitoring function.
<HUAWEI> system-view [HUAWEI] wlan [HUAWEI-wlan-view] ble-profile name huawei [HUAWEI-wlan-ble-prof-huawei] sniffer enable ibeacon-mode Warning: Modifying the monitoring mode may cause BLE devices in the original monitoring mode to go offline and age.