All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guillaume Zajac <guillaume.zajac@linux.intel.com>
To: ofono@ofono.org
Subject: Re: The way to install proper driver for 3G dongle in oFono
Date: Tue, 20 Dec 2011 17:01:28 +0100	[thread overview]
Message-ID: <4EF0B158.9010301@linux.intel.com> (raw)
In-Reply-To: <4EF06B4B.90002@linux.intel.com>

[-- Attachment #1: Type: text/plain, Size: 1755 bytes --]

Hi again,

On 20/12/2011 12:02, Guillaume Zajac wrote:
> Hi Deng,
>
> On 20/12/2011 09:44, Deng, Ying An wrote:
>>
>> Hi,
>>
>> We are facing a problem in oFono when using 3G modems:
>>
>> A CDMA2000 modem can have same PID with WCDMA modem, or TDS-CDMA 
>> modem -- 3G modem vendors already confirm they do that.
>>
>> That's to say, if following current strategy, it will be a problem to 
>> install proper driver for this kind of 3G modem.
>>
>> So, is it feasible to find out a solution such as to probe the modem 
>> firstly, find out what kind of network modes it supports, and then 
>> install the driver?
>>
>> The way to probe the modem could be some action as to read the 
>> capability or get system mode, or issue some specific AT command that 
>> only response to certain network mode?
>>
>
> Indeed, we could use for Huawei modems for instance the AT^SYSINFO 
> command and retrieve the sys_mode field and parse it, I have found 
> this in public Huawei specifications:
>
> <sys_mode>: System mode. The values are as follows:
> 0 No service.
> 1 AMPS mode
> 2 CDMA mode
> 3 GSM/GPRS mode
> 4 HDR mode
> 5 WCDMA mode
> 8 CDMA/HDR HYBRID mode
>
> Thus we can chose accordingly the drivers to create oFono atoms.

After some investigations, it seems SYSINFO won't be enough to get the 
modem type because with this AT command we will have to be registered to 
the network to get the system mode.
The only way I found until now is using the AT+GCAP to check whether the 
modem is CDMA or GSM type.
However if we do the AT+GCAP request for each constructor plugin 
(huawei, zte, ...) it will bring some duplicated code.
Does someone see any better solution?

Thanks.

Kind regards,
Guillaume

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 4996 bytes --]

  reply	other threads:[~2011-12-20 16:01 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-20  8:44 The way to install proper driver for 3G dongle in oFono Deng, Ying An
2011-12-20 11:02 ` Guillaume Zajac
2011-12-20 16:01   ` Guillaume Zajac [this message]
2011-12-20 16:41     ` Marcel Holtmann
2011-12-21  7:34       ` Deng, Ying An
2011-12-21 16:05         ` Marcel Holtmann
2011-12-22  9:48           ` Guillaume Zajac
2011-12-22 17:09             ` Marcel Holtmann
2011-12-23  3:18               ` Deng, Ying An
2011-12-23  3:26                 ` Marcel Holtmann
2011-12-23  4:01                   ` Deng, Ying An
2011-12-23  4:44                     ` Marcel Holtmann
2011-12-23 14:03                       ` Deng, Ying An
2012-01-04  9:57                         ` Guillaume Zajac
2012-01-04 15:29                           ` Marcel Holtmann
2012-01-04 15:48                             ` Guillaume Zajac
2012-01-04 16:12                               ` Marcel Holtmann
2012-01-04 16:31                                 ` Guillaume Zajac
2012-01-04 16:48                                   ` Marcel Holtmann
2012-01-05  8:59                                     ` Guillaume Zajac
2012-01-05 10:44                                       ` Marcel Holtmann
2012-01-05 16:17                                         ` Guillaume Zajac

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=4EF0B158.9010301@linux.intel.com \
    --to=guillaume.zajac@linux.intel.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.