LIBQMI APIs Response "Transaction timed out"

Sai Chaitanya msaichaitanya at gmail.com
Thu Aug 10 07:26:44 UTC 2023


Hi,

I am also getting the same issue. I am using libqmi 1.32.4.
Setup: RC7620 connected to Linux PC via a Sierra's REDmangOH board.
I am using the same set of APIs to configure the modem.
I have attached a sample code in my previous email.
I am attaching it now also, for your kind reference.

Also, we analyzed the QMDL logs and confirmed that the modem is sending
information correctly, but libqmi is not picking up the information, but
declaring 'timeout' instead.

*MSG                      [      ds3gmmgsdiif.c   3101] Sending Request for
Reading ICCID*

*MSG                      [      ds3gmmgsdiif.c   5127] Sending Read
Transparent on Session Type [0]for Session Id [2091824495]*

*MSG                      [            qpIsim.c   3422]
qpAMSSReadEF_USIM_ICCID - iLen=10*

*MSG                      [            qpIsim.c   3458]
qpAMSSReadEF_USIM_ICCID - ICCID is 89840480003887584858*

*MSG                      [            qpIsim.c  12882]
qpDplProcessSessionCardEvent - return status is 1*

And like Truong Phi mentioned, it happens only sometimes. Not sure what is
causing the issue.


Any inputs towards fixing this are highly appreciated.


Regards,

Sai.

On Thu, Aug 10, 2023 at 6:35 AM Truong Phi <phitruong220675 at gmail.com>
wrote:

> Hi,
>
> We are using some libqmi APIs like the below:
> qmi_client_uim_register_events_finish()
> qmi_client_uim_get_slot_status_finish()
> qmi_client_uim_get_card_status_finish()
> qmi_client_dms_swi_get_current_firmware_finish()
> qmi_client_dms_set_event_report_finish()
> qmi_client_uim_get_slot_status_finish()
>
> When testing for a long time, some of these APIs respond with an error
> message: "Transaction timed out".
>
> We checked the logs from the modem side and the chipset provider
> (Qualcomm) also confirmed with us that the modem replies to the QMI success.
> Example:
> In case qmi_client_uim_get_slot_status_finish()
> The module replied:
> ...
> MsgType = QMI_UIM_GET_CARD_STATUS
> ...
> resp {
> result = QMI_RESULT_SUCCESS
> error = QMI_ERR_NONE
> }
> ...
>
> ...
> MsgType = QMI_UIM_GET_SLOTS_STATUS
> ...
> resp {
> result = QMI_RESULT_SUCCESS
> error = QMI_ERR_NONE
> }
> ...
> physical_slot_status[0] {
> physical_card_status = UIM_PHYSICAL_CARD_STATE_PRESENT
> physical_slot_state = UIM_PHYSICAL_SLOT_STATE_ACTIVE
> ...
>
> But the error message is: "Transaction timed out".
>
> Anything can be the cause of these problems? How can we avoid it?
>
> Thanks,
> Truong
>


--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20230810/cc8f8326/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wwan_qmi.c
Type: text/x-csrc
Size: 14350 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20230810/cc8f8326/attachment-0001.c>


More information about the libqmi-devel mailing list