Neoway n720 (mPCIe version) - uqmi hangs

Aleksander Morgado aleksander at aleksander.es
Mon Nov 13 08:27:54 UTC 2017


Hey!

> 
> I'm trying to get the following modules to work:
> 
> Quectel EC25-E (mPCIe version) - works without any problem
> Neoway n720 (mPCIe version) - no response from uqmi frequently
> 
> 
> These modules are connected to a raspberry pi based device. This device
> works on openWRT chaos calmer 15.05(kernel 4.4.7)
> 
> I have added the following series of Bjørn Mork's patches for this to work
> for quectel EC25
> 
> https://www.mail-archive.com/netdev@vger.kernel.org/msg89815.html - [PATCH
> 0/6] net: qmi_wwan: MDM9x30 support
> https://www.mail-archive.com/netdev@vger.kernel.org/msg89811.html - [PATCH
> 1/6] net: qmi_wwan: MDM9x30 specific power management
> https://www.mail-archive.com/netdev@vger.kernel.org/msg89813.html - [PATCH
> 2/6] net: qmi_wwan: remove 1199:9070 device id
> https://www.mail-archive.com/netdev@vger.kernel.org/msg89814.html - [PATCH
> 3/6] usbnet: allow mini-drivers to consume L2 headers
> https://www.mail-archive.com/netdev@vger.kernel.org/msg89810.html - [PATCH
> 4/6] net: qmi_wwan: support "raw IP" mode
> https://www.mail-archive.com/netdev@vger.kernel.org/msg89812.html - [PATCH
> 5/6] net: qmi_wwan: document the qmi/raw_ip sysfs file
> https://www.mail-archive.com/netdev@vger.kernel.org/msg89816.html - [PATCH
> 6/6] MAINTAINERS: add qmi_wwan driver entry
> https://www.mail-archive.com/netdev@vger.kernel.org/msg90225.html - [PATCH
> net-next] net: qmi_wwan: should hold RTNL while changing netdev type
> 
> I have also added the relevant vendorid and productid changes for neoway
> n720.
> 
> Quectel EC25-E works perfectly. For neoway n720, the device well works
> sometimes, and i'm able to connect to internet. But sometimes uqmi commands
> just hang(no output and the terminal gets stuck on the command). I don't
> see any kernel error logs too.
> 
> Is there something that I can do to fix this issue. Did anyone face the
> uqmi hanging issue in other similar modules? Is there any way to debug this?
> 

Interestingly, I've experienced this very same issue with the Quectel EC25 (the one that works for you) when running uqmi commands very early after boot. It looks like the process to allocate client ids gets stuck because the module doesn't respond, and uqmi doesn't have an implicit timeout for commands sent, so it just blocks forever, quite bad if this is part of some management script. I solved this issue in my setup running the initial uqmi commands under the "timeout" busybox command, so that uqmi exits after N seconds if it isn't completed before that, and retry the same operation afterwards.

Anyway, please note that this may not be the best place to report issues with uqmi; the openwrt/lede mailing lists may be more appropriate as the uqmi devs should definitely be there, don't know if they're in libqmi-devel.

Are you able to use the Neoway module with libqmi/qmicli properly? This openwrt feed may be used to build and install libqmi/qmicli in openwrt:
https://bitbucket.org/aleksander0m/modemmanager-openwrt

-- 
Aleksander
https://aleksander.es


More information about the libqmi-devel mailing list