Can't communicate via bluetooth

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

Can't communicate via bluetooth

by Olivier Cailloux-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Dear list,

I am trying since several months to make my windows iPaq 4150 device (Windows Mobile 2003, I guess) communicate via bluetooth to my Debian computer. Now with the synce-hal-bluetooth package and others I have been able to make the iPaq connect (i.e., say that it is connected), but still can't use e.g. synce-pls. (My ultimate goal is to make it sync but I'd like to test first with simple tools to see at least if the communication works.)

I lack some documentation about what exactly I should do to make them communicate and what is supposed to work. The page on the wiki about Windows Mobile 2003 has disappeared... [http://www.synce.org/moin/LegacyDevices]. Any pointer to more doc would be appreciated.

E.g., it seems that synce-sync-engine is not supposed to work with Windows Mobile 2003 [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=509807]. But I guess synce-pls is supposed to work? What else could I try?

Here is what I tried last.


~#hid2hci -v 046d -p c705 -m logitech -r hid

Attempting to switch device 046d:c705 to HID mode was successful

~#sdptool browse local | grep "^Service Name: "

Service Name: Headset Audio Gateway

Service Name: Hands-Free Audio Gateway

Service Name: Audio Source

Service Name: AVRCP TG

Service Name: AVRCP CT

Service Name: BlueZ PANU service

Service Name: BlueZ GN service

Service Name: BlueZ NAP service

~#hcitool scan

Scanning ...

00:1C:F0:6C:78:CC ULBPBC

08:00:28:91:D3:2B PPC Olivier

00:0F:DE:6F:42:A7 T630 Olivier

~#sdptool browse 08:00:28:91:D3:2B | grep "^Service Name: "

Service Name: Generic Serial

Service Name: OBEX Object Push

Service Name: OBEX File Transfer

Service Name: Dial-Up Networking

Service Name: Network Access

Service Name: Network Access

~#/usr/bin/bluetooth-agent ***** (keeps waiting)

on iPaq device, connect to PAN (BlueZ NAP service) => works (I get an IP and can browse my computer IP from the iPaq device). Then I disconnect the PAN to try the activesync.

~#dund --listen --activesync --msdun call synce-bt-peer (daemon starts running in background)

~#sdptool add SP

~#sdptool browse local | grep "^Service Name: "

Service Name: Headset Audio Gateway

Service Name: Hands-Free Audio Gateway

Service Name: Audio Source

Service Name: AVRCP TG

Service Name: AVRCP CT

Service Name: BlueZ PANU service

Service Name: BlueZ GN service

Service Name: BlueZ NAP service

Service Name: ActiveSync

Service Name: Serial Port

On the iPaq, I can now see the activesync service when browsing my Debian computer and connect to it.

~$synce-sync-engine --verbosity=DEBUG --logfile=out.log -d

SynCE sync-engine starting up

SynCE sync-engine started as PID 9861

~$synce-list-partnerships

ERROR:dbus.proxies:Introspect error on :1.57:/org/synce/SyncEngine: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

~$synce-pls

** Message: Hal reports no devices connected

** (process:9962): WARNING **: synce_info_from_odccm: Failed to get devices: The name org.synce.odccm was not provided by any .service files

synce-pls: Could not find configuration at path '(Default)'

-~#ps ax | grep [s]ync

9805 ? Ss 0:00 dund --listen --activesync --msdun call synce-bt-peer

9870 rfcomm0 Ss+ 0:00 pppd /dev/rfcomm0 nodetach call synce-bt-peer

9929 ? S 0:00 /usr/lib/synce-hal/hal-dccm --device-ip=192.168.132.201 --local-ip=192.168.132.102 --log-level=3

9979 ? Ss 0:00 /usr/bin/python /usr/bin/synce-sync-engine --verbosity=DEBUG --logfile=out.log -d

(then I disconnect on the iPaq)

~#tail -n 40 /var/log/syslog | grep pppd

Aug 18 19:59:11 smg8 pppd[9870]: pppd 2.4.4 started by root, uid 0

Aug 18 19:59:11 smg8 pppd[9870]: Using interface ppp0

Aug 18 19:59:11 smg8 pppd[9870]: Connect: ppp0 <--> /dev/rfcomm0

Aug 18 19:59:14 smg8 pppd[9870]: Cannot determine ethernet address for proxy ARP

Aug 18 19:59:14 smg8 pppd[9870]: local IP address 192.168.132.102

Aug 18 19:59:14 smg8 pppd[9870]: remote IP address 192.168.132.201

Aug 18 20:10:55 smg8 pppd[9870]: Hangup (SIGHUP)

Aug 18 20:10:55 smg8 pppd[9870]: Modem hangup

Aug 18 20:10:55 smg8 pppd[9870]: Connect time 11.7 minutes.

Aug 18 20:10:55 smg8 pppd[9870]: Sent 12044 bytes, received 8487 bytes.

Aug 18 20:10:55 smg8 pppd[9870]: Connection terminated.

Aug 18 20:10:55 smg8 pppd[9870]: Exit.

Interrestingly, the synce-sync-engine log (out.log) shows the following.
2009-08-18 20:04:51,462 DEBUG syncengine : running main loop
2009-08-18 20:04:51,465 DEBUG syncengine : creating SyncEngine object
2009-08-18 20:04:51,496 INFO engine.syncengine.kernel : __init__: connected device found
2009-08-18 20:04:51,506 INFO engine.syncengine.kernel : _CBHalDeviceConnected: device connected at udi /org/freedesktop/Hal/devices/synce_bluetooth_device_192_168_132_201
2009-08-18 20:04:51,507 INFO engine.config.Config : UpdateConfig - unable to open config file /etc/syncengine.conf.xml ([Errno 2] No such file or directory: '/etc/syncengine.conf.xml') - using defaults
2009-08-18 20:04:51,508 INFO engine.config.Config : UpdateConfig - unable to open config file /home/olivier/.synce/syncengine.conf.xml ([Errno 2] No such file or directory: '/home/olivier/.synce/syncengine.conf.xml') - using defaults
2009-08-18 20:04:51,513 INFO engine.syncengine.kernel :  device Olivier--PPC connected
2009-08-18 20:04:51,514 INFO engine.syncengine.kernel : ProcessAuth : processing authorization for device 'Olivier--PPC'
2009-08-18 20:04:51,520 INFO engine.syncengine.kernel : ProcessAuth: authorization not required for device 'Olivier--PPC'
2009-08-18 20:04:51,521 DEBUG engine.syncengine.kernel : OnConnect: setting up RAPI session
** Message: Hal reports no devices connected

** (process:9979): WARNING **: synce_info_from_odccm: Failed to get devices: The name org.synce.odccm was not provided by any .service files
[synce_info_from_file:69] unable to open file: /home/olivier/.synce/active_connection
2009-08-18 20:04:51,537 INFO engine.syncengine.kernel : __init__: exception -2147467259: An unspecified failure has occurred
2009-08-18 20:04:51,538 DEBUG syncengine : installing signal handlers
2009-08-18 20:10:55,891 INFO engine.syncengine.kernel : _CBHalDeviceDisconnected: device disconnected from udi /org/freedesktop/Hal/devices/synce_bluetooth_device_192_168_132_201
2009-08-18 20:10:55,891 DEBUG engine.syncengine.kernel : StopSessions: stopping RRA server
2009-08-18 20:10:55,892 DEBUG engine.syncengine.kernel : sessions_wait_for_stop: shutting down RRA server
2009-08-18 20:10:55,892 DEBUG engine.syncengine.kernel : OnDisconnect: closing RAPI session
2009-08-18 20:10:55,893 DEBUG engine.syncengine.kernel : OnDisconnect: clearing partnerships
2009-08-18 20:10:55,893 INFO engine.partnerships.Partnerships : ClearDevicePartnerships: clearing all device partnership info


Thank you for any help.
Olivier


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: Can't communicate via bluetooth

by Mark Ellis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 2009-08-18 at 20:28 +0200, Olivier Cailloux wrote:

> Dear list,
>
> I am trying since several months to make my windows iPaq 4150 device
> (Windows Mobile 2003, I guess) communicate via bluetooth to my Debian
> computer. Now with the synce-hal-bluetooth package and others I have
> been able to make the iPaq connect (i.e., say that it is connected),
> but still can't use e.g. synce-pls. (My ultimate goal is to make it
> sync but I'd like to test first with simple tools to see at least if
> the communication works.)
>
> I lack some documentation about what exactly I should do to make them
> communicate and what is supposed to work. The page on the wiki about
> Windows Mobile 2003 has disappeared...
> [http://www.synce.org/moin/LegacyDevices]. Any pointer to more doc
> would be appreciated.
>
> E.g., it seems that synce-sync-engine is not supposed to work with
> Windows Mobile 2003
Correct, you should completely ignore sync-engine

>  [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=509807]. But I
> guess synce-pls is supposed to work? What else could I try?
>
> Here is what I tried last.
>
>


> on iPaq device, connect to PAN (BlueZ NAP service) => works (I get an
> IP and can browse my computer IP from the iPaq device). Then I
> disconnect the PAN to try the activesync.
>
>
> ~#dund --listen --activesync --msdun call synce-bt-peer (daemon starts
> running in background)
>
> ~#sdptool add SP
>
try adding activesync and dun as well

> ~#sdptool browse local | grep "^Service Name: "
>
> Service Name: Headset Audio Gateway
>
> Service Name: Hands-Free Audio Gateway
>
> Service Name: Audio Source
>
> Service Name: AVRCP TG
>
> Service Name: AVRCP CT
>
> Service Name: BlueZ PANU service
>
> Service Name: BlueZ GN service
>
> Service Name: BlueZ NAP service
>
> Service Name: ActiveSync
>
> Service Name: Serial Port
>
> On the iPaq, I can now see the activesync service when browsing my
> Debian computer and connect to it.
>

> ~$synce-pls
>
> ** Message: Hal reports no devices connected
>
> ** (process:9962): WARNING **: synce_info_from_odccm: Failed to get
> devices: The name org.synce.odccm was not provided by any .service
> files
>
> synce-pls: Could not find configuration at path '(Default)'
>
> -~#ps ax | grep [s]ync
>
> 9805 ? Ss 0:00 dund --listen --activesync --msdun call synce-bt-peer
>
> 9870 rfcomm0 Ss+ 0:00 pppd /dev/rfcomm0 nodetach call synce-bt-peer
>
> 9929 ? S 0:00 /usr/lib/synce-hal/hal-dccm --device-ip=192.168.132.201
> --local-ip=192.168.132.102 --log-level=3
>
> 9979 ? Ss 0:00 /usr/bin/python /usr/bin/synce-sync-engine
> --verbosity=DEBUG --logfile=out.log -d
>
I'm guessing it's the usual old chestnut, do you have firewall ? Confirm
this with iptables -L

