Ticket #125 (new defect)

Opened 11 months ago

Last modified 10 months ago

Connection failure with sync-obex-client to a Nokia E65

Reported by: vjahns Assigned to: abauer
Priority: normal Component: OpenSync
Version: Severity: normal
Keywords: Cc:

Description

Trying to do a synchronisation with syncml-obex-client to a Nokia E65 does not work (where I have tried those connection options where are offered by the man page).

jahns@ikarus software > syncml-obex-client -b 00:17:E3:E3:A7:ED 14
--dumpinfo --slow-sync text/x-vcard Contacts --wbxml --identifier "PC
Suite"
connection with device succeeded
Received an Alert for the DS Server at Contacts: Type: 201, Last , Next
20071002T123237Z
Slowsyncing
Just received a new session with ID 1
Received the DevInf
Session 1 reported final. flushing
Received an reply to our Alert
Session 1 reported final. flushing
Session 1 has ended
Send the output below to the libsyncml developers

========================================
Man: NOKIA
Mod: E65
FirmwareVersion:
SoftwareVersion: 1.0633.18.01
HardwareVersion:

ReceiveLimit: 0
MaxObjSize: 0
Connection used: OBEX Client
Identifier: PC Suite

Databases:
DB Locations: Contacts
DB Type: text/x-vcard
DB Slow: 1

Bluetooth: Yes
Wbxml: Yes
SyncML Version: 1.1
SupportsNumberofChanges: Yes
SupportsLargeObjects: Yes

The mobilephone Nokia E65 returns a dialogbox with a system error message "Systemfehler".

Changing the database name from Contacts to Kontakte changes ths situation. The output of syncml-obex-client does not dump information on the phone, nor any contacts.

jahns@ikarus software > syncml-obex-client -b 00:17:E3:E3:A7:ED 14
--dumpinfo --slow-sync text/x-vcard Kontakte --wbxml --identifier "PC
Suite"
connection with device succeeded
Just received a new session with ID 1
Going to request the devinf
Session 1 reported final. flushing
Session 1 has ended
Didnt receive the devinf though it was requested

However the mobilphone returns success!

Nokia E65: Sync. fertig

Running as root will not produce output different from as cited above

Opensync is used from Debian etch ready packages

jahns@ikarus software > dpkg -l |grep opensyn
ii  libopensync-plugin-evolution2      0.22-etch2                          Evolution plugin for opensync
ii  libopensync-plugin-evolution2-dev  0.22-etch2                          Development files for Evolution plugin for opensync
ii  libopensync-plugin-file            0.22-etch1                          Opensync file plugin
ii  libopensync-plugin-gnokii          0.22-etch3                          Gnokii plugin for opensync
ii  libopensync-plugin-google-calendar 0.22-etch2                          Opensync Google Calendar plugin
ii  libopensync-plugin-gpe             0.22-etch1                          Opensync gpe plugin
ii  libopensync-plugin-irmc            0.22~rc1-etch1                      Opensync irmc plugin
ii  libopensync-plugin-jescs           0.22-etch1                          OpenSync Plugin for Java Enterprise System Calendar
ii  libopensync-plugin-kdepim          0.22-etch2                          Opensync kdepim plugin
ii  libopensync-plugin-ldap            0.22-etch1                          OpenSync Plugin for LDAP
ii  libopensync-plugin-moto            0.22-etch1                          OpenSync Plugin for syncing with Motorola phones
ii  libopensync-plugin-opie            0.22-etch1                          Opensync opie plugin
ii  libopensync-plugin-palm            0.22-etch1                          Opensync palm plugin
ii  libopensync-plugin-python          0.22-etch1                          Python engine for OpenSync
ii  libopensync-plugin-sunbird         0.22-etch1                          Opensync Mozilla Calendar(Sunbird) plugin
ii  libopensync-plugin-synce           0.22-etch1                          Opensync synce plugin
ii  libopensync-plugin-syncml          0.22-etch1                          Opensync syncml plugin
ii  libopensync0                       0.22-etch2                          Synchronisation framework for email/pdas/and more
ii  opensyncutils                      0.22-etch2                          Command line utilities for libopensync
ii  python2.4-opensync                 0.22-etch2                          Python bindings to the opensync synchronisation engine

