Skip to contentSkip to conversation

Syncing a Treo 680

Bluez-users [email protected] 6 participants 7 messages May 21, 2008 – May 27, 2008 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Okay, I've read the Wiki. I've checked out multiple different webpages. I've been subscribed to the mailing list for weeks. I'm so confused I barely know where to start.

All I want is to sync my Treo with my computer. Specifically, I want to back up my data and install programs -- I don't need Outlook functionality or even a list of my appointments in a desktop application. Just backup and install.

I read here that I shouldn't use dund, but the Wiki points me to a webpage that points me to a tutorial that uses dund.

I don't program in Python. Java, C/C++, PHP, and Perl, but not Python. I don't want to have to learn Python to sync my phone; I'm busy supporting other Open Source projects and just don't have the spare time.

So, I will donate $20 via PayPal to anyone who can provide me with step-by-step instructions allowing me to sync my Treo 680 with my Debian Unstable computer through my Kensington K33348 dongle using available packages and configuration files. I will use this knowledge to create a page on/for the wiki so other users can avoid the trouble.

I understand the first step here is 'hcitool scan' and 'hciconfig'.

$ sudo hcitool scan
Scanning ... (blue light flashes on my dongle)
$ sudo hciconfig
hci0:    Type: USB
    BD Address: 00:19:15:5A:B8:FD ACL MTU: 1017:8 SCO MTU: 64:8
    UP RUNNING PSCAN ISCAN
    RX bytes:694 acl:0 sco:0 events:25 errors:0
    TX bytes:353 acl:0 sco:0 commands:23 errors:0

Respectfully,
Judebert

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#1 lore raw
Quoted 43 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of [email protected]
Sent: Tuesday, May 20, 2008 6:42 PM
To: [email protected]
Subject: [Bluez-users] Syncing a Treo 680

Okay, I've read the Wiki. I've checked out multiple different webpages. I've been subscribed to the mailing list for weeks. I'm so confused I barely know where to start.

All I want is to sync my Treo with my computer. Specifically, I want to back up my data and install programs -- I don't need Outlook functionality or even a list of my appointments in a desktop application. Just backup and install.

I read here that I shouldn't use dund, but the Wiki points me to a webpage that points me to a tutorial that uses dund.

I don't program in Python. Java, C/C++, PHP, and Perl, but not Python.
I don't want to have to learn Python to sync my phone; I'm busy supporting other Open Source projects and just don't have the spare time.

So, I will donate $20 via PayPal to anyone who can provide me with step-by-step instructions allowing me to sync my Treo 680 with my Debian Unstable computer through my Kensington K33348 dongle using available packages and configuration files. I will use this knowledge to create a page on/for the wiki so other users can avoid the trouble.

I understand the first step here is 'hcitool scan' and 'hciconfig'.

$ sudo hcitool scan
Scanning ... (blue light flashes on my dongle) $ sudo hciconfig
hci0:    Type: USB
    BD Address: 00:19:15:5A:B8:FD ACL MTU: 1017:8 SCO MTU: 64:8
    UP RUNNING PSCAN ISCAN
    RX bytes:694 acl:0 sco:0 events:25 errors:0
    TX bytes:353 acl:0 sco:0 commands:23 errors:0
Quoted 3 lines

Respectfully,
Judebert

Hi Judebert,

There a howto on pilot-link's site. It not only allows you to backup/install. You could also sync to evolution or surf the web.

The page is old but should still be valid for new devices. I use a similar setup to sync and surf on my Treo 650.

http://howto.pilot-link.org/bluesync/

Angus

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw

This helped me:

http://www.gurulabs.com/goodies/Using_Linux_and_Bluetooth_DUN_with_the_Treo650.php

Quoted 61 lines · Angus Ainslie
Quoted 43 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of [email protected]
Sent: Tuesday, May 20, 2008 6:42 PM
To: [email protected]
Subject: [Bluez-users] Syncing a Treo 680

Okay, I've read the Wiki. I've checked out multiple different webpages. I've been subscribed to the mailing list for weeks. I'm so confused I barely know where to start.

All I want is to sync my Treo with my computer. Specifically, I want to back up my data and install programs -- I don't need Outlook functionality or even a list of my appointments in a desktop application. Just backup and install.

