Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to connect my computer to 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 e.t.c and I was not able to success.

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 deamond at /etc/init.d/bluetooth and just work fine.

How to connect via command line?

share|improve this question

migrated from stackoverflow.com Aug 23 '12 at 16:59

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer 1

here is an step-by-step instruction! Bluetooth Setup via commandline

and for your connection timed out, do you reset the adapter?? if not you can do this with this command. sudo hciconfig hci0 reset

I recommend you to read the instructions in the given link.

And to use it in commandline, here are some commands Some Bluetooth send/get commands

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.