$ sudo apt-get install bluetooth $ sudo apt-get install bluez-utils
BlueZ is official Linux Bluetooth protocol stack.
$ hcitool dev Devices: hci0 00:03:C9:05:65:98 hci1 00:1F:81:00:02:5A
or (hciconfig placed in /usr/sbin, so see you PATH!):
$ hciconfig -a hci0: Type: USB BD Address: 00:03:C9:05:65:98 ACL MTU: 1017:8 SCO MTU: 64:0 UP RUNNING PSCAN RX bytes:2517 acl:12 sco:0 events:64 errors:0 TX bytes:756 acl:12 sco:0 commands:33 errors:0 Features: 0xff 0xff 0x8d 0xfe 0x9b 0xfd 0x00 0x80 Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 Link policy: RSWITCH HOLD SNIFF PARK Link mode: SLAVE ACCEPT Name: 'desktop-0' Class: 0x3e0100 Service Classes: Networking, Rendering, Capturing, Object Transfer, Audio Device Class: Computer, Uncategorized HCI Ver: 2.0 (0x3) HCI Rev: 0x2000 LMP Ver: 2.0 (0x3) LMP Subver: 0x415c Manufacturer: Broadcom Corporation (15) hci1: Type: USB BD Address: 00:1F:81:00:02:5A ACL MTU: 339:6 SCO MTU: 180:1 UP RUNNING PSCAN RX bytes:398 acl:0 sco:0 events:18 errors:0 TX bytes:317 acl:0 sco:0 commands:17 errors:0 Features: 0xef 0x3e 0x09 0xf0 0x0b 0x08 0x00 0x00 Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 Link policy: RSWITCH HOLD SNIFF PARK Link mode: SLAVE ACCEPT Name: 'desktop-1' Class: 0x3e0100 Service Classes: Networking, Rendering, Capturing, Object Transfer, Audio Device Class: Computer, Uncategorized HCI Ver: 1.2 (0x2) HCI Rev: 0x2 LMP Ver: 1.2 (0x2) LMP Subver: 0x2 Manufacturer: not assigned (74)
$ hcitool scan Scanning ... 00:22:66:D1:B7:20 Nokia 5320
In order to do this remote device must be set "visible".
$ hciconfig -a | grep hci.: hci0: Type: USB $ sudo hciconfig hci0 piscan
Run hciconfig -a and see for PSCAN and ISCAN keyword:
$ hciconfig -a hci0: Type: USB ... UP RUNNING PSCAN ISCAN ...
then try from another host:
$ hcitool scan
or use another device such as phone to search.
HCI (Host/Controller Interface), LMP (Link Management Protocol):
$ sudo hciconfig -a hci0: Type: USB ... HCI Ver: 2.0 (0x3) HCI Rev: 0x2000 LMP Ver: 2.0 (0x3) LMP Subver: 0x415c ... hci1: Type: USB ... HCI Ver: 1.2 (0x2) HCI Rev: 0x2 LMP Ver: 1.2 (0x2) LMP Subver: 0x2 ...
$ hcitool info 00:22:66:D1:B7:20 | grep LPM LPM Version: 2.0 (0x3) LPM Subversion: 0x7a6
$ sudo sdptool browse 00:22:66:D1:B7:20 Browsing 00:22:66:D1:B7:20 ... Service Name: AVRCP Target Service Description: Audio Video Remote Control Service Provider: Symbian Software Ltd. Service RecHandle: 0x10000 Service Class ID List: "AV Remote Target" (0x110c) Protocol Descriptor List: "L2CAP" (0x0100) PSM: 23 "AVCTP" (0x0017) uint16: 0x100 Profile Descriptor List: "AV Remote" (0x110e) Version: 0x0100 ... 00:1b:52:a8:f6:96
See:
bthprops.cpl used for administrating Bluetooth device in Windows XP.
ipconfig used for see assigned IP address by PAN (Personal Area Networking).
telephon.cpl used to add modem.
fsquirt.exe used to send/recive file.