platform/upstream/ofono.git
15 years agoMove create_dirs to storage.c, add file read/write utilities
Andrzej Zaborowski [Sat, 5 Sep 2009 01:12:19 +0000 (03:12 +0200)]
Move create_dirs to storage.c, add file read/write utilities

15 years agoRead messages left over in ME storage on startup.
Andrzej Zaborowski [Fri, 4 Sep 2009 14:48:03 +0000 (16:48 +0200)]
Read messages left over in ME storage on startup.

On modems that don't support +CMT (or for class 2 SMSes) the messages are
stored in the modem and then read and deleted from there in two separate
steps with no warranty that deletion succeeds or (more likely) power is
cut before the deletion happens.  Over time the memory may become full
and if we don't want to deal with this condition we need to check on
startup if there are messages we haven't deleted.

We can't differentiate between those messages and those the user already
had on the SIM / modem before installing ofono or switching phones, so we
might want to deliver messages with REC READ status with some kind of
indication that these are potentially old so the UI doesn't emit spurious
alerts.  We don't do this now and just deliver as usual.

15 years agoDo supported dialect detection in sms.c
Denis Kenzior [Tue, 8 Sep 2009 17:45:04 +0000 (12:45 -0500)]
Do supported dialect detection in sms.c

15 years agoRefactor SMS language dialect encoding / decoding
Denis Kenzior [Tue, 8 Sep 2009 17:42:52 +0000 (12:42 -0500)]
Refactor SMS language dialect encoding / decoding

- Introduce new enum gsm_dialect instead of unsigned char arguments
- Use ISO639 3 letter codes for conversion tables
- Use a single lookup table instead of 4 different ones

15 years agoFix style issues
Denis Kenzior [Tue, 8 Sep 2009 14:42:29 +0000 (09:42 -0500)]
Fix style issues

15 years agoUse SMS national language identifier when decoding
Aki Niemi [Fri, 4 Sep 2009 14:36:54 +0000 (17:36 +0300)]
Use SMS national language identifier when decoding

Adds support for decoding SMSs encoded using national language single
shift and locking shift tables.

15 years agoAdd unit test for Turkish variant
Aki Niemi [Fri, 4 Sep 2009 14:35:43 +0000 (17:35 +0300)]
Add unit test for Turkish variant

Also fixes an error in the default table unit test.

15 years agoAdd support for national language variants
Aki Niemi [Mon, 7 Sep 2009 11:50:03 +0000 (14:50 +0300)]
Add support for national language variants

Add API for supporting character conversion using national language
variants. Also, add conversion tables for Turkish, Spanish and
Portuguese, and fix the default table. The lookup algorithms were
tweaked to support multiple tables.

15 years agoAdd option to phonesim to run with or without multiplexer
Marcel Holtmann [Tue, 8 Sep 2009 07:24:52 +0000 (09:24 +0200)]
Add option to phonesim to run with or without multiplexer

15 years agoAdd modem properties for booleans
Marcel Holtmann [Tue, 8 Sep 2009 07:12:19 +0000 (09:12 +0200)]
Add modem properties for booleans

15 years agoUpdate test program for GAtMux API
Marcel Holtmann [Tue, 8 Sep 2009 07:05:56 +0000 (09:05 +0200)]
Update test program for GAtMux API

15 years agoHook up GAtMux with GSM 07.10 implementation
Marcel Holtmann [Tue, 8 Sep 2009 07:04:11 +0000 (09:04 +0200)]
Hook up GAtMux with GSM 07.10 implementation

15 years agoRemove AT command and re-init support from GSM 07.10
Marcel Holtmann [Tue, 8 Sep 2009 06:51:46 +0000 (08:51 +0200)]
Remove AT command and re-init support from GSM 07.10

15 years agoUse NULL for init of function callbacks
Marcel Holtmann [Tue, 8 Sep 2009 06:39:51 +0000 (08:39 +0200)]
Use NULL for init of function callbacks

15 years agoExport the GSM 07.10 status flags
Marcel Holtmann [Tue, 8 Sep 2009 06:26:48 +0000 (08:26 +0200)]
Export the GSM 07.10 status flags

15 years agoFix g_at_chat_unref from command callback
Denis Kenzior [Tue, 8 Sep 2009 04:20:29 +0000 (23:20 -0500)]
Fix g_at_chat_unref from command callback

The resources were being used after being freed in this case

15 years agoAdd a few more comments to the calypso plugin
Denis Kenzior [Tue, 8 Sep 2009 01:15:49 +0000 (20:15 -0500)]
Add a few more comments to the calypso plugin

