From: Guillaume P. <gpo...@gm...> - 2006-02-16 04:14:48
|
Updates: - Stepping through the irmc-obex connection code sometimes permits to establish the connection. There seems to be a timing issue... - I found the original VCards that spawn the conflict (see below). There are quite a few differences. The entry on the phone has been generated by a previous sync (with opensync), so I guess the phone will never store the REV attribute, for instance. As VCard may or may not be the native storage format on both devices, it might well be impossible to have them both exactly equal. How will OpenSync handle this issue? VCard from KDE-PIM: [xml-vcard] INFORMATION: Input Vcard is: BEGIN:VCARD FN:Sridhar N:Sridhar;;;; NAME:Sridhar REV:2006-02-06T17:30:36Z TEL;TYPE=3DCELL:+5686265076 UID:AMK3cRcTnK VERSION:2.1 END:VCARD VCard from SonyEricsson K700i: [xml-vcard] INFORMATION: Input Vcard is: BEGIN:VCARD VERSION:2.1 N:;Sridhar FN:Sridhar TEL;CELL:+5686265076 X-IRMC-LUID:000000000006 END:VCARD On 2/15/06, Guillaume Pothier <gpo...@gm...> wrote: > Hi, I'm syncing a cellphone with Kontact through IrMC/Bluetooth. > Everytime I slowsync I get conflicts on all of the entries. It seems > it is due to a format mismatch. Below is an example output of > "msynctool --sync group". > Unfortunately I am unable to debug it because when I run the same > command under gdb I get a message saying "Cannot connect via OBEX". I > intended to place some breakpoints in xml-vcard.c and xml-kde.c and > try to understand the code from here, but I just cannot sync under > gdb... > What is the code that compares two xml contacts? > Do the developpers use gdb for debugging? > > Here is the detail of the conflict (phone numbers scrapped). > Conflict for Mapping 0x808db00: > Entry 1: > UID: 000000000006 > <?xml version=3D"1.0"?> > <contact> > <Name> > <FirstName>Sridhar</FirstName> > </Name> > <FullName> > <Content>Sridhar</Content> > </FullName> > <Telephone> > <Content>+5686XXXXXX</Content> > <Type>CELL</Type> > </Telephone> > <UnknownNode> > <NodeName>X-IRMC-LUID</NodeName> > <Content>000000000006</Content> > </UnknownNode> > </contact> > > > Entry 2: > UID: AMK3cRcTnK > <?xml version=3D"1.0"?> > <contact> > <FullName> > <Content>Sridhar</Content> > </FullName> > <Name> > <LastName>Sridhar</LastName> > </Name> > <UnknownNode> > <NodeName>NAME</NodeName> > <Content>Sridhar</Content> > </UnknownNode> > <Revision> > <Content>2006-02-06T17:30:36Z</Content> > </Revision> > <Telephone> > <Content>+5686XXXXXX</Content> > <Type>CELL</Type> > </Telephone> > <Uid> > <Content>AMK3cRcTnK</Content> > </Uid> > </contact> > |