summaryrefslogtreecommitdiffstats
path: root/drivers/atmodem
AgeCommit message (Collapse)AuthorFilesLines
2009-10-28Refactor: Move & Rename functions to atutil.cZhenhua Zhang3-32/+35
Move and rename call_compare and call_compare_by_status to atutil.c. These will be utilized by other drivers, including hfpmodem.
2009-10-26Fix: notify_attached was only used when detachedDenis Kenzior1-1/+1
The standard only specifies that the context might have been detached by the network / mobile equipment. Not attached.
2009-10-23Fix: Some modems report PDP_type in a listDenis Kenzior1-1/+9
2009-10-23Register for CGEV indications in gprs contextDenis Kenzior1-0/+4
2009-10-23Remove unused code and make compiler happyDenis Kenzior2-3/+0
2009-10-23Add basic atmodem gprs context implementationDenis Kenzior3-0/+275
2009-10-23Refactor: Initialization codeDenis Kenzior1-110/+45
2009-10-23Add GPRS registration status implementationDenis Kenzior1-178/+40
2009-10-23Remove unused codeDenis Kenzior1-147/+12
2009-10-23Refactor: First round of renamingDenis Kenzior3-110/+110
2009-10-23Refactor: rename data-connection to gprsDenis Kenzior1-1/+1
Keep the name specific to GSM, other implementations will probably require their own interfaces
2009-10-23Add GPRS supportAndrzej Zaborowski3-0/+654
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).
2009-10-23Fix: Invalid call state transitionDenis Kenzior1-0/+16
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.
2009-10-16Fix: Use proper printf format for string precisionDenis Kenzior1-1/+1
2009-10-16Cleanup: Fixup USSD to use cbs_decode_dcsDenis Kenzior1-18/+19
Don't decode by hand, use existing function
2009-10-16Parse +CUSD responses.Andrzej Zaborowski1-13/+93
2009-10-16Fix: Emit debug message instead of an errorAndrzej Zaborowski1-1/+1
SMS storage is frequently empty at startup, if this is the case, do not use ofono_error, use ofono_debug instead.
2009-10-16Fix: Free converted string after use.Andrzej Zaborowski1-2/+8
Also make sure we don't read beyond end of the string.
2009-10-02Fix: Quiet a warningDenis Kenzior1-0/+1
2009-10-02Make generic sim driver work with 3G SIMsDenis Kenzior1-12/+18
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
2009-10-02Use small caps for 2G/3G functionsDenis Kenzior1-1/+1
2009-10-02Add utility to parse 2G GET_RESPONSE dataDenis Kenzior1-12/+2
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
2009-09-29Add at modem call volume driverDenis Kenzior3-0/+237
2009-09-29Be more numerically stableDenis Kenzior1-2/+2
2009-09-29Use none_prefix in cssnDenis Kenzior1-1/+3
2009-09-23Add plugin interface for getting PIN lock state.Andrzej Zaborowski1-0/+61
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-22Refactor: Do not use int instead of enumDenis Kenzior1-6/+6
27.007 does not define an enumeration for SIM PIN/PUK values. This should be handled by ofono enum instead
2009-09-22Don't treat READY CPIN result differentlyDenis Kenzior1-9/+8
2009-09-22Move SSN unsolicited notification activationDenis Kenzior2-6/+5
2009-09-22Rearrange sim password enumDenis Kenzior1-30/+31
2009-09-22Do PIN authenticationAndrzej Zaborowski1-0/+241
This adds checking whether PIN is required during SIM initialisation and delaying the sim ready notifications until after correct PIN is given.
2009-09-16Check received PDUs fit in the buffer, fix buffer size.Andrzej Zaborowski1-3/+14
2009-09-11Rework DECLARE_FAILURE to be a bit nicerDenis Kenzior13-267/+85
2009-09-10Ensure CBS is in a known state at startupDenis Kenzior1-4/+7
2009-09-10Add atmodem cell broadcast driverDenis Kenzior4-17/+206
2009-09-08Read messages left over in ME storage on startup.Andrzej Zaborowski1-0/+125
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-04Rename at.h to atmodem.hDenis Kenzior14-13/+13
2009-09-04Break common at utilities to atutils.c/.hDenis Kenzior4-55/+110
2009-09-04Remove unused declarationDenis Kenzior1-2/+0
2009-09-04Remove unused structureDenis Kenzior1-7/+0
2009-09-03Add quirk for network-registration for calypsoDenis Kenzior2-7/+43
Support calypso-specific AT%CSQ notifications
2009-09-02G1: Add an SMS quirk for CNMI modeAndres Salomon2-5/+15
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-01Rename generic_at drivers to atmodemDenis Kenzior12-12/+12
Be more consistent with directory naming
2009-09-01Make remove functions not return anythingDenis Kenzior12-28/+12
2009-09-01change int vendor to unsigned int vendorDenis Kenzior12-15/+22
2009-09-01Add stub vendor.h fileDenis Kenzior1-0/+24
2009-09-01Add vendor flag capability to voicecallsDenis Kenzior1-2/+3
2009-09-01Add vendor flag capability to ussdDenis Kenzior1-1/+4
2009-09-01Add vendor flag capability to ssnDenis Kenzior1-1/+4
2009-09-01Add vendor flag capability for smsDenis Kenzior1-2/+4