15 years agoAdd more calypso specific quirks when using phonesim
Marcel Holtmann [Tue, 8 Sep 2009 01:14:46 +0000 (03:14 +0200)]
Add more calypso specific quirks when using phonesim

15 years agoMark some properties as integer so they get printed properly
Marcel Holtmann [Tue, 8 Sep 2009 01:04:51 +0000 (03:04 +0200)]
Mark some properties as integer so they get printed properly

15 years agoAdd support for using phonesim and calypso for testing
Marcel Holtmann [Tue, 8 Sep 2009 01:01:52 +0000 (03:01 +0200)]
Add support for using phonesim and calypso for testing

15 years agoUpdate GSM 07.10 unit testing
Marcel Holtmann [Sun, 6 Sep 2009 06:35:34 +0000 (08:35 +0200)]
Update GSM 07.10 unit testing

15 years agoUpdate test script with more property tweaks
Marcel Holtmann [Sun, 6 Sep 2009 05:35:11 +0000 (07:35 +0200)]
Update test script with more property tweaks

15 years agoAdd functions for disconnect and debug handling
Marcel Holtmann [Sat, 5 Sep 2009 22:31:26 +0000 (00:31 +0200)]
Add functions for disconnect and debug handling

15 years agoIntegrate the multiplexer into the AT chat library
Marcel Holtmann [Sat, 5 Sep 2009 22:25:16 +0000 (00:25 +0200)]
Integrate the multiplexer into the AT chat library

15 years agoUse NULL instead of 0 for pointer arguments
Marcel Holtmann [Sat, 5 Sep 2009 22:14:21 +0000 (00:14 +0200)]
Use NULL instead of 0 for pointer arguments

15 years agoFirst round of coding style updates for GSM 07.10 implementation
Marcel Holtmann [Sat, 5 Sep 2009 22:08:53 +0000 (00:08 +0200)]
First round of coding style updates for GSM 07.10 implementation

15 years agoAdd skeleton for AT multiplexer API
Marcel Holtmann [Sat, 5 Sep 2009 09:52:31 +0000 (11:52 +0200)]
Add skeleton for AT multiplexer API

15 years agoAdd unit testing tool for GSM 07.10 multiplexer
Marcel Holtmann [Sat, 5 Sep 2009 05:46:50 +0000 (07:46 +0200)]
Add unit testing tool for GSM 07.10 multiplexer

15 years agoAdd missing HAVE_CONFIG_H checks
Marcel Holtmann [Sat, 5 Sep 2009 05:36:38 +0000 (07:36 +0200)]
Add missing HAVE_CONFIG_H checks

15 years agoUpdate copyright and license details for GSM 07.10 implementation
Marcel Holtmann [Sat, 5 Sep 2009 05:30:18 +0000 (07:30 +0200)]
Update copyright and license details for GSM 07.10 implementation

15 years agoEnable compilation of GSM 07.10 code
Marcel Holtmann [Sat, 5 Sep 2009 05:25:31 +0000 (07:25 +0200)]
Enable compilation of GSM 07.10 code

15 years agoFix previous casting removal fix
Marcel Holtmann [Sat, 5 Sep 2009 05:22:59 +0000 (07:22 +0200)]
Fix previous casting removal fix

15 years agoRemove another unneeded cast
Marcel Holtmann [Sat, 5 Sep 2009 05:21:45 +0000 (07:21 +0200)]
Remove another unneeded cast

15 years agoUse unsigned char array for buffer and remove char casting
Marcel Holtmann [Sat, 5 Sep 2009 05:18:12 +0000 (07:18 +0200)]
Use unsigned char array for buffer and remove char casting

15 years agoMake gsm0710_compute_crc and gsm0710_send_frame private functions
Marcel Holtmann [Sat, 5 Sep 2009 05:09:46 +0000 (07:09 +0200)]
Make gsm0710_compute_crc and gsm0710_send_frame private functions

15 years agoFix weird casting for callback execution
Marcel Holtmann [Sat, 5 Sep 2009 05:02:56 +0000 (07:02 +0200)]
Fix weird casting for callback execution

15 years agoFix mixed declarations and code
Marcel Holtmann [Sat, 5 Sep 2009 04:59:36 +0000 (06:59 +0200)]
Fix mixed declarations and code

15 years agoImport GSM 07.10 implementation from Qtopia
Marcel Holtmann [Sat, 5 Sep 2009 04:57:11 +0000 (06:57 +0200)]
Import GSM 07.10 implementation from Qtopia

