Commit Graph

1822 Commits

Author SHA1 Message Date
Denis Kenzior e5f02e427a Use none_prefix in cssn 2009-09-29 14:56:22 -05:00
Andrzej Zaborowski 2a02f45c79 Add plugin interface for getting PIN lock state.
It may be useful to have the information of whether card is currently
locked and emit events when this changes but if we want to have it as a
property, we would need properties for all types of locks and it wouldn't
be all that useful.
2009-09-23 14:27:52 -05:00
Denis Kenzior 5fd083f6f4 Refactor: Do not use int instead of enum
27.007 does not define an enumeration for SIM PIN/PUK values.  This
should be handled by ofono enum instead
2009-09-22 00:07:07 -05:00
Denis Kenzior 7d7732d637 Don't treat READY CPIN result differently 2009-09-22 00:07:07 -05:00
Denis Kenzior 3362de0010 Move SSN unsolicited notification activation 2009-09-22 00:07:06 -05:00
Denis Kenzior 63416e2851 Rearrange sim password enum 2009-09-22 00:07:06 -05:00
Andrzej Zaborowski ee02b14836 Do PIN authentication
This adds checking whether PIN is required during SIM initialisation and
delaying the sim ready notifications until after correct PIN is given.
2009-09-22 00:07:06 -05:00
Denis Kenzior 12e77a3c70 Convert all the modem drivers to the new API 2009-09-17 10:15:34 -05:00
Aki Niemi 36198827ab Miscellaneous clean-ups 2009-09-16 23:37:23 +03:00
Aki Niemi 866c394882 Add proper bootstrapping to phonebook driver 2009-09-16 23:37:23 +03:00
Aki Niemi e3e5090b6a Increase network scan/set timeout values 2009-09-16 23:37:23 +03:00
Andrzej Zaborowski 6d2cf926f3 Check received PDUs fit in the buffer, fix buffer size. 2009-09-16 04:53:44 -05:00
Aki Niemi 795e65ad53 Add proper bootstrap using g_isi_verify() 2009-09-15 15:37:01 +03:00
Aki Niemi b6e37fb792 Remove version query; use gisi/client.h instead 2009-09-15 15:36:11 +03:00
Aki Niemi bee4bf4d7d Fix error reporting in phonebook driver 2009-09-15 11:17:39 +03:00
Aki Niemi 0aeb5f3dfd Remove extra debug 2009-09-15 00:35:22 +03:00
Aki Niemi af3f54ee43 Fix a possible but improbable leak 2009-09-15 00:20:54 +03:00
Marcel Holtmann ee0555dda1 Fix compiler warnings on 64-bit systems 2009-09-14 14:10:15 -07:00
Aki Niemi b2bdb41bc0 Fix to use gisi/iter.h to decode sub-blocks 2009-09-14 23:59:59 +03:00
Aki Niemi e58d28f6b6 Adapt to changed sub-block iterator API 2009-09-14 23:43:57 +03:00
Aki Niemi 6c08fc8e50 Refactor to use gisi/iter.h 2009-09-14 16:21:35 +03:00
Aki Niemi 69ac9733f4 Modify to use the new alpha tag getter 2009-09-14 16:21:18 +03:00
Aki Niemi d7459f45fc Coding style clean-ups 2009-09-14 14:53:35 +03:00
Aki Niemi ddbd19a4be Use gisi/iter.h for decoding sub-blocks 2009-09-14 14:34:27 +03:00
Aki Niemi ffaba2b637 Clean up IMSI decoding 2009-09-14 14:33:31 +03:00
Aki Niemi cfd40b2313 Remove trailing WS 2009-09-14 13:00:45 +03:00
Aki Niemi 4904479214 Remove unnecessary debug 2009-09-14 12:54:16 +03:00
Aki Niemi d83b325a40 Add basic bootsrap for the SMS driver 2009-09-14 12:52:21 +03:00
Aki Niemi bc7df10c92 Add preliminary CBS driver 2009-09-14 12:51:48 +03:00
Aki Niemi 1c2f4b6097 Add proper bootstrapping for netreg driver
Use the ISI version query to bootstrap the netreg driver.
2009-09-14 12:45:54 +03:00
Aki Niemi 843f0c07e2 Remove unnecessary debugs 2009-09-14 12:44:59 +03:00
Aki Niemi e79d5ad208 Fix registration status decoding 2009-09-12 22:39:50 +03:00
Aki Niemi d2a42c71dd Fixes for proper coding style 2009-09-12 21:44:11 +03:00
Aki Niemi 3bfa5c47c0 Fix signal strength value calculation 2009-09-12 19:30:58 +03:00
Aki Niemi df8a202e94 Add IMSI retrieval to sim driver
Modified patch originally provided by Jukka Saunamäki.
2009-09-12 18:58:18 +03:00
Aki Niemi 6ee21a3fc1 Fix to use new success/failure callback macros 2009-09-12 18:57:16 +03:00
Aki Niemi 6d258f529e Add implementation of netreg driver 2009-09-12 18:42:42 +03:00
Aki Niemi 7507b73767 Clean up macros for success/failure callbacks 2009-09-12 18:36:22 +03:00
Denis Kenzior cbb36acee8 Rework DECLARE_FAILURE to be a bit nicer 2009-09-11 12:39:56 -05:00
Denis Kenzior 2bdf1f50a1 Ensure CBS is in a known state at startup 2009-09-10 17:44:36 -05:00
Denis Kenzior 6b91b3563b Add atmodem cell broadcast driver 2009-09-10 16:13:16 -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 d74d6c2e06 Fix unused variable warning 2009-09-04 20:37:50 -05:00
Denis Kenzior 7362878e6c Add calypso voicecalls driver 2009-09-04 20:37:50 -05:00
Denis Kenzior 4c5791a500 Rename at.h to atmodem.h 2009-09-04 20:37:49 -05:00
Denis Kenzior 5749b6e75d Break common at utilities to atutils.c/.h 2009-09-04 20:37:49 -05:00
Denis Kenzior 2693c604a9 Remove unused declaration 2009-09-04 20:37:49 -05:00
Denis Kenzior 62bf46a5d4 Remove unused structure 2009-09-04 20:37:49 -05:00
Denis Kenzior 23484524df Add quirk for network-registration for calypso
Support calypso-specific AT%CSQ notifications
2009-09-03 23:20:22 -05:00
Andres Salomon aceaac4b7b 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.
2009-09-02 19:06:03 -07:00
Denis Kenzior 10d4c54c30 Change plugins to the new ofono_modem_create api 2009-09-02 17:39:23 -05:00
Denis Kenzior 58d0aa72b2 Rename isi drivers to isimodem
Be more consistent with directory naming
2009-09-01 22:35:14 -05:00
Denis Kenzior a613105f91 Rename generic_at drivers to atmodem
Be more consistent with directory naming
2009-09-01 22:33:05 -05:00
Denis Kenzior 7ff85d9737 populate should return void 2009-09-01 22:29:02 -05:00
Denis Kenzior 9caa606bcc Make remove functions not return anything 2009-09-01 22:27:08 -05:00
Denis Kenzior 422df0edfb change int vendor to unsigned int vendor 2009-09-01 21:39:02 -05:00
Denis Kenzior 31a3d489d5 Add stub vendor.h file 2009-09-01 18:14:59 -05:00
Denis Kenzior 4064f4ba73 Add vendor flag capability to voicecalls 2009-09-01 18:14:59 -05:00
Denis Kenzior e5577046f0 Add vendor flag capability to ussd 2009-09-01 18:14:58 -05:00
Denis Kenzior afb0e2b854 Add vendor flag capability to ssn 2009-09-01 18:14:58 -05:00
Denis Kenzior 8d380f8fa0 Add vendor flag capability for sms 2009-09-01 18:14:58 -05:00
Denis Kenzior aecf42646e Add vendor flag capability to sim 2009-09-01 18:14:58 -05:00
Denis Kenzior 1fb9ecca46 Add vendor flag capability to phonebook 2009-09-01 18:14:58 -05:00
Denis Kenzior 271b042488 Add vendor flag capability to netreg 2009-09-01 18:14:58 -05:00
Denis Kenzior c7d35dd039 Add vendor flag capability to devinfo 2009-09-01 18:14:58 -05:00
Denis Kenzior 933f803967 Add vendor flag to call-settings 2009-09-01 18:14:58 -05:00
Denis Kenzior 390bd82109 Add vendor parameter to call-meter 2009-09-01 18:14:57 -05:00
Denis Kenzior 7ee954b28a Add vendor flag to call-forwarding 2009-09-01 18:14:57 -05:00
Denis Kenzior 15b1a733b0 Introduce vendor parameter to call-barring 2009-09-01 18:14:57 -05:00
Aki Niemi 74782318bd Rename all files under drivers/isimodem/ 2009-08-25 14:04:42 +03:00
Marcel Holtmann 70aab2a826 Convert to fully non-recursive build system 2009-08-24 23:49:40 -07:00
Marcel Holtmann 7d3d52009d Use script to generate list of builtin plugin symbols 2009-08-24 19:05:41 -07:00
Aki Niemi 70440bcd0b Add straw-man for rest of ISI modem driver 2009-08-24 15:47:17 +03:00
Aki Niemi bc71ac101f Fix typos 2009-08-24 13:14:52 +03:00
Aki Niemi 5562438c5c Fix memory leak in ISI phonebook driver 2009-08-23 23:16:46 +03:00
Aki Niemi 53e575bd5c Fix memory leak in isimodem.c 2009-08-22 18:00:58 +03:00
Aki Niemi 54a6cc6253 Move dump_msg() to isi.h as static inline 2009-08-22 15:37:34 +03:00
Denis Kenzior b3e6dd8e51 Update the isi driver to the new modem driver api 2009-08-21 19:25:51 -05:00
Denis Kenzior 6ac46cee4f Remove org.ofono.at.Manager 2009-08-21 19:25:51 -05:00
Denis Kenzior da5adf366a Remove unused function 2009-08-21 19:25:51 -05:00
Aki Niemi 77aa9c9621 Enable multi-modem support
This patch enables concurrent use of multiple ISI modems, e.g., all
connected via USB using cdc_phonet.
2009-08-21 16:31:17 +03:00
Aki Niemi 70e69ac452 Enable multiple instances of phonebook driver 2009-08-21 16:30:13 +03:00
Aki Niemi f06c09d17a Enable multiple instances of devinfo driver 2009-08-21 16:29:34 +03:00
Aki Niemi 621d584b4d Move struct isi_data to private 2009-08-21 16:28:32 +03:00
Aki Niemi a42ec65274 Refactor isidevinfo
Remove storing of pending request objects to linked list;
g_isi_client_destroy() will clear those properly. Fix naming of enums,
and use DECLARE_SUCCESS() macro.
2009-08-21 10:16:42 +03:00
Aki Niemi a434d94169 Pass modem instance to phonebook driver 2009-08-21 10:06:40 +03:00
Denis Kenzior e0ff90e6da Rename ofono_modem_*_userdata
Rename ofono_modem_get_userdata to ofono_modem_get_data
Rename ofono_modem_set_userdata to ofono_modem_set_data

