» tagged pages
» logout
gammu
Return to gammu

Gammu blog

(or Cancel)

(Editing anonymously: to be credited for your changes, login or register a new account)

other page actions:

Tags Applied to this Topic

1 person has tagged this page:

Tuesday, July 22, 2008

Phone synchronisation, finally

One of long standing things on my todo list was to make synchronisation work from my cell phone (Sony-Ericsson K750i) to some PIM application on Linux side (as a GNOME user Evolution is the natural choice). I tried it several times but it never actually worked. Today I gave it yet another try and I finally succeeded on first attempt :-).

As a first step I just wanted to make a backup of all things. Gammu can do it quite well and it's the tool I trust for this purpose:

gammu backup /tmp/phonebook.vcf
gammu backup /tmp/calendar.vcs

Now it's time to play with OpenSync. We will use setup guide and SyncML guide as a starting point. As I had in past problems with both sides - both phone and Evolution failed with some random errors, I wanted to go step by step. So I started with setting up phone to files synchronisation:

msynctool --addgroup file2phone
msynctool --addmember file2phone file-sync
msynctool --addmember file2phone syncml-obex-client

Now we need to configure file storage, just tell it where it should store the data:

msynctool --configure file2phone 1

And change path in your editor to something like:

<?xml version="1.0"?>
<config>
  <!-- directory path for file-sync -->
  <path>/home/foo/phone-backup/</path>
<!-- should care of subdirectories (TRUE or FALSE) --> <recursive>FALSE</recursive> </config>

Now the more tricky part comes, we need to set up phone end:

msynctool --configure file2phone 2

Fortunately we can use example from the SyncML guide and just fill in Bluetooth address (you can get it using hcitool scan) and channel (sdptool browse 00:b0:0b:fa:ce:00):

<?xml version="1.0"?>
<config>
  <bluetooth_address>00:b0:0b:fa:ce:00</bluetooth_address>
  <bluetooth_channel>7</bluetooth_channel>
  <identifier>Sony Ericss</identifier>
  <version>1</version>
  <wbxml>1</wbxml>
  <username></username>
  <password></password>
  <type>2</type>
  <usestringtable>0</usestringtable>
  <onlyreplace>0</onlyreplace>
  <onlyLocaltime>0</onlyLocaltime>
  <recvLimit>0</recvLimit>
  <maxObjSize>0</maxObjSize>
  <contact_db>Contacts</contact_db>
  <calendar_db>Agenda</calendar_db>
  <note_db>Notes</note_db>
</config>

And now we should be able to synchronise whole phonebook from phone to selected directory:

msynctool --sync file2phone

Okay, this works, let's try more complicated thing - include Evolution in the chain. The steps are the same, config file for phone is the same, Evolution plugin has sane defaults you usually don't have to touch:

msynctool --addgroup phone2evo
msynctool --addmember phone2evo evo2-sync
msynctool --addmember phone2evo syncml-obex-client
msynctool --configure phone2evo 1
msynctool --configure phone2evo 2