15 years agoUpdate modem configuration parameter parsing for generic AT plugin
Marcel Holtmann [Sat, 5 Sep 2009 02:48:08 +0000 (04:48 +0200)]
Update modem configuration parameter parsing for generic AT plugin

15 years agoFix unused variable warning
Denis Kenzior [Sat, 5 Sep 2009 01:19:50 +0000 (20:19 -0500)]
Fix unused variable warning

15 years agoUpdate calypso modem driver
Denis Kenzior [Sat, 5 Sep 2009 01:17:38 +0000 (20:17 -0500)]
Update calypso modem driver

Use calypso voicecalls driver

15 years agoAdd calypso voicecalls driver
Denis Kenzior [Sat, 5 Sep 2009 01:17:29 +0000 (20:17 -0500)]
Add calypso voicecalls driver

15 years agoSome modems don't return from ATD until connected
Denis Kenzior [Sat, 5 Sep 2009 01:16:30 +0000 (20:16 -0500)]
Some modems don't return from ATD until connected

Yet they send progress indications all the way up to connected, which
breaks the current logic.

15 years agoDon't emit disconnect reason if unknown
Denis Kenzior [Sat, 5 Sep 2009 01:16:06 +0000 (20:16 -0500)]
Don't emit disconnect reason if unknown

15 years agoFor incoming call case, send hangup
Denis Kenzior [Sat, 5 Sep 2009 01:15:18 +0000 (20:15 -0500)]
For incoming call case, send hangup

CHLD=1X doesn't work for incoming calls on some devices.  This is
more portable

15 years agoFix distcheck
Denis Kenzior [Fri, 4 Sep 2009 20:57:44 +0000 (15:57 -0500)]
Fix distcheck

15 years agoRename at.h to atmodem.h
Denis Kenzior [Fri, 4 Sep 2009 19:05:15 +0000 (14:05 -0500)]
Rename at.h to atmodem.h

15 years agoBreak common at utilities to atutils.c/.h
Denis Kenzior [Fri, 4 Sep 2009 19:01:32 +0000 (14:01 -0500)]
Break common at utilities to atutils.c/.h

15 years agoRemove unused declaration
Denis Kenzior [Fri, 4 Sep 2009 18:50:33 +0000 (13:50 -0500)]
Remove unused declaration

15 years agoRemove unused structure
Denis Kenzior [Fri, 4 Sep 2009 18:49:44 +0000 (13:49 -0500)]
Remove unused structure

15 years agoMake calypso plugin use the permissive parser
Denis Kenzior [Fri, 4 Sep 2009 18:27:37 +0000 (13:27 -0500)]
Make calypso plugin use the permissive parser

15 years agoMake G1 driver use the permissive parser
Denis Kenzior [Fri, 4 Sep 2009 18:26:12 +0000 (13:26 -0500)]
Make G1 driver use the permissive parser

15 years agoAdd GSM Permissive parser
Denis Kenzior [Fri, 4 Sep 2009 18:25:30 +0000 (13:25 -0500)]
Add GSM Permissive parser

15 years agoAdd plugin for generic AT testing modem driver
Marcel Holtmann [Sat, 5 Sep 2009 01:01:02 +0000 (03:01 +0200)]
Add plugin for generic AT testing modem driver

15 years agoAdd example modem configuration for TI Calypso based devices
Marcel Holtmann [Fri, 4 Sep 2009 17:08:41 +0000 (19:08 +0200)]
Add example modem configuration for TI Calypso based devices

15 years agoFix style issues
Denis Kenzior [Fri, 4 Sep 2009 16:57:41 +0000 (11:57 -0500)]
Fix style issues

15 years agoMake sure modemconf handles calypso driver
Denis Kenzior [Fri, 4 Sep 2009 04:06:43 +0000 (23:06 -0500)]
Make sure modemconf handles calypso driver

15 years agoAdd calypso plugin
Denis Kenzior [Fri, 4 Sep 2009 04:06:12 +0000 (23:06 -0500)]
Add calypso plugin

15 years agoAdd quirk for network-registration for calypso
Denis Kenzior [Fri, 4 Sep 2009 04:05:18 +0000 (23:05 -0500)]
Add quirk for network-registration for calypso

Support calypso-specific AT%CSQ notifications

15 years agoAdd unquoted string capability
Denis Kenzior [Fri, 4 Sep 2009 04:03:42 +0000 (23:03 -0500)]
Add unquoted string capability

This is completely broken according to the standard, but some vendors
use this in their "special" commands.