Mark

> (then I disconnect on the iPaq)
>
> ~#tail -n 40 /var/log/syslog | grep pppd
>
> Aug 18 19:59:11 smg8 pppd[9870]: pppd 2.4.4 started by root, uid 0
>
> Aug 18 19:59:11 smg8 pppd[9870]: Using interface ppp0
>
> Aug 18 19:59:11 smg8 pppd[9870]: Connect: ppp0 <--> /dev/rfcomm0
>
> Aug 18 19:59:14 smg8 pppd[9870]: Cannot determine ethernet address for
> proxy ARP
>
> Aug 18 19:59:14 smg8 pppd[9870]: local IP address 192.168.132.102
>
> Aug 18 19:59:14 smg8 pppd[9870]: remote IP address 192.168.132.201
>
> Aug 18 20:10:55 smg8 pppd[9870]: Hangup (SIGHUP)
>
> Aug 18 20:10:55 smg8 pppd[9870]: Modem hangup
>
> Aug 18 20:10:55 smg8 pppd[9870]: Connect time 11.7 minutes.
>
> Aug 18 20:10:55 smg8 pppd[9870]: Sent 12044 bytes, received 8487
> bytes.
>
> Aug 18 20:10:55 smg8 pppd[9870]: Connection terminated.
>
> Aug 18 20:10:55 smg8 pppd[9870]: Exit.
>
> Interrestingly, the synce-sync-engine log (out.log) shows the
> following.
> 2009-08-18 20:04:51,462 DEBUG syncengine : running main loop
> 2009-08-18 20:04:51,465 DEBUG syncengine : creating SyncEngine object
> 2009-08-18 20:04:51,496 INFO engine.syncengine.kernel : __init__:
> connected device found
> 2009-08-18 20:04:51,506 INFO engine.syncengine.kernel :
> _CBHalDeviceConnected: device connected at
> udi /org/freedesktop/Hal/devices/synce_bluetooth_device_192_168_132_201
> 2009-08-18 20:04:51,507 INFO engine.config.Config : UpdateConfig -
> unable to open config file /etc/syncengine.conf.xml ([Errno 2] No such
> file or directory: '/etc/syncengine.conf.xml') - using defaults
> 2009-08-18 20:04:51,508 INFO engine.config.Config : UpdateConfig -
> unable to open config file /home/olivier/.synce/syncengine.conf.xml
> ([Errno 2] No such file or directory:
> '/home/olivier/.synce/syncengine.conf.xml') - using defaults
> 2009-08-18 20:04:51,513 INFO engine.syncengine.kernel :  device
> Olivier--PPC connected
> 2009-08-18 20:04:51,514 INFO engine.syncengine.kernel : ProcessAuth :
> processing authorization for device 'Olivier--PPC'
> 2009-08-18 20:04:51,520 INFO engine.syncengine.kernel : ProcessAuth:
> authorization not required for device 'Olivier--PPC'
> 2009-08-18 20:04:51,521 DEBUG engine.syncengine.kernel : OnConnect:
> setting up RAPI session
> ** Message: Hal reports no devices connected
>
> ** (process:9979): WARNING **: synce_info_from_odccm: Failed to get
> devices: The name org.synce.odccm was not provided by any .service
> files
> [synce_info_from_file:69] unable to open
> file: /home/olivier/.synce/active_connection
> 2009-08-18 20:04:51,537 INFO engine.syncengine.kernel : __init__:
> exception -2147467259: An unspecified failure has occurred
> 2009-08-18 20:04:51,538 DEBUG syncengine : installing signal handlers
> 2009-08-18 20:10:55,891 INFO engine.syncengine.kernel :
> _CBHalDeviceDisconnected: device disconnected from
> udi /org/freedesktop/Hal/devices/synce_bluetooth_device_192_168_132_201
> 2009-08-18 20:10:55,891 DEBUG engine.syncengine.kernel : StopSessions:
> stopping RRA server
> 2009-08-18 20:10:55,892 DEBUG engine.syncengine.kernel :
> sessions_wait_for_stop: shutting down RRA server
> 2009-08-18 20:10:55,892 DEBUG engine.syncengine.kernel : OnDisconnect:
> closing RAPI session
> 2009-08-18 20:10:55,893 DEBUG engine.syncengine.kernel : OnDisconnect:
> clearing partnerships
> 2009-08-18 20:10:55,893 INFO engine.partnerships.Partnerships :
> ClearDevicePartnerships: clearing all device partnership info
>
>
> Thank you for any help.
> Olivier
>


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

signature.asc (204 bytes) Download Attachment

Re: Can't communicate via bluetooth

by Olivier Cailloux-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you for your reply and sorry for my delay in answering.

Mark Ellis a écrit :
On Tue, 2009-08-18 at 20:28 +0200, Olivier Cailloux wrote:
  
Dear list,

I am trying since several months to make my windows iPaq 4150 device
(Windows Mobile 2003, I guess) communicate via bluetooth to my Debian
computer. Now with the synce-hal-bluetooth package and others I have
been able to make the iPaq connect (i.e., say that it is connected),
but still can't use e.g. synce-pls. (My ultimate goal is to make it
sync but I'd like to test first with simple tools to see at least if
the communication works.)

I lack some documentation about what exactly I should do to make them
communicate and what is supposed to work. The page on the wiki about
Windows Mobile 2003 has disappeared...
[http://www.synce.org/moin/LegacyDevices]. Any pointer to more doc
would be appreciated.

E.g., it seems that synce-sync-engine is not supposed to work with
Windows Mobile 2003
    

Correct, you should completely ignore sync-engine

  
 [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=509807]. But I
guess synce-pls is supposed to work? What else could I try?

Here is what I tried last.


    


  
on iPaq device, connect to PAN (BlueZ NAP service) => works (I get an
IP and can browse my computer IP from the iPaq device). Then I
disconnect the PAN to try the activesync.


~#dund --listen --activesync --msdun call synce-bt-peer (daemon starts
running in background)

~#sdptool add SP

    

try adding activesync and dun as well
  
I made a new try, adding
~#sdptool add dun
(activesync already appears in the list of my local services).

At first iPaq connection, a window appeared on the iPaq saying that it can't connect to the computer. Then it disconnects. When I try to connect again, it does not say the error any more.

Here is the log from syslog (for the two tries):
~#grep pppd /var/log/syslog | tail -n 20

Aug 26 15:50:31 smg8 pppd[16440]: pppd 2.4.4 started by root, uid 0
Aug 26 15:50:31 smg8 pppd[16440]: Using interface ppp0
Aug 26 15:50:31 smg8 pppd[16440]: Connect: ppp0 <--> /dev/rfcomm0
Aug 26 15:50:32 smg8 pppd[16440]: Cannot determine ethernet address for proxy ARP
Aug 26 15:50:32 smg8 pppd[16440]: local  IP address 192.168.132.102
Aug 26 15:50:32 smg8 pppd[16440]: remote IP address 192.168.132.201
Aug 26 15:50:50 smg8 pppd[16440]: LCP terminated by peer
Aug 26 15:50:50 smg8 pppd[16440]: Connect time 0.3 minutes.
Aug 26 15:50:50 smg8 pppd[16440]: Sent 160 bytes, received 1717 bytes.
Aug 26 15:50:51 smg8 pppd[16440]: Hangup (SIGHUP)
Aug 26 15:50:51 smg8 pppd[16440]: Modem hangup
Aug 26 15:50:51 smg8 pppd[16440]: Connection terminated.
Aug 26 15:50:51 smg8 pppd[16440]: Exit.
Aug 26 15:50:57 smg8 pppd[16520]: pppd 2.4.4 started by root, uid 0
Aug 26 15:50:57 smg8 pppd[16520]: Using interface ppp0
Aug 26 15:50:57 smg8 pppd[16520]: Connect: ppp0 <--> /dev/rfcomm0
Aug 26 15:51:00 smg8 pppd[16520]: Cannot determine ethernet address for proxy ARP
Aug 26 15:51:00 smg8 pppd[16520]: local  IP address 192.168.132.102
Aug 26 15:51:00 smg8 pppd[16520]: remote IP address 192.168.132.201

Interrestingly, synce-pls now simply says:
~$synce-pls
No such file or directory
~$synce-pls "My Documents"
No such file or directory
~$synce-pls "ConnMgr"
No such file or directory

(Although these two directories exist on my iPaq).

I don't know what has changed besides the dun added as service, and I uninstalled synce-sync-engine. syslog does not log any more errors.
  
~#sdptool browse local | grep "^Service Name: " 

Service Name: Headset Audio Gateway

Service Name: Hands-Free Audio Gateway

Service Name: Audio Source

Service Name: AVRCP TG

Service Name: AVRCP CT

Service Name: BlueZ PANU service

Service Name: BlueZ GN service

Service Name: BlueZ NAP service

Service Name: ActiveSync

Service Name: Serial Port

On the iPaq, I can now see the activesync service when browsing my
Debian computer and connect to it.

    

  
~$synce-pls

** Message: Hal reports no devices connected

** (process:9962): WARNING **: synce_info_from_odccm: Failed to get
devices: The name org.synce.odccm was not provided by any .service
files

synce-pls: Could not find configuration at path '(Default)'

-~#ps ax | grep [s]ync

9805 ? Ss 0:00 dund --listen --activesync --msdun call synce-bt-peer

9870 rfcomm0 Ss+ 0:00 pppd /dev/rfcomm0 nodetach call synce-bt-peer

9929 ? S 0:00 /usr/lib/synce-hal/hal-dccm --device-ip=192.168.132.201
--local-ip=192.168.132.102 --log-level=3

9979 ? Ss 0:00 /usr/bin/python /usr/bin/synce-sync-engine
--verbosity=DEBUG --logfile=out.log -d

    

I'm guessing it's the usual old chestnut, do you have firewall ? Confirm
this with iptables -L
  
~#iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination        

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination        

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination        

Thank you.
Olivier

Mark

  
(then I disconnect on the iPaq)

~#tail -n 40 /var/log/syslog | grep pppd