For consistency with other drivers
2009-08-20 18:19:21 -05:00
Denis Kenzior ba851568f5 Fix unused variable pbd 2009-08-20 15:39:12 -05:00
Denis Kenzior 92e373f1c2 Fix return with no value warning 2009-08-20 15:39:12 -05:00
Denis Kenzior fa330cafbd Fix a bunch of warnings about mixed signedness 2009-08-20 15:39:12 -05:00
Denis Kenzior 7560049829 Fix implicit declaration of ofono_phonebook_create 2009-08-20 15:39:12 -05:00
Denis Kenzior 339ac855c0 Fix unused variable pbd 2009-08-20 15:39:12 -05:00
Denis Kenzior d724bc727a Fix unused variable chat 2009-08-20 15:39:11 -05:00
Denis Kenzior 7b30ca7384 Fix implicit declaration of ofono_netreg_create 2009-08-20 15:39:11 -05:00
Denis Kenzior 8be715dbb1 Update ISI driver for new devinfo API 2009-08-20 13:04:07 -05:00
Denis Kenzior 8b665b50db Update the AT modem driver to the new devinfo api 2009-08-20 12:48:29 -05:00
Aki Niemi dd19eff45c Fix ISI driver side conditional name 2009-08-20 14:32:03 +03:00
Aki Niemi b60aead245 Add configure switch to disable PhoNet/ISI support 2009-08-20 11:08:25 +03:00
Denis Kenzior 8c92e3dd18 Remove modem member from cb_data 2009-08-19 18:35:08 -05:00
Denis Kenzior e8e6d519fe Fix release specific not reporting proper reason
The proper disconnect reason was not being reported in the at modem
voicecall plugin
2009-08-19 18:35:08 -05:00
Denis Kenzior c5bee0bb6b Remove poll_clcc variable
The reference implementation will always poll.  If a modem vendor has
extensions for call status reporting, then those should be used in a
separate driver
2009-08-19 18:35:08 -05:00
Denis Kenzior 261c31de1c Update the AT modem voicecall driver for new API 2009-08-19 18:35:08 -05:00
Denis Kenzior 73bba4b83b Remove dead code in voicecall at driver 2009-08-19 18:35:08 -05:00
Denis Kenzior 7ad2eb2342 Update netreg AT modem driver to the new API 2009-08-19 18:35:07 -05:00
Denis Kenzior 43d1769ce8 Port AT modem driver to the new MWI api 2009-08-19 18:35:07 -05:00
Denis Kenzior f46a36dfd8 Remove unneeded function call 2009-08-19 18:35:06 -05:00
Denis Kenzior 7e8f2ef241 Update SIM AT driver to the new API 2009-08-19 18:35:06 -05:00
Denis Kenzior 1c61fa3db4 Port SMS AT modem driver to the new API 2009-08-19 18:35:06 -05:00
Denis Kenzior 69fd5186a0 Remove unused member 2009-08-19 18:35:05 -05:00
Rémi Denis-Courmont 5e2a1745fb Phonet: add modem parameter to ISI client API 2009-08-19 17:07:15 +03:00
Rémi Denis-Courmont 20f73898ec gisi: provide modem identifier through Netlink API 2009-08-19 17:07:15 +03:00
Denis Kenzior 5e957a7e3e Port the USSD at driver to the new API 2009-08-17 13:46:34 -05:00
Denis Kenzior 67aa564adb Update the AT modem SSN driver to the new API 2009-08-14 18:51:36 -05:00
Denis Kenzior 320f4e1780 Port over ISI modem driver to the new API 2009-08-14 12:10:05 -05:00
Denis Kenzior 1c25111c27 Update the at phonebook driver to the new API 2009-08-14 11:19:10 -05:00
Denis Kenzior 62ed98da66 Update at call settings driver to new API 2009-08-14 11:19:10 -05:00
Denis Kenzior 7378fac495 Update the at call meter driver for new API 2009-08-14 11:19:09 -05:00
Denis Kenzior e350de29c2 Update at modem call forwarding driver 2009-08-14 11:19:09 -05:00
Denis Kenzior 2f37befd27 Update at modem call-barring driver to the new API 2009-08-14 11:19:09 -05:00
Alexander Kanavin 2076a044ec Add ISI modem SIM phonebook support
This patch only provides access to the SIM phonebook. Note that the
interface to the SIM phonebook is quite slow, which may cause timeouts
on phonebooks with a large number of entries using the default D-Bus
timeout value.
2009-08-14 16:55:55 +03:00
Denis Kenzior d812ff8534 Warn when (potentially) invalid input encountered 2009-08-12 19:49:23 -05:00
Denis Kenzior 7b8f5bed5d Update AT modem plugin to use GAtChat logging
Enabled if OFONO_AT_DEBUG environment variable is set
2009-08-06 16:38:46 -05:00
Denis Kenzior 9d0b4feafa Fixup atmodem.c for gatchat changes 2009-08-06 16:38:45 -05:00
Andrzej Zaborowski ed56d7c585 Fix record number in at_sim_update_record. 2009-08-05 12:39:09 -05:00
Denis Kenzior 3e6d4237cb Remove all uses of modem.h 2009-07-29 16:53:19 -05:00
Denis Kenzior cb75833fc8 Rename ofono_modem_userdata 2009-07-29 16:44:16 -05:00
Denis Kenzior 4fbca244ea Make plugins use ofono_modem_get_path 2009-07-29 16:44:16 -05:00
Denis Kenzior 89af1fcabe Remove supports_tech variable
The proper way to register with a particular network technology
is to use a band selection command (e.g. select 2G only or 3G only,
or hybrid)

