Commit Graph

286 Commits

Author SHA1 Message Date
Aleksander Morgado
1fb0b9d79b wavecom: disable default power up command 2011-04-11 10:04:27 +02:00
Aleksander Morgado
262edb96d5 wavecom: handle READY without OK in CPIN? reply 2011-04-11 10:04:27 +02:00
Aleksander Morgado
f91ee7af7d wavecom: add initial dummy plugin 2011-04-11 10:04:27 +02:00
Dan Williams
f4a26ec2b6 hso: use zero send_delay since Option firmware is generally excellent 2011-04-08 16:20:43 -05:00
Dan Williams
ed5aefb3cb serial: allow plugins to specify probe-time send_delay
Let modems we know don't suck use a zero send-delay at probe time,
which greatly reduces time required to probe AT-compatible ports.
2011-04-08 16:19:36 -05:00
Dan Williams
273f4203d4 serial: send entire command in one write if send_delay is 0 (chromium:13506)
Avoids additional USB latency and groups the whole command into one
USB packet.

BUG=chromium-os:13506
2011-04-08 15:42:28 -05:00
Elly Jones
2640baefa4 samsung: add Reset and UnlockRetries.
BUG=chromeos-partner:2999, chromeos-partner:3215
TEST=network_LockedSIM

Change-Id: I17c25c52fa5cf4cffa94e73bd827eaae9e687df0
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Signed-off-by: Jason Glasgow <jglasgow@chromium.org>
Signed-off-by: Jun Woo Lee <jw86.lee@samsung.com>
2011-04-08 15:30:58 -05:00
Dan Williams
68038cb926 samsung: fix style of samsung_call_control() name 2011-03-27 16:03:22 -05:00
Dan Williams
29b7ac3ddb samsung: fix up disconnect
Two issues here, first we dont' need to chain up to the parent
because it's not doing anything we need (it's mainly for PPP-based
devices) and second we need to wait a bit for the disconnect command
to complete by specifying a callback, otherwise the command may get
discarded when the port is shut down afterward.
2011-03-27 16:01:10 -05:00
Dan Williams
4b15737f8d samsung: streamline enable/init process
Don't need init retries since the modem seems pretty sane, and we
also don't need to call AT+CFUN=1 twice.  Just once should be
fine.  We also don't need any "flashing" since the modem doesn't
really do PPP and thus shouldn't need any of the serial port
carrier stuff to get its attention, since we'll never be using
PPP on any of its ports.
2011-03-27 15:59:27 -05:00
Dan Williams
3593094eb7 samsung: remove debug code 2011-03-27 15:47:08 -05:00
Dan Williams
7daad80242 samsung: fix access technology detection
Need to send the MM allowed mode back to the caller, not the
Icera mode.  Simple typo in original plugin patch I think.
2011-03-27 15:45:29 -05:00
Dan Williams
791677ca40 samsung: make a few local functions private
No need for them to be public as they aren't used anywhere else.
2011-03-27 15:41:47 -05:00
Dan Williams
9d1c02f553 samsung: clean up modem detection
Use standard vendor/device id detection mechanisms and handle the
net port like other net ports are handled, by just claiming it.  Also
reject CDMA modems for now.
2011-03-27 15:26:55 -05:00
Dan Williams
35b3e348e6 samsung: drop PORT_TYPE_ECM
Isn't really needed since it's just the same as any other net
device port type.
2011-03-27 15:23:44 -05:00
Dan Williams
b76889c358 samsung: spacing, style, and build fixes
Clean up the spacing and use more consistent styling.
2011-03-27 15:18:09 -05:00
Aleksander Morgado
d66bfc7b11 samsung: fix compilation 2011-03-27 15:15:58 -05:00
Elly Jones
895aa99e6d zte: fix build dependency race with Icera utils bits (chromium-os:13398) 2011-03-24 12:22:51 -05:00
Jun Woo Lee
4ad0c01be0 modemmanager: Add support for Samsung Y3300 modem
BUG=chrome-os-partner:2394
TEST=gmerge modemmanager, watch logs, see detected as Samsung modem, connect to AT&T network

Review URL: http://codereview.chromium.org/6614026
Patch from Jun Woo Lee <jw86.lee@samsung.com>.

Change-Id: I913628ff4a1cd16c8180e3c808644b0134e69e31
2011-03-11 21:50:05 -06:00
Thomas Bechtold
b3b1d5309a core: allow plugins to handle custom init responses 2011-03-11 20:25:22 -06:00
Dan Williams
b0b9ea95cf simtech: add port tags for SCT U300 (Element Mobile) 2011-02-17 15:44:23 -06:00
Dan Williams
8f223f45f9 zte: fix handling of Icera simple connect process
Yay for GInterface.
2011-02-01 22:52:34 -06:00
Dan Williams
d1f4b07e0e icera: fix username and password ordering for authentication 2011-02-01 22:48:55 -06:00
Dan Williams
16039244bb core: rework logging
Make it more flexible, add logging to a file, and absolute and
relative timestamps.
2011-01-23 20:51:48 -06:00
Dan Williams
f85b014d84 build: fix distcheck 2011-01-23 20:42:32 -06:00
Dan Williams
d908389aff core: add modem reset/power-cycle command
Based on a patch by Elly Jones from Google.
2011-01-14 12:17:02 -06:00
Dan Williams
12b144e120 zte: add more ZTE port tags (LW272, others) 2011-01-12 15:30:23 -06:00
Dan Williams
63cb7f29a9 huawei: quiet annoying log message 2011-01-03 14:42:44 -06:00
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