diff -ru frameworkd.orig/framework/subsystems/ogsmd/modems/abstract/channel.py frameworkd/framework/subsystems/ogsmd/modems/abstract/channel.py
|
old
|
new
|
|
| 69 | 69 | """ |
| 70 | 70 | gobject.timeout_add_seconds( 1, self._sendCommands, "sim" ) |
| 71 | 71 | |
| | 72 | def modemStateSimNotReady( self ): |
| | 73 | """ |
| | 74 | Called, when the modem signalizes the SIM data could not be accessed. |
| | 75 | """ |
| | 76 | pass |
| | 77 | |
| 72 | 78 | def suspend( self, ok_callback, error_callback ): |
| 73 | 79 | """ |
| 74 | 80 | Called, when the channel needs to configure the modem for suspending. |
diff -ru frameworkd.orig/framework/subsystems/ogsmd/modems/abstract/modem.py frameworkd/framework/subsystems/ogsmd/modems/abstract/modem.py
|
old
|
new
|
|
| 196 | 196 | if ready == True: |
| 197 | 197 | for channel in self._channels.itervalues(): |
| 198 | 198 | channel.modemStateSimReady() |
| | 199 | elif ready == False: |
| | 200 | for channel in self._channels.itervalues(): |
| | 201 | channel.modemStateSimNotReady() |
| | 202 | |
| 199 | 203 | |
| 200 | 204 | def setPhonebookIndices( self, category, first, last ): |
| 201 | 205 | """ |
diff -ru frameworkd.orig/framework/subsystems/ogsmd/modems/ti_calypso/channel.py frameworkd/framework/subsystems/ogsmd/modems/ti_calypso/channel.py
|
old
|
new
|
|
| 148 | 148 | AbstractModemChannel._populateCommands( self ) |
| 149 | 149 | |
| 150 | 150 | self._commands["init"].append( "%CUNS=2" ) |
| 151 | | |
| 152 | 151 | # |
| 153 | 152 | # TI Calypso has a deep sleep mode, effective after 8 seconds, |
| 154 | 153 | # from which we need to wake up by sending a special character |
| … |
… |
|
| 304 | 303 | |
| 305 | 304 | c.append( homezone ) |
| 306 | 305 | |
| | 306 | c = [] |
| | 307 | c.append( '+COPS=?' ) |
| | 308 | self._commands["nosim"] = c |
| | 309 | |
| | 310 | def modemStateSimNotReady( self ): |
| | 311 | """ override """ |
| | 312 | logger.info("SIM not ready, attempting calypso list providers kludge for enabling SOS calls") |
| | 313 | gobject.timeout_add_seconds( 1, self._sendCommands, "nosim" ) |
| | 314 | |
| 307 | 315 | def close( self ): |
| 308 | 316 | if self.delegate.checkForRecamping: |
| 309 | 317 | if not self.delegate.recampingTimeout is None: |