Bluetooth

(Undo revision 45780 by 70.135.114.247 (Talk) SPAM)
(Personal Area Network: n900 as PAN client)
Line 13: Line 13:
DUN is the primary method for tethering to cellular devices. It is easy to set up and easy to use, but slower than PAN in many cases.
DUN is the primary method for tethering to cellular devices. It is easy to set up and easy to use, but slower than PAN in many cases.
-
=== Personal Area Network ===
+
=== Personal Area Network Server (NAP) ===
{{main|Bluetooth PAN}}
{{main|Bluetooth PAN}}
PAN is faster and more versatile than DUN, though supported by fewer devices, and not officially supported in Maemo, but support is provided by the community package [http://garage.maemo.org/projects/maemo-pan maemo-pan]. PAN is particularly useful for setting up Bluetooth networks between your computer and your tablet.
PAN is faster and more versatile than DUN, though supported by fewer devices, and not officially supported in Maemo, but support is provided by the community package [http://garage.maemo.org/projects/maemo-pan maemo-pan]. PAN is particularly useful for setting up Bluetooth networks between your computer and your tablet.
 +
 +
=== Personal Area Network Client (PANU) ===
 +
To initiate connection from [[Nokia N900]] you can follow these steps.
 +
 +
It is better to compile binaries in scratchbox. See [[Documentation/Maemo 5 Final SDK Installation]]
 +
 +
To be able to copy files from scratchbox to your N900 you should install rsync and make sure you can copy files to your phone.
 +
 +
Compile ''bluez'' binaries:
 +
apt-get source bluez
 +
apt-get build-dep bluez
 +
apt-get --build source bluez
 +
Copy compiled binary to your device:
 +
rsync -av bluez-4.60/debian/bluez-test/usr/bin/pand n900:/usr/local/bin/
 +
Now you can use your N900 device as a NAP client. Below are some helpful commands.
 +
 +
Connect to another bluetooth device that provides NAP service:
 +
''pand -nc <bdaddr>''
 +
List connections:
 +
''pand -l''
 +
Remove connection:
 +
''pand -k <bdaddr>''
== Input devices ==
== Input devices ==

Revision as of 11:12, 13 July 2018

Maemo devices have a built-in Bluetooth radio that allows you to do things like tether to a cellphone for a data connection, transfer files between devices, and connect input devices.

Contents

Bluetooth Under Fremantle

Some Bluetooth profiles have been disabled or removed from Fremantle, but can be "hacked" to work. Please see Fremantle Unsupported Bluetooth profiles for more details. Maemo Bluetooth capability is based on the Linux BlueZ software stack

Networking

There are two Bluetooth networking protocols. The first, DUN, is well-supported in Maemo and is the recommended method for tethering to a cellular device. The second, PAN, does not have official support, but is well-supported by the community. PAN is faster and more versatile, but supported by fewer devices than DUN.

Dial-Up Networking

Main article: Bluetooth DUN

DUN is the primary method for tethering to cellular devices. It is easy to set up and easy to use, but slower than PAN in many cases.

Personal Area Network Server (NAP)

Main article: Bluetooth PAN

PAN is faster and more versatile than DUN, though supported by fewer devices, and not officially supported in Maemo, but support is provided by the community package maemo-pan. PAN is particularly useful for setting up Bluetooth networks between your computer and your tablet.

Personal Area Network Client (PANU)

To initiate connection from Nokia N900 you can follow these steps.

It is better to compile binaries in scratchbox. See Documentation/Maemo 5 Final SDK Installation

To be able to copy files from scratchbox to your N900 you should install rsync and make sure you can copy files to your phone.

Compile bluez binaries:

apt-get source bluez
apt-get build-dep bluez
apt-get --build source bluez

Copy compiled binary to your device:

rsync -av bluez-4.60/debian/bluez-test/usr/bin/pand n900:/usr/local/bin/

Now you can use your N900 device as a NAP client. Below are some helpful commands.

Connect to another bluetooth device that provides NAP service:

pand -nc <bdaddr>

List connections:

pand -l

Remove connection:

pand -k <bdaddr>

Input devices

Main article: Bluetooth HID


Input devices are probably the most common use of Bluetooth. Keyboards are what most people will use, but Bluetooth mice are also an option, as well as interesting accessories like Wiimotes.

A Bluetooth keyboard will work out-of-the-box without only a little setup.

A Bluetooth mouse are more problematic, as, by default, the mouse pointer is invisible in Maemo, but they can be used with just a little configuration. A description how to get it work can be found here.

File transfers

Main article: Bluetooth OBEX


To utilize Bluetooth for file transfers to or from a Bluetooth device the OBEX profile is used. Many mobile devices support this profile.

Voice over Bluetooth

Voice over bluetooth can be done but it isn't easy. If you are interested enough, please read Bluetooth stereo audio with XMMS.