Palm Treo Pro and Ubuntu Jaunty - Can't Connect

View: New views
4 Messages — Rating Filter:   Alert me  

Palm Treo Pro and Ubuntu Jaunty - Can't Connect

by Chris Horne :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've been trying for a fortnight now to get this working, I've trawled all the discussion groups and help pages I can find and still no joy.

I'm trying to connect a Palm Treo Pro, running Windows Mobile Professional 6.1 to my Ubuntu Linux (Jaunty) PC.  The linux installation is fairly clean, although I've obviously tried a few things over the last couple of weeks.   The aim is to transfer files onto the Treo - synchronising calendar and address book would be a bonus, but these are not essential as the device syncs with the servers at work.

Here's what I have tried...

Starting with a fairly clean Ubuntu Linux (Jaunty) installation.

Check does the computer see my Palm Treo Pro (running Windows Mobile Professional 6.1)?

Before I plug it in to the USB port
chris@old-faithfull:~$ ps aux | grep sync
chris 3918 0.0 0.1 3340 804 pts/0 S+ 20:43 0:00 grep sync

And after I plug it in
chris@old-faithfull:~$ ps aux | grep sync
chris 3920 0.0 0.1 3340 804 pts/0 S+ 20:43 0:00 grep sync

so no difference – suggests not being seen.

OK – so lets install the synce-sync-engine

chris@old-faithfull:~$ sudo apt-get install synce-sync-engine
[sudo] password for chris:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libgnet2.0-0 librtfcomp0 python-dateutil python-rra python-rtfcomp python-tz
synce-hal
The following NEW packages will be installed
libgnet2.0-0 librtfcomp0 python-dateutil python-rra python-rtfcomp python-tz
synce-hal synce-sync-engine
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/383kB of archives.
After this operation, 1950kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
librtfcomp0 python-rra python-rtfcomp synce-hal synce-sync-engine
Install these packages without verification [y/N]? y
Selecting previously deselected package libgnet2.0-0.
(Reading database ... 135274 files and directories currently installed.)
Unpacking libgnet2.0-0 (from .../libgnet2.0-0_2.0.8-1_i386.deb) ...
Selecting previously deselected package librtfcomp0.
Unpacking librtfcomp0 (from .../librtfcomp0_1.1-jaunty1-synce1_i386.deb) ...
Selecting previously deselected package python-dateutil.
Unpacking python-dateutil (from .../python-dateutil_1.4.1-2_all.deb) ...
Selecting previously deselected package python-rra.
Unpacking python-rra (from .../python-rra_0.14-0ubuntu0~ppa1~jaunty1_i386.deb) ...
Selecting previously deselected package python-rtfcomp.
Unpacking python-rtfcomp (from .../python-rtfcomp_1.1-jaunty1-synce1_i386.deb) ...
Selecting previously deselected package synce-hal.
Unpacking synce-hal (from .../synce-hal_0.14-0ubuntu0~ppa2~jaunty1_i386.deb) ...
Selecting previously deselected package python-tz.
Unpacking python-tz (from .../python-tz_2008i-1_all.deb) ...
Selecting previously deselected package synce-sync-engine.
Unpacking synce-sync-engine (from .../synce-sync-engine_0.14-0ubuntu0~ppa1~jaunty1_all.deb) ...
Processing triggers for hal ...
Regenerating hal fdi cache ...
* Restarting Hardware abstraction layer hald [ OK ]
Processing triggers for man-db ...
Setting up libgnet2.0-0 (2.0.8-1) ...
Setting up librtfcomp0 (1.1-jaunty1-synce1) ...
Setting up python-dateutil (1.4.1-2) ...
Setting up python-rra (0.14-0ubuntu0~ppa1~jaunty1) ...
Setting up python-rtfcomp (1.1-jaunty1-synce1) ...
Setting up synce-hal (0.14-0ubuntu0~ppa2~jaunty1) ...
Setting up python-tz (2008i-1) ...
Setting up synce-sync-engine (0.14-0ubuntu0~ppa1~jaunty1) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Processing triggers for python-support ...

Before I plug in the Treo,
ps aux | grep sync
chris 4852 0.0 0.1 3340 808 pts/0 S+ 21:09 0:00 grep sync