Any help is greatly appreciated.

Change History

(follow-up: ↓ 2 ) 10/07/07 17:08:08 changed by vjahns

I got it working!

Setting the Nokia E65 to language English. There is two options in the phone's settings section, which I did set both to English.

Then struggling to bring Debian Lenny working with opensync :-(

Issuing the very same syncml-obex-client command as I did before when Nokia was set to German locale now retrieves all the contacts vcards. The phone returns sync complete.

syncml-obex-client -b 00:17:E3:E3:A7:ED 14 --slow-sync  text/x-vcard Contacts --wbxml --identifier "PC Suite"

connection with device succeeded
Received an Alert for the DS Server at Contacts: Type: 201, Last , Next 20071005T222643Z
Slowsyncing
Just received a new session with ID 1
Received the DevInf
Session 1 reported final. flushing
Received an reply to our Alert
Going to receive 45 changes
Session 1 reported final. flushing
Received a added entry 41 of size 106 and type text/x-vcard
               Data: BEGIN:VCARD
VERSION:2.1
REV:20070926T130735Z
N:Jahns, Volker;;;;
TEL;CELL:+49005735124
END:VCARD

...

Received a added entry 87 of size 90 and type text/x-vcard
               Data: BEGIN:VCARD
VERSION:2.1
REV:20070926T164205Z
N:T@HOME;;;;
TEL;VOICE:*130#
END:VCARD

...

Received a added entry 89 of size 102 and type text/x-vcard
               Data: BEGIN:VCARD
VERSION:2.1
REV:20070927T131416Z
N:Bluetooth;Adresse;;;
TEL;VOICE:*#2820#
END:VCARD

Received an reply to our Sync: 200
Session 1 reported final. flushing
Session 1 has ended

Please note, that the database string for syncml-obex-client command is set now to Contacs.

I still have to confirm the same result with Debian etch.

However, so far this finding seems to harden the evidence that a Nokia E65 in German locale will not work with opensync.

(in reply to: ↑ 1 ) 10/08/07 03:35:40 changed by eliasp

Replying to vjahns:

I got it working!

Me 2, but after ~24h of debugging ;-/

It seems to be independent from the UI language, it just depends on how you name the following entries in the conf file:

<calendar_db>Calendar</calendar_db>
<note_db>Notes</note_db>
<contact_db>Contacts</contact_db>

...as these databases keep the same name, although the UI of the phone is set to German.

Please note, that the database string for syncml-obex-client command is set now to Contacs.

I'm rather sure you meant Contacts, not Contacs ;-)

I still have to confirm the same result with Debian etch.

Can confirm it on Gentoo, using:

[ebuild   R   ] app-pda/libopensync-0.22  USE="debug python -doc" 0 kB
[ebuild   R   ] app-pda/libopensync-plugin-kdepim-0.22  301 kB
[ebuild   R   ] app-pda/libopensync-plugin-syncml-0.22  USE="http obex" 215 kB

However, so far this finding seems to harden the evidence that a Nokia E65 in German locale will not work with opensync.

Had the problem that the syncing process was hanging at 40/97 contacts but after cancelling the synchronisation, there were 53 contacts in my E65 addressbook.

The contacts which were synced looked really good, even the images were transferred.

As soon as I removed Contacts from synchronisation, it worked really nice for Notes/Calendar.

During the sync, the following errors appeared on stderr:

xmlEscapeEntities : char out of range
xmlEscapeEntities : char out of range

(process:30864): GLib-CRITICAL **: g_string_append: assertion `val != NULL' failed

The ones related to xmlEscapeEntities caused my trouble. Kontact seems to have messed up some of the entries in ~/.kde/share/apps/kabc/std.vcf as I've found a lot of strange controlchars there. After cleaning this up manually, it worked like a charm.

That's point where this error should be handled by opensync as I've seen some others have the same problem too and I think it's very likely it's because of the same reason.

Regards, Elias P.

Working config:

<config>
	<type>2</type>
	<bluetooth_address>00:17:XX:XX:XX</bluetooth_address>
	<bluetooth_channel>10</bluetooth_channel>
	<version>1</version>
	<identifier>PC Suite</identifier>
	<wbxml>1</wbxml>
	<usestringtable>0</usestringtable>
	<onlyreplace>0</onlyreplace>
	<calendar_db>Calendar</calendar_db>
	<note_db>Notes</note_db>
	<contact_db>Contacts</contact_db>
</config>

It seems the settings on the phone (SyncML 1.1/1.2 don't really matter).

10/12/07 09:09:59 changed by vjahns

Sorry, I still can only synchronize my Nokia E65 ( T-Mobile branded) when it is set to language English.

Furthermore it is not possible to synchronize the Calendar database :-(

Using <type> <path> like text/x-vcalendar Calendar for cmdline options of syncml-obex-client returns a "System error" on the Nokia E65.

Using <type> <path> like text/x-vcalendar calendar returns a Unable to open database error on the Nokia E65. syncml-obex-client spits out

volker@eos tmp > syncml-obex-client -b 00:17:E3:E3:A7:ED 14 --slow-sync text/x-vcalendar calendar --wbxml --identifier "PC Suite"
connection with device succeeded
Just received a new session with ID 1
WARNING: Unable to find command handler (Alert: ./C:Calendar -> ./Calendar)Received the DevInf
Session 1 reported final. flushing
Received an transport error: Request not successfull: 67

Using an alternative name for Contacts ( here : contacts) returns a similar error:

volker@eos tmp > syncml-obex-client -b 00:17:E3:E3:A7:ED 14 --slow-sync text/x-vcard contacts --wbxml --identifier "PC Suite"
connection with device succeeded
Just received a new session with ID 1
WARNING: Unable to find command handler (Alert: ./C:Contacts.cdb -> ./Contacts)Session 1 reported final. flushing
Session 1 has ended

10/26/07 12:00:05 changed by wubuntu

Hi,

I've some troubles with synchronizing my E65 with Evolution using multisync-qad.

This is my config-file for the syncml-obex-client:

<?xml version="1.0"?>
<config>
  <bluetooth_address>00:17:E5:D0:05:9F</bluetooth_address>
  <bluetooth_channel>10</bluetooth_channel>
  <interface>0</interface>
  <identifier>PC Suite</identifier>
  <version>1</version>
  <wbxml>1</wbxml>
  <type>2</type>
  <usestringtable>1</usestringtable>
  <onlyreplace>0</onlyreplace>
  <onlyLocaltime>0</onlyLocaltime>
  <recvLimit>0</recvLimit>
  <maxObjSize>0</maxObjSize>
  <contact_db>Contacts</contact_db>
</config>

can you tell me which settings i have to set on my E65?

I was happy to find this site and some of your tipps are very usefull.

After Changing "Contacts" to "Kontakte" the mobile show "Sync fertig" but i can't find any new entries either in my mobile nor in evolution.

So what's the Problem?

Does anybody can help me?

Tell me if you need more information about my settings.

greez wubuntu

10/26/07 12:03:14 changed by wubuntu

btw: using the terminal, i got this:

 msynctool --sync Nokia
Synchronizing group "Nokia" 
The previous synchronization was unclean. Slow-syncing
Member 2 of type evo2-sync just connected
Member 1 of type syncml-obex-client just connected
All clients connected or error
Received an entry pas-id-46FA74E800000026 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-471F530B00000000 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-4721711C00000000 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5B00000001 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5B0000000A with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-46FA74E80000001B with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5B00000006 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-46A2EBB90000000A with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-46EA955700000002 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5B00000000 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5B00000008 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5C00000016 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5C0000001F with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5C00000027 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-46FA74E800000019 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5B00000005 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5C00000013 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5C0000001C with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5C0000002B with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5B00000002 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5C0000000C with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5C0000002E with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-46A2EB5300000005 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-46FB83F100000001 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5C00000011 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5C0000001A with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5C00000028 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5B00000004 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5C0000000E with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5C0000002C with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5C00000030 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-4720BE1E00000000 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-46A2EB5F00000006 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-46A2EC0500000010 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-46A2ED010000001C with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-46EA953F00000000 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-46FB831C00000000 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-46FA74E800000028 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5B00000009 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5C00000017 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-46A2EBFD0000000F with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470CAFFA00000000 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5C00000010 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5C00000029 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-46A2EBC20000000B with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-46A2ECE100000019 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-46FA74E800000004 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-46FA74E80000000D with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-46FA74E800000017 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-46FA74E80000002B with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5B00000003 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5C0000000B with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5C00000024 with data of size 4 from member 2. Changetype ADDED
Received an entry pas-id-470F6F5C0000002D with data of size 4 from member 2. Changetype ADDED
Member 2 of type evo2-sync just sent all changes

than it hangs?

nevertheless, the mobile shows "Sync fertig".

10/26/07 12:26:15 changed by wubuntu

just another information:

sudo dpkg -l |grep opensyn
ii  libopensync0                               0.19-1.2ubuntu1                    Synchronisation framework for email/pdas/and
ii  opensync-plugin-evolution                  0.19-1ubuntu2                      Evolution plugin for opensync
ii  opensync-plugin-syncml                     0.19-1                             Opensync SyncML plugin

10/26/07 12:31:34 changed by wubuntu

sorry for posting so often, but at the moment I try to synchronize and I try, and I try... :-(

syncml-obex-client -b 00:17:E5:D0:05:9F 14 --slow-sync  text/x-vcard Contacts --wbxml --identifier "PC Suite"
connection with device succeeded
Received an Alert for the DS Server at Contacts: Type: 201, Last , Next 20071026T102810Z
Slowsyncing
Just received a new session with ID 1
Received the DevInf
Session 1 reported final. flushing
Received an reply to our Alert
Session 1 reported final. flushing
Session 1 has ended

10/26/07 15:18:46 changed by wubuntu

--dumpinfo output:

syncml-obex-client -b 00:17:E5:D0:05:9F 14 --dumpinfo --slow-sync text/x-vcard contacts --wbxml --identifier "PC Suite"
connection with device succeeded
Just received a new session with ID 1
WARNING: Unable to find command handlerReceived the DevInf
Session 1 reported final. flushing
Received an transport error: Request not successfull: 67
Send the output below to the libsyncml developers

========================================
Man: NOKIA
Mod: E65
FirmwareVersion: 
SoftwareVersion: 1.0633.18.01
HardwareVersion: 

ReceiveLimit: 0
MaxObjSize: 0
Connection used: Obex
Identifier: PC Suite

Databases:
DB Locations: contacts
DB Type: text/x-vcard
DB Slow: 1

Bluetooth: Yes
Wbxml: Yes
SyncML Version: 1.1
SupportsNumberofChanges: Yes
SupportsLargeObjects: Yes

10/26/07 19:23:58 changed by dgollub

Unfortunately no one provided libsyncml version - just OpenSync? versions. You should know that libsyncml is independent of OpenSync?. Anyway - if your version of libsyncml is less then 0.4.2 you should upgrade to at least 0.4.2 - or even better to latest release: 0.4.5

The localization issue sounds very strange. Anyone with access to a Windows box and could sniff the traffic between mobile and the vendor software?

I updated the instruction on the wiki how to capture the traffic in several differnets ways: Troubleshooting

10/27/07 12:36:57 changed by wubuntu

Just doesn't work.

The mobile shows "sync complete" but i can't find any vcards!

What do i wrong? The others solved it...

I really think it's a problem with the mobile settings - so,

can anybody post the working settings of the E65?

10/28/07 19:39:08 changed by wubuntu

sorry,

my libsyncml0-version is (ubuntu gutsy) 0.4.1-1 libsyncml-utils 0.4.1-1.

Where can I get the newest version? How to install? Is there a .deb?

greez