[sync] SyncML with Nokia 6230 - logs

Christian Cier-Zniewski c.cier at gmx.de
Wed Jul 14 11:22:20 PDT 2004


Hi Karsten,

Karsten Fourmont wrote:

> current configuration is: when syncing events, sync tasks as well. As 
> this is how my phone does it. Change the function 
> handleTasksInCalendar() to return false in state.php to turn this off if 
> - you don't have NAG (horde taskslist) installed or
> - don't want to sync tasks or
> - for your phones tasks are totally different from events.

My phone seems to handle tasks as events as far I can tell.

> two things that could be the reason for your crashes:
> 
> 1) the missing nag causes PHP errors dumped to the output into the 
> middle of XML, confusing your phone. Try adding s.th. like
> 
> error_log = /tmp/phperrors.log
> to your php.ini and see whether any php errors/notices occur.

Before I have started experimenting with SyncML I had already modified 
error_log to do so.

> 2) your phone doesn't like the VCARD output from horde.
> Try outcommenting some of the more obscure looking attributes from
>   kronolith/lib/Driver.php tovEvent(&$calendar, $identity)
> 
> like the ORGANIZER line. So you can step by step remove lines from
> 
>  > BEGIN:VCALENDAR
>  > VERSION:2.0
>  > PRODID:-//Horde.org//Kronolith Generated
>  > METHOD:REQUEST
>  > BEGIN:VEVENT
>  > DTSTAMP:20040713T193046
>  > SUMMARY:testtermin
>  > DTSTART:20040714T100000Z
>  > DTEND:20040714T110000Z
>  > LOCATION:sfsdfsdfsdf
>  > TRANSP:OPAQUE
>  > ORGANIZER;CN=Christian Cier-Zniewski:MAILTO:c.cier at gmx.de
>  > END:VEVENT
>  > END:VCALENDAR
> 
> until your phone likes what it gets served by horde.
> Comparing the format sent by horde with the one your phone sends for its 
> own entries might help as well.
> 
> If you need to modify/remove the PRODID,METHOD or VERSION lines: they 
> are from kronolith/lib/api.php

I think I will give this a try. See below what my phone sends:

      <Data>
<![CDATA[BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VEVENT
DTSTART:20040716T090000
DTEND:20040716T100000
SUMMARY:Termin
DESCRIPTION:
CATEGORIES:MEETING
LOCATION:Es
END:VEVENT
END:VCALENDAR
]]>
      </Data>

Looks a bit different. Especially the version number.

phone2horde: events ans task seem to synchronize, but phone crashes 
after server send the last WBXML packet.

horde2phone: does not seem to work at all at the moment. Maybe because 
of the different VCALENDER version/format.

Please have a look below, what do those "delete commands" mean? Are 
these events I have deleted in Kronolith and now SyncML wants to tell 
the phone about it, but it cannot succeed, because the phone crashes?

---------------------------------------------------------------------------------------------------
<SyncML xmlns="syncml:SYNCML1.1"><SyncHdr 
xmlns="syncml:syncml1.1"><VerDTD>1.1</VerDTD><VerProto>SyncML/1.1</VerProto><SessionID>14</SessionID><MsgID>2</MsgI
D><Target><LocURI>IMEI:35376700xxxxxxx</LocURI></Target><Source><LocURI>http://xx.xx.xx.xx:8080/horde/rpc.php</LocURI></Source><RespURI>http://xx.xx.xx.
xx:8080/horde/rpc.php</RespURI></SyncHdr><SyncBody><Status 
xmlns="syncml:syncml1.1"><CmdID>1</CmdID><MsgRef>2</MsgRef><CmdRef>0</CmdRef><Cmd>SyncHdr</Cmd><S
ourceRef>IMEI:35376700xxxxxxx</SourceRef><TargetRef>http://xx.xx.xx.xx:8080/horde/rpc.php</TargetRef><Data>212</Data></Status><Sync 
xmlns="syncml:syncml1.
1"><CmdID>2</CmdID><Target><LocURI></LocURI></Target><Source><LocURI>calendar</LocURI></Source><Delete><CmdID>3</CmdID><Item><Source><LocURI>kronolith:4895dd
3e806e28d0619296e92febe7eb</LocURI></Source><Target><LocURI>5</LocURI></Target></Item></Delete><Delete><CmdID>4</CmdID><Item><Source><LocURI>kronolith:bb3604
8482be8122ec630ca961113c90</LocURI></Source><Target><LocURI>5</LocURI></Target></Item></Delete><Delete><CmdID>5</CmdID><Item><Source><LocURI>kronolith:c4ca41
0206881fd40e89427e1afb0e16</LocURI></Source><Target><LocURI>5</LocURI></Target></Item></Delete><Delete><CmdID>6</CmdID><Item><Source><LocURI>kronolith:dceb8c
ab72df5430c89049d9657b1d07</LocURI></Source><Target><LocURI>3</LocURI></Target></Item></Delete><Delete><CmdID>7</CmdID><Item><Source><LocURI>kronolith:f95eb2
fd31420ee6e3d5b3e282e2f1ca</LocURI></Source><Target><LocURI>3</LocURI></Target></Item></Delete><Add><CmdID>8</CmdID><Meta><Type 
xmlns="syncml:metinf1.1">text
/x-vcalendar</Type></Meta><Item><Source><LocURI>kronolith:2cf12d5a022d31fea645db78187c2bd9</LocURI></Source><Data>BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Horde.org//Kronolith Generated
METHOD:REQUEST
BEGIN:VEVENT
DTSTAMP:20040714T200107
SUMMARY:Test_Horde
DTSTART:20040717T100000Z
DTEND:20040717T110000Z
LOCATION:home
TRANSP:OPAQUE
ORGANIZER;CN=Christian Cier-Zniewski:MAILTO:c.cier at gmx.de
END:VEVENT
END:VCALENDAR
</Data></Item></Add><Delete><CmdID>9</CmdID><Item><Source><LocURI>nag:17</LocURI></Source><Target><LocURI>4</LocURI></Target></Item></Delete></Sync><Status 
x
mlns="syncml:syncml1.1"><CmdID></CmdID><MsgRef>2</MsgRef><CmdRef>3</CmdRef><Cmd>Sync</Cmd><TargetRef>calendar</TargetRef><Data>200</Data></Status><Final 
xmln
s="syncml:syncml1.1"></Final></SyncBody></SyncML>

----------------------------------------------------------------------------------------------------------
bye,
Christian



More information about the sync mailing list