<div dir="ltr"><div>Hey,</div><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
there is<br>
<br>
indication_nas_serving_system and a function to parse it<br>
<br>
<a href="https://lazka.github.io/pgi-docs/Qmi-1.0/functions.html#Qmi.indication_nas_serving_system_indication_parse" rel="noreferrer" target="_blank">https://lazka.github.io/pgi-docs/Qmi-1.0/functions.html#Qmi.indication_nas_serving_system_indication_parse</a><br>
<br>
indication_nas_operator_name and a function to parse it<br>
<br>
<a href="https://lazka.github.io/pgi-docs/Qmi-1.0/functions.html#Qmi.indication_nas_operator_name_indication_parse" rel="noreferrer" target="_blank">https://lazka.github.io/pgi-docs/Qmi-1.0/functions.html#Qmi.indication_nas_operator_name_indication_parse</a><br>
<br>
indication_wds_packet_service_status and a function to parse it<br>
<br>
<a href="https://lazka.github.io/pgi-docs/Qmi-1.0/functions.html#Qmi.indication_wds_packet_service_status_indication_parse" rel="noreferrer" target="_blank">https://lazka.github.io/pgi-docs/Qmi-1.0/functions.html#Qmi.indication_wds_packet_service_status_indication_parse</a><br>
<br>
I see that my radio module is sending them (on USB) and contains useful <br>
data.<br>
<br>
What do I need to do to be able to received them (at any time, when they <br>
occure)?<br>
<br>
Are there functions where I can store a callback, which is called, when <br>
such a message was sent by my radio module?<br>
<br>
Is this supported by libqmi?<br>
<br></blockquote><div><br></div><div>Yes, this is supported by libqmi. This type of QMI indications are emitted by the QmiClient as signals, see e.g.<br></div><div><a href="https://www.freedesktop.org/software/libqmi/libqmi-glib/latest/QmiClientWds.html">https://www.freedesktop.org/software/libqmi/libqmi-glib/latest/QmiClientWds.html</a><br></div><div><br></div><div>Unfortunately the python example does not include a signal listening step, but it should not be difficult to implement. Feel free to investigate and if you can extend the example, or create a completely new one, please send it for review.</div><div><a href="https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/blob/main/examples/simple-tester-python/simple-tester-python?ref_type=heads">https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/blob/main/examples/simple-tester-python/simple-tester-python?ref_type=heads</a><br></div></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Aleksander</div></div></div></div>