HOWTO Bluetooth Sync with Palm or PocketPC

From Gentoo Linux Wiki

Jump to: navigation, search
This article is part of the HOWTO series.
Installation Kernel & Hardware Networks Portage Software System X Server Gaming Non-x86 Emulators Misc

This article is still a Stub. You can help Gentoo-Wiki by expanding it.

Contents

[edit] Prologue

This howto will walk you through the steps involved in linking a Palm, PocketPC, or other Bluetooth-enabled PDA with your Linux-powered computer. This is useful for several reasons:
  • You can use built-in Bluetooth features, such as Object Exchange, to share certain kinds of data between your PDA and your computer.
  • You can use the synchronization feature of your PDA to copy files, back up important documents, and maintain updated databases wirelessly.
  • You can access services on your local computer and even the Internet, much the same as if you were using a traditional IP wireless protocol such as 802.11.

This tutorial is designed for users of the Gentoo Linux operating system, but it is by no means useable only to those running Gentoo. Be warned, though, that things aren't going to run exactly the same on different distributions.

[edit] Preparation

[edit] Equipment

For this to work, you'll need a couple of pieces of hardware. One of each of the following is required:
  • A computer equipped with USB ports running Linux.
  • A PDA with Bluetooth technology.
  • A Linux-compatible Bluetooth dongle.

This first version of the HOWTO was constructed using a Palm Tungsten T and an IOGear GBU301 Bluetooth dongle. If anyone else is successful, please update this accordingly.

[edit] Software, Hardware Setup, and Configuration

For these three items, you should use the excellent HOWTO mobile phone, Bluetooth and GNOME. The sections Configure the Kernel, Emerge the Packages, Attach the dongle, and Start the Bluetooth device will guide you through the process.

If you're using command-line tools, there are some additional required configuration settings. These will be covered in a later HOWTO, which will more generically describe the setup of Bluetooth on a Linux system; see the Discuss page of the above linked HOWTO for more information on this possibility. For now, I direct you to this post. In fact, you should go there now, as I'm not finished with rewriting this, and I have to go do homework.

I found that the Forum was very useful, though I had to read it many times. I looked a several different

Also if you get the following error, make sure the that bluetooth_pan init script is working correctly. "Error:Serial:timeout. Could be bad cable or faulty Modem. (0x0305)"

Also here is another good resource. pilot-link bluesync HowTo

[edit] create bluetooth connection via dun to pc

install net-wireless/bluez-utils-3.22 edit the file /etc/conf.d/bluetooth :

  1. Bluetooth configuraton file
  1. Start of hcid (allowed values are "true" and "false")

HCID_ENABLE=true

  1. Config file for hcid

HCID_CONFIG="/etc/bluetooth/hcid.conf"

  1. Start sdpd (allowed values are "true" and "false")

SDPD_ENABLE=true

  1. Start hidd (allowed values are "true" and "false")

HIDD_ENABLE=false

  1. Arguments to hidd // I'm not excatly sure what it does, but it seems like it makes the mouse and keyboard "auto"-connect

HIDD_OPTIONS="--server"

  1. Run hid2hci (allowed values are "true" and "false") // you definitly want this

HID2HCI_ENABLE=false

  1. Bind rfcomm devices (allowed values are "true" and "false")

RFCOMM_ENABLE=true

  1. Config file for rfcomm

RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf"

DUND_ENABLE=true DUND_OPTIONS="--listen --persist --msdun call dun"

  1. Start pand (allowed values are "true" and "false") // Optional too

PAND_ENABLE=false

  1. Arguments to pand

PAND_OPTIONS="--listen --role NAP"

edit /etc/init.d/bluetooth :

  1. Copyright 1999-2006 Gentoo Foundation
  2. Distributed under the terms of the GNU General Public License v2
  3. $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez-utils/files/3.11/bluetooth-init.d,v 1.1 2007/06/09 11:33:55 betelgeuse Exp $

depend() {

       after coldplug
       need dbus localmount

}

start() {

       ebegin "Starting Bluetooth"
       #local 
       result=0
       HCID_CONFIG="${HCID_CONFIG:-/etc/bluetooth/hcid.conf}"
       if [ -f "${HCID_CONFIG}" ]; then
               ebegin "    Starting hcid"
               # -s enables internal sdp server
               start-stop-daemon --start \
                       --exec /usr/sbin/hcid -- -s -f "${HCID_CONFIG}"
               eend $?
       else
           eend 1
               result=1
       fi
       if [ "${HID2HCI_ENABLE}" = "true" -a -x /usr/sbin/hid2hci ]; then
               ebegin "    Running hid2hci"
               /usr/sbin/hid2hci --tohci -q    #be quiet
               eend $?
               [ "${result}" = "0" ] && result=$?
       fi
       if [ "${RFCOMM_ENABLE}" = "true" -a -x /usr/bin/rfcomm ]; then
               if [ -f "${RFCOMM_CONFIG}" ]; then
                       ebegin "    Starting rfcomm"
                       /usr/bin/rfcomm -f "${RFCOMM_CONFIG}" bind all
                       eend $?
               else
                       ewarn "Not enabling rfcomm because RFCOMM_CONFIG does not exists"
               fi
       fi
       if [ "${DUND_ENABLE}" = "true" -a -x /usr/bin/dund ]; then
               if [ -n "${DUND_OPTIONS}" ]; then
                       ebegin "    Starting dund"
                       start-stop-daemon --start --quiet --exec /usr/bin/dund -- ${DUND_OPTIONS}
                       eend $?
               else
                       ewarn "Not enabling dund because DUND_OPTIONS does not exists"
               fi
       fi
       eend ${result}

}

stop() {

       ebegin "Shutting down Bluetooth"
       start-stop-daemon --stop --quiet --exec /usr/sbin/hcid
       [ -x /usr/bin/dund ] && start-stop-daemon --stop --quiet --exec \
       /usr/bin/dund
       eend $?

}

so now dund is loaded on startup

now follow the info here http://www.toobusyto.org.uk/tech/tungsten_linux.html on pairing the palm with the pc.

Personal tools