Open Source Telephony
 help / color / mirror / Atom feed
From: Ryan Raasch <ryan.raasch@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 2/2] This patch enables the pin number and type of pin to be sent to daemon to unlock the sim card.
Date: Thu, 29 Oct 2009 15:17:00 +0100	[thread overview]
Message-ID: <4AE9A3DC.5060503@gmail.com> (raw)
In-Reply-To: <1256824850.5768.43.camel@localhost.localdomain>

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



Marcel Holtmann wrote:
> Hi Ryan,
> 
>> ---
>>  test/enable-sim |   18 ++++++++++++++++++
>>  1 files changed, 18 insertions(+), 0 deletions(-)
>>  create mode 100755 test/enable-sim
>>
>> diff --git a/test/enable-sim b/test/enable-sim
>> new file mode 100755
>> index 0000000..bbfd34f
>> --- /dev/null
>> +++ b/test/enable-sim
>> @@ -0,0 +1,18 @@
>> +#!/usr/bin/python
>> +
>> +import dbus
>> +import sys
>> +
>> +bus = dbus.SystemBus()
>> +
>> +manager = dbus.Interface(bus.get_object('org.ofono', '/'),
>> +						'org.ofono.Manager')
>> +
>> +properties = manager.GetProperties()
>> +
>> +path = properties["Modems"][0]
>> +
>> +modem = dbus.Interface(bus.get_object('org.ofono', path),
>> +						'org.ofono.SimManager')
>> +
>> +modem.EnterPin(sys.argv[1], sys.argv[2])
> 
> call this script enter-pin and have it check if a PIN is actually
> required.
> 

No prob.

Thanks,
Ryan

> Regards
> 
> Marcel
> 
> 
> _______________________________________________
> ofono mailing list
> ofono(a)ofono.org
> http://lists.ofono.org/listinfo/ofono

      reply	other threads:[~2009-10-29 14:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-29 13:54 [PATCH 0/2] python test scripts Ryan M. Raasch
2009-10-29 13:54 ` [PATCH 1/2] Added functionality to remove modem from system, if needed Ryan M. Raasch
2009-10-29 14:00   ` Marcel Holtmann
2009-10-29 14:16     ` Ryan Raasch
2009-10-29 14:20       ` Marcel Holtmann
2009-10-29 16:16         ` Ryan Raasch
2009-10-29 16:29           ` Denis Kenzior
2009-10-29 16:27         ` Denis Kenzior
2009-10-29 13:54 ` [PATCH 2/2] This patch enables the pin number and type of pin to be sent to daemon to unlock the sim card Ryan M. Raasch
2009-10-29 14:00   ` Marcel Holtmann
2009-10-29 14:17     ` Ryan Raasch [this message]

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=4AE9A3DC.5060503@gmail.com \
    --to=ryan.raasch@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox