Re: [PATCH] for ModemManager to add (partial) support for ZTE MF192
- From: Dan Williams <dcbw redhat com>
- To: Dmitry Morozhnikov <dmiceman mail ru>
- Cc: networkmanager-list gnome org
- Subject: Re: [PATCH] for ModemManager to add (partial) support for ZTE MF192
- Date: Thu, 02 Feb 2012 14:48:01 -0600
On Fri, 2012-02-03 at 05:08 +0900, Dmitry Morozhnikov wrote:
> Hello All.
>
> Not sure if this is a right place to post a patch. Actually a simple
> one, what drop more than add :-)
>
> Anyway..
>
> ZTE MF192 does not respond properly to the AT%IPDPACT command:
Hmm, fun. I see there's a RH bug report on this device too:
https://bugzilla.redhat.com/show_bug.cgi?id=770202
So a few questions...
1) does the device expose a pseudo-ethernet port like wwan0 at all?
2) can you grab the "AT+CLAC" and the "AT&V" output for me?
3) can you also grab "lsusb -v" output for the device?
4) Any chance you can grab the Windows installer from the fake CD before
it's switched to modem mode so I can take a look at how Windows drives
the device?
Ideally after all this we find out what commands it actually *does*
support. The Linux code from the link above doesn't help a lot.
Thanks,
Dan
> --> 'AT%IPDPCFG=1,0,1,"mts","mts"<CR>'
> <-- '<CR><LF>OK<CR><LF>'
> --> 'AT%IPDPACT=1,0<CR>'
> <-- '<CR><LF>ERROR<CR><LF>'
> Got failure code 100: Unknown error
> --> 'AT%IPDPACT=1,1<CR>'
> <-- '<CR><LF>ERROR<CR><LF>'
> Got failure code 100: Unknown error
>
> Thus, it can't work with icera command set. However, it partially work
> with generic command set:
>
> --> 'ATD*99***1#<CR>'
> <-- '<CR><LF>CONNECT 7200000<CR><LF>'
>
> but:
>
> --> 'AT+ZPAS?<CR>'
> <-- '<CR><LF>ERROR<CR><LF>'
>
> and more importantly:
>
> --> 'AT+ZSNT=1,0,0<CR>'
> <-- '<CR><LF>ERROR<CR><LF>'
>
> Can, please, someone point me to the way to avoid this incompatibilities?
>
> Anyway, I think it is better than nothing:
>
> diff --git a/plugins/mm-modem-zte.c b/plugins/mm-modem-zte.c
> index 88ef734..2ced846 100644
> --- a/plugins/mm-modem-zte.c
> +++ b/plugins/mm-modem-zte.c
> @@ -432,8 +432,10 @@ icera_check_cb (MMModem *modem,
> if (!error) {
> MMModemZte *self = MM_MODEM_ZTE (user_data);
> MMModemZtePrivate *priv = MM_MODEM_ZTE_GET_PRIVATE (self);
> + MMModemBase *base = MM_MODEM_BASE (user_data);
> + const char *model = mm_modem_base_get_model (base);
>
> - if (result) {
> + if (result && (!model || strcasecmp(model, "MF192"))) {
> priv->is_icera = TRUE;
> g_object_set (G_OBJECT (modem),
> MM_MODEM_IP_METHOD, MM_MODEM_IP_METHOD_STATIC,
> _______________________________________________
> networkmanager-list mailing list
> networkmanager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]