The tech selection according to 27.007 is non-binding anyway
2009-07-29 12:26:06 -05:00
Denis Kenzior 863f4e367f Tweak CREG notification to be more fault tolerant 2009-07-29 12:26:06 -05:00
Denis Kenzior 54816de04d Get rid of dbus-gsm.h 2009-07-29 12:26:06 -05:00
Denis Kenzior 9cd9338ba1 Rename dbus_gsm_dict_append_array 2009-07-29 12:26:05 -05:00
Denis Kenzior d9025e13e1 Move & Rename PROPERTIES_ARRAY_SIGNATURE 2009-07-29 12:26:05 -05:00
Denis Kenzior 55787fe876 Rename dbus_gsm_signal_array_property_changed 2009-07-29 12:26:05 -05:00
Denis Kenzior 00fb6cce62 Rename dbus_gsm error functions to __ofono_error 2009-07-29 12:26:05 -05:00
Denis Kenzior 99c1c92708 Move & Rename dbus_gsm_connection
Move to ofono/dbus.h ofono_dbus_get_connection
2009-07-29 12:26:04 -05:00
Denis Kenzior 48d46f1136 Experimental support for modems with no UCS2/UTF8
Some modems, like the G1 do not support UCS2/UTF8.  However, we can
still attempt to export some phonebook entries which are probably
going to be simple Latin1 characters (e.g. 411, etc)
2009-07-29 12:26:03 -05:00
Yang Gu ca403d273e Fix phonebook comment to report CSCS 2009-07-27 17:10:04 -05:00
Yang Gu 57120b7156 Fix phonebook problem when charset is in a list 2009-07-27 17:10:00 -05:00
Denis Kenzior 426d201b2e Add support for cyclic files 2009-07-27 17:09:58 -05:00
Denis Kenzior 555e2e689d Refactor SIM file access code
SIM File Access conditions would be reported similarly between various
stacks, so it seems like the core logic of figuring out the access
conditions belongs up in the daemon.