I read here that I shouldn't use dund, but the Wiki points me to a webpage that points me to a tutorial that uses dund.

I don't program in Python. Java, C/C++, PHP, and Perl, but not Python.
I don't want to have to learn Python to sync my phone; I'm busy supporting other Open Source projects and just don't have the spare time.

So, I will donate $20 via PayPal to anyone who can provide me with step-by-step instructions allowing me to sync my Treo 680 with my Debian Unstable computer through my Kensington K33348 dongle using available packages and configuration files. I will use this knowledge to create a page on/for the wiki so other users can avoid the trouble.

I understand the first step here is 'hcitool scan' and 'hciconfig'.

$ sudo hcitool scan
Scanning ... (blue light flashes on my dongle) $ sudo hciconfig
hci0:    Type: USB
    BD Address: 00:19:15:5A:B8:FD ACL MTU: 1017:8 SCO MTU: 64:8
    UP RUNNING PSCAN ISCAN
    RX bytes:694 acl:0 sco:0 events:25 errors:0
    TX bytes:353 acl:0 sco:0 commands:23 errors:0
Quoted 4 lines

Respectfully,
Judebert

Hi Judebert,

There a howto on pilot-link's site. It not only allows you to backup/install. You could also sync to evolution or surf the web.

The page is old but should still be valid for new devices. I use a similar setup to sync and surf on my Treo 650.

http://howto.pilot-link.org/bluesync/

Angus

Quoted 10 lines

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#3 lore raw
In reply to Angus Ainslie

I gave both pages a fair shake. Short story: I'm still willing to provide $20 for a walkthrough. Long story: I had the following problems:

Quoted 4 lines · Wendell MacKenzie - [email protected] wrote:

This helped me:

http://www.gurulabs.com/goodies/Using_Linux_and_Bluetooth_DUN_with_the_Treo650.php

That page is set up for Red Hat. Debian doesn't have the bluez-pin package, and its hcid.conf is a little different: it contains the PIN, and doesn't have a dbus_pin_helper (not in any of the packages, either). There's also no system-config-security-level. Nevertheless, everything seems to go well, until I enter my PIN. Even when I set up the "feed-pin.sh" file, I get an error dialog on the Treo 680 titled "Bluetooth Security": "Unable to add ComputerName-0 to your trusted device list."

Quoted 5 lines · Angus Ainslie - [email protected] wrote:

The page is old but should still be valid for new devices. I use a similar setup to sync and surf on my Treo 650.

http://howto.pilot-link.org/bluesync/

This page also requires packages not available on Debian: bluez-lib, bluez-pan and bluez-sdp. The Palm pieces seem more relevant to my Treo; however, the Treo seems to already have a Bluetooth HotSync profile. It has a nice little tutorial that, after the equivalent of figure 5-8, says I have to set up a virtual serial port on my computer. I assume that's what hcid, pand, and rfcomm are doing, and carry on. Actually clicking the "Launch HotSync" button leads to a message: "Connecting with the desktop using ComputerName-0", followed by an error dialog titled "HotSync Problem": "Unable to initiate HotSync operation because the port is in use by another application."

I assume this is because it never asked for a PIN, but I just don't know. When I carry on, adding the /etc/bluetooth/pin file as instructed in Chapter 6, I get the same "Unable to add" message as above.

Since $20 is at stake, and I'm awake, I figured I'd give it another try. I installed bluez-gnome and ran the bluetooth-applet from the command line. From there I enabled "Automatically authorize incoming requests". This time when I tried to add the computer to my trusted devices, the bluetooth-applet prompted me for a passkey; when I had entered the same passkey on both devices, it claimed to have verified my phone.

Unfortunately, I still got the "port is in use" error. I went back through the second link, added my computer as a network, and tried to follow the setup in Chapter 7.1 for surfing the web (because Chapter 7.2 says that I need the pppd set up here), but I don't have sdpd running, and I don't know where to find it.

Respectfully,
Judebert

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#4 lore raw
Quoted 10 lines · On 05/23/2008 11:46 PM, [email protected] wrote:

