Synchronizing Nokia E series with Fedora

I used to own a Nokia E61i and had several attempts to synchronize it with my computer, which of course runs Fedora. All were in vain, I never got to synchronize it. But after my Dad presented me with a E63 recently, I decided I had to get the synchronization done. Well how hard can it be, I thought, google it and I should be able to get some idea. And in fact it was pretty simple. These are the sites I referred:

http://ubuntuforums.org/showthread.php?t=260676

http://www.ugov.be/wiki/index.php?title=Ubuntu_with_Nokia_E65

http://pholog.de/2009/03/successful-sync-of-nokia-e51-with-lightning-via-opensync/

Most of these are for synchronizing the calendar to Evolution, google calendar, kde-pim and sunbird. Well I configured it for sunbird, actually Spicebird (which is built on thunderbird and lightening plugin, a better alternative to both). I will try to give instructions for most of the mentioned.

STEP 1: Installation of required Packages

As all the sites mentioned couple of packages have to be installed. Well on Fedora 11 it can all be “yummed”.

yum install multisync msynctool bluez libopensync libopensync-plugin*

I used

libopensync-plugin*

as there are several plugins each for google-calendar, evolution, kde-pim and the others. You can list them and see what you would like to use. As I configured it for sunbird I will first show how its done for the same.

yum install multisync msynctool bluez libopensync libopensync-plugin-sunbird

STEP 2: Determining the MAC Address

Once installed you can turn on the bluetooth in both the phone and computer. First find out the MAC address of the phone’s bluetooth device. Use:

hcitool scan

You should get an output similar to this

Scanning ...
00:26:00:31:71:37       Jeevs

STEP 3: Adding the plugins

Next we configure msynctool to identify the devices as in sunbird/spicebird as the first and nokia e63 as the second.

msynctool --addgroup nokiasun
           //any name you like
msynctool --addmember nokiasun sunbird-sync                       
msynctool --addmember nokiasun syncml-obex-client                  
          //(this is the setup for bluetooth)

Once the members are setup we need to configure them

STEP 4: Configuring the plugins

As we added sunbird-sync as the first member we configure it using

msynctool --configure nokiasun 1

This should open a vi editor with the following contents

<config>
<file default="1" path="FULL PATH OF THE ics CALENDAR FILE USED IN SUNBIRD/SPICEBIRD" />
</config>

Edit the file, filling in the actual path of the calendar file. Generally a .ics file.

Next is configuring the device

<?xml version="1.0"?>
<config>
 <!-- (Only for blue) The bluetooth address if the bluetooth mode is selected -->
 <bluetooth_address>ENTER THE BLUETOOTH MAC ADDRESS IN STEP 2</bluetooth_address>
 <!-- (Only for blue) The bluetooth channel to use (14 in this case) [x] -->
 <bluetooth_channel>10</bluetooth_channel>
 <!-- (Only for USB) The usb interface number of the SYNCML-SYNC target.
               use syncml-obex-client -u (as root!) 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
               (you want 2 here if you use channel 13) -->
 <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>2</type>
 <!-- If wbxml is enabled, defines wether the wbxml should use string tables -->
 <usestringtable>1</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 -->
 <!-- This needs to be set to 10000 here! (you send more data than the
                phone can handle and he returns an error otherwise).  -->
 <recvLimit>10000</recvLimit>
 <maxObjSize>0</maxObjSize>
 <!-- The name of the contacts db. Must be the same as the phones sends -->
 <contact_db></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></note_db>
</config>

The fields which are in bold are the ones you’d want to change.

STEP 5: Testing

msynctool --sync nokiasun

If every thing went right the synchronization should be fine. One thing to note is if you have tasks in the phone’s calendar the synchronization will not work for some reason. Let me know if you know a fix. If the connection to the phone does not work test the bluetooth channel in step 4. Find the channel using

sdptool browse <MAC ADDRESS>

Look for the channel in

Service Name: SyncMLClient

EXTRAS:

If you wish to configure it with other clients, in Step 3 instead of sunbird-sync use

evo2-sync for Evolution

kdepim-sync for KDE PIM

google-calendar for google calendar

The configurations would vary for each of them. For evolution it will be like this:

 <?xml version="1.0"?>
 <config>
 <address_path>file:///home/USERNAME/.evolution/addressbook/local/system</address_path>
 <calendar_path>file:///home/USERNAME/.evolution/calendar/local/system</calendar_path>
 </config>

For Google Calendar:

 <config>
       <url>http://www.google.com/calendar/feeds/USER@gmail.com/private/full</url>
       <username>USER@gmail.com</username>
       <password>PASSWORD</password>
 </config>

A graphical tool is available too. Its called Multisync-gui.

multisync-gui

The steps for synchronizing can be done using it too. Follow the same steps. Hope it works for you. Next task is to synchronize the contacts.

Advertisements
Synchronizing Nokia E series with Fedora

8 thoughts on “Synchronizing Nokia E series with Fedora

  1. You likely had better luck this time because, during the F11 cycle, we downgraded opensync from 0.3 (which doesn’t work) to 0.2 (which does) :). It’s also worth noting that some Nokia phones just don’t seem to play nice with SyncML. You can synchronize most of these by using the Gnokii plugin instead, which is actually easier to configure, but has some significant limitations (most obviously, it can’t sync the calendar).

  2. Jon Pritchard says:

    Does it have to be a local file that the calendar syncs to? I keep my ics calendar on a web server and access it via ftp in sunbird, I was wandering if this will effect the sync?

  3. So far it hasn’t worked using path=’ftp://..’ etc. perhaps there is a local cache in the sunbird directory that I can use as the filepath, that in turn will sync up correctly with my web server.

  4. Doesn’t appear to be working with a local .ics file either. Just stops at the following line “Member 1 of type sunbird-sync just sent all changes” don’t suppose you know of any other options or arguments to use do you? Thanks

  5. Jon Pritchard says:

    Finally got it to work with a local ics file. Uninstalled all opensync packages and deleted the .opensync folder in my home directory.

    Had a first good clean sync, now it runs really fast.

    Thanks for your guide. Will try a remote ics file later.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s