From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Access to SIM card when Modem is not "Powered"
Date: Tue, 30 Mar 2010 18:24:09 -0500 [thread overview]
Message-ID: <201003301824.09951.denkenz@gmail.com> (raw)
In-Reply-To: <80fd4e751003301555y26bb4719sa6c69d24345cf6e3@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 4792 bytes --]
Hi Pekka,
> >> I'm trying to
> >> 1) load atoms only after when isimodem is up and running and reset the
> >> state of the isimodem atoms in case the isimodem reboots (or user
> >> turns off a Nokia handset connected via USB)
> >> 2) have asyncronous probe and remove
> >> 3) separate rf state and availablity of the atoms, especially the SIM
> >> atoms.
> >>
> >> With the current enable/disable/ofono_modem_set_powered, I can do 1)
> >> or 2), but not both. I can not do 3 at all.
> >
> > non of these should be solved via the D-Bus at all. Really this is
> > internal modem specific details. You are approaching this wrongly.
>
> 1) and 2) are already done through D-Bus, only thing is missing is
> oFono core properly supporting transitions between Powered false and
> true.
So I just checked again, and we remove all atoms when turning off (even if off
subsequently fails). So I really don't see a need to expose the transition
(e.g. going up, going down) as a property. How do you want to use this
information?
>
> > 1) If the modem reboots, then handle this inside the isimodem plugin of
> > oFono.
>
> It is already handled fine in core. isidriver calls
> ofono_modem_set_powered(false) when it detects that isimodem reboots.
> When modem is back in business, it calls
> ofono_modem_set_powered(true).
>
> Is there a particular reason why I should reinvent the wheel?
>
From your earlier posts it wasn't clear that you're happy with how this works.
I perceived that there was some issue...
> >No reason to involve userspace here. If the handset gets turned
> > off, then the modem object just goes away.
>
> What is the difference between modem object not being there at all and
> modem object being there, but with Powered=false?
Think of it conceptually as a USB device being in an off state but still on the
bus. You still know the device is attached, even if it is of limited use.
Remember that we use this to populate remote bluetooth devices, modems
configured via modemconf and udev/netlink. This conveys presence and potential
usability.
>
> With the current ofono core, removing the object path will also remove
> the config information.
What are you using the config information for? It is possible that we should
implement ofono_modem_unregister that would keep around the non-driver bits of
the modem object. So far I have not done so because I saw no need...
>
> > 2) What do you mean by this. They are asynchronous.
>
> Not in the master branch. enable() and disable() are async, probe()
> and remove() are sync.
probe and remove are sync for a reason, the core is going to become extremely
complicated otherwise. Been there and done that, so you better have a very
good reason for wanting this.
>
> How the driver knows if the disable() is called because someone just
> tried to set Powered=false or if ofonod is terminating? In first case,
> I just want modem to go standby (and flush the atoms) and keep the SIM
> warmed up and ready, in the second case, driver should ask modem to do
> proper power off and then does all the required jazz with the gpio
> lines. It would be help much if disable() would indicate if "soft"
> poweroff or "hard" poweroff is required; likewise
This can be added, but the question is are you sure you need it? None of the
other hardware we have would benefit from this functionality at all. This
immediately raises the question of usefulness. Are you sure this isn't better
accomplished by a specific plugin for your system as discussed elsewhere in
this thread?
> ofono_modem_set_powered() could take enum with transitional states
> (powering_on, powered_on, powering_off, powered_off + perhaps
> something like powered_standby). If you don't feel like doing it, I'm
> happy to contribute.
Again, usecase please. How are you going to use this information?
>
> > 3) I don't understand this. We have pre-sim and post-sim functionality.
> > If you RFKILL a radio it would be same as removing its object path. Or
> > do you wanna access the SIM card while RFKILLed. What is that good for?
>
> Nobody wants to re-enter the pin code if they exit flight mode. It
> should be possible to spool SMSs while the device is in flight mode.
>
> Is there any good reason to keep SIM offlimits?
Please note that if your enable/disable behavior only shuts the rx/tx circuits
then repeating PIN entry won't be a problem. And I already commented on this
elsewhere in the thread.
All I ask is that before we start adding tons of properties we first make sure
the user can actually use them intelligently, that there is an actual (not
just perceived) use case.
Regards,
-Denis
next prev parent reply other threads:[~2010-03-30 23:24 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-19 17:24 Access to SIM card when Modem is not "Powered" Pekka Pessi
2010-03-19 18:18 ` Denis Kenzior
2010-03-29 18:29 ` Pekka Pessi
2010-03-29 18:40 ` Bastian, Waldo
2010-03-30 11:39 ` Pekka Pessi
2010-03-30 14:22 ` Marcel Holtmann
2010-03-29 18:53 ` Denis Kenzior
2010-03-30 11:36 ` Pekka Pessi
2010-03-30 4:50 ` Denis Kenzior
2010-03-30 15:34 ` Pekka Pessi
2010-03-30 15:45 ` Marcel Holtmann
2010-03-30 16:40 ` Pekka Pessi
2010-03-30 18:02 ` Marcel Holtmann
2010-03-30 22:55 ` Pekka Pessi
2010-03-30 23:24 ` Denis Kenzior [this message]
2010-04-01 9:14 ` Pekka Pessi
2010-04-01 12:44 ` Aki Niemi
2010-04-01 15:09 ` Denis Kenzior
2010-04-01 15:07 ` Denis Kenzior
2010-04-12 14:08 ` Pekka Pessi
2010-04-15 21:54 ` Denis Kenzior
2010-03-30 17:26 ` Aki Niemi
2010-03-30 16:13 ` Denis Kenzior
2010-03-30 17:37 ` Aki Niemi
2010-03-30 18:05 ` Denis Kenzior
2010-03-30 18:27 ` Aki Niemi
2010-03-30 11:57 ` Aki Niemi
2010-03-30 14:19 ` Marcel Holtmann
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=201003301824.09951.denkenz@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.