[...]
Unfortunately, I still got the "port is in use" error [when attempting to hotsync]. I went back through the second link, added my computer as a network, and tried to
follow the setup in Chapter 7.1 for surfing the web (because Chapter 7.2[0]
says that I need the pppd set up here), but I don't have sdpd running,
and I don't know where to find it.

Respectfully,
Judebert

Hello Judebert.

I'm just a user, like you, trying to get my bluetooth working properly. But I will try to help you.

Probably, Debian's bluez-utils contains most of the things in bluez-lib, bluez-pan, and bluez-sdp. I'm using Debian Etch, and /usr/sbin/sdpd is part of bluez-utils (as is /usr/bin/pand).

Even though you think that your Treo 680 already has a bluetooth hotsync profile, create a new one anyway. Despite the name, there are probably subtle unseen differences between network connection and hotsync profiles. When you create the new hotsync profile, be sure to give it a different name from the others.

Where did you read that using "dund" was a bad idea?

Try using dund. I have been able to get one of my bluetooth adapters working to get my Palm PDA online using the methods outlined here:

http://howto.pilot-link.org/bluesync/ga.html

(Another bluetooth dongle [the expensive one] does not work yet, and that's why I'm here.)

After you get everything setup properly (hcid, sdpd, dund, rfcomm), I suggest you use kpilot to help you hotsync. Gnome-pilot has never worked for me, and although kpilot is kcrap, it actually backs up your PDA when it's not crashing.

However, kpilot would need to know where to find the device file for contacting your smartphone, and that device file would be /dev/rfcomm0 or /dev/rfcomm1 or something similar. So you'll start kpilot and go into "Settings/ Configure Kpilot/ Device." Most likely, the device will be /dev/rfcomm0.

PS.
We users should stick around here for so that we can build a knowledge core that is able to benefit others when they come here. If we all get what we need then leave the list (unsubscribe), that knowledge core can never form. The knowledge core I refer to would be a group of people knowledgeable in bluez and bluetooth.

----------------
[0] http://howto.pilot-link.org/bluesync/gb.html

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#5 lore raw
In reply to [email protected]

On Sat, 24 May 2008, [email protected] wrote:

-> I gave both pages a fair shake. Short story: I'm still willing to provide -> $20 for a walkthrough. Long story: I had the following problems:

I don't have a Treo, or have seen one, but maybe I can help on the bluez side of things.

-> > http://www.gurulabs.com/goodies/Using_Linux_and_Bluetooth_DUN_with_the_Treo650.php
-> >
-> That page is set up for Red Hat. Debian doesn't have the bluez-pin package, -> and its hcid.conf is a little different: it contains the PIN, and doesn't -> have a dbus_pin_helper (not in any of the packages, either). There's also no -> system-config-security-level. Nevertheless, everything seems to go well, -> until I enter my PIN. Even when I set up the "feed-pin.sh" file, I get an -> error dialog on the Treo 680 titled "Bluetooth Security": "Unable to add -> ComputerName-0 to your trusted device list."

Red Hat is moldy-oldy and those objects/packages are now obsolete from the current bluez setup. PIN/pairing you do with bluez-gnome or I use the passkey-agent/auth-agent that's in the bluez-utils source, from the command line since gnome stuff won't build on my system as I don't have gnome nor its libraries. The "Unable to...trusted device list." likely means there was nothing on your system answering the pairing request (properly). You seem to have pairing down, as you said below.

-> > http://howto.pilot-link.org/bluesync/
-> >
-> This page also requires packages not available on Debian: bluez-lib, -> bluez-pan and bluez-sdp. The Palm pieces seem more relevant to my Treo; -> however, the Treo seems to already have a Bluetooth HotSync profile. It has -> a nice little tutorial that, after the equivalent of figure 5-8, says I have -> to set up a virtual serial port on my computer. I assume that's what hcid, -> pand, and rfcomm are doing, and carry on. Actually clicking the "Launch -> HotSync" button leads to a message: "Connecting with the desktop using -> ComputerName-0", followed by an error dialog titled "HotSync Problem":
-> "Unable to initiate HotSync operation because the port is in use by another -> application."

