INQUIRY
Name
INQUIRY -- Search for other devices
Synopsis
INQUIRY {timeout} [NAME] [LAP {lap}]
Description
INQUIRY is used to search for other
Bluetooth devices. Timeout is in units of 1.25 seconds. If
an optional NAME parameter is provided,
the NAME command will
be sent automatically to all found devices.
LAP specifies used IAC LAP, the default
is 9e8b33 (GIAC).
During the inquiry, all devices are listed as soon as
they are found with
INQUIRY_PARTIAL replies. If
the friendly name of the device found has been cached by the
iWRAP server, it is also displayed. When the inquiry times
out, a summary is displayed (how many devices were found and
their information repeated).
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 10
INQUIRY 0
INQUIRY 10
INQUIRY_PARTIAL 00:07:80:80:bf:01 120300 "willow" 255
INQUIRY_PARTIAL 00:07:80:80:bf:02 520204 "" 255
INQUIRY 2
INQUIRY 00:07:80:80:bf:01 120300 "willow"
INQUIRY 00:07:80:80:bf:02 520204 ""
INQUIRY 10 NAME
INQUIRY_PARTIAL 00:07:80:80:bf:01 120300 "" 255
INQUIRY_PARTIAL 00:07:80:80:bf:02 520204 "buffy" 255
INQUIRY 2
INQUIRY 00:07:80:80:bf:01 120300 ""
INQUIRY 00:07:80:80:bf:02 520204 "buffy"
NAME 00:07:80:80:bf:01 "willow"
NAME 00:07:80:80:bf:02 "buffy"
|