From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Huawei E3372
Date: Tue, 14 Feb 2017 09:47:11 -0600 [thread overview]
Message-ID: <a81bb17d-4b7e-e272-91ae-045b2f032500@gmail.com> (raw)
In-Reply-To: <088d60e2-4e2c-c7d0-47ab-0022de446b14@kerlink.fr>
[-- Attachment #1: Type: text/plain, Size: 1031 bytes --]
Hi Christophe,
> usb 1-1: New USB device found, idVendor=12d1, idProduct=15b7
> Using ATI, modem present itself like that:
>
> Manufacturer: huawei
> Model: E3372H
> Revision: 21.315.01.00.314
> IMEI: XXXX
> +GCAP: +CGSM,+DS,+ES
>
> My problem now is how to know if I should send AT+CGDATA="PPP",1 or
> ATD*99***1# when activating context in at modem driver. I see in this
> driver and others that a VENDOR information can be sent from plugin but
> I imagine that other Huawei devices support AT+CGDATA="PPP",1.
>
> Do you have any idea of what I should do to support this modem without
> disturbing other devices?
You could build a database of various quirks that are required for each
model. The index into the database could be the product id if it is
unique, or the model / revision information from 'ATI"
Another idea would be to have the gprs context driver try to parse the
AT+CGDATA=? response. If 'PPP' L2P is not found, then fallback to using
ATD*99.
Regards,
-Denis
next prev parent reply other threads:[~2017-02-14 15:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-14 9:53 Huawei E3372 Christophe Ronco
2017-02-14 15:47 ` Denis Kenzior [this message]
2017-02-14 16:37 ` Christophe Ronco
2017-02-14 16:47 ` Denis Kenzior
2017-02-15 16:38 ` [PATCH 0/1] Use ATD*99 to enter data state when needed Christophe Ronco
2017-02-15 16:38 ` [PATCH] atmodem: use ATD99 " Christophe Ronco
2017-02-15 20:39 ` Denis Kenzior
2017-02-16 8:40 ` [PATCH v2] " Christophe Ronco
2017-02-16 17:53 ` Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a81bb17d-4b7e-e272-91ae-045b2f032500@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.