This also fixes various problems, including:
  - access conditions read from bytes 10-12, instead of 9-11.
  - read/update, invalidate/rehabilitate and increase conditions
    read from the wrong bits (0-3 instead of 4-7 and vice versa)
2009-07-27 17:09:56 -05:00
Andrzej Zaborowski 5c981d421e Return SIM file access conditions from read_file_info. 2009-07-27 17:09:46 -05:00
Denis Kenzior 4dae83636c Use int for MoreMessagestoSend (mms) 2009-07-27 17:09:35 -05:00
Denis Kenzior 8d47b8f36d Refactor phonebook code 2009-07-16 17:22:04 -05:00
Denis Kenzior fdab3735db Fix style issue 2009-07-16 17:22:04 -05:00
Yang Gu 1a4e3630da Add character set support in phonebook 2009-07-16 17:22:04 -05:00
Denis Kenzior a3a2190f03 Add experimental support for MT incoming sms store
Some Nokia modems only support "MT" as the incoming sms store.
Presumably the modem has some intelligence to pick the right store
depending on the SMS class.  This means that oFono must now track
what the current store is, and issue a CPMS, CMGR & CMGD when a
CMTI notification arrives.
2009-07-16 11:44:48 -05:00
Denis Kenzior 958bf1c239 Add CFUN=1 for the ti_calypso driver 2009-07-16 11:44:48 -05:00
Denis Kenzior 81d382aea2 Add extra_pdu_crlf quirk to ti_calypso driver 2009-07-15 15:51:36 -05:00
Denis Kenzior a90d89e8c1 Remove from pending list if create fails 2009-07-15 15:51:31 -05:00
Denis Kenzior 7104169eb2 Fix printing binary version of the pdu 2009-07-15 15:51:29 -05:00
Denis Kenzior 2effe63667 Fix CNMI parsing, it uses ranges not just a list 2009-07-15 11:49:06 -05:00
Denis Kenzior 4fa4f491a4 Add some more debugging to SMS driver 2009-07-15 11:49:06 -05:00
Denis Kenzior 14436de30f Fix sms looking for text mode instead of pdu mode 2009-07-15 11:49:06 -05:00
Denis Kenzior 2289298615 Style fixes 2009-07-14 15:45:04 -05:00
Denis Kenzior 38a23eb108 Make oFono use proper record ids, don't use tricks 2009-07-14 15:45:04 -05:00
Denis Kenzior 3d1dd9d452 Fix unused variable warning 2009-07-13 22:33:48 -05:00
Marcel Holtmann 6b7fb7c9f9 Fix printf compiler warning with size_t data type 2009-07-14 05:03:39 +02:00
Aki Niemi e56d92ce30 Fix isimodem segfault on modem removal
This fixes segfaults resulting either from destroying a NULL ISI
client, or when multiple ISI modems become available, and get removed
in the wrong order. To support multiple ISI modems concurrently, a
modem object needs to be exposed via the gisi API, and tracked by the
ISI driver. This is a TODO item to add.
2009-07-09 16:15:56 +03:00
Aki Niemi b3a166abea Fix error value to no error in success 2009-07-07 14:29:42 +03:00
Aki Niemi 5a09379263 Initialize to NULL 2009-07-07 14:18:11 +03:00
Aki Niemi 8411088d0c Add modem attribute retrieval
Refactor isimodem.c to add support for querying modem attributes over
the ISI protocol.
2009-07-07 13:24:40 +03:00
Rémi Denis-Courmont 1206287664 Do not include <config.h> from headers
It should be included _first_ in all modules, and it is not proof
against multiple inclusions.
2009-07-03 07:54:25 -07:00
Santtu Lakkala 5f87902443 Add support for tty on character device.
Adds support for using ttys through a serial device directly.
2009-07-01 21:59:27 +03:00
Denis Kenzior 74bbdea02d Preserve clip_validity
CLCC does not report clip_validity.  So if clip_validity of witheld
has been reported in CLIP, but we're still somehow polling CLCC,
which happens if CRING is not supported, and RING is used instead,
this fact can be lost.  Make sure we preserve clip_validity if
possible
2009-06-25 11:45:29 -05:00
Denis Kenzior 4357f33d25 Number and Number Type are optional in CLCC
According to 27.007, the number and number type are optional.  We must
take care not to do anything unexpected in this case.
2009-06-25 11:45:29 -05:00
Aki Niemi 21389a1e05 Delete old placeholder 2009-06-25 10:04:02 +03:00
Aki Niemi 66604021bd Add new ISI modem driver to build 2009-06-25 10:03:47 +03:00
Aki Niemi 7d31520831 Add baseline for ISI modem driver 2009-06-25 10:03:27 +03:00
Andrzej Zaborowski fde5fc5a83 Add write/read operations for cyclic files in SIM. 2009-06-22 13:22:14 -05:00
Yang Gu 95ec7c126f Merge phonebook entries belong to one person 2009-06-22 13:22:13 -05:00
Denis Kenzior 3d24c2654d SMS sending in AT backend 2009-06-19 21:15:05 -05:00
Andrzej Zaborowski 3fa13d4d25 Implement CallBarring::ChangePassword in AT driver 2009-06-18 16:58:02 -05:00
Denis Kenzior 6fdf580a5d Cleanup EFmsisdn reading patch 2009-06-18 04:02:13 -05:00
Andrzej Zaborowski 1c6d44d9c0 Read own numbers from EFmsisdn instead of AT+CNUM. 2009-06-18 04:02:08 -05:00
Denis Kenzior c3e3750ebb Minor style fixes 2009-06-18 04:02:06 -05:00
Andrzej Zaborowski 2b451eaeab Add record based file capability to sim_ops
Add capability to read / write / stat files on the SIM.  This now
supports cyclic, linear fixed and transparent SIM files.