Aug 18 19:59:11 smg8 pppd[9870]: pppd 2.4.4 started by root, uid 0

Aug 18 19:59:11 smg8 pppd[9870]: Using interface ppp0

Aug 18 19:59:11 smg8 pppd[9870]: Connect: ppp0 <--> /dev/rfcomm0

Aug 18 19:59:14 smg8 pppd[9870]: Cannot determine ethernet address for
proxy ARP

Aug 18 19:59:14 smg8 pppd[9870]: local IP address 192.168.132.102

Aug 18 19:59:14 smg8 pppd[9870]: remote IP address 192.168.132.201

Aug 18 20:10:55 smg8 pppd[9870]: Hangup (SIGHUP)

Aug 18 20:10:55 smg8 pppd[9870]: Modem hangup

Aug 18 20:10:55 smg8 pppd[9870]: Connect time 11.7 minutes.

Aug 18 20:10:55 smg8 pppd[9870]: Sent 12044 bytes, received 8487
bytes.

Aug 18 20:10:55 smg8 pppd[9870]: Connection terminated.

Aug 18 20:10:55 smg8 pppd[9870]: Exit.

Interrestingly, the synce-sync-engine log (out.log) shows the
following.
2009-08-18 20:04:51,462 DEBUG syncengine : running main loop
2009-08-18 20:04:51,465 DEBUG syncengine : creating SyncEngine object
2009-08-18 20:04:51,496 INFO engine.syncengine.kernel : __init__:
connected device found
2009-08-18 20:04:51,506 INFO engine.syncengine.kernel :
_CBHalDeviceConnected: device connected at
udi /org/freedesktop/Hal/devices/synce_bluetooth_device_192_168_132_201
2009-08-18 20:04:51,507 INFO engine.config.Config : UpdateConfig -
unable to open config file /etc/syncengine.conf.xml ([Errno 2] No such
file or directory: '/etc/syncengine.conf.xml') - using defaults
2009-08-18 20:04:51,508 INFO engine.config.Config : UpdateConfig -
unable to open config file /home/olivier/.synce/syncengine.conf.xml
([Errno 2] No such file or directory:
'/home/olivier/.synce/syncengine.conf.xml') - using defaults
2009-08-18 20:04:51,513 INFO engine.syncengine.kernel :  device
Olivier--PPC connected
2009-08-18 20:04:51,514 INFO engine.syncengine.kernel : ProcessAuth :
processing authorization for device 'Olivier--PPC'
2009-08-18 20:04:51,520 INFO engine.syncengine.kernel : ProcessAuth:
authorization not required for device 'Olivier--PPC'
2009-08-18 20:04:51,521 DEBUG engine.syncengine.kernel : OnConnect:
setting up RAPI session
** Message: Hal reports no devices connected

** (process:9979): WARNING **: synce_info_from_odccm: Failed to get
devices: The name org.synce.odccm was not provided by any .service
files
[synce_info_from_file:69] unable to open
file: /home/olivier/.synce/active_connection
2009-08-18 20:04:51,537 INFO engine.syncengine.kernel : __init__:
exception -2147467259: An unspecified failure has occurred
2009-08-18 20:04:51,538 DEBUG syncengine : installing signal handlers
2009-08-18 20:10:55,891 INFO engine.syncengine.kernel :
_CBHalDeviceDisconnected: device disconnected from
udi /org/freedesktop/Hal/devices/synce_bluetooth_device_192_168_132_201
2009-08-18 20:10:55,891 DEBUG engine.syncengine.kernel : StopSessions:
stopping RRA server
2009-08-18 20:10:55,892 DEBUG engine.syncengine.kernel :
sessions_wait_for_stop: shutting down RRA server
2009-08-18 20:10:55,892 DEBUG engine.syncengine.kernel : OnDisconnect:
closing RAPI session
2009-08-18 20:10:55,893 DEBUG engine.syncengine.kernel : OnDisconnect:
clearing partnerships
2009-08-18 20:10:55,893 INFO engine.partnerships.Partnerships :
ClearDevicePartnerships: clearing all device partnership info


Thank you for any help.
Olivier

    

------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july

_______________________________________________ SynCE-Users mailing list SynCE-Users@... https://lists.sourceforge.net/lists/listinfo/synce-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: Can't communicate via bluetooth

by Mark Ellis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 2009-08-26 at 15:58 +0200, Olivier Cailloux wrote:

> Thank you for your reply and sorry for my delay in answering.
>
> Mark Ellis a écrit :
> > On Tue, 2009-08-18 at 20:28 +0200, Olivier Cailloux wrote:
> >  
> > > Dear list,
> > >
> > > I am trying since several months to make my windows iPaq 4150 device
> > > (Windows Mobile 2003, I guess) communicate via bluetooth to my Debian
> > > computer. Now with the synce-hal-bluetooth package and others I have
> > > been able to make the iPaq connect (i.e., say that it is connected),
> > > but still can't use e.g. synce-pls. (My ultimate goal is to make it
> > > sync but I'd like to test first with simple tools to see at least if
> > > the communication works.)
> > >
> > > I lack some documentation about what exactly I should do to make them
> > > communicate and what is supposed to work. The page on the wiki about
> > > Windows Mobile 2003 has disappeared...
> > > [http://www.synce.org/moin/LegacyDevices]. Any pointer to more doc
> > > would be appreciated.
> > >
> > > E.g., it seems that synce-sync-engine is not supposed to work with
> > > Windows Mobile 2003
> > >    
> >
> > Correct, you should completely ignore sync-engine
> >
> >  
> > > [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=509807]. But I
> > > guess synce-pls is supposed to work? What else could I try?
> > >
> > > Here is what I tried last.
> > >
> > >
> > >    
> >
> >
> >  
> > > on iPaq device, connect to PAN (BlueZ NAP service) => works (I get an
> > > IP and can browse my computer IP from the iPaq device). Then I
> > > disconnect the PAN to try the activesync.
> > >
> > >
> > > ~#dund --listen --activesync --msdun call synce-bt-peer (daemon starts
> > > running in background)
> > >
> > > ~#sdptool add SP
> > >
> > >    
> >
> > try adding activesync and dun as well
> >  
> I made a new try, adding
> ~#sdptool add dun
> (activesync already appears in the list of my local services).
>
> At first iPaq connection, a window appeared on the iPaq saying that it
> can't connect to the computer. Then it disconnects. When I try to
> connect again, it does not say the error any more.
>
> Here is the log from syslog (for the two tries):
> ~#grep pppd /var/log/syslog | tail -n 20
>
> Aug 26 15:50:31 smg8 pppd[16440]: pppd 2.4.4 started by root, uid 0
> Aug 26 15:50:31 smg8 pppd[16440]: Using interface ppp0
> Aug 26 15:50:31 smg8 pppd[16440]: Connect: ppp0 <--> /dev/rfcomm0
> Aug 26 15:50:32 smg8 pppd[16440]: Cannot determine ethernet address
> for proxy ARP
> Aug 26 15:50:32 smg8 pppd[16440]: local  IP address 192.168.132.102
> Aug 26 15:50:32 smg8 pppd[16440]: remote IP address 192.168.132.201
> Aug 26 15:50:50 smg8 pppd[16440]: LCP terminated by peer
> Aug 26 15:50:50 smg8 pppd[16440]: Connect time 0.3 minutes.
> Aug 26 15:50:50 smg8 pppd[16440]: Sent 160 bytes, received 1717 bytes.
> Aug 26 15:50:51 smg8 pppd[16440]: Hangup (SIGHUP)
> Aug 26 15:50:51 smg8 pppd[16440]: Modem hangup
> Aug 26 15:50:51 smg8 pppd[16440]: Connection terminated.
> Aug 26 15:50:51 smg8 pppd[16440]: Exit.
> Aug 26 15:50:57 smg8 pppd[16520]: pppd 2.4.4 started by root, uid 0
> Aug 26 15:50:57 smg8 pppd[16520]: Using interface ppp0
> Aug 26 15:50:57 smg8 pppd[16520]: Connect: ppp0 <--> /dev/rfcomm0
> Aug 26 15:51:00 smg8 pppd[16520]: Cannot determine ethernet address
> for proxy ARP
> Aug 26 15:51:00 smg8 pppd[16520]: local  IP address 192.168.132.102
> Aug 26 15:51:00 smg8 pppd[16520]: remote IP address 192.168.132.201
>
> Interrestingly, synce-pls now simply says:
> ~$synce-pls
> No such file or directory
> ~$synce-pls "My Documents"
> No such file or directory
> ~$synce-pls "ConnMgr"
> No such file or directory
>
> (Although these two directories exist on my iPaq).
>
> I don't know what has changed besides the dun added as service, and I
> uninstalled synce-sync-engine. syslog does not log any more errors.
The bluetooth connection is not well tested, so I couldn't say what
change helped, but this is definitely good.

Sounds like you have an older version of synce-pls with a bug in it, try
"synce-pls /". A better test is synce-pstatus.

> > > ~#sdptool browse local | grep "^Service Name: "
> > >
> > > Service Name: Headset Audio Gateway
> > >
> > > Service Name: Hands-Free Audio Gateway
> > >
> > > Service Name: Audio Source
> > >
> > > Service Name: AVRCP TG
> > >
> > > Service Name: AVRCP CT
> > >
> > > Service Name: BlueZ PANU service
> > >
> > > Service Name: BlueZ GN service
> > >
> > > Service Name: BlueZ NAP service
> > >
> > > Service Name: ActiveSync
> > >
> > > Service Name: Serial Port
> > >
> > > On the iPaq, I can now see the activesync service when browsing my
> > > Debian computer and connect to it.
> > >
> > >    
> >
> >  
> > > ~$synce-pls
> > >
> > > ** Message: Hal reports no devices connected
> > >
> > > ** (process:9962): WARNING **: synce_info_from_odccm: Failed to get
> > > devices: The name org.synce.odccm was not provided by any .service
> > > files
> > >
> > > synce-pls: Could not find configuration at path '(Default)'
> > >
> > > -~#ps ax | grep [s]ync
> > >
> > > 9805 ? Ss 0:00 dund --listen --activesync --msdun call synce-bt-peer
> > >
> > > 9870 rfcomm0 Ss+ 0:00 pppd /dev/rfcomm0 nodetach call synce-bt-peer
> > >
> > > 9929 ? S 0:00 /usr/lib/synce-hal/hal-dccm --device-ip=192.168.132.201
> > > --local-ip=192.168.132.102 --log-level=3
> > >
> > > 9979 ? Ss 0:00 /usr/bin/python /usr/bin/synce-sync-engine
> > > --verbosity=DEBUG --logfile=out.log -d
> > >
> > >    
> >
> > I'm guessing it's the usual old chestnut, do you have firewall ? Confirm
> > this with iptables -L
> >  
> ~#iptables -L
> Chain INPUT (policy ACCEPT)
> target     prot opt source               destination        
>
> Chain FORWARD (policy ACCEPT)
> target     prot opt source               destination        
>
> Chain OUTPUT (policy ACCEPT)
> target     prot opt source               destination        
>
Ok, not a firewall problem. It does look like its working now though.

