Re: Access to SIM card when Modem is not Powered

2010-04-15 Thread Denis Kenzior
Hi Pekka, Attached. In the future, can you please use git-send-email so that I can comment on the patch much easier. So far I like the idea of disable having a hint on whether a shutdown is in progress more than an explicit shutdown method. That is also possible, but then we need

Re: Access to SIM card when Modem is not Powered

2010-04-01 Thread Pekka Pessi
Hi Denis, 2010/3/31 Denis Kenzior denk...@gmail.com: 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

Re: Access to SIM card when Modem is not Powered

2010-04-01 Thread Aki Niemi
to, 2010-04-01 kello 11:14 +0200, ext Pekka Pessi kirjoitti: It seems to me that Marcel and Aki want to control TX power with the Powered property. (BTW, there already is a post-sim mechanism to control the RX/TX, namely Register/Deregister.) But then Register()'s meaning is overloaded to mean

Re: Access to SIM card when Modem is not Powered

2010-04-01 Thread Denis Kenzior
Hi Aki, to, 2010-04-01 kello 11:14 +0200, ext Pekka Pessi kirjoitti: It seems to me that Marcel and Aki want to control TX power with the Powered property. (BTW, there already is a post-sim mechanism to control the RX/TX, namely Register/Deregister.) But then Register()'s meaning is

Re: Access to SIM card when Modem is not Powered

2010-03-30 Thread Pekka Pessi
2010/3/29 Denis Kenzior denk...@gmail.com: However, then powering modem down, there are problems. The N900 modem control needs to make difference between the state where the modem is no more useful and the safe-to-exit state when the power off request has been completed, modem has flushed its

Re: Access to SIM card when Modem is not Powered

2010-03-30 Thread Pekka Pessi
2010/3/29 Bastian, Waldo waldo.bast...@intel.com: Pekka Pessi wrote: I've been porting the N900 modem control code to oFono. The semantics of Powered is fine with respect of the atoms, in other words, if the modem crashes and boots itself, all the atoms are flushed nicely. When powering up,

Re: Access to SIM card when Modem is not Powered

2010-03-30 Thread Aki Niemi
ti, 2010-03-30 kello 13:36 +0200, ext Pekka Pessi kirjoitti: Another solution is to use sscd-like daemon also with ofono (the oFono Powered property would then just follow the power state of the modem). My preference would be to have these things handled as oFono plugins. That being the

Re: Access to SIM card when Modem is not Powered

2010-03-30 Thread Denis Kenzior
Hi Pekka, That is also a problem. The other problem is that the party controlling the modem power state is supposed to keep GPIO lines in known position for a while after the modem has indicated it has been powered down. In an N900 running maemo, a daemon called sscd does that. sscd exits

Re: Access to SIM card when Modem is not Powered

2010-03-30 Thread Marcel Holtmann
Hi Pekka, I've been porting the N900 modem control code to oFono. The semantics of Powered is fine with respect of the atoms, in other words, if the modem crashes and boots itself, all the atoms are flushed nicely. When powering up, the Powered can be set to true when the modem is

Re: Access to SIM card when Modem is not Powered

2010-03-30 Thread Marcel Holtmann
Hi Pekka, That is also a problem. The other problem is that the party controlling the modem power state is supposed to keep GPIO lines in known position for a while after the modem has indicated it has been powered down. In an N900 running maemo, a daemon called sscd does that. sscd

Re: Access to SIM card when Modem is not Powered

2010-03-30 Thread Denis Kenzior
Hi Aki, 2010/3/30 Denis Kenzior denk...@gmail.com: The answer is that exposing this as a property is not going to happen because it is fundamentally wrong. And in effect it already is exposed, e.g. the fact that modem object is present in oFono. You have several options here: So I

Re: Access to SIM card when Modem is not Powered

2010-03-30 Thread Aki Niemi
2010/3/30 Denis Kenzior denk...@gmail.com: We need to look closely at whether enabling flight mode (e.g. SIM on, while TX/RX is off) makes sense.  It is something we should consider, but challenging since most of the SIM attributes are exposed through atoms which won't be generally available

Re: Access to SIM card when Modem is not Powered

2010-03-30 Thread Pekka Pessi
2010/3/30 Marcel Holtmann mar...@holtmann.org: So I'm still having trouble understanding the issue.  When oFono calls disable, the driver is expected to take all necessary steps to disable the modem.  If that means waiting N seconds after the command has been sent, so be it.  

Re: Access to SIM card when Modem is not Powered

2010-03-29 Thread Pekka Pessi
Hi denis, 2010/3/19 Denis Kenzior denk...@gmail.com: I've been talking about this exact issue with Marcel but so far we have not firmly agreed on any solution.  Our current thinking is to keep Powered semantics as they are, but to also add Flight mode property.  This would in affect allow

RE: Access to SIM card when Modem is not Powered

2010-03-29 Thread Bastian, Waldo
Pekka Pessi wrote: I've been porting the N900 modem control code to oFono. The semantics of Powered is fine with respect of the atoms, in other words, if the modem crashes and boots itself, all the atoms are flushed nicely. When powering up, the Powered can be set to true when the modem is

Re: Access to SIM card when Modem is not Powered

2010-03-29 Thread Denis Kenzior
Hi Pekka, However, then powering modem down, there are problems. The N900 modem control needs to make difference between the state where the modem is no more useful and the safe-to-exit state when the power off request has been completed, modem has flushed its state to flash and given some

Re: Access to SIM card when Modem is not Powered

2010-03-19 Thread Denis Kenzior
Hi Pekka, Hi all, I think the Modem Powered property is meant to control the radios (something like at+cfun=0 vs. at+cfun=1..). Now core automatically removes all the atoms in case modem has Powered false. However, the SIM card should be accessible while the radios are off (cfun=0) so