OpenWrt Forum Archive

Topic: [Solved]QMI driver no receive packages

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have problem with QMI driver(tried on different modems). OpenWRT BarrierBraker.

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1199 ProdID=68c0 Rev= 0.06
S:  Manufacturer=Sierra Wireless, Incorporated
S:  Product=MC7304
C:* #Ifs= 4 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E:  Ad=83(I) Atr=03(Int.) MxPS=  12 Ivl=32ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E:  Ad=85(I) Atr=03(Int.) MxPS=  12 Ivl=32ms
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 8 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
E:  Ad=87(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

network config

config interface 'wan6'
        option ifname 'wwan0'
        option device '/dev/cdc-wdm0'
        option proto 'qmi'
        option apn 'internet'

syslog

Wed Nov 26 16:38:39 2014 daemon.info qmi[3515]: Waiting for network registration
Wed Nov 26 16:38:39 2014 daemon.info qmi[3515]: Starting network internet
Wed Nov 26 16:38:42 2014 daemon.info qmi[3515]: Connected, starting DHCP
Wed Nov 26 16:38:42 2014 daemon.notice netifd: Interface 'wan6' is now up
Wed Nov 26 16:38:43 2014 daemon.notice netifd: Network alias 'wwan0' link is up
Wed Nov 26 16:38:43 2014 daemon.notice netifd: Interface 'wan6_dhcp' is enabled
Wed Nov 26 16:38:43 2014 daemon.notice netifd: Interface 'wan6_dhcp' has link connectivity 
Wed Nov 26 16:38:43 2014 daemon.notice netifd: Interface 'wan6_dhcp' is setting up now
Wed Nov 26 16:38:43 2014 daemon.notice netifd: wan6 (3515): Command failed: Unknown error
Wed Nov 26 16:38:43 2014 daemon.notice netifd: Interface 'wan6_dhcpv6' is enabled
Wed Nov 26 16:38:43 2014 daemon.notice netifd: Interface 'wan6_dhcpv6' has link connectivity 
Wed Nov 26 16:38:43 2014 daemon.notice netifd: Interface 'wan6_dhcpv6' is setting up now
Wed Nov 26 16:38:43 2014 daemon.notice netifd: wan6 (3515): Command failed: Unknown error
Wed Nov 26 16:38:43 2014 daemon.notice netifd: wan6_dhcp (3565): udhcpc (v1.22.1) started
Wed Nov 26 16:38:43 2014 daemon.notice odhcp6c[3574]: (re)starting transaction on wwan0
Wed Nov 26 16:38:43 2014 daemon.notice odhcp6c[3574]: Starting SOLICIT transaction (timeout 4294967295s, max rc 0)
Wed Nov 26 16:38:43 2014 daemon.notice netifd: wan6_dhcp (3565): Sending discover...
Wed Nov 26 16:38:43 2014 user.notice firewall: Reloading firewall due to ifup of wan6 (wwan0)
Wed Nov 26 16:38:46 2014 daemon.notice netifd: wan6_dhcp (3565): Sending discover...
Wed Nov 26 16:38:49 2014 daemon.notice netifd: wan6_dhcp (3565): Sending discover...

on network interface no receive packages

wwan0     Link encap:Ethernet  HWaddr 0E:85:AB:46:90:5F
          inet6 addr: fe80::c85:abff:fe46:905f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4027 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:1362672 (1.2 MiB)

status

root@OpenWrt:/# uqmi -s -d /dev/cdc-wdm0 --get-data-status
"connected"

Any help?

(Last edited by neryba on 30 Nov 2014, 22:31)

neryba wrote:

I have problem with QMI driver(tried on different modems). OpenWRT BarrierBraker.

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1199 ProdID=68c0 Rev= 0.06
S:  Manufacturer=Sierra Wireless, Incorporated
S:  Product=MC7304

These newer devices often end up configured for "raw IP" while the qmi_wwan driver expects the modem to be running in "802.3" mode.  I don't know how to change that using uqmi, but here's a pointer to how it would be done with libqmi:
http://lists.freedesktop.org/archives/l … 00886.html

Thanks for help, I will try that and report you back. https://dev.openwrt.org/changeset/43381 here is a way how to add 802.3
I found in last kernel supports that devices in different way, now I plan to make patch for BB to add this 

{QMI_FIXED_INTF(0x1199, 0x68c0, 8)},    /* Sierra Wireless MC73xx */
{QMI_FIXED_INTF(0x1199, 0x68c0, 10)},   /* Sierra Wireless MC73xx */

.
In new kernel I found same support to all devices, witch not worked when I tried them.

(Last edited by neryba on 29 Nov 2014, 22:32)

bmork, you was right! All works fine.

The discussion might have continued from here.