[OpenWrt-Devel] [PATCH] uqmi: add timeout parameter

Zefir Kurtisi zefir.kurtisi at neratec.com
Tue Nov 19 05:34:08 EST 2019


On 11/17/19 11:23 AM, Zefir Kurtisi wrote:
> On 11/16/19 3:59 PM, Piotr Dymacz wrote:
>> Hi Zefir,
>>
>> On 07.11.2019 12:54, Zefir Kurtisi wrote:
>>> Working with Quectel EM12 LTE-module, we observe
>>> regular stalls of the QMI interface which cause
>>> a request issued by uqmi to hang forever.
>>>
>>> Most reproducibly this happens after the device
>>> has been power-cycled and left untouched for a
>>> while (~ 60s+). Most of the time the very first
>>> QMI request fails, since it is not responded by
>>> the module. This is the strace from such a run
>>> (from --get-pin-status):
>>>
>>>   open("/dev/cdc-wdm0", O_RDWR|O_EXCL|O_NOCTTY|O_NONBLOCK|O_LARGEFILE) = 6
>>>   fcntl64(6, F_GETFL)                     = 0x10802 (flags
>>> O_RDWR|O_NONBLOCK|O_LARGEFILE)
>>>   fcntl64(6, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE) = 0
>>>   epoll_ctl(3, EPOLL_CTL_ADD, 6, {EPOLLIN|EPOLLRDHUP|EPOLLET, {u32=268567076,
>>> u64=1153486808202346496}}) = 0
>>>   write(6, "\1\17\0\0\0\0\0\1\"\0\4\0\1\1\0\2", 16) = 16
>>>   clock_gettime(CLOCK_MONOTONIC, {tv_sec=95, tv_nsec=583444789}) = 0
>>>   clock_gettime(CLOCK_MONOTONIC, {tv_sec=95, tv_nsec=583770264}) = 0
>>>   epoll_pwait(3,
>>>   [ hang forever ]
>>>
>>> After killing the blocked uqmi process, the next
>>> request works as expected.
>>>
>>> We don't know whether this is a device FW issue
>>> (we use the latest EM12GPAR01A15M4G) or whether
>>> the device enters some undocumented power-save
>>> mode after idling for some time.
>>
>> Could you share this firmware version, is that a generic Quectel or a customized
>> one? I would like to reproduce and debug the problem but the EM12 I have here has
>> 'EM12GPAR01A_11_M4G'.
>>
>> Also, what platform do you use this modem with?
>>
> 
> Hi Piotr,
> 
> we use our own products [1], which are built around a PowerPC (8540) based platform.
> 
> The FW we received from Codico [2], Quectel's distributor and support proxy for
> Switzerland. We get preview versions on request, therefore I am not sure if it can
> be posted publicly. I'll check for restrictions and provide the FW if able.
> 
> 
> Cheers
> 
> 
> [1] https://www.neratec.com/products
> [2] https://www.codico.com/
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
> 

Hi Piotr,

Codico/Quectel confirmed that the EM12 FW has no NDA limitations and can be
provided to developers. The archive is available for the next 5 days from our
company file-server at [1]. Let me know if you need something else, otherwise
looking forward whether you can reproduce the observed issue.


Cheers


[1] https://transfer.neratec.com/5e7a98bb1a51e/EM12GPAR01A15M4G.zip

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list