Commit Graph

832 Commits

Author SHA1 Message Date
Rémi Denis-Courmont 418dba1ec3 gisi: Fix embarrassing typo 2009-09-10 17:43:30 +03:00
Rémi Denis-Courmont 54f61961b5 gisi: bring Phonet interface up before telling upper layers about it
This should get kernel-assisted Phonet autoconfiguration to work (and it
shouldn't hurt in other cases). Otherwise, the upper layers will try to
send packets, which will fail. Then they will probably just time out.
2009-09-10 15:31:21 +03:00
Rémi Denis-Courmont 3feaacb6ce gisi: disable logging by default
The debug_func was not initialized.
2009-09-09 22:26:44 +02:00
Denis Kenzior 1acf350190 Fix make distcheck 2009-09-08 16:52:12 -05:00
Denis Kenzior 21f5f0cf92 Add unit test for sms assembly serialization 2009-09-08 16:43:53 -05:00
Denis Kenzior 3449b2c0b5 Rework SMS fragment backup storage
The SMS address can actually contain other characters than 0-9, +, *, #,
particularly when the alphanumeric address type is used.  This is
commonly used by services such as Google or carrier specific SMS
services.

Rework the SMS address storage to simply re-use the SMS address pdu
format, which consists of up to 12 hex-encoded bytes.
2009-09-08 16:40:56 -05:00
Denis Kenzior 47bcf1ac18 Fix style issue 2009-09-08 16:40:38 -05:00
Denis Kenzior 785686ec6b Fix off by one error in assembly serialize
The proper PDU was not being written out fully
2009-09-08 16:39:16 -05:00
Denis Kenzior 8a31dc3312 Fixup unit test data
50 in first octet of deliver isn't valid
2009-09-08 16:24:31 -05:00
Andrzej Zaborowski 06ea6137a3 Write state of SMS assembly to disk and restore on startup.
This way we can continue receiving segmented messages over a reset or
crash.
2009-09-08 14:44:39 -05:00
Denis Kenzior 110dfb9e2e Fix style issue 2009-09-08 14:15:40 -05:00
Andrzej Zaborowski 17cb0ce3c4 Move create_dirs to storage.c, add file read/write utilities 2009-09-08 13:34:07 -05:00
Andrzej Zaborowski 36d0c8451f 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.
2009-09-08 13:31:30 -05:00
Denis Kenzior b2bde46bfb Do supported dialect detection in sms.c 2009-09-08 12:45:04 -05:00
Denis Kenzior b1932334da 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
2009-09-08 12:44:51 -05:00
Denis Kenzior bfbe142774 Fix style issues 2009-09-08 09:42:29 -05:00
Aki Niemi dab84882af Use SMS national language identifier when decoding
Adds support for decoding SMSs encoded using national language single
shift and locking shift tables.
2009-09-08 14:16:24 +03:00
Aki Niemi a8fb6bf356 Add unit test for Turkish variant
Also fixes an error in the default table unit test.
2009-09-08 14:16:23 +03:00
Aki Niemi 462b0b8249 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.
2009-09-08 14:16:23 +03:00
Marcel Holtmann c155a91313 Add option to phonesim to run with or without multiplexer 2009-09-08 09:24:52 +02:00
Marcel Holtmann 154102e873 Add modem properties for booleans 2009-09-08 09:12:19 +02:00
Marcel Holtmann 7b00e73caf Update test program for GAtMux API 2009-09-08 09:05:56 +02:00
Marcel Holtmann 47b1d09b6e Hook up GAtMux with GSM 07.10 implementation 2009-09-08 09:04:11 +02:00
Marcel Holtmann 8de68799a5 Remove AT command and re-init support from GSM 07.10 2009-09-08 08:51:46 +02:00
Marcel Holtmann abc7a934ee Use NULL for init of function callbacks 2009-09-08 08:39:51 +02:00
Marcel Holtmann 3a0518ec27 Export the GSM 07.10 status flags 2009-09-08 08:26:48 +02:00
Denis Kenzior 2ee7f4a6f8 Fix g_at_chat_unref from command callback
The resources were being used after being freed in this case
2009-09-07 23:21:50 -05:00
Denis Kenzior 74d0493230 Add a few more comments to the calypso plugin 2009-09-07 20:16:16 -05:00
Marcel Holtmann 3c0ea95f9a Add more calypso specific quirks when using phonesim 2009-09-08 03:14:46 +02:00
Marcel Holtmann e4959e02d1 Mark some properties as integer so they get printed properly 2009-09-08 03:04:51 +02:00
Marcel Holtmann 0910ee7349 Add support for using phonesim and calypso for testing 2009-09-08 03:01:52 +02:00
Marcel Holtmann 02eacb65af Update GSM 07.10 unit testing 2009-09-06 08:35:34 +02:00
Marcel Holtmann 041b192fcd Update test script with more property tweaks 2009-09-06 07:35:11 +02:00
Marcel Holtmann 094fdd4e71 Add functions for disconnect and debug handling 2009-09-06 00:31:26 +02:00
Marcel Holtmann c9ba0e7df5 Integrate the multiplexer into the AT chat library 2009-09-06 00:25:16 +02:00
Marcel Holtmann 62c0583f67 Use NULL instead of 0 for pointer arguments 2009-09-06 00:14:21 +02:00
Marcel Holtmann f49e1f9f4f First round of coding style updates for GSM 07.10 implementation 2009-09-06 00:08:53 +02:00
Marcel Holtmann ec69d1abd0 Add skeleton for AT multiplexer API 2009-09-05 11:52:31 +02:00
Marcel Holtmann 6dae50d8e5 Add unit testing tool for GSM 07.10 multiplexer 2009-09-05 07:46:50 +02:00
Marcel Holtmann 5847975b89 Add missing HAVE_CONFIG_H checks 2009-09-05 07:36:38 +02:00
Marcel Holtmann 09a3289dcc Update copyright and license details for GSM 07.10 implementation 2009-09-05 07:30:18 +02:00
Marcel Holtmann 12a3efe911 Enable compilation of GSM 07.10 code 2009-09-05 07:25:31 +02:00
Marcel Holtmann d35a39cb89 Fix previous casting removal fix 2009-09-05 07:22:59 +02:00
Marcel Holtmann 64ca9ad280 Remove another unneeded cast 2009-09-05 07:21:45 +02:00
Marcel Holtmann fe276cde82 Use unsigned char array for buffer and remove char casting 2009-09-05 07:18:12 +02:00
Marcel Holtmann 4d781ae6e5 Make gsm0710_compute_crc and gsm0710_send_frame private functions 2009-09-05 07:09:46 +02:00
Marcel Holtmann 15e1c3f0d5 Fix weird casting for callback execution 2009-09-05 07:02:56 +02:00
Marcel Holtmann 6717646008 Fix mixed declarations and code 2009-09-05 06:59:36 +02:00
Marcel Holtmann 5b09d42cb4 Import GSM 07.10 implementation from Qtopia 2009-09-05 06:57:11 +02:00
Marcel Holtmann e4d0a28b48 Update modem configuration parameter parsing for generic AT plugin 2009-09-05 04:48:08 +02:00