Parse GET RESPONSE result to find structure of the file (cyclic, linear
fixed, or transparent), the file size and the record length.

Add both read and update capability for binary and record-based files.

Implement writing sim files through AT.
2009-06-18 04:02:05 -05:00
Andrzej Zaborowski 498759f2b6 Use GET RESPONSE sim command to retrieve EF length
Also accept 0x9f as a success status word 1 for READ BINARY (GSM specific).
2009-06-18 04:02:03 -05:00
Denis Kenzior 5fa4cd895c Refactor phonebook code
Use immediate mode reporting, which means that the individual CPBR
lines are reported up to the core immediately.  This has a couple
advantages:
  - We do not need to malloc/free a bunch of single variables
    and copy them over.  Helps performance.
  - The lines are not buffered up and given to the plugin in one
    shot, instead processing is performed piecemeal.  This helps
    with keeping memory consumption down to a minimum
2009-06-16 16:42:02 -05:00
Denis Kenzior fc98cf91a8 Use library functions appropriately
Instead of using custom parsing, use the existing library
functionality in result iter open_list, next_range and close_list
2009-06-16 16:42:00 -05:00
Denis Kenzior 9a2ab0de83 Don't use spaces and use tabs instead 2009-06-16 16:38:32 -05:00
Denis Kenzior 6acfa4e046 Re-arrange destruction order 2009-06-16 16:38:27 -05:00
Denis Kenzior be4a4691aa Make const-correct 2009-06-16 16:38:26 -05:00
Yang Gu f00af45270 Export phonebook as vCard 3.0 format 2009-06-16 16:38:17 -05:00
Denis Kenzior ac4aeac3d6 Rework CMGR as an unsolicited notification
Since the PDU line doesn't have a prefix, the parser can get confused
if other unsolicited notifications arrive.  There is already explicit
support for unsolicited notifications with PDU, so we use that
instead
2009-06-16 16:38:15 -05:00
Denis Kenzior 3a28213072 Add Basic SMS reception capabilities
- Can receive 7Bit, 8Bit and UCS2 encoded messages
- 8Bit is assumed to be a datagram to a certain port
- Messages with Invalid format are ignored
- Concatenation not yet supported
2009-06-12 21:43:26 -05:00
Denis Kenzior 3a7164c0e7 Fix memory leak 2009-06-12 19:40:51 -05:00
Denis Kenzior 3c27dae5e8 Fixup style issues with previous MCC/MNC patch
- Breakup MCC/MNC LENGTH constant
- Don't hardcode numbers
- Fix >80 column length
- Fix test case to expect strings instead of shorts
2009-06-12 19:33:55 -05:00
Aki Niemi ba8828c095 Change MNC and MCC variable types to string
This is to make sure both 2 and 3-digit MNC values are correctly
handled. Both the modem plugin API as well as the D-Bus API are
affected.
2009-06-12 11:01:19 -05:00
Denis Kenzior 683b00de1b Fix another pointer cast to use GINT_TO_POINTER 2009-06-11 23:45:04 -05:00
Denis Kenzior 5846688988 Rename sms utilities properly
Rename encode_sms to sms_encode
Rename decode_sms to sms_decode
2009-06-05 19:58:09 -05:00
Denis Kenzior b149dc166c Add proper handling for various messages
Handle Deliver / Status Report / Cell Broadcast messages and send the
appropriate acknowledgement PDUs (+CNMA) if required
2009-06-05 19:57:37 -05:00
Denis Kenzior 973b33f47e Add colons to SMS prefixes 2009-06-05 19:57:01 -05:00
Denis Kenzior 3dcd15a4d8 Add SMS interface initialization code for atmodem 2009-06-03 21:08:47 -05:00
Denis Kenzior 6093b9b438 Add check for error path 2009-06-03 21:08:44 -05:00
Denis Kenzior 44bed555a5 Add check for error path 2009-06-03 21:08:41 -05:00
Minjun Li e387488f02 Adding common unregister code in atmodem driver
Modem cleanup happens in two places: manager_free (ofono exit) and
manager_destroy (manually removing a specific modem).  Both need
to unregister the entire set of registered interfaces.

