Neoway n720 (mPCIe version) - uqmi hangs

Saurabh Chakrabarti saurabhchakrabarti at gmail.com
Tue Nov 21 04:53:08 UTC 2017


Hi Aleksander,

As per your suggestion, I have manged to install modemmanager on
openwrt(using the instructions here
https://bitbucket.org/aleksander0m/modemmanager-openwrt). But I'm unable to
get IP address on my wwan0 interface(I was able to get it using the default
proto qmi ). Am I missing something here?

Here's my configurations that works and through which I get an IP address
on the wwan0 interface -

config interface 'wanSIM0'
        option proto 'qmi'
        option metric '10'
        option apn 'internet'
        option modes 'all'
        option ifname 'wwan0'
        option device '/dev/cdc-wdm0'



But when I change the configuration, as per the modemmanager README, it
does not get an IP address on the wwan0 interface -

config interface 'wanSIM0'
        option proto 'modemmanager'
        option metric '10'
        option apn 'internet'
        option modes 'all'
        option ifname 'wwan0'
        option device '/dev/cdc-wdm0'

I'm able to get the ipaddress using qmicli using proto 'modemmanager' though

saurabh at iotgateway:~# qmicli -d /dev/cdc-wdm0 --wds-get-current-settings
[/dev/cdc-wdm0] Current settings retrieved:
           IP Family: IPv4
        IPv4 address: 10.192.23.88
    IPv4 subnet mask: 255.255.255.240
IPv4 gateway address: 10.192.23.89
    IPv4 primary DNS: 220.226.100.40
  IPv4 secondary DNS: 220.226.6.104
                 MTU: 1500
             Domains: none

Kindly let me know. I'm using openWRT chaos calmer 15.05(kernel 4.4.7)

Regards,
Saurabh

On 13 November 2017 at 13:57, Aleksander Morgado <aleksander at aleksander.es>
wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20171121/75ea9904/attachment.html>


More information about the libqmi-devel mailing list