I want to connect my computer to a bluetooth headset. My computer has ubuntu 12.04 64 bits server operating system with no gui. So I must connect my computer via command line. But at internet documentation has no working example.
I have used hciconfig
, hcitool
, btsco
etc and I was not successful.
My command line output is:
hciconfig -a
hci0: Type: BR/EDR Bus: USB
BD Address: 00:15:83:2E:2F:70 ACL MTU: 384:8 SCO MTU: 64:8
UP RUNNING
RX bytes:2309 acl:0 sco:0 events:118 errors:0
TX bytes:299 acl:0 sco:0 commands:48 errors:0
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'EDRClassone'
Class: 0x280404
Service Classes: Capturing, Audio
Device Class: Audio/Video, Device conforms to the Headset profile
HCI Version: 2.0 (0x3) Revision: 0xc5c
LMP Version: 2.0 (0x3) Subversion: 0xc5c
Manufacturer: Cambridge Silicon Radio (10)
hcitool scan
Scanning ...
00:11:67:00:25:02 BH025C
hcitool cc 00:11:67:00:25:02
Can't create connection: Connection timed out
I have bluetooth daemon at /etc/init.d/bluetooth
and just work fine.
How to connect via command line?