Commit Graph

508 Commits

Author SHA1 Message Date
Dan Williams
9733746dc1 icera: add complete support for generic Icera devices
Implement connect, disconnect, and IP4 config stuff.

Also fix handling of Icera private data.  After creation we
need to use MM_MODEM_ICERA_GET_INTERFACE(m)->priv to get the
private data instead of just dereferencing the MMModemIcera,
for reasons that I don't know.  If this isn't done, data
gets silently corrupted because writes to the private data
are going into a random location in the object.  This a
side-effect of the slightly hack-ish way that MMModemIcera
is a GInterface with private data.
2011-01-01 18:11:14 -06:00
Dan Williams
af9adab9cd icera: convert to GInterface
We'll need to store some private data later for authentication, and
this makes it easier and clearer to access that private data.
2011-01-01 14:12:07 -06:00
Dan Williams
b8a74490b2 zte: Icera devices use static IP configuration 2011-01-01 13:41:22 -06:00
Dan Williams
9d777763a2 icera: consolidate Icera check code into utility lib 2011-01-01 12:23:14 -06:00
Dan Williams
f84958933b icera: move Icera utils into standalone utility library 2011-01-01 12:08:46 -06:00
Dan Williams
a502fd2b19 gsm: add access technology support for HSPA+ 2011-01-01 11:55:41 -06:00
Dan Williams
657e5ac7f6 zte: partially support Icera-based devices like T-Mobile Rocket 2 2010-12-31 00:30:47 -06:00
Dan Williams
adcc29fa6b zte: really shut the device up
The MF691 appears to ignore E0 on the same line as some other stuff,
so really shut it up by sending E0 by itself.
2010-12-30 16:43:04 -06:00
Dan Williams
05d4876b20 zte: add support for pseudo-ethernet data ports 2010-12-30 16:36:47 -06:00
Elly Jones
245818de33 Install xml files so they can be used by cromo (chromeos modem manager)
Amended: Install the files under their proper DBus names.

Review URL: http://codereview.chromium.org/1618004
(cherry picked from commit 89f7f05f1294485fa8b44cfdd3c9b0d924d45ac1)

Conflicts:

	Makefile.am

