Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

Can I get step by step directions for installing a generic Bluetooth dongle, so that I can use an existing bluetooth mouse and keyboard?

This answer to the question How can I use a bluetooth mouse and keyboard? suggests that Debian Squeeze should work out of the box with other Bluetooth HID devices.

Some other places suggest that this requires a specific chipset which some generic bluetooth dongles don't have, but I can't confirm that.

share|improve this question
    
sudo apt-get install bluetooth takes forever... –  Alex Chamberlain Jul 4 '12 at 10:14
    
With Alex's edit I'm happy to reverse my downvote. If this question attracts decent answers, I would suggest that we close the other question as a duplicate of this and migrate useful answers over. –  Mark Booth Jul 4 '12 at 13:27
    
@MarkBooth: Agreed. –  Jivings Jul 4 '12 at 13:29
    
Flagged as off topic. This is a Unix/Linux question and nothing directly related to RPI. –  user606723 Jul 5 '12 at 18:27

2 Answers 2

up vote 6 down vote accepted

Packages & Tools

You only really need to install the 'bluetooth' package but, I used the following command to install some test tools and the GUI Bluetooth manager:

sudo apt-get install bluetooth bluez-utils blueman

USB Dongle Detection

lsusb shows a new device. This is the output:

Bus 001 Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd. Bluetooth Dongle (HCI Mode)

There will be other devices in the list, but that (or something very similar) is what you are looking for.

The /etc/init.d/bluetooth status command shows whether Bluetooth is running.

Output should be:

Bluetooth is running

Scanning

Switch your phone's Bluetooth to 'visible'. Then use the hcitool scan command to discover our devices initially:

hcitool scan showed the following output:

Scanning ... A0:75:91:01:02:03 Nexus S

Pairing

Once you are able to see a device using hcitool scan, start a GUI session.

Under LXDE Menu>Preferences>Bluetooth Manager, you will find the Blueman GUI Bluetooth manager.

From there, you can scan and pair bluetooth devices as expected in any GUI system.

and that is what worked for me. Original tutorial found here

Edit: There are apparently further steps required to use a bluetooth keyboard(or other device) in a CLI environment. Anybody have an idea about that?

share|improve this answer
    
+1: Nice self answer. –  Jon Egerton Jul 5 '12 at 9:02

For command-line only (headless server) connection to a nokia phone i did this:

I've put in bold what you need to do to to pair something with the command line only...


Usb hub: Bus 001 Device 004: ID 0409:005a NEC Corp. HighSpeed Hub Bluetooth dongle: Bus 001 Device 006: ID 0e5e:6622 Conwise Technology Co., Ltd. CW6622

This is a cheap (under 10$) bluetooth dongle i've bought a year ago and forgot about it.

  1. Installed bluetooth stack $ apt-get install bluetooth bluez-utils blueman
  2. go make dinner while it does its thing
  3. scan for devices $ hcitool scan Scanning ... 00:AA:BB:CC:DD:EE **4. start a bluetooth agent with a pin to pair with the phone $ bluetooth-agent
  4. on a second ssh connection (bluetooth-agent is still running!) $ rfcomm connect hci0 00:AA:BB:CC:DD:EE
  5. phone asks for a pin, put in the same pin from bluetooth-agent, always allow connection
  6. close both rfcomm and bluetooth agent**
  7. Install gammu $ apt-get install gammu
  8. configure gammu $ nano /etc/gammurc For my nokia phone: [gammu] Connection = bluephonet Device = 00:AA:BB:CC:DD:EE Model = NAUTO 9.b. test if the model autodetection works with $ gammu --identify
  9. use it!
share|improve this answer

protected by Community Dec 28 '12 at 16:58

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.