manager_destroy function did not unregister all interfaces.  Fixed
by adding a common function for both code paths.
2009-06-02 21:36:20 -05:00
Denis Kenzior 373bf7e6bf Forgot this for SMS driver 2009-06-01 14:05:36 -05:00
Denis Kenzior e8421eea63 Add atmodem driver implementation for SMS 2009-05-29 18:37:44 -05:00
Denis Kenzior 5a4d750414 Do not use empty prefixes 2009-05-29 18:37:39 -05:00
Denis Kenzior a4a172d42d Remove unused function 2009-05-28 20:45:25 -05:00
Denis Kenzior 5bffbb8985 Free voicecalls when exiting 2009-05-28 20:45:23 -05:00
Denis Kenzior 699752eaf1 Squash CallWaiting onto CallSettings interface
The CallWaiting interface had one settable attribute after the latest
set of refactoring.  Squash it onto the CallSettings interface where
it belonged in the first place
2009-05-28 18:28:40 -05:00
Denis Kenzior 99b01eba7f Simplify CallWaiting plugin interface
The use of a struct with status & cls seemed pointless when only
a single integer can work just as well.

Also the Fax & Data attributes have been squished.  oFono does
not yet support those call types.
2009-05-28 18:25:45 -05:00
Denis Kenzior 0755110ccc Add plus sign for ATD when dialing international 2009-05-26 18:20:08 -05:00
Denis Kenzior 53c55abd44 Ignore cls for call barring queries 2009-05-26 18:20:06 -05:00
Denis Kenzior db2a98ae5a Cleanup SimManager interface
Future-Proof own numbers support.  For now we only report voice numbers
Rename attributes to be a bit better
2009-05-26 18:20:03 -05:00
Denis Kenzior 1d56ce51df Fixup the initialization / destruction order 2009-05-26 18:18:16 -05:00
Denis Kenzior ab68cd8e7e Create ofono_phone_number struct
Creates a new structure in driver.h called ofono_phone_number.
This is meant to replace const char *number, int number_type
arguments everywhere.