Change-Id: I65b2b0c1b5e579bb5b1d5d5b390c3be2ae49543c
2010-12-20 12:23:41 -05:00
Amit Mendapara
067490960a linktop: add plugin for Linktop/Teracom LW273 (bgo #636438) 2010-12-08 11:05:28 -06:00
Torgny Johansson
26b96c515d mbm: add more MBM device IDs 2010-12-06 12:42:05 -06:00
Dan Williams
b1e1668119 mbm: add tags for SonyEricsson MD400G
Thanks to Niall Parker
2010-12-02 11:31:09 -06:00
Dan Williams
a00966d4aa huawei: don't spam syslog with tx/rx stats (lp:673457) 2010-11-29 11:50:55 -06:00
Dan Williams
1df1ff38b0 sierra: support pseduo-ethernet interface on GSM devices
Requires the sierra_net driver, which is included in the
2.6.34 and later kernels.
2010-11-29 00:45:58 -06:00
Dan Williams
dc95f531ad gsm: query signal strength with +CIND if modem does not support +CSQ (lp:682282) 2010-11-28 22:46:03 -06:00
Torgny Johansson
71eeae01a7 mbm: add USB IDs for F5521gw 2010-11-19 16:20:27 -06:00
Dan Williams
802a6f3a56 gsm: fix up CID signed/unsigned confusion
-1 = no APN set, so use modem default.  We'll have to fix a few
more things up for modems like hso/mbm that don't use ATDT and
require CIDs, but this gets us halfway there for other devices.
2010-11-10 13:16:19 -06:00
Dan Williams
bda86f553a mbm: fix handling of unsolicited CIEV response
Rob McQueen saw a 10 here, which means SMS full.  Handle that.
2010-11-09 08:46:27 -06:00
Dan Williams
d63dcd682d sierra: check for PS attach before dialing
Some devices (8775 specifically) get angry if you don't check for
a PS attach before dialing.  The next time they try to connect,
they'll continuously report "searching" as the registration status
and return CME ERROR 30 (No Network Service) for lots of requests.
So initiate a PS attach (which should return OK if the modem is
already attached) before dialing, and if that fails cancel the
dial attempt.

See http://mail.gnome.org/archives/networkmanager-list/2010-October/msg00072.html

"I talked about this problem with a contact at SierraWireless. He said that
a firmware upgrade will not help in this case. But what can help is checking
for PS attach and dial only if PS attach status is attached. Dialing without
PS attach can bring modem into unwanted condition that sometimes restart is
needed to recover."
2010-10-30 12:31:08 -05:00
Dan Williams
f93e24dda3 sierra: fix ICCID requests
Depending on when the core requested the ICCID, the port may or may
not be open.  Stuff that needs an open serial port needs to make sure
that the port gets opened itself.
2010-10-25 21:00:26 -05:00
Dan Williams
1684d8b173 gsm: add SimIdentifier property
An obfuscated SimIdentifier that may be available before the PIN has
been entered, for use in auto-unlocking a device.  If this value is
present, it should be used in preference to DeviceIdentifier as it
is SIM-specific like the PIN code.
2010-10-25 17:41:08 -05:00
Dan Williams
7ae8ffe21b core: use hardware IDs as part of DeviceIdentifier
Pass the device's hardware IDs through modem creation and use them
when calculating the device's identifier.  Add a bunch of testcases
for real hardware to ensure we don't break the device ID in the
future unless we really want to.
2010-10-22 11:06:48 -05:00
Torgny Johansson
9fa20cd018 mbm: add HP branded f3607gw and f3307 devices 2010-10-14 17:15:14 -05:00
Dan Williams
a9152f21ff huawei: fix potential double-free on error (rh #632516) 2010-10-06 23:09:06 -05:00
Dan Williams
acc4541ab3 zte: add more port tags 2010-10-06 22:55:12 -05:00
Dan Williams
79f05cbcec x22x: add simple plugin for Alcatel X220D
And possibly the X225 as well.  Can't tell much about the modem and
what commands it supports other than AT+SYSSEL for mode selection.
The driver software and connection manager for Windows/Mac OS X are
written by JRD Communication in China, which is a subsidiary of
TCT, which makes Alcatel-branded phones and data sticks.  But it
doesn't appear to be the same firmware as other Alcatel/T&A modems
like X060S and such which are supported by the Longcheer plugin.
2010-09-22 16:04:25 -05:00
Dan Williams
49097b6de5 core: prefer CDMA capabilities over GSM for dual-mode devices (bgo #621815)
For devices like the UMW190 that appear to be dual-mode without needing a
firmware reload (unlike Gobis, which are dual-mode but require a reboot with
different firwmare) prefer CDMA capabilities since that's where these devices
will most likely be used more often.  In the end we'll need to change MM to
advertise a "capabilities" attribute on the modem class and modify devices
such that they can implement both GSM and CDMA semantics at the same time.
2010-09-21 14:56:47 -05:00
Dan Williams
b4d3ab014d build: use automake silent rules 2010-08-05 22:51:28 -05:00
Dan Williams
7e2d63d2c2 zte: add more port tags 2010-08-04 02:18:37 -05:00
Dan Williams
15a4592ef9 novatel: fix distcheck 2010-07-20 12:53:05 -07:00
Dan Williams
56665c19af nokia: N900 appears to need a longer port delay (rh #583691) 2010-07-09 12:35:36 -07:00
Dan Williams
6f40ecbed5 novatel: detect CDMA home/roaming status 2010-07-02 16:57:28 -07:00
Dan Williams
dbc7f3d297 novatel: fix S720 signal quality reporting 2010-07-02 15:34:05 -07:00
Torgny Johansson
48dbece33c mbm: add factory reset support 2010-06-23 16:39:13 -07:00
Dan Williams
c95216e575 huawei: add support for UnlockRetries 2010-06-22 14:06:13 -07:00
Torgny Johansson
f179a56908 gsm: add UnlockRetries property
Which reports the # of attempts remaining for the current PIN required
by the device or SIM.

Some modifications/cleanups by dcbw.
2010-06-22 14:05:09 -07:00
Dan Williams
a60216f5f4 huawei: use g_timeout_add_seconds() 2010-06-22 01:58:41 -07:00
Dan Williams
c311c3419c simtech: fix unsolicited access technology parsing 2010-05-20 12:05:50 -07:00
Dan Williams
ef747c6385 sierra: rework CDMA roaming and registration parsing
There were a few problems:

1) If SysMode is present, the registration state it reports should
be authoritative, but if there was a valid SID the plugin would
report 'registered' even if SysMode was NO SRV

2) Turns out that some devices report the roaming values as ERIs,
not plain yes/no as we thought; reported ERI was being mis-parsed
as a boolean value.
2010-05-18 13:17:49 -07:00
Dan Williams
40a4a1d774 simtech: fix plugin build 2010-05-18 10:13:04 -07:00
Dan Williams
4fd85c14a1 simtech: add plugin for Simtech-based modems (like A-Link 3GU) 2010-05-17 23:18:09 -07:00
Torgny Johansson
6a663c3a48 mbm: catch *E2NAP error codes too 2010-05-17 21:59:58 -07:00
Dan Williams
15962279a3 mbm: (trivial) line ending change?
No idea what git thinks is different about these two lines, they
strcmp() the same.
2010-05-17 21:56:45 -07:00
Dan Williams
52f8ead7c0 trivial: fix comment 2010-05-11 12:22:47 -07:00
Dan Williams
425c28dfc1 longcheer: handle TAMobile/Alcatel X060s vendor ID too
These are Longcheer-based devices, but the vendor ID is different.
We had tagged the X060s' ports in the rules but never updated the
plugin to handle the different vendor ID.
2010-05-06 15:28:43 -07:00
Dan Williams
9a6aa0c10d option/hso: eat +PACSP0 unsolicited response
Interfered with initial PIN checking in some cases.
2010-05-05 15:47:14 -07:00
Dan Williams
f0e0861aa4 longcheer: add support for access technology and allowed modes 2010-05-01 22:44:00 -07:00
Dan Williams
da8cf4a7c2 gsm: use generic string -> access technology helper 2010-05-01 22:42:58 -07:00
Dan Williams
4c3eedd955 longcheer: add more Zoom product tags (4595, 4596, etc) 2010-05-01 11:15:49 -07:00