All of lore.kernel.org
 help / color / mirror / Atom feed
* Ofono - Quering PIN authentication state failed
@ 2010-05-25 14:11 Naresh Mehta
  2010-05-25 14:36 ` Denis Kenzior
  0 siblings, 1 reply; 4+ messages in thread
From: Naresh Mehta @ 2010-05-25 14:11 UTC (permalink / raw)
  To: ofono

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

Hi All,

I am new to Ofono development but am very interested in checking it out and
see if I can contribute with something. I have pulled the ofono source and
am able to build the daemon. I have also been able to connect to the
AT-Modem interface on /generic (as defined in the modem.conf) file.

Below is the sequence of prints that I get on the daemon terminal after I
execute enable-modem in another terminal:

sudo ./src/ofonod -n -d 'plugins/*'
ofonod[8592]: oFono version 0.20
ofonod[8592]: plugins/atgen.c:atgen_enable() 0x93e9418
ofonod[8592]: plugins/atgen.c:atgen_pre_sim() 0x93e9418
ofonod[8592]: Querying PIN authentication state failed
ofonod[8592]: Querying PIN authentication state failed

I also do a GetProperties on SimManager which shows the following:

sudo dbus-send --print-reply --system --dest=org.ofono /generic
org.ofono.SimManager.GetProperties
method return sender=:1.165 -> dest=:1.169 reply_serial=2
   array [
      dict entry(
         string "Present"
         variant             boolean true
      )
      dict entry(
         string "SubscriberNumbers"
         variant             array [
            ]
      )
      dict entry(
         string "LockedPins"
         variant             array [
            ]
      )
      dict entry(
         string "PinRequired"
         variant             string "none"
      )
   ]

The problem that I have is that I can't see any more interfaces in either
the /generic or / path. The only interfaces it shows on / is
org.ofon.Manager. And on /generic it shows org.ofono.Modem and
org.ofono.SimManager. I saw the SimManager methods and since there is no PIN
set, I should be able to see further interfaces like VoiceCallManager and
SmsManager. But I am not able to see that.

Anybody has any ideas/paths for guiding me? I am stuck here and am not able
to send any dbus messages or execute the test scripts as the interfaces
themselves do not exists.

Thanks in advance.

BR; Naresh

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Ofono - Quering PIN authentication state failed
  2010-05-25 14:11 Ofono - Quering PIN authentication state failed Naresh Mehta
@ 2010-05-25 14:36 ` Denis Kenzior
  2010-05-26 10:05   ` Naresh Mehta
  0 siblings, 1 reply; 4+ messages in thread
From: Denis Kenzior @ 2010-05-25 14:36 UTC (permalink / raw)
  To: ofono

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

Hi Naresh,

> Hi All,
> 
> I am new to Ofono development but am very interested in checking it out and
> see if I can contribute with something. I have pulled the ofono source and
> am able to build the daemon. I have also been able to connect to the
> AT-Modem interface on /generic (as defined in the modem.conf) file.

It might help to tell us what modem you're using.

> 
> Below is the sequence of prints that I get on the daemon terminal after I
> execute enable-modem in another terminal:
> 
> sudo ./src/ofonod -n -d 'plugins/*'
> ofonod[8592]: oFono version 0.20
> ofonod[8592]: plugins/atgen.c:atgen_enable() 0x93e9418
> ofonod[8592]: plugins/atgen.c:atgen_pre_sim() 0x93e9418
> ofonod[8592]: Querying PIN authentication state failed
> ofonod[8592]: Querying PIN authentication state failed

Also, please setenv / export OFONO_AT_DEBUG=1 so that we can see the AT chat 
log.

> The problem that I have is that I can't see any more interfaces in either
> the /generic or / path. The only interfaces it shows on / is
> org.ofon.Manager. And on /generic it shows org.ofono.Modem and
> org.ofono.SimManager. I saw the SimManager methods and since there is no
>  PIN set, I should be able to see further interfaces like VoiceCallManager
>  and SmsManager. But I am not able to see that.

It might be that voicecall atom fails its initialization as well, the AT chat 
log should help.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Ofono - Quering PIN authentication state failed
  2010-05-25 14:36 ` Denis Kenzior