Fix up all existing code to use this structure instead.
2009-05-26 18:18:12 -05:00
Andrzej Zaborowski 17fd4588fe Add atmodem SIM-related operations 2009-05-26 18:15:56 -05:00
Denis Kenzior 6fb0d8dbfe Make the Call Forwarding atmodem driver work 2009-05-21 17:05:27 -05:00
Andrzej Zaborowski 64bde63431 Remove yet more unused variables. 2009-05-20 13:10:07 -05:00
Denis Kenzior 80828c5ee3 Add class parameter to the query function for CB 2009-05-20 13:06:51 -05:00
Denis Kenzior e220d45b86 Fix some minor style issues 2009-05-20 13:03:40 -05:00
Denis Kenzior b082f87354 Minor build system fix 2009-05-20 13:03:36 -05:00
Andrzej Zaborowski 511d4f2ce5 drivers/atmodem implementation for CallBarring. 2009-05-20 12:51:17 -05:00
Marcel Holtmann c427cdfdfa Fix a potential build name clash 2009-05-13 11:23:16 -07:00
Marcel Holtmann 36eeffeede Add skeleton for PhoNet modem driver 2009-05-13 11:21:13 -07:00
Andrzej Zaborowski 3bde117026 Replace "aofono_" back with "atd_". 2009-05-12 19:09:57 -07:00
Andrzej Zaborowski d0066bed96 Implement AT plugin hooks for +CSSN API. 2009-05-12 19:09:57 -07:00
Denis Kenzior 6d486b7fe1 Add initial implementation of AT modem driver 2009-05-10 23:40:24 -07:00
Marcel Holtmann 4f54515209 Add skeleton for AT modem driver plugin 2009-05-10 22:55:11 -07:00
Marcel Holtmann 0acaee5e1e Add directory for driver plugins 2009-05-10 22:44:37 -07:00