

[[toc]]
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
BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VTODO
SUMMARY:Synthesis todo entry on pal,
CATEGORIES:Tests
CLASS:PUBLIC
DESCRIPTION;ENCODING=QUOTED-PRINTABLE:Note line1=0D=0A=
line2=0D=0A=
DUE:20050929T000000
PRIORITY:1
STATUS:NEEDS ACTION
END:VTODO
END:VCALENDAR
Notes:
Priority can be 1-5.
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
BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VEVENT
SUMMARY:test
CLASS:PUBLIC
DESCRIPTION;ENCODING=QUOTED-PRINTABLE:line1 aumlaut: ae=0D=0A=
line2=0D=0A=
DTSTART:20050923T130000
DTEND:20050923T140000
AALARM:20050923T080000;;;
DALARM:20050923T080000;;;
END:VEVENT
END:VCALENDAR
+++ Synthesis Address Book Example
BEGIN:VCARD
VERSION:2.1
N;CHARSET=UTF-8:Last Name;First Name aumlaut: ä ;;;
FN;CHARSET=UTF-8:Last Name, First Name aumlaut: ä
TITLE:title
ORG:company;
CLASS:PUBLIC
TEL;WORK:+4989111
TEL;HOME:+4989222
TEL;FAX:+4989333
EMAIL:
ADR:;;Marienplatz 1;Munich;By;D-81777;Germany
NOTE;ENCODING=QUOTED-PRINTABLE:line1=0D=0A=
line2=0D=0A=
END:VCARD
++ Sony Ericsson P900
+++ Sony Ericsson Tasks Example
VERSION:1.0
BEGIN:VTODO
UID:396
SUMMARY:A1
X-EPOCTODOLIST:To-do list
STATUS:NEEDS ACTION
X-EPOCAGENDAENTRYTYPE:TODO
CLASS:PUBLIC
DCREATED:20050422T220000Z
LAST-MODIFIED:20050423T195500Z
CATEGORIES:X-65536
PRIORITY:1
END:VTODO
END:VCALENDAR
++ Nokia 6230
+++ Nokia 6230 Notes example
BEGIN:VNOTE
VERSION:1.1
BODY:Nokia3nndies ist zusätzlicher Text!
DCREATED:20051030T111735Z
LAST-MODIFIED:20051030T112041Z
END:VNOTE
+++ Nokia 6230 Calendar example
BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VEVENT
DTSTART:20051030T170000
DTEND:20051030T180000
CATEGORIES:MEETING
SUMMARY:calendar entry
DESCRIPTION;CHARSET=ISO-8859-1;ENCODING=QUOTED-PRINTABLE:description=0Aline=
2=0Aumlaut: =E4=0Alast line
LOCATION:B
END:VEVENT
END:VCALENDAR
+++ Nokia 6230 Task Example
(events and tasks are in the same database)
BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VTODO
DUE:20051113T090000
DTEND:20051113T090000
PRIORITY:2
STATUS:NEEDS ACTION
SUMMARY:Task1
END:VTODO
END:VCALENDAR
++ Motorola RAZR V3
+++ Motorola RAZR V3 Contact Example
BEGIN:VCARD
VERSION:2.1
N:lastname;firstname
TEL;WORK:number
TEL;CELL:number
END:VCARD
++ Nokia 9300i
+++ Nokia 9300i Contact Example
BEGIN:VCARD
VERSION:2.1
REV:20060506T100811Z
N:lastname;firstname;second firstname;title;addon name
ADR;HOME:homepost-office-box;addonHome;homestreet;homecity;homestate;homepostcode;homecountry
ADR;WORK:workpost-office-box;addon-work;workstreet;workcity;workstate;workpostcode;workcountry
ADR;PREF:otherpost-office-box;;otherstreet;othercity;otherstate;otherpostcode;othercountry
ORG:company;
TITLE:position
TEL;WORK;VOICE:+4900
TEL;HOME;VOICE:+4901
TEL;CELL:+4902
TEL;WORK;FAX:+4904
EMAIL;INTERNET:email1@example.org
EMAIL;INTERNET:email2@example.org
NOTE:memo
NOTE:memo2
TEL;PAGER:+4903
URL:www1.example.org
URL:www2.example.org
BDAY:20060508
END:VCARD
++ Nokia 9500
+++ Nokia 9500 Contact Example
BEGIN:VCARD
VERSION:2.1
REV:20060301T021807Z
N:Lastname;Firstname;Middlename;Title;Suffix
ADR;HOME:PostBox;;Street;City;State;Postcode;RegionCountry
ADR;WORK:PotsBox;;Street;City;State;Postcode;RegionCountry
ORG:Company;
TITLE:Job
TEL;VOICE:0000000000
TEL;CELL:0000000000
TEL;FAX:0000000000000
EMAIL;INTERNET:test@example.com
EMAIL;INTERNET:test2@example.com
TEL;WORK;VOICE:0000000000000
BDAY:20060228
END:VCARD
+++ Nokia 9500 Todo Example
BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VTODO
UID:170
SUMMARY:Send email to mates
X-EPOCTODOLIST:To-do list
STATUS:NEEDS ACTION
X-EPOCAGENDAENTRYTYPE:TODO
CLASS:PUBLIC
DCREATED:20060301T000000
LAST-MODIFIED:20060302T050500Z
PRIORITY:3
END:VTODO
END:VCALENDAR
+++ Nokia 9500 Calendar Example
BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VEVENT
UID:171
SUMMARY:Happy Hour
DTSTART:20060309T213000Z
DTEND:20060310T010000Z
X-EPOCAGENDAENTRYTYPE:APPOINTMENT
CLASS:PUBLIC
LOCATION:Deck
DCREATED:20060301T000000
LAST-MODIFIED:20060302T050800Z
PRIORITY:0
STATUS:NEEDS ACTION
END:VEVENT
END:VCALENDAR
++ 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:
for a in *.wbxml; do wbxml2xml -m 1 -i 4 -o basename $a .wbxml_conv.xml $a; done 2>/dev/null
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.