[cvs] [Wiki] changed: SyncMLDevicesFileFormats

Chuck Hagenbuch chuck at horde.org
Sun May 7 20:26:08 PDT 2006


chuck  Sun, 07 May 2006 20:26:08 -0700

Modified page: http://wiki.horde.org/SyncMLDevicesFileFormats
New Revision:  1.10
Change log:  add toc and instructions

@@ -1,14 +1,16 @@
+[[toc]]
+
 + File Formats for various sync devices
 
 Various ``SyncML`` capable devices exchange data (adress, calendar, todo, notes) in various data formats. This page is designed to collect as many examples from as many devices as possible to allow for an implementation that can deal with any of these.
-
 
 ++ Synthesis ``SyncML`` client
 
 The Synthesis (www.synthesis.ch) client can be used to sync Palm and various Windows Mobile PDAs.
 
 +++ Synthesis Tasks Example
+
 <code>
 BEGIN:VCALENDAR
 VERSION:1.0
 BEGIN:VTODO
@@ -30,8 +32,9 @@
 * If a todo entry is marked as completed, its status becomes {{COMPLETED}}.
 * The client is quite picky about the version number: ensure it's VERSION:1.0. 
 
 +++ Synthesis Events Example
+
 <code>
 BEGIN:VCALENDAR
 VERSION:1.0
 BEGIN:VEVENT
@@ -48,8 +51,9 @@
 END:VCALENDAR
 </code>
 
 +++ Synthesis Address Book Example
+
 <code>
 BEGIN:VCARD
 VERSION:2.1
 N;CHARSET=UTF-8:Last Name;First Name aumlaut: ä	;;;
@@ -66,10 +70,13 @@
 line2=0D=0A=
 
 END:VCARD
 </code>
+
 ++ Sony Ericsson P900
+
 +++ Sony Ericsson Tasks Example
+
 <code>
 VERSION:1.0
 BEGIN:VTODO
 UID:396
@@ -207,9 +214,8 @@
 PRIORITY:3
 END:VTODO
 END:VCALENDAR
 </code>
-
 
 +++ Nokia 9500 Calendar Example
 <code>
 BEGIN:VCALENDAR
@@ -229,5 +235,13 @@
 END:VEVENT
 END:VCALENDAR
 </code>
 
+++ Getting your device's file format
+
+If you have been asked for the format that your device sends data in, you need to perform a sync of the kind of data in question. To get a dump of the device data, create an address entry (or an event, or ...) with all features (as many device fields filled in as possible). Then do a sync. Within /tmp/sync then do:
+
+<code>
+for a in *.wbxml; do wbxml2xml -m 1 -i 4 -o `basename $a .wbxml`_conv.xml $a; done 2>/dev/null
+</code>
 
+You need libwbxml (http://libwbxml.aymerick.com/) installed. Then you get _conv.xml data with the readable XML in it. Locate the "BEGIN:VCARD" or "BEGIN:VEVENT" part in the *client*_conv.xml files; then you can add the data to this collection.


More information about the cvs mailing list