INQUIRY
Name
INQUIRY -- Search for other devices
Synopsis
INQUIRY [timeout] [LAP {lap}]
Description
INQUIRY command is used to search for
other Bluetooth devices. The optional timeout number
parameter defines the length of inquiry, in units of 1.25
seconds. The default timeout is 4 units, which is a good
average value for all cases. The minimum timeout is 2 and
the maximum is 10. The optional LAP
option specifies the used IAC LAP; the default value is
9e8b33 (GIAC).
During the inquiry, all devices are listed as soon as they
are found by using
INQUIRY_PARTIAL reply. If
iWRAP server has cached the friendly name of the device
found, it is also displayed. When the inquiry ends, a
summary is displayed indicating how many devices were found.
The summary also repeats the device information.
Reply
INQUIRY_PARTIAL bdaddr_of_dev_1 class_of_dev_1 "friendly name" rssi
INQUIRY_PARTIAL bdaddr_of_dev_2 class_of_dev_2 "friendly name" rssi
...
INQUIRY_PARTIAL bdaddr_of_dev_n class_of_dev_n "friendly name" rssi
INQUIRY number_of_devices_found
INQUIRY bdaddr_of_dev_1 class_of_dev_1 "friendly name"
INQUIRY bdaddr_of_dev_2 class_of_dev_2 "friendly name"
...
INQUIRY bdaddr_of_dev_n class_of_dev_n "friendly name"
|
Example
READY.
INQUIRY
INQUIRY 0
INQUIRY
INQUIRY_PARTIAL 00:07:80:80:bf:01 120300 "willow" -42
INQUIRY_PARTIAL 00:07:80:80:bf:02 520204 "" -66
INQUIRY 2
INQUIRY 00:07:80:80:bf:01 120300 "willow"
INQUIRY 00:07:80:80:bf:02 520204 ""
|