and when I plug it in:
ps aux | grep sync
root 4859 0.8 0.4 5844 2544 ? S 21:09 0:00 /usr/lib/synce-hal/hal-dccm --rndis --device-ip=169.254.2.1 --local-ip=169.254.2.2 --log-level=3
root 4882 0.0 0.0 2276 420 ? Ss 21:09 0:00 dhclient -pf /var/run/dhclient-synce-eth1.pid -lf /var/run/dhclient-synce-eth1.lease -cf /usr/share/synce-hal/dhclient.conf eth1
chris 5043 0.0 0.1 3340 808 pts/0 S+ 21:10 0:00 grep sync

So something is happening. It looks like we have an rndis device connected.

Try synce-pls
chris@...: /usr/bin/synce-pls
** Message: Device /org/freedesktop/Hal/devices/net_80_00_60_0f_e8_00 not fully set in Hal, skipping
** Message: Odccm is not running, ignoring
/usr/bin/synce-pls: Could not find configuration at path '(Default)'

Try running synce-sync-engine
chris@old-faithfull: /usr/bin/synce-sync-engine
SynCE sync-engine starting up
2009-10-17 21:14:42,911 DEBUG syncengine : running main loop
2009-10-17 21:14:42,917 DEBUG syncengine : creating SyncEngine object
2009-10-17 21:14:42,990 INFO engine.syncengine.kernel : __init__: connected device found
2009-10-17 21:14:42,999 DEBUG syncengine : installing signal handlers

Which looks good - it's found something.

Now start synce-kpm
chris@old-faithfull:~$ /usr/bin/synce-kpm
Running dataserver
running the GUI Part
Initializing DataServer
odccm is NOT running!!
Finished with init

Synce-kpm starts OK, but does not pick up the Treo

Check the firewall
chris@old-faithfull:~$ sudo ufw status
Status: inactive

So it's not firewall. I've also followed the advice on stopping the network manager from handling the connection.

Device is password protected, but I have not been prompted for the password.

Try installing odccm
chris@old-faithfull:/usr/sbin$ sudo apt-get install odccm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
python-rtfcomp python-tz python-rra python-dateutil librtfcomp0
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED
synce-hal synce-sync-engine
The following NEW packages will be installed
odccm
0 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
Need to get 0B/27.1kB of archives.
After this operation, 844kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 135447 files and directories currently installed.)
Removing synce-sync-engine ...
Removing synce-hal ...
Processing triggers for man-db ...
Processing triggers for hal ...
Regenerating hal fdi cache ...
* Restarting Hardware abstraction layer hald [ OK ]
Selecting previously deselected package odccm.
(Reading database ... 135345 files and directories currently installed.)
Unpacking odccm (from .../odccm_0.11.1-4_i386.deb) ...
Processing triggers for man-db ...
Setting up odccm (0.11.1-4) ...
* Reloading system message bus config... [ OK ]
* Starting odccm odccm [ OK ]
2009-10-17 21:32:55,832 INFO engine.syncengine.kernel : _CBODCCMStatusChanged: odccm came online

Now synce-kpm starts without any complaints, but still no connection the Treo...

I've run out of ideas.  Any suggestions?

Thanks

Chris





------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: Palm Treo Pro and Ubuntu Jaunty - Can't Connect

by masterpatricko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Chris Horne wrote:
> Try synce-pls
>
>     chris@old-faithfull <mailto:chris@old-faithfull>: /usr/bin/synce-pls
>     ** Message: Device
>     /org/freedesktop/Hal/devices/net_80_00_60_0f_e8_00 not fully set
>     in Hal, skipping
>     ** Message: Odccm is not running, ignoring
>     /usr/bin/synce-pls: Could not find configuration at path '(Default).
>
Its almost working, but not quite ... don't worry any "odccm is not
running" messages from any of the SynCE applications, they are not
errors, just information. They do not mean you should install odccm.
> Device is password protected, but I have not been prompted for the
> password.
>
> Try installing odccm
odccm is deprecated and almost defintely not work, and it conflicts with
synce-hal. Reinstall synce-hal and synce-sync-engine.
If your device is password-protected try running the script
"synce-unlock.py" (should be included with synce-hal). Not sure if
synce-kpm does prompt for a password on connect ... that could be the
problem.
Also try editing /etc/synce-hal.conf and uncomment the line "loglevel:
debug" to get some more verbose information.

Regards,

Tejas

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Parent Message unknown Re: Re: Palm Treo Pro and Ubuntu Jaunty - Can't Connect

by Chris Horne :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Tejas

This is what I have tried:

1) Made sure that odccm is removed and synce-sync-engine in installed.
2) Update /etc/synce-hal.conf to get some more logging information
3) Start the synce-sync-engine

