Editing Fremantle Unsupported Bluetooth profiles
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
- | There are several | + | There are several Bluetooth profiles officially missing/unsupported in Fremantle that are however supported by the upstream BlueZ project or can be made to work with some simple hacks. |
- | == DUN server == | + | === DUN server === |
There's a tool called pnatd (short for PhoNet AT Daemon) which can act as a proxy between the cellular modem PhoNet interface and a TTY device. | There's a tool called pnatd (short for PhoNet AT Daemon) which can act as a proxy between the cellular modem PhoNet interface and a TTY device. | ||
- | === Example script === | + | ==== Example script ==== |
- | < | + | <pre> |
sdptool add --channel 1 DUN | sdptool add --channel 1 DUN | ||
while true; do | while true; do | ||
- | rfcomm -S --listen -1 1 /usr/bin/pnatd '{}' | + | rfcomm -S -- listen -1 1 /usr/bin/pnatd '{}' |
sleep 1 | sleep 1 | ||
done | done | ||
- | </ | + | </pre> |
- | There is one known issue: Most likely due to a bug in the way that the Bluetooth and TTY subsystems in the kernel interact in this use case data can be lost if the DUN client starts | + | There is one known issue: Most likely due to a bug in the way that the Bluetooth and TTY subsystems in the kernel interact in this use case data can be lost if the DUN client starts imediately sending AT commands when the connection is created. This can e.g. be worked around by adding a 1 second delay to the chat script on the client side. |
- | + | === HID host (i.e. support for Bluetooth keyboards) === | |
- | + | Fremantle comes with the bluetoothd input plugin installed but disabled through /etc/bluetooth/main.conf | |
- | + | As shown by Johan Hedberg at the maemo summit 2009: | |
- | + | Your main.conf should look like: | |
+ | <pre> | ||
+ | [General] | ||
- | = | + | #List of plugins that should not be loaded on bluetoothd startup |
+ | DisablePlugins = network,input,hal | ||
+ | ... | ||
+ | </pre> | ||
- | + | With root rights change it to | |
+ | <pre> | ||
+ | [General] | ||
- | + | #List of plugins that should not be loaded on bluetoothd startup | |
- | + | DisablePlugins = network,hal | |
- | [ | + | ... |
- | [ | + | </pre> |
+ | |||
+ | After saving, do a | ||
+ | <pre> | ||
+ | stop bluetoothd [RETURN] | ||
+ | start bluetoothd [RETURN] | ||
+ | </pre> | ||
+ | |||
+ | Then go to the bluetooth section pair the keyboard like any other bluetooth device and connect it. | ||
+ | |||
+ | === PAN === | ||
+ | |||
+ | Fremantle comes with the bluetoothd network plugin installed but disabled through /etc/bluetooth/main.conf |
Learn more about Contributing to the wiki.