But now comes the tricky thing - Sony-Ericsson phones usually have something broken around notes (or it is broken in OpenSync, I don't care, simply synchronisation fails without this step) and we have to avoid synchronisation of them. This can be done by changing filter file in group we've created above (usually in file ~/.opensync-0.22/group2/filter.conf):

<?xml version="1.0"?>
<filter>
  <note/>
</filter>

And finally we can start the synchronisation and it should work:

msynctool --sync phone2evo

You can also GUI multisync0.90 to do the configuration and start synchronisation, but it is not much different, you also still have to edit XML files.

Tuesday, July 22, 2008

Wammu 0.28

I just released version 0.28 of Wammu. This release fixes various problems found by users. Full list of changes:

  • Fixed freeze while searching for Bluetooth devices.
  • Fixed guided configuration of Bluetooth devices (no more complains about not existing device).
  • Fixed saving of backups to folder with non ASCII names.
  • Validation is less strict and allows hopefully all number.

This release also comes with binary for Windows with embedded Gammu 1.20.0.

Sunday, May 11, 2008

Wammu 0.27

I just released version 0.27 of Wammu. This release fixes various problems found by users. Full list of changes:

  • Do not fail if phone does not support call notifications.
  • Improved handling of empty config file.
  • Lot of translation updates.
  • Fix compatibility with some IMAP servers.

This release also comes with binary for Windows with embedded Gammu 1.20.0.

Saturday, May 10, 2008

python-gammu 0.26

New version of python-gammu has been just released. It improves compatibility with Python 2.5 and brings compatibility with Gammu 1.20.0. Full list of changes:

  • Compatibility with current gammu.
  • Improved compatibility with Python 2.5.

Download from usual place: http://cihar.com/gammu/python/

Saturday, May 10, 2008

Gammu stable version 1.20.0

Good news everyone, new stable Gammu release is out. Since 1.19.91 it brings only few small fixes in OBEX and EMS, but there is quite big list of changes compared to 1.19.0:

  • Do not crash on EMS messages with no text (bug #612).
  • Fixed reading of OBEX files (bug #614).
  • Fixed decoding of Nokia messages (bug #527).
  • Fix handling of UTF8 charset with some Motorola phones.
  • Identify Motorola V635.
  • Set again charset in Motorola phones after changing AT mode.
  • Automatically enable OBEX for Motorola phones.
  • Fix searching of correct Bluetooth channel.
  • Improved SMSD error messages.
  • Fix SMS listing when phone was in text mode (bug #584).
  • Fix compilation when WCONTINUED/WIFCONTINUED is not defined.
  • Fixed listing SMS messages from AT phones in text mode (bug #584).
  • Added smscgi daemon by "Kamanashis Roy Shuva" kamanashisroy@gmail.com.
  • Cache once read messages to avoid reading them again (bug #481).

You can download from usual place: http://cihar.com/gammu/.

Monday, May 05, 2008

Gammu test version 1.19.91

Next testing version of Gammu was just born. It brings only small amount of fixes, but most users of recent Nokia phones will be pleased that long outstanding bug with SMS decoding has been fixed. Full list of changes:

  • Fixed decoding of Nokia messages (bug #527).

You can download from usual place: http://cihar.com/gammu/, Debian users can get packages from experimental.

Wednesday, April 23, 2008

Gammu test version 1.19.90

New Gammu testing version is finally out. This time it took much longer than usual and it contains some important fixes for messages and AT driver. Full list of changes:

  • Fix handling of UTF8 charset with some Motorola phones.
  • Identify Motorola V635.
  • Set again charset in Motorola phones after changing AT mode.
  • Automatically enable OBEX for Motorola phones.
  • Fix searching of correct Bluetooth channel.
  • Improved SMSD error messages.
  • Fix SMS listing when phone was in text mode (bug #584).
  • Fix compilation when WCONTINUED/WIFCONTINUED is not defined.
  • Fixed listing SMS messages from AT phones in text mode (bug #584).
  • Added smscgi daemon by "Kamanashis Roy Shuva" kamanashisroy@gmail.com.
  • Cache once read messages to avoid reading them again (bug #481).

You can download from usual place: http://cihar.com/gammu/, Debian users can get packages from experimental.

Wednesday, March 26, 2008

Don't be impatient

I handle bug reports and email communication as soon as possible, but it does not mean that it may take month or even more to get reply. I'm not working full time on my free software projects, I do it only in my free time. Besides this I have regular job and I also have a real life with another hobbies.

So if you wrote me something, just try to be patient, sending another emails to urge your issue won't help anybody. I will just have more unread mail to process until I get to real work.

Saturday, March 08, 2008

Wammu for Windows is back

This week I finally realized where problem with random crashes in Wammu and python-gammu lies - python-gammu was using two version of C library - mscvrt.dll and mscvr71.dll. First one came from Gammu and second one from Python. Starting with 1.19.0, Gammu is built with mscvr71.dll and random crashes are gone. Any tester did not report problems with Windows binary, so I decided to make it finally an official release.

So after year or more Windows users can finally use up to date Wammu version! Fortunately I can produce this version without even touching Windows. Thanks to tools such as MinGW and Wine, everything from compiling to generating installer can be scripted and done automatically on Linux!

So Windows users can now also download current version from http://wammu.eu/download/, enjoy it.

Wednesday, March 05, 2008

python-gammu 0.25

New version of python-gammu has been just released. It fixes annoying problem with reporting wrong Gammu version and brings compatibility with Gammu 1.19.0. Full list of changes:

  • Compatibility with current gammu.
  • Fixed Gammu version reported by python-gammu.

Download from usual place: http://cihar.com/gammu/python/

Wednesday, March 05, 2008

Gammu stable version 1.19.0

Good news everyone, new stable Gammu release is out. Since 1.18.92 it brings only few small fixes in build system, but there is quite big list of changes compared to 1.18.0:

  • Add option to disable compiled in protection.
  • Fixed detection of PostgreSQL.
  • Improve debug messages when connecting to phone (bug #508).
  • Fixed handling of some charsets in AT engine (bug #525).
  • Identify more Nokia phones (thanks to Iván Gabriel).
  • Fixed regression with DKU2 cables on Windows (bug #533).
  • Better compatibility with iCalendar files (bug #538).
  • Do not link with irprops.lib on Windows.
  • Various MSVC compilation fixes.
  • Improved AT model parsing and added tests.
  • Fixed possible crash in reading SMS from AT phones (bug #515).
  • Proper fall back to automatic model when user enters wrong one.
  • Added identification of several phones.
  • Fixed reading of messages from AT phones without ME memory.
  • Improve charset detection on Motorola phones (bug #522).

You can download from usual place: http://cihar.com/gammu/.

Tuesday, March 04, 2008

Wammu 0.26

I just released version 0.26 of Wammu. This release fixes various problems found by users. Full list of changes:

  • Various attempts to make Windows version back to usable state, but it is not ready yet as there are quite random crashes in python-gammu on Windows. Anybody with knowledge of python modules on Windows who is willing to help is welcome.
  • Dropped GNOME Bluetooth (btctl) support, it crashes too often.
  • Fix icons size to be all 16x16.
  • Fixed crash when D-Bus can not launch notification service.

There is still no working binary for Windows. I don't have time and environment for maintaining them. Volunteers are welcome!

Monday, February 25, 2008

Gammu test version 1.18.91

New Gammu testing version is out. This time release period is a bit longer than usual, mostly because my moving back to Prague. 1.18.91 again only fixes some bugs:

  • Improve debug messages when connecting to phone (bug #508).
  • Fixed handling of some charsets in AT engine (bug #525).
  • Identify more Nokia phones (thanks to Iván Gabriel).
  • Fixed regression with DKU2 cables on Windows (bug #533).

You can download from usual place: http://cihar.com/gammu/.

PS: Debian users can get packages from experimental.

Tuesday, February 05, 2008

Gammu test version 1.18.90

New Gammu testing version is out. This is mostly bug fixing release, especially with lot of tweaks for Windows build and for AT driver. Full list of changes:

  • Do not link with irprops.lib on Windows.
  • Various MSVC compilation fixes.
  • Improved AT model parsing and added tests.
  • Fixed possible crash in reading SMS from AT phones (bug #515).
  • Proper fall back to automatic model when user enters wrong one.
  • Added identification of several phones.
  • Fixed reading of messages from AT phones without ME memory.
  • Improve charset detection on Motorola phones (bug #522).

You can download from usual place: http://cihar.com/gammu/.

PS: Debian users can get packages from experimental.

Thursday, January 31, 2008

Gammu stable version 1.18.0

Good news everyone, first stable Gammu release in this year is out. Since 1.17.92 only few small fixes in SMS decoding and AT engine did happen, but there is quite big list of changes compared to 1.17.0:

  • Fixed decoding of an empty SMS.
  • Fixed some mistakes in API documentation.
  • Fixed compilation under MS Visual C++ Express.
  • Various small fixes if AT driver.
  • Add simple shell script to generate JAD file from JAR.
  • Added support for adding memory entries to 6510.
  • Phone features now can be defined in configuration, so there is no need to modify common/gsmphones.c for testing different settings.
  • Config file loading behaves more consistent in lookup. In some cases it can now find different configuration file.
  • Fixed crash when there are too many messages (bug #466).
  • Fixed crash when printing messages on Windows (bug #476).
  • Do not ask phone for IMEI so often (bug #480).
  • No need to set LD_LIBRARY_PATH for tests.
  • Properly wait for SMSD child processes (bug #486).

You can download from usual place: http://cihar.com/gammu/.

Tuesday, January 22, 2008

Gammu test version 1.17.92

New Gammu testing version is out. This is mostly bug fixing release, but you should be able to do addnew with 6510 driver now. Full list of changes:

  • Fixed some mistakes in API documentation.
  • Fixed compilation under MS Visual C++ Express.
  • Various small fixes if AT driver.
  • Add simple shell script to generate JAD file from JAR.
  • Added support for adding memory entries to 6510.

You can download from usual place: http://cihar.com/gammu/.

Tuesday, January 22, 2008

Gammu test version 1.17.91

New Gammu testing version is out. Besides fixing there is important feature for people finding proper flags for not supported phones - you can do it now without recompiling Gammu! Full list of changes:

  • Phone features now can be defined in configuration, so there is no need to modify common/gsmphones.c for testing different settings.
  • Config file loading behaves more consistent in lookup. In some cases it can now find different configuration file.

You can download from usual place: http://cihar.com/gammu/.

Tuesday, January 22, 2008

One year under my reign

One year ago, I took over Gammu maintenance. I think it time to summarize a bit what happened during that year. There were definitely good and bad releases in that time (especially strictness introduced to SMS parser in 1.13.0 took quite a lot of releases to fix various bugs), but generally I things Gammu is moving in a good way.

What I would definitely call positive:

  • Added build time testing. This helps a lot to catch regressions. However more tests could be done.
  • I cleaned up lot of code parts so that Gammu is now more resistant to bad data and should not crash in these cases.
  • Added lot of API documentation, most API functions are now fully documented.
  • More often testing releases - I try to release every week. Sometimes changes are huge, sometimes just few bugfixes. This makes Gammu occur among most vital projects on freshmeat.net.
  • Quite complete IrMC implementation together with AT/OBEX switching gives support for quite a big range of phones today.
  • SMSD got PostgreSQL support.
  • AT+CMGL support for reading messages gives us support for many phones which were not supported in the past.
  • I started to use OpenSuse Build Service and Ubuntu PPA to provide up to date binaries for many distributions.

There are also some bad things:

  • Nobody cares about build under MSVC. It is broken sometimes and I try to fix issues, but no constant testing of this causes problems.
  • Almost no new features for Nokia phones. I simply lack time to do anything more than bug fixing here.
  • Still bad support for Symbian phones. Some developer interested in this area is definitely needed. But probably OpenSync with SyncML is enough for most people.
  • The changes I made to the SMS parser broke too much things, I should have payed more attention to this change. But now things seem to be worked out.

Some statistics of last year (based on Ohloh):

ValueDec 2006Dec 2007DifferenceCode LinesComment LinesComment Ratio
90,540101,687+12%
9,20415,336+67%
9.2%13.0%+30%

All these changes were made in approximate 1200 commits.

I hope next year will not be worse :-).

Wednesday, January 09, 2008

Gammu test version 1.17.90

New Gammu testing version is out. This time there are no exciting new features, I still continue in bug fixing mode and cleaning up things. Full list of changes:

  • Fixed crash when there are too many messages (bug #466).
  • Fixed crash when printing messages on Windows (bug #476).
  • Do not ask phone for IMEI so often (bug #480).
  • No need to set LD_LIBRARY_PATH for tests.
  • Properly wait for SMSD child processes (bug #486).

You can download from usual place: http://cihar.com/gammu/.

Wednesday, December 19, 2007

Gammu stable version 1.17.0

I wanted to make 1.16.0 last release this year, but unfortunately one bug preventing reading of all SMS messages from some AT phones sneaked in, so I decided to make another quick release. Changelog is really short:

  • Fixed reading of messages from AT phones using CMGL.

Other change is that I started to produce additional binary build for Windows - it does not use any external libraries (so no MySQL, PostgreSQL or Gettext support) and links statically. So you can just copy single binary and it should work anywhere.

You can download from usual place: http://cihar.com/gammu/

Page 1 | Next >>
Username:
Password:
(or Cancel)