@ 2010-05-26 10:05   ` Naresh Mehta
  2010-05-26 16:56     ` Denis Kenzior
  0 siblings, 1 reply; 4+ messages in thread
From: Naresh Mehta @ 2010-05-26 10:05 UTC (permalink / raw)
  To: ofono

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

Hi Denis,

> It might help to tell us what modem you're using.
>
I am trying to use an ST-Ericsson modem. I think I might have a
wrong/non-functional (for this purpose) build flashled. I will try
again with a supposedly correct one.
> >
> > Below is the sequence of prints that I get on the daemon terminal after I
> > execute enable-modem in another terminal:
> >
> > sudo ./src/ofonod -n -d 'plugins/*'
> > ofonod[8592]: oFono version 0.20
> > ofonod[8592]: plugins/atgen.c:atgen_enable() 0x93e9418
> > ofonod[8592]: plugins/atgen.c:atgen_pre_sim() 0x93e9418
> > ofonod[8592]: Querying PIN authentication state failed
> > ofonod[8592]: Querying PIN authentication state failed
>
> Also, please setenv / export OFONO_AT_DEBUG=1 so that we can see the AT chat
> log.
>
I have exported that variable. There are no AT Chat logs printed since
the modem does not initialize (my guess). In the meantime, I tried
with ofono-phonesim and things have started working (atleast in
simulated environment). I had some problems initially to get the
phonesim working, mainly had to guess the argument list. But now that
things are rolling I am a bit more confident going ahead with my
experiments. I am thinking of writing a README for phonesim. Do you
think it will help somehow?

BTW, all the test scripts by default activate the modem[0] config so
it is not possible to have 2 modems connected and tested through those
scripts.

Do you think it might be an addition to modify the scripts to act
interactively for modem selection?

> > The problem that I have is that I can't see any more interfaces in either
> > the /generic or / path. The only interfaces it shows on / is
> > org.ofon.Manager. And on /generic it shows org.ofono.Modem and
> > org.ofono.SimManager. I saw the SimManager methods and since there is no
> >  PIN set, I should be able to see further interfaces like VoiceCallManager
> >  and SmsManager. But I am not able to see that.
>
> It might be that voicecall atom fails its initialization as well, the AT chat
> log should help.
>


> Regards,
> -Denis

Thanks for your help once again. And I might bug again :).

--

BR; Naresh

visit me at:
http://www.naresh.se/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Ofono - Quering PIN authentication state failed
  2010-05-26 10:05   ` Naresh Mehta
@ 2010-05-26 16:56     ` Denis Kenzior
  0 siblings, 0 replies; 4+ messages in thread
From: Denis Kenzior @ 2010-05-26 16:56 UTC (permalink / raw)
  To: ofono

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

Hi Naresh,

> phonesim working, mainly had to guess the argument list. But now that
> things are rolling I am a bit more confident going ahead with my
> experiments. I am thinking of writing a README for phonesim. Do you
> think it will help somehow?

Patches of all kinds are always welcome.  Updated README / HACKING for 
phonesim would be excellent.

> 
> BTW, all the test scripts by default activate the modem[0] config so
> it is not possible to have 2 modems connected and tested through those
> scripts.
> 
> Do you think it might be an addition to modify the scripts to act
> interactively for modem selection?
> 

Some scripts already support giving the modem path on the command line (e.g. 
enable-modem).  You'd have to check if all of them do this or not.  But in 
general this behavior (and patches) would be desirable :)

Regards,
-Denis

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-26 16:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-25 14:11 Ofono - Quering PIN authentication state failed Naresh Mehta
2010-05-25 14:36 ` Denis Kenzior
2010-05-26 10:05   ` Naresh Mehta
2010-05-26 16:56     ` Denis Kenzior

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.