> Thank you.
> Olivier
>
> > Mark
> >
> >  
> > > (then I disconnect on the iPaq)
> > >
> > > ~#tail -n 40 /var/log/syslog | grep pppd
> > >
> > > Aug 18 19:59:11 smg8 pppd[9870]: pppd 2.4.4 started by root, uid 0
> > >
> > > Aug 18 19:59:11 smg8 pppd[9870]: Using interface ppp0
> > >
> > > Aug 18 19:59:11 smg8 pppd[9870]: Connect: ppp0 <--> /dev/rfcomm0
> > >
> > > Aug 18 19:59:14 smg8 pppd[9870]: Cannot determine ethernet address for
> > > proxy ARP
> > >
> > > Aug 18 19:59:14 smg8 pppd[9870]: local IP address 192.168.132.102
> > >
> > > Aug 18 19:59:14 smg8 pppd[9870]: remote IP address 192.168.132.201
> > >
> > > Aug 18 20:10:55 smg8 pppd[9870]: Hangup (SIGHUP)
> > >
> > > Aug 18 20:10:55 smg8 pppd[9870]: Modem hangup
> > >
> > > Aug 18 20:10:55 smg8 pppd[9870]: Connect time 11.7 minutes.
> > >
> > > Aug 18 20:10:55 smg8 pppd[9870]: Sent 12044 bytes, received 8487
> > > bytes.
> > >
> > > Aug 18 20:10:55 smg8 pppd[9870]: Connection terminated.
> > >
> > > Aug 18 20:10:55 smg8 pppd[9870]: Exit.
> > >
> > > Interrestingly, the synce-sync-engine log (out.log) shows the
> > > following.
> > > 2009-08-18 20:04:51,462 DEBUG syncengine : running main loop
> > > 2009-08-18 20:04:51,465 DEBUG syncengine : creating SyncEngine object
> > > 2009-08-18 20:04:51,496 INFO engine.syncengine.kernel : __init__:
> > > connected device found
> > > 2009-08-18 20:04:51,506 INFO engine.syncengine.kernel :
> > > _CBHalDeviceConnected: device connected at
> > > udi /org/freedesktop/Hal/devices/synce_bluetooth_device_192_168_132_201
> > > 2009-08-18 20:04:51,507 INFO engine.config.Config : UpdateConfig -
> > > unable to open config file /etc/syncengine.conf.xml ([Errno 2] No such
> > > file or directory: '/etc/syncengine.conf.xml') - using defaults
> > > 2009-08-18 20:04:51,508 INFO engine.config.Config : UpdateConfig -
> > > unable to open config file /home/olivier/.synce/syncengine.conf.xml
> > > ([Errno 2] No such file or directory:
> > > '/home/olivier/.synce/syncengine.conf.xml') - using defaults
> > > 2009-08-18 20:04:51,513 INFO engine.syncengine.kernel :  device
> > > Olivier--PPC connected
> > > 2009-08-18 20:04:51,514 INFO engine.syncengine.kernel : ProcessAuth :
> > > processing authorization for device 'Olivier--PPC'
> > > 2009-08-18 20:04:51,520 INFO engine.syncengine.kernel : ProcessAuth:
> > > authorization not required for device 'Olivier--PPC'
> > > 2009-08-18 20:04:51,521 DEBUG engine.syncengine.kernel : OnConnect:
> > > setting up RAPI session
> > > ** Message: Hal reports no devices connected
> > >
> > > ** (process:9979): WARNING **: synce_info_from_odccm: Failed to get
> > > devices: The name org.synce.odccm was not provided by any .service
> > > files
> > > [synce_info_from_file:69] unable to open
> > > file: /home/olivier/.synce/active_connection
> > > 2009-08-18 20:04:51,537 INFO engine.syncengine.kernel : __init__:
> > > exception -2147467259: An unspecified failure has occurred
> > > 2009-08-18 20:04:51,538 DEBUG syncengine : installing signal handlers
> > > 2009-08-18 20:10:55,891 INFO engine.syncengine.kernel :
> > > _CBHalDeviceDisconnected: device disconnected from
> > > udi /org/freedesktop/Hal/devices/synce_bluetooth_device_192_168_132_201
> > > 2009-08-18 20:10:55,891 DEBUG engine.syncengine.kernel : StopSessions:
> > > stopping RRA server
> > > 2009-08-18 20:10:55,892 DEBUG engine.syncengine.kernel :
> > > sessions_wait_for_stop: shutting down RRA server
> > > 2009-08-18 20:10:55,892 DEBUG engine.syncengine.kernel : OnDisconnect:
> > > closing RAPI session
> > > 2009-08-18 20:10:55,893 DEBUG engine.syncengine.kernel : OnDisconnect:
> > > clearing partnerships
> > > 2009-08-18 20:10:55,893 INFO engine.partnerships.Partnerships :
> > > ClearDevicePartnerships: clearing all device partnership info
> > >
> > >
> > > Thank you for any help.
> > > Olivier
> > >
> > >    
> > >
> > > __________________________________________________________________
> > >
> > > ------------------------------------------------------------------------------
> > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> > > trial. Simplify your report design, integration and deployment - and focus on
> > > what you do best, core application coding. Discover what's new with
> > > Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> > >
> > > __________________________________________________________________
> > >
> > > _______________________________________________
> > > SynCE-Users mailing list
> > > SynCE-Users@...
> > > https://lists.sourceforge.net/lists/listinfo/synce-users
> > >    
>


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

signature.asc (204 bytes) Download Attachment

Re: Can't communicate via bluetooth

by Olivier Cailloux-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Mark Ellis a écrit :
On Wed, 2009-08-26 at 15:58 +0200, Olivier Cailloux wrote:
  
Thank you for your reply and sorry for my delay in answering.

Mark Ellis a écrit : 
    
On Tue, 2009-08-18 at 20:28 +0200, Olivier Cailloux wrote:
  
      
Dear list,

I am trying since several months to make my windows iPaq 4150 device
(Windows Mobile 2003, I guess) communicate via bluetooth to my Debian
computer. Now with the synce-hal-bluetooth package and others I have
been able to make the iPaq connect (i.e., say that it is connected),
but still can't use e.g. synce-pls. (My ultimate goal is to make it
sync but I'd like to test first with simple tools to see at least if
the communication works.)

I lack some documentation about what exactly I should do to make them
communicate and what is supposed to work. The page on the wiki about
Windows Mobile 2003 has disappeared...
[http://www.synce.org/moin/LegacyDevices]. Any pointer to more doc
would be appreciated.

E.g., it seems that synce-sync-engine is not supposed to work with
Windows Mobile 2003
    
        
Correct, you should completely ignore sync-engine

  
      
[http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=509807]. But I
guess synce-pls is supposed to work? What else could I try?

Here is what I tried last.


    
        
  
      
on iPaq device, connect to PAN (BlueZ NAP service) => works (I get an
IP and can browse my computer IP from the iPaq device). Then I
disconnect the PAN to try the activesync.


~#dund --listen --activesync --msdun call synce-bt-peer (daemon starts
running in background)

~#sdptool add SP

    
        
try adding activesync and dun as well
  
      
I made a new try, adding
~#sdptool add dun
(activesync already appears in the list of my local services).

At first iPaq connection, a window appeared on the iPaq saying that it
can't connect to the computer. Then it disconnects. When I try to
connect again, it does not say the error any more.

Here is the log from syslog (for the two tries):
~#grep pppd /var/log/syslog | tail -n 20

Aug 26 15:50:31 smg8 pppd[16440]: pppd 2.4.4 started by root, uid 0
Aug 26 15:50:31 smg8 pppd[16440]: Using interface ppp0
Aug 26 15:50:31 smg8 pppd[16440]: Connect: ppp0 <--> /dev/rfcomm0
Aug 26 15:50:32 smg8 pppd[16440]: Cannot determine ethernet address
for proxy ARP
Aug 26 15:50:32 smg8 pppd[16440]: local  IP address 192.168.132.102
Aug 26 15:50:32 smg8 pppd[16440]: remote IP address 192.168.132.201
Aug 26 15:50:50 smg8 pppd[16440]: LCP terminated by peer
Aug 26 15:50:50 smg8 pppd[16440]: Connect time 0.3 minutes.
Aug 26 15:50:50 smg8 pppd[16440]: Sent 160 bytes, received 1717 bytes.
Aug 26 15:50:51 smg8 pppd[16440]: Hangup (SIGHUP)
Aug 26 15:50:51 smg8 pppd[16440]: Modem hangup
Aug 26 15:50:51 smg8 pppd[16440]: Connection terminated.
Aug 26 15:50:51 smg8 pppd[16440]: Exit.
Aug 26 15:50:57 smg8 pppd[16520]: pppd 2.4.4 started by root, uid 0
Aug 26 15:50:57 smg8 pppd[16520]: Using interface ppp0
Aug 26 15:50:57 smg8 pppd[16520]: Connect: ppp0 <--> /dev/rfcomm0
Aug 26 15:51:00 smg8 pppd[16520]: Cannot determine ethernet address
for proxy ARP
Aug 26 15:51:00 smg8 pppd[16520]: local  IP address 192.168.132.102
Aug 26 15:51:00 smg8 pppd[16520]: remote IP address 192.168.132.201

Interrestingly, synce-pls now simply says:
~$synce-pls 
No such file or directory
~$synce-pls "My Documents"
No such file or directory
~$synce-pls "ConnMgr"
No such file or directory

(Although these two directories exist on my iPaq).

I don't know what has changed besides the dun added as service, and I
uninstalled synce-sync-engine. syslog does not log any more errors.
    

The bluetooth connection is not well tested, so I couldn't say what
change helped, but this is definitely good.

Sounds like you have an older version of synce-pls with a bug in it, try
"synce-pls /". A better test is synce-pstatus.
  
