[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, master, updated. milestone5.1
Michael 'Mickey' Lauer
mickey at vanille-media.de
Sat Jun 6 12:21:45 UTC 2009
The following commit has been merged in the master branch:
commit 715d20e41d9799f92185d07ae4781215975e93c4
Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date: Thu Feb 12 13:59:32 2009 +0100
ogsmd: [TI CALYPSO] use AlwaysUnsolicitedParser on all channels.
Closes FSO #334
diff --git a/framework/subsystems/ogsmd/modems/ti_calypso/channel.py b/framework/subsystems/ogsmd/modems/ti_calypso/channel.py
index 3fb383d..084b267 100644
--- a/framework/subsystems/ogsmd/modems/ti_calypso/channel.py
+++ b/framework/subsystems/ogsmd/modems/ti_calypso/channel.py
@@ -17,8 +17,9 @@ __version__ = "0.9.10.4"
from framework.config import config
-from ogsmd.gsm.decor import logged
from ogsmd.gsm.callback import SimpleCallback
+from ogsmd.gsm.decor import logged
+from ogsmd.gsm.parser import AlwaysUnsolicitedParser
from ogsmd.modems.abstract.channel import AbstractModemChannel
@@ -192,6 +193,13 @@ class CalypsoModemChannel( AbstractModemChannel ):
logger.debug( "Closing the modem..." )
self._modem.reinit()
+ #
+ # +CRING, +CLIP, %CPI are always unsolicited and can come at any time.
+ #
+ def installParser( self ):
+ l = "+CRING +CLIP %CPI".split()
+ self.parser = AlwaysUnsolicitedParser( l, self._handleResponseToRequest, self._handleUnsolicitedResponse )
+
#=========================================================================#
class CallChannel( CalypsoModemChannel ):
#=========================================================================#
--
FSO frameworkd Debian packaging
More information about the pkg-fso-commits
mailing list