Hi Phil,
> [...]
> So as the detection for homezone allready implemented to FSO (and seems
> to work) i just write a gadget and get my workaround working with DBUS :)

If all you want is homezone support, everything has been implemented for you 
already (*). Take a look at
 http://docs.freesmartphone.org/org.freesmartphone.GSM.CB.html and
 http://docs.freesmartphone.org/org.freesmartphone.GSM.HZ.html -- just 
subscribe to the homezone channel (221 IIRC) and then listen to the homezone 
signal which will tell you whether you are in the homezone or not.

(*) You need to apply the attached patch to the frameworkd, since I had to 
disable %CBHZ=1 as per http://trac.freesmartphone.org/ticket/151 -- still 
working on a proper solution for that (probably an extra call 
like 'EnableHomeZoneSupport' and then for Calypso disabling CBHZ in-call).

This should solve your problem, but the records, here are the answers to your 
remaining questions:

> - i only found a dbus function to enable the storage of sms not
> cellbroadcasts

Calypso doesn't support storing the CB.

> - i can't find a dbus signal which gives me the info after i switch the
> celltower (even getStatus don't return lac and cellid)

lac and cid only come unsolicited, there's no way to query them explicitly. If 
you think we should cache them for subsequent GetStatus() calls, please open 
a ticket.

> - alternative i can't find a function to manually send AT command over
> dbus.

There's org.freesmartphone.GSM.DebugSendCommand( command ), but this is 
undocumented and will be removed.

Hope that helps,

:M:
diff --git a/framework/subsystems/ogsmd/modems/ti_calypso/channel.py b/framework/subsystems/ogsmd/modems/ti_calypso/channel.py
index 235a54b..92a845b 100644
--- a/framework/subsystems/ogsmd/modems/ti_calypso/channel.py
+++ b/framework/subsystems/ogsmd/modems/ti_calypso/channel.py
@@ -191,7 +191,7 @@ class UnsolicitedResponseChannel( CalypsoModemChannel ):
 
         c = self._commands["sim"]
         # FIXME reenable if someone wants homezone support
-        #c.append( "%CBHZ=1" ) # home zone cell broadcast: activate automatic (send frequently, not just once)
+        c.append( "%CBHZ=1" ) # home zone cell broadcast: activate automatic (send frequently, not just once)
 
         c = self._commands["suspend"]
         c.append( "+CTZU=0" )
@@ -216,6 +216,7 @@ class UnsolicitedResponseChannel( CalypsoModemChannel ):
         c.append( "+CGEREP=2,1" )
         c += self._commands["sim"] # reenable notifications
         c.append( "%CSQ=1" ) # signal strength: send unsol. code
+        c.append( "%CBHZ=1" ) # reenable home zone cell broadcast
         c.append( "%CNIV=1" )
         c.append( "%CGEREP=1" )
         c.append( "%CGREG=3" )
_______________________________________________
devel mailing list
[email protected]
https://lists.openmoko.org/mailman/listinfo/devel

Reply via email to