Indeed synce-pstatus work. But not synce-pls.
~$synce-pls /
~$synce-pls "/My Documents"
~$synce-pls -d 3 "/My Documents"
~$apt-show-versions | grep librapi
librapi2/testing uptodate 0.13.1-2
librapi2-tools/testing uptodate 0.13.1-2

Apparently version 0.14 is out, but I'd prefear sticking to the debian packaging system if possible. Any idea if that version would solve the problem or if this is a different problem, and if that version will become available in debian soon?

Also I still had that error message when first trying to connect my iPaq this morning (can't connect); only the second try works. I am wondering if these two problems could be related?

Thank you for your useful help.
Olivier
  
~#sdptool browse local | grep "^Service Name: " 

Service Name: Headset Audio Gateway

Service Name: Hands-Free Audio Gateway

Service Name: Audio Source

Service Name: AVRCP TG

Service Name: AVRCP CT

Service Name: BlueZ PANU service

Service Name: BlueZ GN service

Service Name: BlueZ NAP service

Service Name: ActiveSync

Service Name: Serial Port

On the iPaq, I can now see the activesync service when browsing my
Debian computer and connect to it.

    
        
  
      
~$synce-pls

** Message: Hal reports no devices connected

** (process:9962): WARNING **: synce_info_from_odccm: Failed to get
devices: The name org.synce.odccm was not provided by any .service
files

synce-pls: Could not find configuration at path '(Default)'

-~#ps ax | grep [s]ync

9805 ? Ss 0:00 dund --listen --activesync --msdun call synce-bt-peer

9870 rfcomm0 Ss+ 0:00 pppd /dev/rfcomm0 nodetach call synce-bt-peer

9929 ? S 0:00 /usr/lib/synce-hal/hal-dccm --device-ip=192.168.132.201
--local-ip=192.168.132.102 --log-level=3

9979 ? Ss 0:00 /usr/bin/python /usr/bin/synce-sync-engine
--verbosity=DEBUG --logfile=out.log -d

    
        
I'm guessing it's the usual old chestnut, do you have firewall ? Confirm
this with iptables -L
  
      
~#iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

    

Ok, not a firewall problem. It does look like its working now though.

  
Thank you.
Olivier

    
Mark

  
      
(then I disconnect on the iPaq)

~#tail -n 40 /var/log/syslog | grep pppd

Aug 18 19:59:11 smg8 pppd[9870]: pppd 2.4.4 started by root, uid 0

Aug 18 19:59:11 smg8 pppd[9870]: Using interface ppp0

Aug 18 19:59:11 smg8 pppd[9870]: Connect: ppp0 <--> /dev/rfcomm0

Aug 18 19:59:14 smg8 pppd[9870]: Cannot determine ethernet address for
proxy ARP

Aug 18 19:59:14 smg8 pppd[9870]: local IP address 192.168.132.102

Aug 18 19:59:14 smg8 pppd[9870]: remote IP address 192.168.132.201

Aug 18 20:10:55 smg8 pppd[9870]: Hangup (SIGHUP)

Aug 18 20:10:55 smg8 pppd[9870]: Modem hangup

Aug 18 20:10:55 smg8 pppd[9870]: Connect time 11.7 minutes.

Aug 18 20:10:55 smg8 pppd[9870]: Sent 12044 bytes, received 8487
bytes.

Aug 18 20:10:55 smg8 pppd[9870]: Connection terminated.

Aug 18 20:10:55 smg8 pppd[9870]: Exit.

Interrestingly, the synce-sync-engine log (out.log) shows the
following.
2009-08-18 20:04:51,462 DEBUG syncengine : running main loop
2009-08-18 20:04:51,465 DEBUG syncengine : creating SyncEngine object
2009-08-18 20:04:51,496 INFO engine.syncengine.kernel : __init__:
connected device found
2009-08-18 20:04:51,506 INFO engine.syncengine.kernel :
_CBHalDeviceConnected: device connected at
udi /org/freedesktop/Hal/devices/synce_bluetooth_device_192_168_132_201
2009-08-18 20:04:51,507 INFO engine.config.Config : UpdateConfig -
unable to open config file /etc/syncengine.conf.xml ([Errno 2] No such
file or directory: '/etc/syncengine.conf.xml') - using defaults
2009-08-18 20:04:51,508 INFO engine.config.Config : UpdateConfig -
unable to open config file /home/olivier/.synce/syncengine.conf.xml
([Errno 2] No such file or directory:
'/home/olivier/.synce/syncengine.conf.xml') - using defaults
2009-08-18 20:04:51,513 INFO engine.syncengine.kernel :  device
Olivier--PPC connected
2009-08-18 20:04:51,514 INFO engine.syncengine.kernel : ProcessAuth :
processing authorization for device 'Olivier--PPC'
2009-08-18 20:04:51,520 INFO engine.syncengine.kernel : ProcessAuth:
authorization not required for device 'Olivier--PPC'
2009-08-18 20:04:51,521 DEBUG engine.syncengine.kernel : OnConnect:
setting up RAPI session
** Message: Hal reports no devices connected

** (process:9979): WARNING **: synce_info_from_odccm: Failed to get
devices: The name org.synce.odccm was not provided by any .service
files
[synce_info_from_file:69] unable to open
file: /home/olivier/.synce/active_connection
2009-08-18 20:04:51,537 INFO engine.syncengine.kernel : __init__:
exception -2147467259: An unspecified failure has occurred
2009-08-18 20:04:51,538 DEBUG syncengine : installing signal handlers
2009-08-18 20:10:55,891 INFO engine.syncengine.kernel :
_CBHalDeviceDisconnected: device disconnected from
udi /org/freedesktop/Hal/devices/synce_bluetooth_device_192_168_132_201
2009-08-18 20:10:55,891 DEBUG engine.syncengine.kernel : StopSessions:
stopping RRA server
2009-08-18 20:10:55,892 DEBUG engine.syncengine.kernel :
sessions_wait_for_stop: shutting down RRA server
2009-08-18 20:10:55,892 DEBUG engine.syncengine.kernel : OnDisconnect:
closing RAPI session
2009-08-18 20:10:55,893 DEBUG engine.syncengine.kernel : OnDisconnect:
clearing partnerships
2009-08-18 20:10:55,893 INFO engine.partnerships.Partnerships :
ClearDevicePartnerships: clearing all device partnership info


Thank you for any help.
Olivier

    

__________________________________________________________________

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

__________________________________________________________________

_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users
    
        

------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july

_______________________________________________ SynCE-Users mailing list SynCE-Users@... https://lists.sourceforge.net/lists/listinfo/synce-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: Can't communicate via bluetooth

by Mark Ellis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 2009-08-27 at 12:02 +0200, Olivier Cailloux wrote:

> Mark Ellis a écrit :
> > On Wed, 2009-08-26 at 15:58 +0200, Olivier Cailloux wrote:
> >  
> > > Thank you for your reply and sorry for my delay in answering.
> > >
> > > Mark Ellis a écrit :
> > >    
> > > > On Tue, 2009-08-18 at 20:28 +0200, Olivier Cailloux wrote:
> > > >  
> > > >      
> > > > > Dear list,
> > > > >
> > > > > I am trying since several months to make my windows iPaq 4150 device
> > > > > (Windows Mobile 2003, I guess) communicate via bluetooth to my Debian
> > > > > computer. Now with the synce-hal-bluetooth package and others I have
> > > > > been able to make the iPaq connect (i.e., say that it is connected),
> > > > > but still can't use e.g. synce-pls. (My ultimate goal is to make it
> > > > > sync but I'd like to test first with simple tools to see at least if
> > > > > the communication works.)
> > > > >
> > > > > I lack some documentation about what exactly I should do to make them
> > > > > communicate and what is supposed to work. The page on the wiki about
> > > > > Windows Mobile 2003 has disappeared...
> > > > > [http://www.synce.org/moin/LegacyDevices]. Any pointer to more doc
> > > > > would be appreciated.
> > > > >
> > > > > E.g., it seems that synce-sync-engine is not supposed to work with
> > > > > Windows Mobile 2003
> > > > >    
> > > > >        
> > > > Correct, you should completely ignore sync-engine
> > > >
> > > >  
> > > >      
> > > > > [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=509807]. But I
> > > > > guess synce-pls is supposed to work? What else could I try?
> > > > >
> > > > > Here is what I tried last.
> > > > >
> > > > >
> > > > >    
> > > > >        
> > > >
> > > >      
> > > > > on iPaq device, connect to PAN (BlueZ NAP service) => works (I get an
> > > > > IP and can browse my computer IP from the iPaq device). Then I
> > > > > disconnect the PAN to try the activesync.
> > > > >
> > > > >
> > > > > ~#dund --listen --activesync --msdun call synce-bt-peer (daemon starts
> > > > > running in background)
> > > > >
> > > > > ~#sdptool add SP
> > > > >
> > > > >    
> > > > >        
> > > > try adding activesync and dun as well
> > > >  
> > > >      
> > > I made a new try, adding
> > > ~#sdptool add dun
> > > (activesync already appears in the list of my local services).
> > >
> > > At first iPaq connection, a window appeared on the iPaq saying that it
> > > can't connect to the computer. Then it disconnects. When I try to
> > > connect again, it does not say the error any more.
> > >
> > > Here is the log from syslog (for the two tries):
> > > ~#grep pppd /var/log/syslog | tail -n 20
> > >
> > > Aug 26 15:50:31 smg8 pppd[16440]: pppd 2.4.4 started by root, uid 0
> > > Aug 26 15:50:31 smg8 pppd[16440]: Using interface ppp0
> > > Aug 26 15:50:31 smg8 pppd[16440]: Connect: ppp0 <--> /dev/rfcomm0
> > > Aug 26 15:50:32 smg8 pppd[16440]: Cannot determine ethernet address
> > > for proxy ARP
> > > Aug 26 15:50:32 smg8 pppd[16440]: local  IP address 192.168.132.102
> > > Aug 26 15:50:32 smg8 pppd[16440]: remote IP address 192.168.132.201
> > > Aug 26 15:50:50 smg8 pppd[16440]: LCP terminated by peer
> > > Aug 26 15:50:50 smg8 pppd[16440]: Connect time 0.3 minutes.
> > > Aug 26 15:50:50 smg8 pppd[16440]: Sent 160 bytes, received 1717 bytes.
> > > Aug 26 15:50:51 smg8 pppd[16440]: Hangup (SIGHUP)
> > > Aug 26 15:50:51 smg8 pppd[16440]: Modem hangup
> > > Aug 26 15:50:51 smg8 pppd[16440]: Connection terminated.
> > > Aug 26 15:50:51 smg8 pppd[16440]: Exit.
> > > Aug 26 15:50:57 smg8 pppd[16520]: pppd 2.4.4 started by root, uid 0
> > > Aug 26 15:50:57 smg8 pppd[16520]: Using interface ppp0
> > > Aug 26 15:50:57 smg8 pppd[16520]: Connect: ppp0 <--> /dev/rfcomm0
> > > Aug 26 15:51:00 smg8 pppd[16520]: Cannot determine ethernet address
> > > for proxy ARP
> > > Aug 26 15:51:00 smg8 pppd[16520]: local  IP address 192.168.132.102
> > > Aug 26 15:51:00 smg8 pppd[16520]: remote IP address 192.168.132.201
> > >
> > > Interrestingly, synce-pls now simply says:
> > > ~$synce-pls
> > > No such file or directory
> > > ~$synce-pls "My Documents"
> > > No such file or directory
> > > ~$synce-pls "ConnMgr"
> > > No such file or directory
> > >
> > > (Although these two directories exist on my iPaq).
> > >
> > > I don't know what has changed besides the dun added as service, and I
> > > uninstalled synce-sync-engine. syslog does not log any more errors.
> > >    
> >
> > The bluetooth connection is not well tested, so I couldn't say what
> > change helped, but this is definitely good.
> >
> > Sounds like you have an older version of synce-pls with a bug in it, try
> > "synce-pls /". A better test is synce-pstatus.
> >  
> Indeed synce-pstatus work. But not synce-pls.
> ~$synce-pls /
> ~$synce-pls "/My Documents"
> ~$synce-pls -d 3 "/My Documents"
> ~$apt-show-versions | grep librapi
> librapi2/testing uptodate 0.13.1-2
> librapi2-tools/testing uptodate 0.13.1-2
>
> Apparently version 0.14 is out, but I'd prefear sticking to the debian
> packaging system if possible. Any idea if that version would solve the
> problem or if this is a different problem, and if that version will
> become available in debian soon?
>
Yes, this is definitely the bug in pls. Cant remember exactly what
happened now, try adding * to the end of the path, but remember to
escape it in single quotes.

