<div dir="ltr"><div dir="ltr">Sorry I missed adding a subject.....<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 2, 2023 at 4:18 PM Sai Chaitanya <<a href="mailto:msaichaitanya@gmail.com">msaichaitanya@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<br><div><br></div><div>I am trying to configure and control a Sierra modem (RC series) connected to my Linux PC with an experimental code put together from different sources in the internet and libqmi API manual. The sample code is attached. I am not sure if there is any issue with the way I am using the libqmi APIs, but the code seems to work for most of the time, but rarely it gets stuck in g_poll() even though I am using timeouts in each and every libqmi API used.<br><br><font color="#0000ff">#0 0x0000007fb0297e6c in _<i>GI</i>__poll (fds=fds@entry=0x7fdea36d30, nfds=nfds@entry=1, timeout=timeout@entry=-1)<br>at /usr/src/debug/glibc/2.36-r0/sysdeps/unix/sysv/linux/poll.c:41<br>#1 0x0000007fb04a7c6c in g_poll (fds=fds@entry=0x7fdea36d30, nfds=nfds@entry=1, timeout=timeout@entry=-1)<br>at /usr/src/debug/glib-2.0/1_2.72.3-r0/glib/gpoll.c:125<br>#2 0x0000007fb06e7708 in g_unix_input_stream_read (stream=<optimized out>, buffer=0x7fdea36d78, count=2048, cancellable=0x0,<br>error=0x7fdea36d70) at /usr/src/debug/glib-2.0/1_2.72.3-r0/gio/gunixinputstream.c:348<br>#3 0x0000007faf128960 in input_ready_cb (istream=0x558e7c5660, self=0x558e7c4f10)<br>at /usr/src/debug/libqmi/1.32.4-r0/src/libqmi-glib/qmi-endpoint-qmux.c:73<br>#4 0x0000007fb0497f7c in g_main_dispatch (context=0x558e7527f0) at /usr/src/debug/glib-2.0/1_2.72.3-r0/glib/gmain.c:3417<br>#5 g_main_context_dispatch (context=context@entry=0x558e7527f0) at /usr/src/debug/glib-2.0/1_2.72.3-r0/glib/gmain.c:4135<br>#6 0x0000007fb049832c in g_main_context_iterate (context=0x558e7527f0, block=block@entry=1, dispatch=dispatch@entry=1,<br>self=<optimized out>) at /usr/src/debug/glib-2.0/1_2.72.3-r0/glib/gmain.c:4211<br>#7 0x0000007fb04986a8 in g_main_loop_run (loop=0x558e752b90) at /usr/src/debug/glib-2.0/1_2.72.3-r0/glib/gmain.c:4411<br></font><br>The same code works fine with no issues with a 4G dongle. I am not sure if there is any limitation in the Sierra modem or any unhandled case in libqmi, specific to this Sierra modem I am using. Any inputs that can shed some light onto this issue are highly appreciated.</div><div><br></div><div>Kind regards,</div><div>Sai.</div></div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"> </div></div>