15 years agoGet rid of stupid debug message
Denis Kenzior [Thu, 3 Sep 2009 20:31:25 +0000 (15:31 -0500)]
Get rid of stupid debug message

15 years agoAdd support for SIM atom to HSO driver
Marcel Holtmann [Thu, 3 Sep 2009 17:13:40 +0000 (10:13 -0700)]
Add support for SIM atom to HSO driver

15 years agoAdd support for SIM atom to MBM driver
Marcel Holtmann [Thu, 3 Sep 2009 17:07:20 +0000 (10:07 -0700)]
Add support for SIM atom to MBM driver

15 years agoAdd basic support for Option HSO based devices
Marcel Holtmann [Thu, 3 Sep 2009 08:10:40 +0000 (01:10 -0700)]
Add basic support for Option HSO based devices

15 years agoAdd basic support for Novatel based devices
Marcel Holtmann [Thu, 3 Sep 2009 07:50:47 +0000 (00:50 -0700)]
Add basic support for Novatel based devices

15 years agoAdd basic support for Huawei based devices
Marcel Holtmann [Thu, 3 Sep 2009 07:22:06 +0000 (00:22 -0700)]
Add basic support for Huawei based devices

15 years agoAdd Ericsson MBM device detection to udev plugin
Marcel Holtmann [Thu, 3 Sep 2009 06:49:52 +0000 (23:49 -0700)]
Add Ericsson MBM device detection to udev plugin

15 years agoAdd udev rules to identify modem driver
Marcel Holtmann [Thu, 3 Sep 2009 05:21:42 +0000 (22:21 -0700)]
Add udev rules to identify modem driver

15 years agoUpdate AUTHORS file with ones we missed
Denis Kenzior [Thu, 3 Sep 2009 04:32:34 +0000 (23:32 -0500)]
Update AUTHORS file with ones we missed

15 years agoRelease 0.4 0.4
Marcel Holtmann [Thu, 3 Sep 2009 03:36:27 +0000 (20:36 -0700)]
Release 0.4

15 years agoFix some minor issues with storage directory
Marcel Holtmann [Thu, 3 Sep 2009 03:11:30 +0000 (20:11 -0700)]
Fix some minor issues with storage directory

15 years agoSome minor coding style cleanups for G1 plugin
Marcel Holtmann [Thu, 3 Sep 2009 02:59:19 +0000 (19:59 -0700)]
Some minor coding style cleanups for G1 plugin

15 years agoParse and use Address and Port options from modem.conf
Marcel Holtmann [Thu, 3 Sep 2009 02:48:02 +0000 (19:48 -0700)]
Parse and use Address and Port options from modem.conf

15 years agoFixing missing vendor.h in distribution
Marcel Holtmann [Thu, 3 Sep 2009 02:40:17 +0000 (19:40 -0700)]
Fixing missing vendor.h in distribution

15 years agoParse and use Device option from modem.conf
Marcel Holtmann [Thu, 3 Sep 2009 02:37:55 +0000 (19:37 -0700)]
Parse and use Device option from modem.conf

15 years agoRemove generic_at plugin
Marcel Holtmann [Thu, 3 Sep 2009 02:30:21 +0000 (19:30 -0700)]
Remove generic_at plugin

15 years agoFix some broken DOS newline messup
Marcel Holtmann [Thu, 3 Sep 2009 02:27:47 +0000 (19:27 -0700)]
Fix some broken DOS newline messup

15 years agoUpdate the modem.conf example one more time
Marcel Holtmann [Thu, 3 Sep 2009 02:24:09 +0000 (19:24 -0700)]
Update the modem.conf example one more time

15 years agoRemove the async TTY open helper and just use a blocking one
Marcel Holtmann [Thu, 3 Sep 2009 02:18:41 +0000 (19:18 -0700)]
Remove the async TTY open helper and just use a blocking one

15 years agoG1: Add an SMS quirk for CNMI mode
Andres Salomon [Wed, 2 Sep 2009 23:35:40 +0000 (19:35 -0400)]
G1: Add an SMS quirk for CNMI mode

The G1 doesn't support mode2, despite advertising it.

The G1 chokes w/ an "Error 303" when we specify NMI mode 2.  Adding a
quirk to drop that mode from the supported list (just use mode 1) allows
the G1 to properly deal with SMS.

15 years agoUse proper debug calls for pure debugging output
Marcel Holtmann [Thu, 3 Sep 2009 02:04:21 +0000 (19:04 -0700)]
Use proper debug calls for pure debugging output

