[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, master, updated. milestone4-368-g700ab82

Michael 'Mickey' Lauer mickey at vanille-media.de
Mon Feb 2 18:51:15 UTC 2009


The following commit has been merged in the master branch:
commit 54472a2e7b6b2520ac8f95012fd93f21d75da4d9
Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date:   Thu Nov 13 08:16:47 2008 +0100

    ogsmd: [TI CALYPSO] send %CBHZ if told to listen for home zone channel broadcasts
    NOTE: Does not survive a suspend/resume cycle yet. Need to enhance the channel's
    suspend/resume command handling a bit beforehand (allow sending a callable
    in addition to a static string).

diff --git a/framework/subsystems/ogsmd/modems/ti_calypso/mediator.py b/framework/subsystems/ogsmd/modems/ti_calypso/mediator.py
index dada2b6..0644d1e 100644
--- a/framework/subsystems/ogsmd/modems/ti_calypso/mediator.py
+++ b/framework/subsystems/ogsmd/modems/ti_calypso/mediator.py
@@ -33,6 +33,33 @@ for key, val in mediator.__dict__.items():
 del mediator
 
 #=========================================================================#
+class CbSetCellBroadcastSubscriptions( CbSetCellBroadcastSubscriptions ): # s
+#=========================================================================#
+    # reimplemented for special TI Calypso %CBHZ handling
+    def responseFromChannel( self, request, response ):
+        if response[-1] != "OK":
+            CbMediator.responseFromChannel( self, request, response )
+        else:
+            firstChannel = 0
+            lastChannel = 0
+            if self.channels == "all":
+                firstChannel = 0
+                lastChannel = 999
+            elif self.channels == "none":
+                pass
+            else:
+                if "-" in self.channels:
+                    first, last = self.channels.split( '-' )
+                    firstChannel = int( first )
+                    lastChannel = int( last )
+                else:
+                    firstChannel = lastChannel = int( self.channels )
+
+            logger.debug( "listening to cell broadcasts on channels %d - %d" % ( firstChannel, lastChannel ) )
+            self._commchannel.enqueue( "%CBHZ=1" if firstChannel <= 221 <= lastChannel else "%CBHZ=0" )
+            self._ok()
+
+#=========================================================================#
 class CallInitiate( CallMediator ):
 #=========================================================================#
     def trigger( self ):

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list