Michal Čihař - Blog Archives for Gammu

I should review better what I upload

Well I somehow expected it will happen to me when I started to use Debian experimental distribution, but now it really happened. I noticed that last Gammu upload went to unstable instead of experimental just when today updating my other development machine and I was surprised that Gammu is going to be updated. Well the version is not that bad, but it is far from being stable.

Anyway it is good for something - unstable users will do much more testing than experimental ones ;-).

Gammu test version 1.13.94

I just released new version of Gammu. It just adds compatibility with some Motorola phones (but still not enough to fully support them) and fixes some bugs. Full list of changes:

  • Fixed crash in wrong config handling (Debian bug #446781).
  • Initial support for Motorola SMS implementation (bug #408).

I expect this to be last release before next stable one - 1.14.0, so please give it some testing so that we can have a good release.

Incoming calls notifications

Wammu just got one of long wanted features - notification on incoming calls. It uses D-Bus and Desktop Notifications, so you are probably lost without some modern Linux desktop. The implementation was quite easy, if I would know that using notifications is so easy, I would have written this sooner :-).

So if you have phone connected to Wammu and somebody calls you, notification pops up and allows you to accept or reject the call. I doubt anybody needs more than this :-).

The next step will be SMS notifications, but those will be a bit more complicated.

Gammu test version 1.13.93

I just released new version of Gammu. It just adds compatibility with more OBEX phones by providing fallback to AT commands and index based IrMC access. Full list of changes:

  • Automatically fall back to AT commands when OBEX does not work.
  • Initial support for IrMC index access.
  • RunOnReceive is now also supported on Windows.
  • Handle correctly case when memory is full (OBEX) (bug #404).

PS: I also created Jabber conference room for Gammu, see Wammu support page for details.

Gammu test version 1.13.92

I just released new version of Gammu. This is simply bug fixing release, no major new features. Full list of changes:

  • Fixed handling of errors when saving SMS (bug #396).
  • Fixed number type detection.
  • Added support for Nokia 6070, thanks to Lúcio Corrêa.
  • Added flag -nopower to connection to handle cables with different handling of DTR/RTS signals.

Nokia cables

What does cryptic shortcut for different cables for different Nokia phones mean? This was always a bit confusing to me. Now I finally found some document which writes quite clearly, what all they do. Unfortunately for most readers of this blog, it is only in Czech language - Ovládání mobilního telefonu jednočipovým mikroprocesorem. However here is quick summary if somebody is interested:

MBUS

Single wire (+ ground) connection, usually used for servicing phone, but sometimes also exposes some functionality. Fixed baud rate at 9600. DTR and RTS usually used as power source, DTR should be low and RTS high.

FBUS

Two wire (+ ground) connection, used for user data. Variable baud rate (but usually 115200). DTR and RTS usually used as power source, DTR should be low and RTS high.

DAU-9 / DLR-3

Cables for both FBUS and MBUS, switching is usually done by toggling RTS or DTR signals (for DAU-9) or special AT command (for DLR-3). DLR-3 also additionally supports AT commands over FBUS lines.

DKU-5

This is basically DLR-3 cable with USB/RS232 converter, so it is first step of getting USB into phones.

DKU-2

This is for recent phones which directly support USB, it contains no logic, just wires for USB.

Gammu test version 1.13.91

I just released new version of Gammu. This is simply bug fixing release, no major new features. Full list of changes:

  • Fixed reading of empty calendar/todo/contacts/notes over OBEX (thanks to Gianni Ceccarelli).
  • Fixed overwriting of Java applications in Nokia phones (thanks to Martin Thierer, bug 382).
  • Fixed compilation with older PostgreSQL libraries.
  • Handle correcly internal phone errors in OBEX module.
  • Fixed crash on invalid config file (Debian bug #444046).
  • Better report errors when using default configuration.
  • Fix several buffer overflows in 6510 (thanks to Tobias Sunderdiek for debugging this).
  • Fixed crash on decoding messages with special numbering plans with long numbers (bug 281).
  • Command nokiaaddfile can now either keep or delete user data on uploading new application (thanks to Martin Thierer, bug 385).

Gammu test version 1.13.90

I just released new version of Gammu. Besides experimental support for Bluetooth on FreeBSD, this release is mostly about fixing found bugs. Full list of changes:

  • Fixed parsing of date/time reply from some broken AT phones.
  • Added support for Option GlobeTrotter.
  • Handle correctly when phone automatically saves message to different memory than we ask.
  • Fixed buffer overflows, thanks to Gentoo folks for noticing.
  • Detect when phone is waiting for phone code.
  • Added experimental support for Bluetooth on FreeBSD.
  • SMSD can execute programs on message receiving (thanks to zaf).
  • Allow to define Bluetooth channel in configuration.

I do not plan to introduce any new major features to upcoming stable 1.14.0, this should be only about stabilization - there are some regressions from past in SMS decoder on Windows, which should be really fixed, there are also some other bugs reported on SMS decoder, so I should probably finally get to this part of code, understand it and do what is needed to make it more mature.

Phone database cleanup

Gammu Phone Database grew into quite big size and there were quite a lot of duplicate or poor quality records. So I today decided to do some cleanup of data inside it. First step was figuring out duplicates. There were quite a lot of them and I could remove about 50 records without loosing information about any phone.

The quality issue is always harder. Some empty records really did not make a sense, so they're gone now. However some users really don't understand what some features mean, so there were quite a lot of phones being reported to support MMS and I'm pretty sure there is no code in Gammu for it :-). I went through their list and dropped almost half of phones there. Some records might have been useful in other way, but I can not verify what all was wrong with them.

Maybe I should add some basic checks when adding new entry to check such errors as MMS support for AT connection.

Gammu stable version 1.13.0

I just released new version of Gammu. There are no big changes since last testing release:

  • Fixed several crashes of 6510 driver.

For stable users there are tons of changes, most noticable is initial support for Sharp and Motorola phones, notes support for OBEX driver and various fixes to make compilation in Visual Studio possible.