15 years agoAdd a separate plugin for connection to phone simulator
Marcel Holtmann [Thu, 3 Sep 2009 01:56:46 +0000 (18:56 -0700)]
Add a separate plugin for connection to phone simulator

15 years agoUpdate modem.conf example
Marcel Holtmann [Thu, 3 Sep 2009 01:53:14 +0000 (18:53 -0700)]
Update modem.conf example

15 years agoFix emitting Modems Property in the wrong place
Denis Kenzior [Thu, 3 Sep 2009 00:48:33 +0000 (19:48 -0500)]
Fix emitting Modems Property in the wrong place

15 years agoMention Andres' contributions
Marcel Holtmann [Wed, 2 Sep 2009 23:20:17 +0000 (16:20 -0700)]
Mention Andres' contributions

15 years agoG1: Add a G1 syntax for parsing
Andres Salomon [Tue, 25 Aug 2009 22:07:28 +0000 (18:07 -0400)]
G1: Add a G1 syntax for parsing

This is based on the generic_at parser, with unnecessary stuff removed.

The G1 routinely screws up CRLFs, so the parser needs to account for
that.  This parser ignores leading CRLFs (which is what reference-ril
does as well), as well as trailing LFs (which are sometimes left out).
CRs are used as end-of-message indicators.  Since we're not bothering
tracking CRLFs, there's also no need for a GARBAGE state, or MULTILINE
stuff.

15 years agoG1: Add initial HTC G1 modem support
Andres Salomon [Tue, 25 Aug 2009 20:04:48 +0000 (16:04 -0400)]
G1: Add initial HTC G1 modem support

G1 plugin is based on generic_at, with a bunch of stuff dropped
and simplified.  We use AT+CFUN=1 for powering on rather than having
a configurable init string.  We also manually set the default state
during init (the G1 appears to start in mode V0 by default).  The
device (/dev/smd0) is hardcoded.

15 years agoSquash compiler warning
Denis Kenzior [Wed, 2 Sep 2009 22:37:28 +0000 (17:37 -0500)]
Squash compiler warning

15 years agoUpdate modemconf driver to the new ofono_modem_create
Denis Kenzior [Wed, 2 Sep 2009 22:37:17 +0000 (17:37 -0500)]
Update modemconf driver to the new ofono_modem_create

15 years agoChange plugins to the new ofono_modem_create api
Denis Kenzior [Wed, 2 Sep 2009 22:35:29 +0000 (17:35 -0500)]
Change plugins to the new ofono_modem_create api

15 years agoGet rid of node argument in ofono_modem_create
Denis Kenzior [Wed, 2 Sep 2009 22:35:18 +0000 (17:35 -0500)]
Get rid of node argument in ofono_modem_create

15 years agoAdd simple utility to validate paths
Denis Kenzior [Wed, 2 Sep 2009 22:34:31 +0000 (17:34 -0500)]
Add simple utility to validate paths

15 years agoAdd modem property capability
Denis Kenzior [Wed, 2 Sep 2009 21:58:34 +0000 (16:58 -0500)]
Add modem property capability

Add ofono_modem_set_string & ofono_modem_get_string
Add ofono_modem_set_integer & ofono_modem_get_integer

15 years agoUse OFONO_AT_DEBUG even for MBM plugin
Marcel Holtmann [Wed, 2 Sep 2009 22:43:10 +0000 (15:43 -0700)]
Use OFONO_AT_DEBUG even for MBM plugin

15 years agoUnset the driver data when MBM driver is removed
Marcel Holtmann [Wed, 2 Sep 2009 22:22:30 +0000 (15:22 -0700)]
Unset the driver data when MBM driver is removed

15 years agoAdd example for modem.conf and install it if requested
Marcel Holtmann [Wed, 2 Sep 2009 22:18:10 +0000 (15:18 -0700)]
Add example for modem.conf and install it if requested

15 years agoAdd really simple modem configuration parsing
Marcel Holtmann [Wed, 2 Sep 2009 21:56:14 +0000 (14:56 -0700)]
Add really simple modem configuration parsing

15 years agoAdd skeleton for plugin to handle static modem configurations
Marcel Holtmann [Wed, 2 Sep 2009 21:40:50 +0000 (14:40 -0700)]
Add skeleton for plugin to handle static modem configurations

15 years agoUpdate makefile.am with new doc files
Denis Kenzior [Wed, 2 Sep 2009 19:27:26 +0000 (14:27 -0500)]
Update makefile.am with new doc files

15 years agoAdd call-settings api doc
Denis Kenzior [Wed, 2 Sep 2009 19:25:09 +0000 (14:25 -0500)]
Add call-settings api doc