View the Most Wanted LQ Wiki articles.
LinuxQuestions.org > Linux Wiki > Bluetooth

From LQWiki

(Redirected from BlueTooth)
Jump to: navigation, search

Bluetooth is a wireless network protocol, designed for short range distances, low power and low cost. This makes it specially useful in small, mobile devices like mobile phones, PDAs and laptops, but is also used in many other types of devices.

It uses the open or license free 2.4Ghz radio band and does fast frequency hopping to avoid interference with other devices in that band. For more information, see Wikipedia's article.

Contents

Make it work

You want to do your first bluetooth transfer, so you can be sure it works? Then this article is for you.

  • Find out if you have a bluetooth device:
hwinfo --bluetooth
  • Switch on bluetooth on your mobile phone and put it next to your computer.
  • Find out which bluetooth devices you can access:
hcitool scan

Your mobile phone should appear in the output.

Couple it

You need to tell your mobile phone now that it shall trust your computer. First, your computer needs a PIN, like this:

echo 1111 >/etc/bluetooth/pin

Then continue on your mobile device. In my example, I have a Nokia 6320, so I do:

  • menu
  • settings
  • connections
  • Bluetooth
  • coupled devices
  • Option
  • couple new device
  • choose my computer
  • choose "couple"
  • type my password

Transfer files

  • Point your konqueror to bluetooth:/// and start a file transfer.
  • Note: Should you find video clips with the suffix .3gp on your phone: They can be played with mPLayer and RealPlayer.

Linux support

You can find a list of supported hardware at http://en.opensuse.org/HCL/Bluetooth_Adapters.

The Linux kernel includes a bluetooth protocol stack (since 2.4) named bluez. It supports USB, PCMCIA and serial bluetooth devices. In most recent distributions these devices are normally recognized automatically and just 'plug and play'. If not, the modules involved with the protocol are called:

  • bluetooth -- the base
  • l2cap -- named after the protocol L2CAP, which bluetooth uses (can be seen as layer 6/data-link layer from the OSI Model).
  • rfcomm -- Emulates serial RS-232 ports on top of L2CAP

Next to these there are several modules for different types bluetooth devices, like USB, serial port or specific chipsets. (hci_usb, hci_uart, bcm203x, etc.)

After the hardware has been set up, it's time to actually use it. You need some software to scan and 'pair' devices. The Bluez project created several programs to do this (hcitool,hcidump,bluez-pin, etc.).

Applications

See also

External links


Personal tools