pand is part of bluez-utils. sdpd as a binary is gone. The actual packages are listed at http://www.bluez.org/download.html. Distributions mix & match those and create many packages from those listed few.

Changelog:

ver 3.30:
...
Remove build option for deprecated sdpd binary.

You can use hcid -s to enable sdp. Setting up a serial port with rfcomm is something like so, using my phone's bluetooth modem as an example:

root@vdrl /tmp # hcitool scan
Scanning ...

         00:1C:62:19:B1:6A       LG VX8300

passkey-agent --default 0000 00:1C:62:19:B1:6A & <-- Use bluez-gnome for
auth-agent & these. It doesn't build
on my system due to lack of gnome.

sdptool browse 00:1C:62:19:B1:6A

Passkey request for device 00:1C:62:19:B1:6A
Browsing 00:1C:62:19:B1:6A ...

....

Service Name: BT DIAG
Service RecHandle: 0x10005
Service Class ID List:
"Serial Port" (0x1101)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 16 <--- channel 16
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Serial Port" (0x1101) <-- serial port

rfcomm --help

RFCOMM configuration utility ver 3.31
Usage:
rfcomm [options] <command> <dev>

Options:

         -i [hciX|bdaddr]      Local HCI device or BD Address
         -h, --help            Display help
         -r, --raw             Switch TTY into raw mode
         -A, --auth            Enable authentication
         -E, --encrypt         Enable encryption
         -S, --secure          Secure connection
         -M, --master          Become the master of a piconet
         -f, --config [file]   Specify alternate config file
         -a                    Show all devices (default)

Commands:

         bind     <dev> <bdaddr> [channel]       Bind device
         release  <dev>                          Release device
         show     <dev>                          Show device
         connect  <dev> <bdaddr> [channel]       Connect device
         listen   <dev> [channel [cmd]]          Listen
         watch    <dev> [channel [cmd]]          Watch

rfcomm -i hci0 bind 0 00:1C:62:19:B1:6A 16 <-- "0" means "rfcomm0"
rfcomm -a
rfcomm0: 00:0A:3A:7C:5C:74 -> 00:1C:62:19:B1:6A channel 16 clean

Then you'd give /dev/rfcomm0 to whatever was needing it (pppd, etc.) Make sure the rfcomm device files exist and are correct (procinfo -a should show the major number for rfcomm, here it's 216):

crw-rw-rw- 1 root root 216, 0 2007-12-16 07:29 /dev/rfcomm0 crw-rw-rw- 1 root root 216, 1 2007-12-16 07:29 /dev/rfcomm1 crw-rw-rw- 1 root root 216, 2 2007-12-16 07:29 /dev/rfcomm2

Using dund might skip the above step, as it might bind /dev/rfcomm0 itself. Note when using dund/pppd you usually use a script to hold the options to pppd and then a connection script. If you put the script in /etc/ppp/peers/ (whatever) you can do 'pppd call (whatever)'

rfcomm0: 00:0A:3A:7C:5C:74 -> 00:1C:62:19:B1:6A channel 16 connected [tty-attached]

Unfortunately, Verizon does a major disservice to their customers by crippling the phone's modem via bluetooth so I can't show you pppd in action since the phone ignores the bt commands from here on out (but I have done it via USB so I know it works).

Release rfcomm after you use it. Maybe the 'port is in use' is from that?

rfcomm release 0

-> I assume this is because it never asked for a PIN, but I just don't know. -> When I carry on, adding the /etc/bluetooth/pin file as instructed in Chapter -> 6, I get the same "Unable to add" message as above.

That file isn't used anymore, as far as I can tell. Bluez is a fast moving target (as I write this I find there's another new release now). They release new versions with major fixes and functionality changes all the time. When you use a distribution's packaged version, you run into a problem - whether to try to make something that's already out-dated and containing bugs/missing functionality (as compared to the current bluez source releases) work, or to try to go it alone and build the current bluez sources yourself. Problems arise when you try to help someone out as well, because of the differences in versions and lag time between disto/packaged bluez and the released sources.

-> Unfortunately, I still got the "port is in use" error. I went back through -> the second link, added my computer as a network, and tried to follow the -> setup in Chapter 7.1 for surfing the web (because Chapter 7.2 says that I -> need the pppd set up here), but I don't have sdpd running, and I don't know -> where to find it.

