Ryan Raasch
a55b43123f
Add serial settings parser to modemconf plugin
2009-10-28 16:39:19 -05:00
Marcel Holtmann
0bf1401589
Remove support for call forwarding and barring from MBM plugin
2009-10-25 01:14:26 +09:00
Andrzej Zaborowski
427224e9f8
Register gprs-context on calypso modem/phonesim.
2009-10-24 10:27:11 -05:00
Denis Kenzior
5cfe541582
Add GPRS context setup to MBM plugin
2009-10-23 17:05:56 -05:00
Denis Kenzior
c3772c2bb6
Fix: Update Init string & shutdown string for mbm
2009-10-23 17:05:56 -05:00
Denis Kenzior
88c0f77a58
Refactor: First round of renaming
2009-10-23 17:05:53 -05:00
Denis Kenzior
b2fd75014a
Refactor: rename data-connection to gprs
...
Keep the name specific to GSM, other implementations will probably
require their own interfaces
2009-10-23 17:05:53 -05:00
Andrzej Zaborowski
f43efa8a5f
Add GPRS support
...
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-23 17:05:53 -05:00
Olivier Le Thanh Duong
6d9bd02480
Migrate from RFC2822 to ISO8601
2009-10-21 19:04:47 -05:00
Denis Kenzior
f726596860
Rename: drivers/hfpmodem/hfp.[ch] to hfpmodem.[ch]
...
Be more consistent with other drivers
2009-10-19 22:13:19 -05:00
Denis Kenzior
c4594d2543
Fix: Make 'make distcheck' happy again
2009-10-19 17:07:23 -05:00
Denis Kenzior
17072b1949
Fix: Use debug instead of info
2009-10-19 17:00:32 -05:00
Denis Kenzior
5635703141
Refactor: Setup the HF features bitmap
...
Do not use magic numbers unless strictly necessary
2009-10-19 16:59:44 -05:00
Denis Kenzior
0ca88b36e7
Refactor: Don't store indicator names
...
We already know the indicators we're interested in from the
specification, malloc/free-ing the indicator names is thus pointless.
Instead save off the indicator index positions in an array. Parse the
current values instead of storing the unparsed list.
2009-10-19 16:58:13 -05:00
Zhenhua Zhang
fb0c157c11
Add initial glue code for hfp driver
2009-10-19 15:48:07 -05:00
Denis Kenzior
a1ca46253f
Setup better debugging information for calypso
2009-10-15 16:15:18 -05:00
Denis Kenzior
42b74e9db3
Multiplexer support for OpenMoko device
2009-10-15 16:15:18 -05:00
Denis Kenzior
389da0bb15
Fix: Do not leak chat memory
2009-10-15 16:15:18 -05:00
Denis Kenzior
74f350aaf7
Add mux setup step to phonesim plugin
2009-10-15 16:15:16 -05:00
Marcel Holtmann
32ffbf915e
Enable a few extra atoms in the Huawei plugin
2009-10-02 13:23:26 +02:00
Marcel Holtmann
0ebadcee45
Enable more atoms in the MBM plugin
2009-10-02 13:22:09 +02:00
Marcel Holtmann
7e11615ac3
Remove unused variables causing a compiler warning
2009-10-02 03:26:35 +02:00
Denis Kenzior
79cb80c7eb
Update plugins to the new g_at_tty_open API
2009-10-01 17:01:15 -05:00
Andres Salomon
4decda3f7f
G1: move chat handling into enable callback
...
This updates the g1 code to create the GAtChat object in the enable() callback,
and to unref it in the disable() callback. This is more in line with what
the other plugins do, and as a bonus fixes a segfault when powering down
the G1 modem..
Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
2009-09-29 23:04:24 -05:00
Denis Kenzior
2e09c0002d
Add call volume atom to calypso plugin
2009-09-29 14:56:23 -05:00
Denis Kenzior
b015cd655a
Add call volume to phonesim plugin
2009-09-29 14:56:22 -05:00
Denis Kenzior
2fb723c658
Fix: F3607gw not being recognized properly
...
Reports <foo> Broadband <foo> instead of <foo> Broadband Minicard <foo>
F3607gw Mobile Broadband Data Modem
F3607gw Mobile Broadband Modem
F3607gw Mobile Broadband GPS Port
F3607gw Mobile Broadband Network Adapter
F3607gw Mobile Broadband Device Management
F3607gw Mobile Broadband USIM Port
2009-09-28 12:51:33 -05:00
Denis Kenzior
599069e109
Add disconnection function
2009-09-18 13:33:41 -05:00
Denis Kenzior
12e77a3c70
Convert all the modem drivers to the new API
2009-09-17 10:15:34 -05:00
Denis Kenzior
8d52353425
Fix double free issue
2009-09-10 17:20:00 -05:00
Denis Kenzior
f208e15ea8
Enable cell broadcast for phonesim plugin
2009-09-10 16:29:52 -05:00
Denis Kenzior
0c1f8003af
Fix memory leak
2009-09-10 16:13:15 -05:00
Marcel Holtmann
c155a91313
Add option to phonesim to run with or without multiplexer
2009-09-08 09:24:52 +02: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
0910ee7349
Add support for using phonesim and calypso for testing
2009-09-08 03:01:52 +02:00
Marcel Holtmann
e4d0a28b48
Update modem configuration parameter parsing for generic AT plugin
2009-09-05 04:48:08 +02:00
Denis Kenzior
8f607eff42
Update calypso modem driver
...
Use calypso voicecalls driver
2009-09-04 20:37:50 -05:00
Denis Kenzior
918a8ee7f3
Make calypso plugin use the permissive parser
2009-09-04 20:37:49 -05:00
Denis Kenzior
85cbb8bfe9
Make G1 driver use the permissive parser
2009-09-04 20:37:48 -05:00
Marcel Holtmann
f84a37bb00
Add plugin for generic AT testing modem driver
2009-09-05 03:01:02 +02:00
Marcel Holtmann
7434ab6e81
Add example modem configuration for TI Calypso based devices
2009-09-04 19:08:41 +02:00
Denis Kenzior
ac491a0512
Fix style issues
2009-09-04 11:57:41 -05:00
Denis Kenzior
0e1c801e58
Make sure modemconf handles calypso driver
2009-09-03 23:20:22 -05:00
Denis Kenzior
5cbf388d30
Add calypso plugin
2009-09-03 23:20:22 -05:00
Marcel Holtmann
a16abe5813
Add support for SIM atom to HSO driver
2009-09-03 10:13:40 -07:00
Marcel Holtmann
8acad4d0b4
Add support for SIM atom to MBM driver
2009-09-03 10:07:20 -07:00
Marcel Holtmann
d9afc75ce3
Add basic support for Option HSO based devices
2009-09-03 01:10:40 -07:00
Marcel Holtmann
4b9b44f818
Add basic support for Novatel based devices
2009-09-03 00:50:47 -07:00
Marcel Holtmann
bdad83d831
Add basic support for Huawei based devices
2009-09-03 00:22:06 -07:00
Marcel Holtmann
f5bf6e309d
Add Ericsson MBM device detection to udev plugin
2009-09-02 23:49:52 -07:00
Marcel Holtmann
b6acdcf905
Add udev rules to identify modem driver
2009-09-02 22:21:42 -07:00
Marcel Holtmann
fac1349090
Some minor coding style cleanups for G1 plugin
2009-09-02 19:59:19 -07:00
Marcel Holtmann
9b3a8183f3
Parse and use Address and Port options from modem.conf
2009-09-02 19:48:02 -07:00
Marcel Holtmann
057860c4c7
Parse and use Device option from modem.conf
2009-09-02 19:37:55 -07:00
Marcel Holtmann
9c45f2e74b
Remove generic_at plugin
2009-09-02 19:30:21 -07:00
Marcel Holtmann
95a47df997
Fix some broken DOS newline messup
2009-09-02 19:27:47 -07:00
Marcel Holtmann
0417133a63
Update the modem.conf example one more time
2009-09-02 19:24:09 -07:00
Marcel Holtmann
f81fcb66ea
Remove the async TTY open helper and just use a blocking one
2009-09-02 19:18:41 -07: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
Marcel Holtmann
3bb7fbd5d5
Use proper debug calls for pure debugging output
2009-09-02 19:04:21 -07:00
Marcel Holtmann
959a90b7e8
Add a separate plugin for connection to phone simulator
2009-09-02 18:56:46 -07:00
Marcel Holtmann
9a351266fe
Update modem.conf example
2009-09-02 18:53:14 -07:00
Andres Salomon
3b1733b18a
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.
2009-09-02 16:11:10 -07:00
Andres Salomon
7b9f0773fa
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.
2009-09-02 16:07:36 -07:00
Denis Kenzior
f36e764c43
Update modemconf driver to the new ofono_modem_create
2009-09-02 17:39:23 -05:00
Denis Kenzior
10d4c54c30
Change plugins to the new ofono_modem_create api
2009-09-02 17:39:23 -05:00
Marcel Holtmann
55e1c65ec1
Use OFONO_AT_DEBUG even for MBM plugin
2009-09-02 15:43:10 -07:00
Marcel Holtmann
2dc4d7d2d7
Unset the driver data when MBM driver is removed
2009-09-02 15:22:30 -07:00
Marcel Holtmann
e555445f23
Add example for modem.conf and install it if requested
2009-09-02 15:18:10 -07:00
Marcel Holtmann
24d1d0ee16
Add really simple modem configuration parsing
2009-09-02 14:56:14 -07:00
Marcel Holtmann
9177c1dd86
Add skeleton for plugin to handle static modem configurations
2009-09-02 14:41:47 -07:00
Marcel Holtmann
9deaa6e70f
Add initial plugin for Ericsson MBM devices
2009-09-02 03:19:02 -07: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
Marcel Holtmann
d8282ec589
Add first steps for a udev based modem detection plugin
2009-09-01 18:54:27 -07: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
Denis Kenzior
ecde57eeba
Fix memory leak in generic_at driver
2009-08-30 13:29:44 -05: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
03d4dad98d
Fix build warning
2009-08-24 13:34:53 +03:00
Denis Kenzior
4750081d72
Add generic_at modem driver
...
Useful for testing or when the device is extremely 27.007 compliant,
e.g. phonesim
2009-08-21 19:25:51 -05:00
Denis Kenzior
7abeb8e4a0
Use types.h instead of driver.h here
2009-08-20 12:48:28 -05:00
Denis Kenzior
1dbfc02d6c
Add call-history driver type
2009-06-17 18:20:20 -05:00
Marcel Holtmann
0acaee5e1e
Add directory for driver plugins
2009-05-10 22:44:37 -07:00
Marcel Holtmann
f2e2cd7787
Add support for builtin plugins
2009-05-10 22:35:29 -07:00
Marcel Holtmann
a20f3ce8d2
Add directories for source code, header files and plugins
2009-04-26 20:54:47 +02:00