Hi all,<br>I am using libgsmd in my code and am having a little problem (I do understand the uber alpha status of the API..=). <br>The message handlers in my code are not getting called when some event (say, getting the signal quality) occurs.
<br><br>I have a test lgsm_register_handler() in the Py_MODINIT function (This is where all the initialisation stuff happens in a python extension module) . I have the corresponding message handler given in the lgsm_register_handler defined as well
<br>When I do a,<br><br>>>> pygsmd.network.quality()<br>lgsm_signal_quality is getting called properly but the corresponding message_handler is not getting called.<br><br>This is true for all the modules, lgsm_* stuff return a success and the corresponding AT commands are sent (Voice out init, hangup, network register, deregister works like a charm)
<br><br>As far as i learnt from seeing the code from libgsmd-tool, <br>1.) We first register handlers usng the lgsm_register_handler according to the messages like Network, Passthrough, SMS..etc<br>2.) We then define message handler functions
<br>3.) These message handlers get called when some event happens "successfully".....<-- emphasizing the successful part :)<br><br>Is this how stuff works? Or am i missing something. <br>Heres the code,<br><a href="http://projects.openmoko.org/plugins/scmsvn/viewcvs.php/python-gsmd/src/py_network.c?rev=66&root=python-openmoko&view=markup">
http://projects.openmoko.org/plugins/scmsvn/viewcvs.php/python-gsmd/src/py_network.c?rev=66&root=python-openmoko&view=markup</a><br><br>Regards,<br>Sudharshan S<br><a href="http://www.sudharsh.wordpress.com">http://www.sudharsh.wordpress.com