Hello, I answer to myself.
> > > > > 2) ezx does not accept at+cpin?, so it seems that the only solution is to > > > use the status variable insteed. It can only be a problem if frameworkd > is > > > launched again after the sim has been unlocked. But is it a real problem > ? > > > > I don't think it matters too much. Frameworkd tries hard to power off all > > devices when it shuts down, so on every startup should behave like all > > devices had been shut down. > > So there would be an easy solution to make SimGetAuthStatus work for EZX. > I will retest it. > It can be done with this : in freescale_neptune directory --- mediator.py.ms5 2009-02-06 10:29:11.000000000 +0100 +++ mediator.py.ms5.brico 2009-02-06 10:41:32.000000000 +0100 @@ -59,6 +59,21 @@ self._ok( result ) #=========================================================================# +class SimGetAuthStatus( SimMediator ): +#=========================================================================# + """ + Modem violating GSM 07.07 here. + + +CPIN? does not work + """ + def trigger( self ): + pin_state = self._object.modem._simPinState + if pin_state == "READY": + self._ok( pin_state ) + else: + self._ok( "SIM PIN" ) + +#=========================================================================# class SimSendAuthCode( SimMediator ): #=========================================================================# """ > I'm trying to understand the (complex) DeviceSetAntennaPower : > 1) why do you use CPIN? two times and did not use SimGetAuthStatus ? I would > be > easier to adapt for EZX. > 2) Moreover why is the state of SIM important for Antenna ? In fact it does not matter since all is working. It was esthetic question. > 3) In specs, I have seen that SetAntennaPower('False') is possible. But for > me, > it did not work (of course, I can have done a mistake). I will retest. > Yes I have donc a mistake : it works well with gsmdevice.SetAntennaPower(False) and I was using gsmdevice.SetAntennaPower('False') Now 3 questions : 1) for phonebook, my e680 has SM, ON but also SD (that are numbers of the operator : client center, etc) and FD (that are emergency numbers : police etc). can this be add ? 2) the phonebook cannot be retrieve since I get : WARNING UNHANDLED INTERMEDIATE: +CPBR: 1,"888",129,"005F006D006500730073006100670065007200690065" I will try to understand why it is unhandled. 3) the receving an sms, it is also unhandled : WARNING UNHANDLED INTERMEDIATE: it was : <CallChannel via /dev/mux2>: got 253 bytes from: '\r\n+CMT: 111\r\n0791338609400 (this is truncated for this mail.) I will also try to understand why it is unhandled. Sincerely, Alain _______________________________________________ Smartphones-userland mailing list Smartphones-userland@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland