MC7430 Connection problem
Alexandru Ardelean
ardeleanalex at gmail.com
Mon Oct 2 15:23:04 UTC 2017
On Mon, Oct 2, 2017 at 5:56 PM, Erik Kazandjian
<erik.kazandjian at accelleran.com> wrote:
> Hi,
>
> I'm trying to integrate a Sierra Wireless AirPrime MC 7430 with a raspberry
> pi.
>
> On the pi I run the fillowing kernel (uname -a)
>
> Linux raspberrypi 4.9.52-v7+ #1038 SMP Fri Sep 29 16:26:52 BST 2017 armv7l
> GNU/Linux
>
> I have the latest version of libqmi compiled 1.17.0
>
> My modem is recognized by the system as shown in the output of dmesg
>
> [ 585.668119] usb 1-1.4: new high-speed USB device number 5 using dwc_otg
> [ 585.799104] usb 1-1.4: config 1 has an invalid interface number: 8 but
> max is 4
> [ 585.799121] usb 1-1.4: config 1 has an invalid interface number: 10 but
> max is 4
> [ 585.799134] usb 1-1.4: config 1 has no interface number 1
> [ 585.799144] usb 1-1.4: config 1 has no interface number 4
> [ 585.799940] usb 1-1.4: New USB device found, idVendor=1199,
> idProduct=9071
> [ 585.799954] usb 1-1.4: New USB device strings: Mfr=1, Product=2,
> SerialNumber=3
> [ 585.799966] usb 1-1.4: Product: Sierra Wireless MC7430 Qualcomm®
> Snapdragon™ X7 LTE-A
> [ 585.799976] usb 1-1.4: Manufacturer: Sierra Wireless, Incorporated
> [ 585.799986] usb 1-1.4: SerialNumber: LU60950414011010
> [ 585.802278] qcserial 1-1.4:1.0: Qualcomm USB modem converter detected
> [ 585.803098] usb 1-1.4: Qualcomm USB modem converter now attached to
> ttyUSB0
> [ 585.804394] qcserial 1-1.4:1.2: Qualcomm USB modem converter detected
> [ 585.804983] usb 1-1.4: Qualcomm USB modem converter now attached to
> ttyUSB1
> [ 585.806031] qcserial 1-1.4:1.3: Qualcomm USB modem converter detected
> [ 585.806573] usb 1-1.4: Qualcomm USB modem converter now attached to
> ttyUSB2
> [ 585.808010] qmi_wwan 1-1.4:1.8: cdc-wdm0: USB WDM device
> [ 585.810069] qmi_wwan 1-1.4:1.8 wwan0: register 'qmi_wwan' at
> usb-3f980000.usb-1.4, WWAN/QMI device, 3a:0b:18:73:f4:e1
> [ 585.812268] qmi_wwan 1-1.4:1.10: cdc-wdm1: USB WDM device
> [ 585.813950] qmi_wwan 1-1.4:1.10 wwan1: register 'qmi_wwan' at
> usb-3f980000.usb-1.4, WWAN/QMI device, 3a:0b:18:73:f4:e1
>
>
> However when I try to connect with the modem to the LTE network it looks as
> if the modem is successfully attached to the cell but I don't get an IP
> address on any of my interfaces wwan0 or wwan1.
>
> When i run the qmi-network tool I get the following output
>
> sudo qmi-network /dev/cdc-wdm0 start
> Loading profile at /etc/qmi-network.conf...
> APN: internet
> APN user: unset
> APN password: unset
> qmi-proxy: no
> Checking data format with 'qmicli -d /dev/cdc-wdm0 --wda-get-data-format
> '...
> Device link layer protocol retrieved: raw-ip
> Getting expected data format with 'qmicli -d /dev/cdc-wdm0
> --get-expected-data-format'...
> Expected link layer protocol retrieved: 802-3
> Updating kernel link layer protocol with 'qmicli -d /dev/cdc-wdm0
> --set-expected-data-format=raw-ip'...
> error: cannot set expected data format: Expected data format not updated
> properly to 'raw-ip': got '802-3' instead
This is weird.
AFAIK, 802-3 does not work on MC7430 ; just raw-ip.
> Error updating kernel link layer protocol
> Starting network with 'qmicli -d /dev/cdc-wdm0
> --wds-start-network=apn='internet' --client-no-release-cid '...
Maybe add
--wds-start-network=apn='internet',ip-type=4,autoconnect=yes
here.
And maybe try a
--wds-stop-network=disable-autoconnect
before the --wds-start-network.
> Saving state at /tmp/qmi-network-state-cdc-wdm0... (CID: 35)
> Saving state at /tmp/qmi-network-state-cdc-wdm0... (PDH: 63159616)
> Network started successfully
>
> If I then try to obtain an ip address I get nothing
>
> sudo dhclient -v wwan0
> Internet Systems Consortium DHCP Client 4.3.1
> Copyright 2004-2014 Internet Systems Consortium.
> All rights reserved.
> For info, please visit https://www.isc.org/software/dhcp/
>
> Listening on LPF/wwan0/3a:0b:18:73:f4:e1
> Sending on LPF/wwan0/3a:0b:18:73:f4:e1
> Sending on Socket/fallback
> DHCPDISCOVER on wwan0 to 255.255.255.255 port 67 interval 8
> DHCPDISCOVER on wwan0 to 255.255.255.255 port 67 interval 8
> DHCPDISCOVER on wwan0 to 255.255.255.255 port 67 interval 15
> DHCPDISCOVER on wwan0 to 255.255.255.255 port 67 interval 14
> DHCPDISCOVER on wwan0 to 255.255.255.255 port 67 interval 16
> No DHCPOFFERS received.
> No working leases in persistent database - sleeping.
>
>
> Any ideas what might be the issue ?
I'm also struggling with this device.
I just got it [like today] to pass data through it.
Sometimes it just stalls and refuses to pass data.
Maybe I need to pass data right after connecting to the carrier, or it stalls.
I'm still fuzzy on what's going on and I'm still in the assumptions
[and trying out assumptions] phase.
Maybe some power-management stuff.
I wrote my own connect script, because i need it in the context of OpenWrt/LEDE.
I'll try to share it asap.
Maybe I'll also update the qmi-network with my changes later.
Alex
>
> Thanks
>
> Erik
>
>
>
> _______________________________________________
> libqmi-devel mailing list
> libqmi-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/libqmi-devel
More information about the libqmi-devel
mailing list