chris@old-faithfull:/usr/bin$ synce-sync-engine
SynCE sync-engine starting up
2009-10-19 20:38:01,020 DEBUG syncengine : running main loop
2009-10-19 20:38:01,096 DEBUG syncengine : creating SyncEngine object
2009-10-19 20:38:01,193 INFO engine.syncengine.kernel : __init__: connected device found
2009-10-19 20:38:01,202 DEBUG syncengine : installing signal handlers

3) Check the log files with dmesg

[ 1085.196067] usb 2-2: new full speed USB device using ohci_hcd and address 3
[ 1085.420414] usb 2-2: configuration #1 chosen from 1 choice
[ 1085.697214] usbcore: registered new interface driver cdc_ether
[ 1085.877092] rndis_host 2-2:1.0: RNDIS_MSG_QUERY(0x00010202) failed, -47
[ 1085.891257] eth1: register 'rndis_host' at usb-0000:00:02.0-2, RNDIS device, 80:00:60:0f:e8:00
[ 1085.892785] usbcore: registered new interface driver rndis_host
[ 1085.919332] usbcore: registered new interface driver rndis_wlan

and daemon.log

Oct 19 21:21:06 old-faithfull dhclient: Internet Systems Consortium DHCP Client V3.1.1
Oct 19 21:21:06 old-faithfull dhclient: Copyright 2004-2008 Internet Systems Consortium.
Oct 19 21:21:06 old-faithfull dhclient: All rights reserved.
Oct 19 21:21:06 old-faithfull dhclient: For info, please visit http://www.isc.org/sw/dhcp/
Oct 19 21:21:06 old-faithfull dhclient:
Oct 19 21:21:06 old-faithfull dhclient: wmaster0: unknown hardware address type 801
Oct 19 21:21:08 old-faithfull dhclient: wmaster0: unknown hardware address type 801
Oct 19 21:21:08 old-faithfull dhclient: Listening on LPF/eth1/80:00:60:0f:e8:00
Oct 19 21:21:08 old-faithfull dhclient: Sending on   LPF/eth1/80:00:60:0f:e8:00
Oct 19 21:21:08 old-faithfull dhclient: Sending on   Socket/fallback
Oct 19 21:21:08 old-faithfull avahi-daemon[2895]: Registering new address record for fe80::8200:60ff:fe0f:e800 on eth1.*.
Oct 19 21:21:08 old-faithfull chipcardd[3171]: devicemanager.c: 3373: Changes in hardware list
Oct 19 21:21:11 old-faithfull dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 6
Oct 19 21:21:11 old-faithfull dhclient: DHCPOFFER of 169.254.2.2 from 169.254.2.1
Oct 19 21:21:11 old-faithfull dhclient: DHCPREQUEST of 169.254.2.2 on eth1 to 255.255.255.255 port 67
Oct 19 21:21:11 old-faithfull dhclient: DHCPACK of 169.254.2.2 from 169.254.2.1
Oct 19 21:21:11 old-faithfull avahi-daemon[2895]: Joining mDNS multicast group on interface eth1.IPv4 with address 169.254.2.2.
Oct 19 21:21:11 old-faithfull avahi-daemon[2895]: IP_ADD_MEMBERSHIP failed: No buffer space available
Oct 19 21:21:11 old-faithfull avahi-daemon[2895]: Registering new address record for 169.254.2.2 on eth1.IPv4.
Oct 19 21:21:11 old-faithfull avahi-daemon[2895]: Withdrawing address record for 169.254.2.2 on eth1.
Oct 19 21:21:11 old-faithfull avahi-daemon[2895]: Joining mDNS multicast group on interface eth1.IPv4 with address 169.254.2.2.
Oct 19 21:21:11 old-faithfull avahi-daemon[2895]: IP_ADD_MEMBERSHIP failed: No buffer space available
Oct 19 21:21:11 old-faithfull avahi-daemon[2895]: Registering new address record for 169.254.2.2 on eth1.IPv4.
Oct 19 21:21:11 old-faithfull dhclient: bound to 169.254.2.2 -- renewal in 1205965 seconds.
Oct 19 21:21:11 old-faithfull hal-dccm[4137]: WARNING: synce_trigger_connection: failed to send on socket: Operation not permitted

4) Try synce-pls

chris@old-faithfull:/usr/bin$ synce-pls
** Message: Device /org/freedesktop/Hal/devices/net_80_00_60_0f_e8_00 not fully set in Hal, skipping
** Message: Odccm is not running, ignoring
synce-pls: Could not find configuration at path '(Default)'

