1
Oppaiden kehittäminen / Nokian puhelimen kontaktien ja kalenterin synronointi OpenSyncilla. [KESKEN]
« : 29.06.08 - klo:10.51 »
OpenSync
http://opensync.org/
Sainpa tällä jollain tavalla kännykkäni kontaktit synkronoitua.
Asennus
USB
Jos käytät usb-kaapelia kuten tässä, aseta sen oikeudet kohdilleen tämän ohjeen mukaan.
Testaus
Millä interfacella on SYNCML-SYNC. Kaapeli kiinni ja syötä komento:
Testataan yhteyden toimivuutta. Kontaktit pitäisi tulostua näin:
Synkronointi
Synkronointi plugineja löytyy näemmä ihan mukavasti.
kokeillaanpa synkronointia tiedostoihin.
Kännykän asetukset
Tiedostojen asetukset
Synkronoidaan
Jokainen numero näyttäisi vastaavan yhtä puhelimen kontaktia. Muokkaa jotain.
Synkronoidaan uudestaan.
Kurkkaa sitten kännykästä tuli muutos näkyviin.
http://opensync.org/
Sainpa tällä jollain tavalla kännykkäni kontaktit synkronoitua.
Asennus
Koodia: [Valitse]
$ sudo apt-get install opensync-plugin-syncml libsyncml-utils libsyncml0
USB
Jos käytät usb-kaapelia kuten tässä, aseta sen oikeudet kohdilleen tämän ohjeen mukaan.
Testaus
Millä interfacella on SYNCML-SYNC. Kaapeli kiinni ja syötä komento:
Koodia: [Valitse]
$ syncml-obex-client -u
Superuser privileges are required to access complete USB information.
Found 3 USB OBEX interfaces
Interface 0:
Manufacturer: Nokia
Product: Nokia E51
Interface description: SYNCML-SYNC
Interface 1:
Manufacturer: Nokia
Product: Nokia E51
Interface description: PC Suite Services
Interface 2:
Manufacturer: Nokia
Product: Nokia E51
Interface description: SYNCML-DM
Use '-u interface_number' to connect
Nollalla. Laita se siis -u vivun perään.Testataan yhteyden toimivuutta. Kontaktit pitäisi tulostua näin:
Koodia: [Valitse]
$ syncml-obex-client -u 0 --slow-sync text/x-vcard Contacts --identifier "PC Suite" --wbxml
Kalenteri:Koodia: [Valitse]
$ syncml-obex-client -u 0 --slow-sync text/x-vcalendar Calendar --identifier "PC Suite" --wbxml
Muistiinpanot:Koodia: [Valitse]
$ syncml-obex-client -u 0 --slow-sync text/plain Notes --identifier "PC Suite" --wbxml
Synkronointi
Synkronointi plugineja löytyy näemmä ihan mukavasti.
Koodia: [Valitse]
$ apt-cache search opensync-plugin
opensync-plugin-evolution - Evolution plugin for opensync
opensync-plugin-file - Opensync file plugin
opensync-plugin-google-calendar - Opensync Google Calendar plugin
opensync-plugin-irmc - IrMC plugin for opensync
opensync-plugin-kdepim - KDE plugin for opensync
opensync-plugin-palm - Opensync Palm plugin
opensync-plugin-palm-dev - Opensync Palm plugin (Development files)
opensync-plugin-syncml - Opensync SyncML plugin
kokeillaanpa synkronointia tiedostoihin.
Koodia: [Valitse]
$ sudo apt-get install opensync-plugin-file
Koodia: [Valitse]
$ msynctool --addgroup nokia
$ msynctool --addmember nokia syncml-obex-client
$ msynctool --addmember nokia file-sync
Kännykän asetukset
Koodia: [Valitse]
$ msynctool --configure nokia 1
Aukeaa editori. Muokkasin tiedoston tälläiseksi:Koodia: [Valitse]
<?xml version="1.0"?>
<config>
<!-- (Only for bluetooth) The bluetooth address if the bluetooth mode is selected -->
<bluetooth_address></bluetooth_address>
<!-- (Only for bluetooth) The bluetooth channel to use. `sdptool browse $MAC` to search for the correct channel -->
<bluetooth_channel></bluetooth_channel>
<!-- (Only for USB) The usb interface number of the SYNCML-SYNC target. use syncml-obex-client -u (you will need access to the USB raw device) to find it. -->
<interface>0</interface>
<!-- The string that the plugin will use to identify itself. Some devices need a special string here. -->
<identifier>PC Suite</identifier>
<!-- The syncml version to use: 0 for 1.0, 1 for 1.1 and 2 for 1.2 -->
<version>1</version>
<!-- if the plugin should use wbxml -->
<wbxml>1</wbxml>
<!-- The username to use. Leave empty to not require a username -->
<username></username>
<!-- the password for the username -->
<password></password>
<!-- sets the connection type to use. 5 means obex over usb, 2 means obex over bluetooth -->
<type>5</type>
<!-- If wbxml is enabled, defines wether the wbxml should use string tables -->
<usestringtable>0</usestringtable>
<!-- Never send ADD command, but send REPLACE (not needed normally) -->
<onlyreplace>0</onlyreplace>
<!-- Workaround around for mobile phones which only use local timestamps and _no_ UTC timestamps! -->
<onlyLocaltime>0</onlyLocaltime>
<!-- Sets the maximum allowed size in bytes of incoming messages (some device need this option set). Example: 10000 -->
<recvLimit>0</recvLimit>
<maxObjSize>0</maxObjSize>
<!-- The name of the contacts db. Must be the same as the phones sends -->
<contact_db>Contacts</contact_db>
<!-- The name of the calendar db. Must be the same as the phones sends -->
<calendar_db>Calendar</calendar_db>
<!-- The name of the note db. Must be the same as the phones sends -->
<note_db>Notes</note_db>
</config>
Tiedostojen asetukset
Koodia: [Valitse]
$ msynctool --configure nokia 2
Koodia: [Valitse]
<?xml version="1.0"?>
<config>
<!-- directory path for file-sync -->
<path>/home/tunnus/sync</path>
<!-- should care of subdirectories (TRUE or FALSE) -->
<recursive>FALSE</recursive>
</config>
Koodia: [Valitse]
$ mkdir /home/tunnus/sync
Synkronoidaan
Koodia: [Valitse]
$ msynctool --sync nokia
Koodia: [Valitse]
$ ls ~/sync
0 100 103 12 15 18 2 22 25 28 2-dupe-dupe 31 34 37 3-dupe 41 44 47 5 52 55 58 60 63 66 69 70 73 76 79 81 84 87 9 92 95 98
1 101 104 13 16 19 20 23 26 29 3 32 35 38 4 42 45 48 50 53 56 59 61 64 67 6-dupe 71 74 77 8 82 85 88 90 93 96 99
10 102 11 14 17 1-dupe 21 24 27 2-dupe 30 33 36 39 40 43 46 49 51 54 57 6 62 65 68 7 72 75 78 80 83 86 89 91 94 97
Jokainen numero näyttäisi vastaavan yhtä puhelimen kontaktia. Muokkaa jotain.
Synkronoidaan uudestaan.
Koodia: [Valitse]
$ msynctool --sync nokia
Kurkkaa sitten kännykästä tuli muutos näkyviin.