juillet
24
2009
Synchronisation Evolution et Nokia N95
 
Agenda, Contacts 
Popularité:  19 %
 

Nous allons voir comment synchroniser Evolution (Gnome) avec un mobile Nokia N95. Nous allons synchroniser les contacts et l’agenda. Je n’utiliserai pas d’interface graphique ici, même s’il existe un petit utilitaire pour configurer OpenSync, je reste en ligne de commande.

Installation

Installation de quelques paquets indispensable :

sudo apt-get install multisync-tools opensync-plugin-evolution opensync-plugin-irmc opensync-plugin-syncml opensyncutils

Configuration

Bluetooth

Nous allons maintenant configurer le Bluetooth. Commençons par récupérer l’id de notre périphérique. Il faut bien sur activer le Bluetooth sur le mobile.

hcitool scan
Scanning ...
        xx:xx:xx:xx:xx:xx        Fred

OpenSync

Nous allons commencer par créer un groupe Nokia, puis lui ajouter les plugins nécessaire :

msynctool --addgroup Nokia
msynctool --addmember Nokia evo2-sync
msynctool --addmember Nokia syncml-obex-client

Puis passons à la configuration

msynctool --configure Nokia 2

Voilà a quoi ressemble le fichier de configuration. Vous aurez normalement juste l’adresse Bluetooth et l’identifiant a modifier.

<?xml version="1.0"?>
<config>
 <!-- (Only for bluetooth) The bluetooth address if the bluetooth mode is selected -->
 <bluetooth_address>XX:XX:XX:XX:XX:XX</bluetooth_address>

 <!-- (Only for bluetooth) The bluetooth channel to use. `sdptool browse $MAC` to search for the correct channel -->
 <bluetooth_channel>10</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>

 <!-- 5 = Connection USB, 2 = connection Bluetooth -->
 <type>2</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>10000</recvLimit>

 <maxObjSize>10000</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>

Synchronisation

Manuellement

Il vous reste qu’a lancer la synchronisation avec :

msynctool --sync Nokia

Synchronisation toutes les heures avec crontab

crontab -e
0 * * * * msynctool --sync Nokia >/dev/null 2>&1

Personnellement j’ai eu des problèmes avec la synchronisation des Notes. J’ai du désactiver les Notes sur mon mobile dans la rubrique "Sync".

« Script création paquets sous Ubuntu - Nautilus et la navigation réseau »

RSS forum1 Commentaire(s)

# Par Kara Hilson le 13 juillet à 06:23

J’ai essay é de trouver des moyens afin d’intégrer la programmation des différents types de plates-formes qui utilisent les téléphones cellulaires. Nokia utilise Symbian dans tous leurs modèles, cet article sera vraiment d’un grand secours quand je donne ma discussion dans ma classe.

Répondre à ce message


RSS forum
 

Ajouter un commentaire

Un message, un commentaire ?
  • (Pour créer des paragraphes, laissez simplement des lignes vides.)

Qui êtes-vous ? (optionnel)