5) Try unlocking the device

chris@old-faithfull:/usr/bin$ synce-unlock.py -p
Enter password: 1234
Device /org/freedesktop/Hal/devices/net_80_00_60_0f_e8_00 not connected properly, ignoring...
Device not found

6) Look at the logs again

[ 1085.196067] usb 2-2: new full speed USB device using ohci_hcd and address 3
[ 1085.420414] usb 2-2: configuration #1 chosen from 1 choice
[ 1085.697214] usbcore: registered new interface driver cdc_ether
[ 1085.877092] rndis_host 2-2:1.0: RNDIS_MSG_QUERY(0x00010202) failed, -47
[ 1085.891257] eth1: register 'rndis_host' at usb-0000:00:02.0-2, RNDIS device, 80:00:60:0f:e8:00
[ 1085.892785] usbcore: registered new interface driver rndis_host
[ 1085.919332] usbcore: registered new interface driver rndis_wlan
[ 1090.329603] Unknown OutputIN= OUT=eth1 SRC=169.254.2.2 DST=169.254.2.1 LEN=29 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=33678 DPT=5679 LEN=9
[ 1096.844040] eth1: no IPv6 routers present

Does this give you any more clues?
(Synce-kpm does not appear to ask for a password)

Thanks

Chris


-------- Forwarded Message --------
From: Tejas Guruswamy <Tejas%20Guruswamy%20%3cmasterpatricko@...>
To: synce-users@...
Subject: Re: Palm Treo Pro and Ubuntu Jaunty - Can't Connect
Date: Mon, 19 Oct 2009 17:50:58 +0100

Chris Horne wrote:
> Try synce-pls
>
>     chris@old-faithfull <chris@...>: /usr/bin/synce-pls
>     ** Message: Device
>     /org/freedesktop/Hal/devices/net_80_00_60_0f_e8_00 not fully set
>     in Hal, skipping
>     ** Message: Odccm is not running, ignoring
>     /usr/bin/synce-pls: Could not find configuration at path '(Default).
>
Its almost working, but not quite ... don't worry any "odccm is not
running" messages from any of the SynCE applications, they are not
errors, just information. They do not mean you should install odccm.
> Device is password protected, but I have not been prompted for the
> password.
>
> Try installing odccm
odccm is deprecated and almost defintely not work, and it conflicts with
synce-hal. Reinstall synce-hal and synce-sync-engine.
If your device is password-protected try running the script
"synce-unlock.py" (should be included with synce-hal). Not sure if
synce-kpm does prompt for a password on connect ... that could be the
problem.
Also try editing /etc/synce-hal.conf and uncomment the line "loglevel:
debug" to get some more verbose information.

Regards,

Tejas

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: Palm Treo Pro and Ubuntu Jaunty - Can't Connect

by Guido Diepen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Chris,


On Monday 19 October 2009 22:26:53 Chris Horne wrote:

<snip>

> 6) Look at the logs again
>
> [ 1085.196067] usb 2-2: new full speed USB device using ohci_hcd and
> address 3
> [ 1085.420414] usb 2-2: configuration #1 chosen from 1 choice
> [ 1085.697214] usbcore: registered new interface driver cdc_ether
> [ 1085.877092] rndis_host 2-2:1.0: RNDIS_MSG_QUERY(0x00010202) failed,
> -47
> [ 1085.891257] eth1: register 'rndis_host' at usb-0000:00:02.0-2, RNDIS
> device, 80:00:60:0f:e8:00
> [ 1085.892785] usbcore: registered new interface driver rndis_host
> [ 1085.919332] usbcore: registered new interface driver rndis_wlan
> [ 1090.329603] Unknown OutputIN= OUT=eth1 SRC=169.254.2.2
> DST=169.254.2.1 LEN=29 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP
> SPT=33678 DPT=5679 LEN=9
> [ 1096.844040] eth1: no IPv6 routers present
>
> Does this give you any more clues?

Yes it does :)

>From the one-before-last line it is clear that you have a firewall running
that is blocking the initial communication between the device and your
computer. Unfortunately I don't have the set of firewall rules that will make
it work for you. However, I would like to ask you to completely disable the
firewall (if this is an option for you), disconnect the device, and connect
it again.

After that I am pretty sure that synce-pls will give you more output.

Kind regards,

Guido Diepen

--
Guido Diepen <guido@...>
Aviation is proof that given the will, we have the capacity to achieve the
impossible.
     --Eddie Rickenbacker

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users