I have no idea when Jonny will package it for debian I'm afraid. I would
suggest getting the source package, applying the attached two patches,
and rebuilding the package, this should help.

> Also I still had that error message when first trying to connect my
> iPaq this morning (can't connect); only the second try works. I am
> wondering if these two problems could be related?

Not sure what is causing that, but it is completely unrelated to the pls
problem.

>
> Thank you for your useful help.
> Olivier
> > > > > ~#sdptool browse local | grep "^Service Name: "
> > > > >
> > > > > Service Name: Headset Audio Gateway
> > > > >
> > > > > Service Name: Hands-Free Audio Gateway
> > > > >
> > > > > Service Name: Audio Source
> > > > >
> > > > > Service Name: AVRCP TG
> > > > >
> > > > > Service Name: AVRCP CT
> > > > >
> > > > > Service Name: BlueZ PANU service
> > > > >
> > > > > Service Name: BlueZ GN service
> > > > >
> > > > > Service Name: BlueZ NAP service
> > > > >
> > > > > Service Name: ActiveSync
> > > > >
> > > > > Service Name: Serial Port
> > > > >
> > > > > On the iPaq, I can now see the activesync service when browsing my
> > > > > Debian computer and connect to it.
> > > > >
> > > > >    
> > > > >        
> > > > > ~$synce-pls
> > > > >
> > > > > ** Message: Hal reports no devices connected
> > > > >
> > > > > ** (process:9962): WARNING **: synce_info_from_odccm: Failed to get
> > > > > devices: The name org.synce.odccm was not provided by any .service
> > > > > files
> > > > >
> > > > > synce-pls: Could not find configuration at path '(Default)'
> > > > >
> > > > > -~#ps ax | grep [s]ync
> > > > >
> > > > > 9805 ? Ss 0:00 dund --listen --activesync --msdun call synce-bt-peer
> > > > >
> > > > > 9870 rfcomm0 Ss+ 0:00 pppd /dev/rfcomm0 nodetach call synce-bt-peer
> > > > >
> > > > > 9929 ? S 0:00 /usr/lib/synce-hal/hal-dccm --device-ip=192.168.132.201
> > > > > --local-ip=192.168.132.102 --log-level=3
> > > > >
> > > > > 9979 ? Ss 0:00 /usr/bin/python /usr/bin/synce-sync-engine
> > > > > --verbosity=DEBUG --logfile=out.log -d
> > > > >
> > > > >    
> > > > >        
> > > > I'm guessing it's the usual old chestnut, do you have firewall ? Confirm
> > > > this with iptables -L
> > > >  
> > > >      
> > > ~#iptables -L
> > > Chain INPUT (policy ACCEPT)
> > > target     prot opt source               destination        
> > >
> > > Chain FORWARD (policy ACCEPT)
> > > target     prot opt source               destination        
> > >
> > > Chain OUTPUT (policy ACCEPT)
> > > target     prot opt source               destination        
> > >
> > >    
> >
> > Ok, not a firewall problem. It does look like its working now though.
> >
> >  
> > > Thank you.
> > > Olivier
> > >
> > >    
> > > > Mark
> > > >
> > > >  
> > > >      
> > > > > (then I disconnect on the iPaq)
> > > > >
> > > > > ~#tail -n 40 /var/log/syslog | grep pppd
> > > > >
> > > > > Aug 18 19:59:11 smg8 pppd[9870]: pppd 2.4.4 started by root, uid 0
> > > > >
> > > > > Aug 18 19:59:11 smg8 pppd[9870]: Using interface ppp0
> > > > >
> > > > > Aug 18 19:59:11 smg8 pppd[9870]: Connect: ppp0 <--> /dev/rfcomm0
> > > > >
> > > > > Aug 18 19:59:14 smg8 pppd[9870]: Cannot determine ethernet address for
> > > > > proxy ARP
> > > > >
> > > > > Aug 18 19:59:14 smg8 pppd[9870]: local IP address 192.168.132.102
> > > > >
> > > > > Aug 18 19:59:14 smg8 pppd[9870]: remote IP address 192.168.132.201
> > > > >
> > > > > Aug 18 20:10:55 smg8 pppd[9870]: Hangup (SIGHUP)
> > > > >
> > > > > Aug 18 20:10:55 smg8 pppd[9870]: Modem hangup
> > > > >
> > > > > Aug 18 20:10:55 smg8 pppd[9870]: Connect time 11.7 minutes.
> > > > >
> > > > > Aug 18 20:10:55 smg8 pppd[9870]: Sent 12044 bytes, received 8487
> > > > > bytes.
> > > > >
> > > > > Aug 18 20:10:55 smg8 pppd[9870]: Connection terminated.
> > > > >
> > > > > Aug 18 20:10:55 smg8 pppd[9870]: Exit.
> > > > >
> > > > > Interrestingly, the synce-sync-engine log (out.log) shows the
> > > > > following.
> > > > > 2009-08-18 20:04:51,462 DEBUG syncengine : running main loop
> > > > > 2009-08-18 20:04:51,465 DEBUG syncengine : creating SyncEngine object
> > > > > 2009-08-18 20:04:51,496 INFO engine.syncengine.kernel : __init__:
> > > > > connected device found
> > > > > 2009-08-18 20:04:51,506 INFO engine.syncengine.kernel :
> > > > > _CBHalDeviceConnected: device connected at
> > > > > udi /org/freedesktop/Hal/devices/synce_bluetooth_device_192_168_132_201
> > > > > 2009-08-18 20:04:51,507 INFO engine.config.Config : UpdateConfig -
> > > > > unable to open config file /etc/syncengine.conf.xml ([Errno 2] No such
> > > > > file or directory: '/etc/syncengine.conf.xml') - using defaults
> > > > > 2009-08-18 20:04:51,508 INFO engine.config.Config : UpdateConfig -
> > > > > unable to open config file /home/olivier/.synce/syncengine.conf.xml
> > > > > ([Errno 2] No such file or directory:
> > > > > '/home/olivier/.synce/syncengine.conf.xml') - using defaults
> > > > > 2009-08-18 20:04:51,513 INFO engine.syncengine.kernel :  device
> > > > > Olivier--PPC connected
> > > > > 2009-08-18 20:04:51,514 INFO engine.syncengine.kernel : ProcessAuth :
> > > > > processing authorization for device 'Olivier--PPC'
> > > > > 2009-08-18 20:04:51,520 INFO engine.syncengine.kernel : ProcessAuth:
> > > > > authorization not required for device 'Olivier--PPC'
> > > > > 2009-08-18 20:04:51,521 DEBUG engine.syncengine.kernel : OnConnect:
> > > > > setting up RAPI session
> > > > > ** Message: Hal reports no devices connected
> > > > >
> > > > > ** (process:9979): WARNING **: synce_info_from_odccm: Failed to get
> > > > > devices: The name org.synce.odccm was not provided by any .service
> > > > > files
> > > > > [synce_info_from_file:69] unable to open
> > > > > file: /home/olivier/.synce/active_connection
> > > > > 2009-08-18 20:04:51,537 INFO engine.syncengine.kernel : __init__:
> > > > > exception -2147467259: An unspecified failure has occurred
> > > > > 2009-08-18 20:04:51,538 DEBUG syncengine : installing signal handlers
> > > > > 2009-08-18 20:10:55,891 INFO engine.syncengine.kernel :
> > > > > _CBHalDeviceDisconnected: device disconnected from
> > > > > udi /org/freedesktop/Hal/devices/synce_bluetooth_device_192_168_132_201
> > > > > 2009-08-18 20:10:55,891 DEBUG engine.syncengine.kernel : StopSessions:
> > > > > stopping RRA server
> > > > > 2009-08-18 20:10:55,892 DEBUG engine.syncengine.kernel :
> > > > > sessions_wait_for_stop: shutting down RRA server
> > > > > 2009-08-18 20:10:55,892 DEBUG engine.syncengine.kernel : OnDisconnect:
> > > > > closing RAPI session
> > > > > 2009-08-18 20:10:55,893 DEBUG engine.syncengine.kernel : OnDisconnect:
> > > > > clearing partnerships
> > > > > 2009-08-18 20:10:55,893 INFO engine.partnerships.Partnerships :
> > > > > ClearDevicePartnerships: clearing all device partnership info
> > > > >
> > > > >
> > > > > Thank you for any help.
> > > > > Olivier
> > > > >
> > > > >    
> > > > >
> > > > > __________________________________________________________________
> > > > >
> > > > > ------------------------------------------------------------------------------
> > > > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> > > > > trial. Simplify your report design, integration and deployment - and focus on
> > > > > what you do best, core application coding. Discover what's new with
> > > > > Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> > > > >
> > > > > __________________________________________________________________
> > > > >
> > > > > _______________________________________________
> > > > > SynCE-Users mailing list
> > > > > SynCE-Users@...
> > > > > https://lists.sourceforge.net/lists/listinfo/synce-users
> > > > >    
> > > > >        
> > >
> > > __________________________________________________________________
> > >
> > > ------------------------------------------------------------------------------
> > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> > > trial. Simplify your report design, integration and deployment - and focus on
> > > what you do best, core application coding. Discover what's new with
> > > Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> > >
> > > __________________________________________________________________
> > >
> > > _______________________________________________
> > > SynCE-Users mailing list
> > > SynCE-Users@...
> > > https://lists.sourceforge.net/lists/listinfo/synce-users
> > >    
>

[pls-1.diff]

--- trunk/librapi2/tools/pls.c 2009/01/02 15:14:48 3645
+++ trunk/librapi2/tools/pls.c 2009/02/17 10:51:31 3694
@@ -225,15 +225,16 @@
  */
 
  i = strlen(path) - 1;
+        dir_end = -1;
 
  while (i >= 0)
  {
  if ( (path[i] == '*') || (path[i] == '?') ) {
  wildcard = true;
- dir_end = 0;
+                        dir_end = -1;
  }
 
- if ( (path[i] == '\\') && (dir_end == 0) ) {
+ if ( (path[i] == '\\') && (dir_end == -1) ) {
  dir_end = i;
  }
 
@@ -243,11 +244,11 @@
  if (!wildcard)
  return strdup(path);
 
- if (dir_end == 0)
+ if (dir_end == -1)
  return strdup("");
 
- tmp_path = malloc(dir_end + 1);
- snprintf(tmp_path, dir_end +1, "%s", path);
+ tmp_path = malloc(dir_end + 2);
+ snprintf(tmp_path, dir_end + 2, "%s", path);
  return tmp_path;
 }
 
@@ -303,17 +304,39 @@
 
  base_path = dirname(path);
 
- entry_name = wstr_to_current(find_data->cFileName);
-                if (!entry_name) {
-                        fprintf(stderr, "Failed to convert the path to the current encoding\n");
-                        free(base_path);
-                        goto exit;
+                if (strcmp(base_path, path) != 0) {
+
+                        entry_name = wstr_to_current(find_data->cFileName);
+                        if (!entry_name) {
+                                fprintf(stderr, "Failed to convert the path to the current encoding\n");
+                                free(base_path);
+                                goto exit;
+                        }
+
+                        new_path = malloc(strlen(base_path) + strlen(entry_name) + 6);
+
+
+                        
+                        if (*base_path == 0) /* base_path can be an empty string when a relative path is given */
+                                snprintf(new_path, strlen(entry_name) + 5, "%s\\%s", entry_name, wildcards);
+                        else if (strcmp(base_path, "\\") == 0) /* if base path is root, we don't want a double slash */
+                                snprintf(new_path, strlen(entry_name) + 6, "\\%s\\%s", entry_name, wildcards);
+                        else
+                                snprintf(new_path, strlen(base_path) + strlen(entry_name) + 6, "%s\\%s\\%s", base_path, entry_name, wildcards);
+
+                        free(entry_name);
+
+                } else {
+                        new_path = malloc(strlen(base_path) + 6);
+                        if (*base_path == 0) /* base_path can be an empty string when a relative path is given */
+                                snprintf(new_path, 4, "%s", wildcards);
+                        else if (strcmp(base_path, "\\") == 0) /* if base path is root, we don't want a double slash */
+                                snprintf(new_path, 5, "\\%s", wildcards);
+                        else
+                                snprintf(new_path, strlen(base_path) + 5, "%s\\%s", base_path, wildcards);
                 }
 
- new_path = malloc(strlen(base_path) + strlen(entry_name) + 6);
- snprintf(new_path, strlen(base_path) + strlen(entry_name) + 6, "%s\\%s\\%s", base_path, entry_name, wildcards);
- free(base_path);
- free(entry_name);
+                free(base_path);
 
  success = list_matching_files(new_path, FALSE);
 


[pls-2.diff]

--- trunk/librapi2/tools/pls.c 2009/02/17 10:51:31 3694
+++ trunk/librapi2/tools/pls.c 2009/03/04 10:16:04 3696
@@ -207,9 +207,14 @@
                 return NULL;
         }
 
- tmp_path2 = malloc(strlen(tmp_path1) + strlen(path) + 2);
- snprintf(tmp_path2, strlen(tmp_path1) + strlen(path) + 2, "%s\\%s", tmp_path1, path);
- free(tmp_path1);
+        if (strlen(path) > 0) {
+                tmp_path2 = malloc(strlen(tmp_path1) + strlen(path) + 2);
+                snprintf(tmp_path2, strlen(tmp_path1) + strlen(path) + 2, "%s\\%s", tmp_path1, path);
+        } else
+                tmp_path2 = strdup(tmp_path1);
+
+        free(tmp_path1);
+
  return tmp_path2;
 }
 



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

signature.asc (204 bytes) Download Attachment

Re: Can't communicate via bluetooth

by Olivier Cailloux-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Mark Ellis a écrit :

> On Thu, 2009-08-27 at 12:02 +0200, Olivier Cailloux wrote:
>> Mark Ellis a écrit :
>>> On Wed, 2009-08-26 at 15:58 +0200, Olivier Cailloux wrote:
>>>  
>>>> Thank you for your reply and sorry for my delay in answering.
>>>>
>>>> Mark Ellis a écrit :
>>>>    
>>>>> On Tue, 2009-08-18 at 20:28 +0200, Olivier Cailloux wrote:
>>>>>  
>>>>>      
>>>>>> Dear list,
>>>>>>
>>>>>> I am trying since several months to make my windows iPaq 4150 device
>>>>>> (Windows Mobile 2003, I guess) communicate via bluetooth to my Debian
>>>>>> computer. Now with the synce-hal-bluetooth package and others I have
>>>>>> been able to make the iPaq connect (i.e., say that it is connected),
>>>>>> but still can't use e.g. synce-pls. (My ultimate goal is to make it
>>>>>> sync but I'd like to test first with simple tools to see at least if
>>>>>> the communication works.)
>>>>>>
>>>>>> I lack some documentation about what exactly I should do to make them
>>>>>> communicate and what is supposed to work. The page on the wiki about
>>>>>> Windows Mobile 2003 has disappeared...
>>>>>> [http://www.synce.org/moin/LegacyDevices]. Any pointer to more doc
>>>>>> would be appreciated.
>>>>>>
>>>>>> E.g., it seems that synce-sync-engine is not supposed to work with
>>>>>> Windows Mobile 2003
>>>>>>    
>>>>>>        
>>>>> Correct, you should completely ignore sync-engine
>>>>>
>>>>>  
>>>>>      
>>>>>> [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=509807]. But I
>>>>>> guess synce-pls is supposed to work? What else could I try?
>>>>>>
>>>>>> Here is what I tried last.
>>>>>>
>>>>>>
>>>>>>    
>>>>>>        
>>>>>      
>>>>>> on iPaq device, connect to PAN (BlueZ NAP service) => works (I get an
>>>>>> IP and can browse my computer IP from the iPaq device). Then I
>>>>>> disconnect the PAN to try the activesync.
>>>>>>
>>>>>>
>>>>>> ~#dund --listen --activesync --msdun call synce-bt-peer (daemon starts
>>>>>> running in background)
>>>>>>
>>>>>> ~#sdptool add SP
>>>>>>
>>>>>>    
>>>>>>        
>>>>> try adding activesync and dun as well
>>>>>  
>>>>>      
>>>> I made a new try, adding
>>>> ~#sdptool add dun
>>>> (activesync already appears in the list of my local services).
>>>>
>>>> At first iPaq connection, a window appeared on the iPaq saying that it
>>>> can't connect to the computer. Then it disconnects. When I try to
>>>> connect again, it does not say the error any more.
>>>>
>>>> Here is the log from syslog (for the two tries):
>>>> ~#grep pppd /var/log/syslog | tail -n 20
>>>>
>>>> Aug 26 15:50:31 smg8 pppd[16440]: pppd 2.4.4 started by root, uid 0
>>>> Aug 26 15:50:31 smg8 pppd[16440]: Using interface ppp0
>>>> Aug 26 15:50:31 smg8 pppd[16440]: Connect: ppp0 <--> /dev/rfcomm0
>>>> Aug 26 15:50:32 smg8 pppd[16440]: Cannot determine ethernet address
>>>> for proxy ARP
>>>> Aug 26 15:50:32 smg8 pppd[16440]: local  IP address 192.168.132.102
>>>> Aug 26 15:50:32 smg8 pppd[16440]: remote IP address 192.168.132.201
>>>> Aug 26 15:50:50 smg8 pppd[16440]: LCP terminated by peer
>>>> Aug 26 15:50:50 smg8 pppd[16440]: Connect time 0.3 minutes.
>>>> Aug 26 15:50:50 smg8 pppd[16440]: Sent 160 bytes, received 1717 bytes.
>>>> Aug 26 15:50:51 smg8 pppd[16440]: Hangup (SIGHUP)
>>>> Aug 26 15:50:51 smg8 pppd[16440]: Modem hangup
>>>> Aug 26 15:50:51 smg8 pppd[16440]: Connection terminated.
>>>> Aug 26 15:50:51 smg8 pppd[16440]: Exit.
>>>> Aug 26 15:50:57 smg8 pppd[16520]: pppd 2.4.4 started by root, uid 0
>>>> Aug 26 15:50:57 smg8 pppd[16520]: Using interface ppp0
>>>> Aug 26 15:50:57 smg8 pppd[16520]: Connect: ppp0 <--> /dev/rfcomm0
>>>> Aug 26 15:51:00 smg8 pppd[16520]: Cannot determine ethernet address
>>>> for proxy ARP
>>>> Aug 26 15:51:00 smg8 pppd[16520]: local  IP address 192.168.132.102
>>>> Aug 26 15:51:00 smg8 pppd[16520]: remote IP address 192.168.132.201
>>>>
>>>> Interrestingly, synce-pls now simply says:
>>>> ~$synce-pls
>>>> No such file or directory
>>>> ~$synce-pls "My Documents"
>>>> No such file or directory
>>>> ~$synce-pls "ConnMgr"
>>>> No such file or directory
>>>>
>>>> (Although these two directories exist on my iPaq).
>>>>
>>>> I don't know what has changed besides the dun added as service, and I
>>>> uninstalled synce-sync-engine. syslog does not log any more errors.
>>>>    
>>> The bluetooth connection is not well tested, so I couldn't say what
>>> change helped, but this is definitely good.
>>>
>>> Sounds like you have an older version of synce-pls with a bug in it, try
>>> "synce-pls /". A better test is synce-pstatus.
>>>  
>> Indeed synce-pstatus work. But not synce-pls.
>> ~$synce-pls /
>> ~$synce-pls "/My Documents"
>> ~$synce-pls -d 3 "/My Documents"
>> ~$apt-show-versions | grep librapi
>> librapi2/testing uptodate 0.13.1-2
>> librapi2-tools/testing uptodate 0.13.1-2
>>
>> Apparently version 0.14 is out, but I'd prefear sticking to the debian
>> packaging system if possible. Any idea if that version would solve the
>> problem or if this is a different problem, and if that version will
>> become available in debian soon?
>>
>
> Yes, this is definitely the bug in pls. Cant remember exactly what
> happened now, try adding * to the end of the path, but remember to
> escape it in single quotes.
>
> I have no idea when Jonny will package it for debian I'm afraid. I would
> suggest getting the source package, applying the attached two patches,
> and rebuilding the package, this should help.
>
>> Also I still had that error message when first trying to connect my
>> iPaq this morning (can't connect); only the second try works. I am
>> wondering if these two problems could be related?
>
> Not sure what is causing that, but it is completely unrelated to the pls
> problem.
>
>> Thank you for your useful help.
>> Olivier
>>>>>> ~#sdptool browse local | grep "^Service Name: "
>>>>>>
>>>>>> Service Name: Headset Audio Gateway
>>>>>>
>>>>>> Service Name: Hands-Free Audio Gateway
>>>>>>
>>>>>> Service Name: Audio Source
>>>>>>
>>>>>> Service Name: AVRCP TG
>>>>>>
>>>>>> Service Name: AVRCP CT
>>>>>>
>>>>>> Service Name: BlueZ PANU service
>>>>>>
>>>>>> Service Name: BlueZ GN service
>>>>>>
>>>>>> Service Name: BlueZ NAP service
>>>>>>
>>>>>> Service Name: ActiveSync
>>>>>>
>>>>>> Service Name: Serial Port
>>>>>>
>>>>>> On the iPaq, I can now see the activesync service when browsing my
>>>>>> Debian computer and connect to it.
>>>>>>
>>>>>>    
>>>>>>        
>>>>>> ~$synce-pls
>>>>>>
>>>>>> ** Message: Hal reports no devices connected
>>>>>>
>>>>>> ** (process:9962): WARNING **: synce_info_from_odccm: Failed to get
>>>>>> devices: The name org.synce.odccm was not provided by any .service
>>>>>> files
>>>>>>
>>>>>> synce-pls: Could not find configuration at path '(Default)'
>>>>>>
>>>>>> -~#ps ax | grep [s]ync
>>>>>>
>>>>>> 9805 ? Ss 0:00 dund --listen --activesync --msdun call synce-bt-peer
>>>>>>
>>>>>> 9870 rfcomm0 Ss+ 0:00 pppd /dev/rfcomm0 nodetach call synce-bt-peer
>>>>>>
>>>>>> 9929 ? S 0:00 /usr/lib/synce-hal/hal-dccm --device-ip=192.168.132.201
>>>>>> --local-ip=192.168.132.102 --log-level=3
>>>>>>
>>>>>> 9979 ? Ss 0:00 /usr/bin/python /usr/bin/synce-sync-engine
>>>>>> --verbosity=DEBUG --logfile=out.log -d
>>>>>>
>>>>>>    
>>>>>>        
>>>>> I'm guessing it's the usual old chestnut, do you have firewall ? Confirm
>>>>> this with iptables -L
>>>>>  
>>>>>      
>>>> ~#iptables -L
>>>> Chain INPUT (policy ACCEPT)
>>>> target     prot opt source               destination        
>>>>
>>>> Chain FORWARD (policy ACCEPT)
>>>> target     prot opt source               destination        
>>>>
>>>> Chain OUTPUT (policy ACCEPT)
>>>> target     prot opt source               destination        
>>>>
>>>>    
>>> Ok, not a firewall problem. It does look like its working now though.
>>>
>>>  
>>>> Thank you.
>>>> Olivier
>>>>
>>>>    
>>>>> Mark
>>>>>
>>>>>  
>>>>>      
>>>>>> (then I disconnect on the iPaq)
>>>>>>
>>>>>> ~#tail -n 40 /var/log/syslog | grep pppd
>>>>>>
>>>>>> Aug 18 19:59:11 smg8 pppd[9870]: pppd 2.4.4 started by root, uid 0
>>>>>>
>>>>>> Aug 18 19:59:11 smg8 pppd[9870]: Using interface ppp0
>>>>>>
>>>>>> Aug 18 19:59:11 smg8 pppd[9870]: Connect: ppp0 <--> /dev/rfcomm0
>>>>>>
>>>>>> Aug 18 19:59:14 smg8 pppd[9870]: Cannot determine ethernet address for
>>>>>> proxy ARP
>>>>>>
>>>>>> Aug 18 19:59:14 smg8 pppd[9870]: local IP address 192.168.132.102
>>>>>>
>>>>>> Aug 18 19:59:14 smg8 pppd[9870]: remote IP address 192.168.132.201
>>>>>>
>>>>>> Aug 18 20:10:55 smg8 pppd[9870]: Hangup (SIGHUP)
>>>>>>
>>>>>> Aug 18 20:10:55 smg8 pppd[9870]: Modem hangup
>>>>>>
>>>>>> Aug 18 20:10:55 smg8 pppd[9870]: Connect time 11.7 minutes.
>>>>>>
>>>>>> Aug 18 20:10:55 smg8 pppd[9870]: Sent 12044 bytes, received 8487
>>>>>> bytes.
>>>>>>
>>>>>> Aug 18 20:10:55 smg8 pppd[9870]: Connection terminated.
>>>>>>
>>>>>> Aug 18 20:10:55 smg8 pppd[9870]: Exit.
>>>>>>
>>>>>> Interrestingly, the synce-sync-engine log (out.log) shows the
>>>>>> following.
>>>>>> 2009-08-18 20:04:51,462 DEBUG syncengine : running main loop
>>>>>> 2009-08-18 20:04:51,465 DEBUG syncengine : creating SyncEngine object
>>>>>> 2009-08-18 20:04:51,496 INFO engine.syncengine.kernel : __init__:
>>>>>> connected device found
>>>>>> 2009-08-18 20:04:51,506 INFO engine.syncengine.kernel :
>>>>>> _CBHalDeviceConnected: device connected at
>>>>>> udi /org/freedesktop/Hal/devices/synce_bluetooth_device_192_168_132_201
>>>>>> 2009-08-18 20:04:51,507 INFO engine.config.Config : UpdateConfig -
>>>>>> unable to open config file /etc/syncengine.conf.xml ([Errno 2] No such
>>>>>> file or directory: '/etc/syncengine.conf.xml') - using defaults
>>>>>> 2009-08-18 20:04:51,508 INFO engine.config.Config : UpdateConfig -
>>>>>> unable to open config file /home/olivier/.synce/syncengine.conf.xml
>>>>>> ([Errno 2] No such file or directory:
>>>>>> '/home/olivier/.synce/syncengine.conf.xml') - using defaults
>>>>>> 2009-08-18 20:04:51,513 INFO engine.syncengine.kernel :  device
>>>>>> Olivier--PPC connected
>>>>>> 2009-08-18 20:04:51,514 INFO engine.syncengine.kernel : ProcessAuth :
>>>>>> processing authorization for device 'Olivier--PPC'
>>>>>> 2009-08-18 20:04:51,520 INFO engine.syncengine.kernel : ProcessAuth:
>>>>>> authorization not required for device 'Olivier--PPC'
>>>>>> 2009-08-18 20:04:51,521 DEBUG engine.syncengine.kernel : OnConnect:
>>>>>> setting up RAPI session
>>>>>> ** Message: Hal reports no devices connected
>>>>>>
>>>>>> ** (process:9979): WARNING **: synce_info_from_odccm: Failed to get
>>>>>> devices: The name org.synce.odccm was not provided by any .service
>>>>>> files
>>>>>> [synce_info_from_file:69] unable to open
>>>>>> file: /home/olivier/.synce/active_connection
>>>>>> 2009-08-18 20:04:51,537 INFO engine.syncengine.kernel : __init__:
>>>>>> exception -2147467259: An unspecified failure has occurred
>>>>>> 2009-08-18 20:04:51,538 DEBUG syncengine : installing signal handlers
>>>>>> 2009-08-18 20:10:55,891 INFO engine.syncengine.kernel :
>>>>>> _CBHalDeviceDisconnected: device disconnected from
>>>>>> udi /org/freedesktop/Hal/devices/synce_bluetooth_device_192_168_132_201
>>>>>> 2009-08-18 20:10:55,891 DEBUG engine.syncengine.kernel : StopSessions:
>>>>>> stopping RRA server
>>>>>> 2009-08-18 20:10:55,892 DEBUG engine.syncengine.kernel :
>>>>>> sessions_wait_for_stop: shutting down RRA server
>>>>>> 2009-08-18 20:10:55,892 DEBUG engine.syncengine.kernel : OnDisconnect:
>>>>>> closing RAPI session
>>>>>> 2009-08-18 20:10:55,893 DEBUG engine.syncengine.kernel : OnDisconnect:
>>>>>> clearing partnerships
>>>>>> 2009-08-18 20:10:55,893 INFO engine.partnerships.Partnerships :
>>>>>> ClearDevicePartnerships: clearing all device partnership info
>>>>>>
>>>>>>
>>>>>> Thank you for any help.
>>>>>> Olivier
>>>>>>
>>>>>>    

Thanks one again!
Olivier

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users