Age | Commit message (Collapse) | Author | Files | Lines |
|
Move and rename call_compare and call_compare_by_status to atutil.c.
These will be utilized by other drivers, including hfpmodem.
|
|
The standard only specifies that the context might have been detached by
the network / mobile equipment. Not attached.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Keep the name specific to GSM, other implementations will probably
require their own interfaces
|
|
This commit implements the GPRS context setup and teardown according to
doc/dataconnectionmanager-api.txt
One issue with the AT implementation of the api is that "Powered" (a
read-write property) can be set independently of "Attached" (read-only
property) and remain set when "Attached" is clear. The semantics would
be that the network doesn't have resources to let the modem attach,
but the modem waits for the resources to become available and then
attaches. On AT the modem is in this state only when executing +CGATT,
so currently the code will rerun +CGATT as soon as the previous one
returns with error, probably starving other commands. A possible
workaround would be for "Powered" to flip back to False after the modem
fails to attach once, or give up on having separate properties.
Alternatively we could re-try to attach periodically but on one modem
I've tried +CGATT fails after about 1 minute (that's the Calypso) and
on another only about 0.5s (Nokia phones with AT emulation).
When "Powered" is set and "RoamingAllowed" is clear and we manage to
attach and find that we're roaming, ofono resets "Powered".
We may want to catch the user trying to dial *99***1# which is the
backwards compatibility quirk for old modems (same way ofono parses
USSD strings).
|
|
When an active and a waiting call exist, and the active is released the
waiting call becomes incoming. This wasn't properly handled by the
generic at driver.
|
|
|
|
Don't decode by hand, use existing function
|
|
|
|
SMS storage is frequently empty at startup, if this is the case, do not
use ofono_error, use ofono_debug instead.
|
|
Also make sure we don't read beyond end of the string.
|
|
|
|
3G (UICC) based SIMs use a different response format than 2G sims. In
theory this also allows us to determine whether SIM filesystem format is
3G or 2G
|
|
|
|
This format is described in 51.011 and the older 11.11. It is not
supported by newer 3G UICC based devices & sim card combinations
|
|
|
|
|
|
|
|
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.
|
|
27.007 does not define an enumeration for SIM PIN/PUK values. This
should be handled by ofono enum instead
|
|
|
|
|
|
|
|
This adds checking whether PIN is required during SIM initialisation and
delaying the sim ready notifications until after correct PIN is given.
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
Support calypso-specific AT%CSQ notifications
|
|
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.
|
|
Be more consistent with directory naming
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|