The rest of the tut looks OK, from 7-1 on, with the exception that sdpd is gone from bluez-utils and hcid -s takes its place.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#6 lore raw
In reply to [email protected]
Quoted 2 lines · On Sat, May 24, 2008 at 12:46 AM, <[email protected]>…

I gave both pages a fair shake. Short story: I'm still willing to provide $20 for a walkthrough. Long story: I had the following problems:

I'm using Ubuntu 7.10. Here's what I've used to get bluetooth
connectivity with my Treo 650:

1. Edit /etc/default/bluetooth, and set the following variables:

     DUND_ENABLED=1
     DUND_OPTIONS="--listen --persist --msdun call treo"
     PAND_ENABLED=1
     PAND_OPTIONS="--listen --role NAP"
     SDPTOOL_OPTIONS="add --channel=1 SP"

(Note, that's not the whole file, it's just the variables that need to be set.)

2. If you want to surf the web on the Palm through your computer,
create the file /etc/init.d/btinternet with the following contents:

#!/bin/sh
# enable IP forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
# enable masquerading onto eth0
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

(Assuming eth0 is your computer's connection to the internet.)

3. Create the file /etc/ppp/peers/treo with the following contents:

    proxyarp
    115200
    172.16.10.1:172.16.10.2
    local
    ms-dns IP.ADDR.OF.DNS.SERVER
    noauth
    debug
    ktune

Note: the "IP.ADDR.OF.DNS.SERVER" needs to be the ip address of the
DNS server your computer's using. Use "nslookup www.google.com" and copy the ip address in the line starting with "Server:".

4. Edit /etc/bluetooth/hcid.conf and set the following values:

        security auto;
        passkey "WHATEVER PASSKEY YOU WANT";

Obviously, you set a PIN number there for pairing.

5. Edit /etc/bluetooth/rfcomm.conf and set the following values:

# Automatically bind the device at startup
bind yes;
# The Bluetooth address of your Treo (find with hcitool scan
when Treo is discoverable)

        device DE:AD:BE:EF:D0:0D;
       # RFCOMM channel for the connection
        channel 1;
       # Description of the connection
        comment "Palm link";

6. Restart bluetooth services (/etc/init.d/bluetooth stop; /etc/init.d/bluetooth start), run the btinternet script above as root.

7. Now we're on the Treo. Pair the Treo with the computer using the PIN you set above. (Bluetooth app, "Setup Devices", "Nearby Devices", pick your computer, enter the PIN when prompted.)

8. Go to "Preferences", choose "Connection", and name it something like "BT PAN conn". "Connect to: Local Network; Via: Bluetooth;
Device: your-machine-name". Details - Speed: 115,200; Flow Ctl:
Automatic."

9. Prefs -> Network. Create a new service, "BT PAN nw", set the Connection to the one you just created in step 8. Username: your user name on the machine, Password: prompt. Details: set the idle timeout to whatever you like. Choose "Advanced" from "Details", and set "IP Address" to "Automatic", unset "Query DNS", and put the DNS server you found above in the "Primary DNS" field.

At this point, you *should* be able to get a network connection via
PAN, and surf the net through your Palm. Using the normal commands to do network hotsyncs and things *should* work. If not, we also configured DUN (PPP over emulated serial) above. In my experience, it's been a bit slower/less reliable than PAN, but it also works. Here's how to set *that* up:

10. Go to "Preferences", choose "Connection", and name it something like "BT DUN conn". "Connect to: PC; Via: Bluetooth; Device:
your-machine-name". Details - Speed: 115,200; Flow Ctl: Automatic."

11. Prefs -> Network. Create a new service, "BT DUN nw", set the Connection to the one you just created in step 10. Username: your user name on the machine, Password: prompt. Details: set the idle timeout to whatever you like. Choose "Advanced" from "Details", and set "IP Address" to "Automatic", set "Query DNS" to active (checkbox set). No script is needed.

This has worked for me on two different machines with two different
Bluetooth dongles, from Ubuntu 6.10 onward. If it works for you, donate the money to the Free Software Foundation, or the Debian project.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users