> De : Marcel Holtmann
> Hi Benoit,
> the friendly modem name is for devices that do have a friendly name,
> like Bluetooth headsets. Why do you wanna misuse the interface name
> here. I am a bit against this, because it leads to speculation and
> assumptions in userspace programs.
Maybe I should give some details of what I'm trying to achieve. The
device we're building has 2 identical modems with fixed position on
USB. We also have the possibility to drive their power supply
independently and to swap the sim cards.
I need a way to know which one is modem A and which one is modem B
and I have no easy way of knowing the modem serial number or the
sim subscriber id beforehand. With an udev rule, I can easily set
a fixed name for the network interface of each modem. But under
ofono, I can't tell which modem is which. That's why I added this
Is there a way of knowing which physical modem ofono is refering to ?
I recognize that our case may not be the most common and I understand
that you don't want to abuse the Name property. Maybe exposing the
NetworkInterface as a modem property would be ok ? or exposing
a PhysicalName ?
> > Hi Rajesh,
> > > doc/modem-api.txt | 9 +++++++++
> > > 1 files changed, 9 insertions(+), 0 deletions(-)
> > >
> > > diff --git a/doc/modem-api.txt b/doc/modem-api.txt index
> > > c48375e..f5a3026 100644
> > > --- a/doc/modem-api.txt
> > > +++ b/doc/modem-api.txt
> > > @@ -43,6 +43,15 @@ Properties boolean Powered [readwrite]
> > > modem. The Emergency is true if an
> > emergency call or
> > > related operation is currently active.
> > >
> > > + string ModemAccessTechnology [readonly]
> > > +
> > > + Contains current access techonology of
> > the modem.
> > > + Possible values are:
> > > + "gsm" - the current modem access
> > technology is GSM
> > > + "cdma" - the current modem access
> > technology is CDMA
> > > +
> > > + By default oFono uses "gsm" setting.
> > > +
> > so you are in the org.ofono.Modem interface and its
> properties and you
> > wanna prefix the property with "Modem".
> > That is rather pointless duplication of information. So just strip
> > that.
> I prefix it with Modem just not to mix with the Network
> Access Technology. From the property name prespective I agree
> with you, its an redundant info as we are in org.ofono.Modem interface
> > The obvious question we have to discuss, if we really wanna
> do it this
> > way. What are the pros and what are the cons?
> I quite didnt get this query, pros and cons about this
> property usage or ?
Any update on this ? If Modem prefix is the only comment, I can
remove and resubmit the patch again. or is there more comments ?
From: Guillaume Lucas <guillaumex.lucas(a)intel.com>
Is' the first bit of the sim file status who indicates if a file
is valid or not. So a mask must be used to check this.
src/sim.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/sim.c b/src/sim.c
index 02ab329..2ee2b29 100644
@@ -1290,7 +1290,7 @@ static void sim_efbdn_info_read_cb(int ok, unsigned char file_status,
- if (file_status == SIM_FILE_STATUS_VALID)
+ if (file_status & SIM_FILE_STATUS_VALID)
@@ -1327,7 +1327,7 @@ static void sim_efadn_info_read_cb(int ok, unsigned char file_status,
- if (file_status != SIM_FILE_STATUS_VALID)
+ if (!(file_status & SIM_FILE_STATUS_VALID))
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris,
92196 Meudon Cedex, France
Registration Number: 302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
Le jeudi 04 novembre 2010 à 09:16 -0500, Denis Kenzior a écrit :
> Hi Frederic,
> On 11/04/2010 06:15 AM, Frederic Crozat wrote:
> > Hi,
> > I'm trying to get ofono working properly with integrated 3G card on my
> > EEE PC.
> > Card is Huawei EM 770 (12d1:1001).
> > I'm testing with ofono 0.34.
> > so far, the modem is correctly detected :
> > list-modem returns :
> > [ /huawei0 ]
> > Features = sim
> > Powered = 1
> > Interfaces = org.ofono.SimManager
> > Online = 0
> > Model = EM770
> > Manufacturer = huawei
> > Serial = ....
> > Revision = 220.127.116.11.00
> > [ org.ofono.SimManager ]
> > Present = 0
> What is happening is that oFono thinks the sim is not inserted, and it
> does not proceed further with modem initialization. oFono polls the
> SYSINFO command, with one of the fields being the status of the SIM.
> Do you have a SIM PIN set? The current huawei driver does not handle
> this case gracefully yet, mainly because the huawei firmware is quite
Since I'm using SIM card from my N900, I've disabled PIN code and ofono
worked properly and I was able to connect to my 3G operator (and see it
is locking me out, because I have a 3G phone subscription and it is
seeing a modem IMEI ...).
So, next part would be to get PIN code working ;)
>From other collegues who bought the same netbook, it seems umtsmon is
able to get PIN unlocking for this card.
Frederic Crozat <fcrozat(a)novell.com>