not able to receive any indications using libqmi on Linaro
shilpa.vel at gmail.com
Tue Nov 29 03:30:51 UTC 2016
Code is :
pthread_create(&mthread, NULL, InitializeDevice, this);
mainLoop = g_main_loop_new(NULL, false);
input = qmi_message_nas_register_indications_input_new();
Problem : SrvSysIndCallback is never invoked.
On Thu, Nov 17, 2016 at 1:10 AM, Aleksander Morgado <
aleksander at aleksander.es> wrote:
> On Wed, Nov 16, 2016 at 11:29 PM, Shilpa Velamuri <shilpa.vel at gmail.com>
> > The libqmi interaction/WWAN code is all running in a separate thread
> > part of a bigger application. The g_main_loop is running in this thread.
> > am receiving responses to requests but no indications from libqmi. Code
> > using proxy to talk to LE910 modem.
> It is usually much simpler if you provide e.g. a working minimal
> example showing the issue, instead of explaining what the code does.
> > In the callback of Nas Client allocation, i invoke:
> > qmi_client_nas_register_indications(...)
> > In the callback to the above qmi_client_nas_register_indications:
> > i register for NAS serving-system indication as :
> > g_signal_connect(nasClient,
> > "serving-system",
> > G_CALLBACK (SrvSysIndCallback),
> > callback_data);
> > The callback is never invoked even though the modem is registered and has
> > service.
> > what am i doing wrong? Could you help?
> Maybe you need to define which is the thread-default main context as
> soon as you create the new thread where the libqmi main loop is
> supposed to run? See g_main_context_push_thread_default(). Otherwise,
> the g_signal_connect() you run may schedule the signal events in the
> main context of the main thread, but you don't have a main loop
> running there, right?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the libqmi-devel