From: Tino K. <tin...@ti...> - 2009-09-28 20:50:07
|
Hi, I set up a sync group with evo2-sync and file-sync members, and syncing worked. Then I modified the setup to sync evo2-plugin and syncml-obex-client over bluetooth. Then I get this output: -------------------------------------------------------------------- ... Received an entry pas-id-4AC0E6910000005B (xmlformat-contact) from member 1 (evo2-sync). Changetype ADDED contact sink of member 1 of type evo2-sync just sent all changes Main sink of member 1 of type evo2-sync just sent all changes contact sink of member 3 of type syncml-obex-client just sent all changes All clients sent changes or error All changes got mapped All conflicts have been reported All changes got multiplied All changes got prepared for write Synchronization Forecast Summary: ObjType: contact Member 1: Adding(0) Modifying(0) Deleting(0) Member 3: Adding(103) Modifying(0) Deleting(0) Do you want to continue the synchronization? (N/y): y OK! Completing synchronization! contact sink of member 1 of type evo2-sync committed all changes. Main sink of member 1 of type evo2-sync committed all changes. ------------------------------------------------------------------- If I type "y", osynctool hangs, and no bluetooth traffic can be seen in hcidump. When I try to open the contact list, it gives an error about another application which uses the contact list. This error goes away if I abort osynctool. Member 1 is evolution, member 3 is the mobile phone. I use opensync 0.39. Regards, Tino |
From: Tino K. <tin...@ti...> - 2009-09-28 22:19:52
|
On Mon, Sep 28, 2009 at 22:48:47 +0200, Tino Keitel wrote: > Hi, > > I set up a sync group with evo2-sync and file-sync members, and syncing > worked. > > Then I modified the setup to sync evo2-plugin and syncml-obex-client > over bluetooth. Then I get this output: > > -------------------------------------------------------------------- > ... > Received an entry pas-id-4AC0E6910000005B (xmlformat-contact) from > member 1 (evo2-sync). Changetype ADDED > contact sink of member 1 of type evo2-sync just sent all changes > Main sink of member 1 of type evo2-sync just sent all changes > contact sink of member 3 of type syncml-obex-client just sent all > changes > All clients sent changes or error > All changes got mapped > All conflicts have been reported > All changes got multiplied > All changes got prepared for write > > Synchronization Forecast Summary: > > ObjType: contact > Member 1: Adding(0) Modifying(0) Deleting(0) > Member 3: Adding(103) Modifying(0) Deleting(0) > > Do you want to continue the synchronization? (N/y): y > > OK! Completing synchronization! > contact sink of member 1 of type evo2-sync committed all changes. > Main sink of member 1 of type evo2-sync committed all changes. > ------------------------------------------------------------------- > > If I type "y", osynctool hangs, and no bluetooth traffic can be seen in > hcidump. When I try to open the contact list, it gives an error about Hi, I forgot to mention that I use a SE k550i mobile phone. I just saw that reading contacts from the phone works. But as soon as opensync tries to write something to the phone (saving new contacts, deleting existing contacts) osynctool hangs. Regards, Tino |
From: Tino K. <tin...@ti...> - 2009-09-28 22:33:40
|
> On Mon, Sep 28, 2009 at 22:48:47 +0200, Tino Keitel wrote: [...] > Hi, > > I forgot to mention that I use a SE k550i mobile phone. I just saw that > reading contacts from the phone works. But as soon as opensync tries to > write something to the phone (saving new contacts, deleting existing > contacts) osynctool hangs. I can also modify a contact on the phone, run osynctool --sync, and the modified contact will be transfered into evolution. I can also copy the vcf file with all the contacts to the phone using gnome-obex-send. Only opensync fails. Regards, Tino |
From: Tino K. <tin...@ti...> - 2009-09-28 23:42:53
Attachments:
syncml-obex-client.conf
|
Hi, here is some further information from sdptool: $ sdptool search --bdaddr 00:1C:A4:BA:26:68 SYNCML Searching for SYNCML on 00:1C:A4:BA:26:68 ... Service Name: OBEX SyncML Client Service RecHandle: 0x10001 Service Class ID List: UUID 128: 00000002-0000-1000-8000-0002ee000002 Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 1 "OBEX" (0x0008) My opensync config is attached. Any help would be appreciated. Regards, Tino |
From: Tino K. <tin...@ti...> - 2009-09-29 00:51:26
|
Hi, finally, I figured out how to transfer new contacts to the phone. It looks like there is some kind of limit. If I add just 3 contacts and not over 100, it works. I also tried with 10 and 5 contacts, but osynctool still hangs. Can I enforce this limit in the config file somehow? Regards, Tino |
From: Tino K. <tin...@ti...> - 2009-09-29 01:11:16
|
Hi, the limit seems to be somewhere between 2054 (hangs) and 2004 bytes (works). Maybe 2048? Regards, Tino |
From: Michael B. <mic...@cm...> - 2009-09-29 11:00:16
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Tino, Tino Keitel wrote: > > finally, I figured out how to transfer new contacts to the phone. It > looks like there is some kind of limit. If I add just 3 contacts and > not over 100, it works. I also tried with 10 and 5 contacts, but > osynctool still hangs. > > Can I enforce this limit in the config file somehow? This is an old bug of OpenSync internal change handling. OpenSync's engine has an internal pendingLimit for the number of changes which are pushed to a plugin. If this limit is reached then OpenSync waits until at minimum one change is committed. libsyncml as SyncML implementation only sends a message if the message is full in terms of MaxMsgSize. This is usually a limit of the phone. So if the limit of the phone (MaxMsgSize) would allow to pack 6 changes in a message and the pendingLimit of OpenSync is 5 then there is a dead lock. OpenSync waits for a commit signal for at minimum one change and libsyncml waits for the next change. This bug exists for a long time and I think that the limit is not configurable today. So the bug must be fixed (e.g. by a configurable limit which is much bigger than 5 by default). Actually I'm not able to fix it because my actual knowledge of the related OpenSync code is too small :( Best regards Michael - -- ___________________________________________________________________ Michael Bell Humboldt-Universitaet zu Berlin Tel.: +49 (0)30-2093 2482 ZE Computer- und Medienservice Fax: +49 (0)30-2093 2704 Unter den Linden 6 mic...@cm... D-10099 Berlin ___________________________________________________________________ PGP Fingerprint: 09E4 3D29 4156 2774 0F2C C643 D8BD 1918 2030 5AAB -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrB6PsACgkQ2L0ZGCAwWquVNQCfcqpnMFEAlEopRyT9zegJl5KW efAAoJ1yXRlyDh4dfMuHtgT4skZLKX+j =5uRo -----END PGP SIGNATURE----- |
From: Graham C. <g+o...@co...> - 2009-09-29 11:40:33
|
On Tuesday 29 September 2009 12:01:18 Michael Bell wrote: > This bug exists for a long time and I think that the limit is not > configurable today. So the bug must be fixed (e.g. by a configurable > limit which is much bigger than 5 by default). I will check in a workround (either disable the check or make it a large number) today. A real fix will take a while longer. Graham |
From: Graham C. <g+o...@co...> - 2009-09-29 22:28:11
|
On Tuesday 29 September 2009 12:40:16 Graham Cobb wrote: > I will check in a workround (either disable the check or make it a large > number) today. A real fix will take a while longer. I have committed a change (to the Opensync SVN trunk) which disables the pending limit completely so builds from trunk should now allow syncml to work. This will break timeout handling so large syncs (typically 100 or more items) may see timeout errors! Michael and I talked about the problem on IRC and he is looking into a medium term workround in libsyncml. I am looking into a longer term fix that will require changes in opensync and in the plugin. In the meantime, if anyone wants syncml to work either build from trunk or just comment out the call to osync_queue_set_pending_limit in osync_client_set_incoming_queue in opensync/client/opensync_client.c. If Michael (or anyone else) wants to re-enable the pending limit for testing his fix, just re-enable that call to osync_queue_set_pending_limit. Graham |
From: Tino K. <tin...@ti...> - 2009-09-30 05:03:50
|
On Tue, Sep 29, 2009 at 23:27:50 +0100, Graham Cobb wrote: > On Tuesday 29 September 2009 12:40:16 Graham Cobb wrote: > > I will check in a workround (either disable the check or make it a large > > number) today. A real fix will take a while longer. > > I have committed a change (to the Opensync SVN trunk) which disables the > pending limit completely so builds from trunk should now allow syncml to > work. This will break timeout handling so large syncs (typically 100 or more > items) may see timeout errors! I tried the change from commit 5858 added to 0.39, now it looks like this: Synchronization Forecast Summary: ObjType: contact Member 1: Adding(0) Modifying(0) Deleting(0) Member 3: Adding(113) Modifying(0) Deleting(0) Do you want to continue the synchronization? (N/y): y OK! Completing synchronization! contact sink of member 1 of type evo2-sync committed all changes. Main sink of member 1 of type evo2-sync committed all changes. Main sink of member 3 of type syncml-obex-client committed all changes. Sent an entry 1046 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1045 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1044 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1043 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1042 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1041 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1040 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1039 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1038 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1037 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1036 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1035 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1034 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1033 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1032 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1031 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1030 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1029 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1028 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1027 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1026 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Error for entry pas-id-4AC2E57800000240 (vcard21) and member 3 (syncml-obex-client): Unable to commit change. Error 424 Mapping Error: Unable to commit change. Error 424 contact sink of member 3 of type syncml-obex-client committed all changes. Sent an entry 1065 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1064 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1063 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1062 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1061 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1060 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1059 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1058 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1057 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1056 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1055 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1054 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1053 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1052 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1051 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1050 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1049 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1048 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1047 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Error for entry pas-id-4AC2E57800000252 (vcard21) and member 3 (syncml-obex-client): Unable to commit change. Error 424 Mapping Error: Unable to commit change. Error 424 Sent an entry 1087 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1086 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1085 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1084 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1083 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1082 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1081 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1080 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1079 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1078 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1077 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1076 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1075 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1074 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1073 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1072 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1071 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1070 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1069 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1068 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1067 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1066 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1107 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1106 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1105 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1104 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1103 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1102 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1101 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1100 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1099 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1098 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1097 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1096 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1095 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1094 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1093 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1092 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1091 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1090 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1089 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1088 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Error for entry pas-id-4AC2E57800000243 (vcard21) and member 3 (syncml-obex-client): Unable to commit change. Error 424 Mapping Error: Unable to commit change. Error 424 Sent an entry 1128 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1127 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1126 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1125 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1124 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1123 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1122 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1121 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1120 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1119 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1118 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1117 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1116 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1115 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1114 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1113 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1112 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1111 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1110 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1109 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1108 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Error for entry pas-id-4AC2E5780000027E (vcard21) and member 3 (syncml-obex-client): Unable to commit change. Error 424 Mapping Error: Unable to commit change. Error 424 Sent an entry 1134 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1133 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1132 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1131 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1130 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED Sent an entry 1129 (vcard21) to member 3 (syncml-obex-client). Changetype ADDED ...and then it hangs and the phone says that the session has finished but was incomplete. Regards, Tino |