3G Modem MC8805:qmicli succesfuly connected but no IP after dhclient

Benoît benoitne at gmail.com
Tue Oct 27 05:43:17 PDT 2015


first many thanks for your help ! hopefully we will discover the issue...
>>    Configuration Descriptor:
>>      bLength                 9
>>      bDescriptorType         2
>>      wTotalLength           95
>>      bNumInterfaces          2
>>      bConfigurationValue     2
>>      iConfiguration          0
>>      bmAttributes         0xe0
>>        Self Powered
>>        Remote Wakeup
>>      MaxPower              500mA
>>      Interface Association:
>>        bLength                 8
>>        bDescriptorType        11
>>        bFirstInterface        12
>>        bInterfaceCount         2
>>        bFunctionClass          2 Communications
>>        bFunctionSubClass      14
>>        bFunctionProtocol       0
>>        iFunction               0
>>      Interface Descriptor:
>>        bLength                 9
>>        bDescriptorType         4
>>        bInterfaceNumber       12
>>        bAlternateSetting       0
>>        bNumEndpoints           1
>>        bInterfaceClass         2 Communications
>>        bInterfaceSubClass     14
>>        bInterfaceProtocol      0
>
> Right.  So, like all such devices, this will default to MBIM.  Did you
> configure anything to make it switch to QMI? Which configuration is
> currently active?  What did the kernel log when the device was
> discovered and bound to drivers?

I didn't configure it and didn't make anything to switch to QMI
I tried MBIM but I don't have any reply so I guess it is set to QMI.
when I do a journalctl | grep cdc ;

Oct 27 10:58:44  kernel: usbcore: registered new interface driver cdc_ncm
Oct 27 10:58:44  kernel: usbcore: registered new interface driver cdc_wdm
Oct 27 10:58:44  kernel: cdc_mbim 1-7:2.12: cdc-wdm0: USB WDM device
Oct 27 10:58:44  kernel: cdc_mbim 1-7:2.12 wwan0: register 'cdc_mbim' at 
usb-0000:00:14.0-7, CDC MBIM, d2:cc:f3:56:10:30
Oct 27 10:58:44  kernel: usbcore: registered new interface driver cdc_mbim
Oct 27 10:58:44  kernel: cdc_mbim 1-7:2.12 wwp0s20u7c2i12: renamed from 
wwan0
Oct 27 11:02:05  kernel: usbcore: registered new interface driver cdc_ncm
Oct 27 11:02:05  kernel: usbcore: registered new interface driver cdc_wdm
Oct 27 11:02:05  kernel: cdc_mbim 1-7:2.12: cdc-wdm0: USB WDM device
Oct 27 11:02:05  kernel: cdc_mbim 1-7:2.12 wwan0: register 'cdc_mbim' at 
usb-0000:00:14.0-7, CDC MBIM, 9a:ad:1d:92:99:80
Oct 27 11:02:05  kernel: usbcore: registered new interface driver cdc_mbim
Oct 27 11:02:05  kernel: cdc_mbim 1-7:2.12 wwp0s20u7c2i12: renamed from 
wwan0


>
>> tcpdump -vvv -i usbmon1
>> tcpdump: listening on usbmon1, link-type USB_LINUX_MMAPPED (USB with
>> padded Linux header), capture size 262144 bytes
>> 11:19:09.096896 CONTROL SUBMIT to 1:3:0
>> 11:19:09.097250 CONTROL COMPLETE from 1:3:0
>> 11:19:09.097358 CONTROL SUBMIT to 1:2:0
>> 11:19:09.097519 CONTROL COMPLETE from 1:2:0
>> 11:19:09.097619 CONTROL SUBMIT to 1:1:0
>> 11:19:09.097636 CONTROL COMPLETE from 1:1:0
>> 11:19:13.197246 BULK SUBMIT to 1:3:1
>> 11:19:13.197293 BULK COMPLETE from 1:3:1
>> 11:19:21.531678 BULK SUBMIT to 1:3:1
>> 11:19:21.531746 BULK COMPLETE from 1:3:1
>>
>> I don't know how this can help but I was able to do a tcpdump on the
>> USB interface.
>> I can see that when I launch dhclient the BULK SUBMIT to 1:3:1is sent
>> and received BULK COMPLETE from 1:3:1
> great! That dump doesn't help much though.  Use "tcpdump -xx -i usbmon1"
> to see the buffer data. Or even better: Use tshark or wireshark to have
> it all dissected into something readable.  You can also combine capturing
> with tcpdump and dissecting with wireshark (on another host) if you are
> limited to tcpdump on the capturing host for some reason. OpenWRT hosts
> will have tcpdump, but not tshark for example.

I did it and open it with wireshark
interesting to see that the dhcp discover is seen by wireshark ! (but no 
reply back)
I am sending you the pcap file in another mail as I think the 
distribution list will not permit it

>> It confirms that the dhcp packet is going on the right interface but
>> no reply.
> Yup.
>
>> I tried --wds-get-current-settings but it is not a valid command
> Ah, OK.  I believe it is a recent addition.  Yes, very new and not yet
> in a release AFAICS.  Sorry.  This is the commit id for reference:
>
>
> commit 543cf5c93984139865f919e7348bff2b54c16f39
> Author: Aleksander Morgado <aleksander at aleksander.es>
> Date:   Thu Feb 26 10:48:06 2015 +0100
>
>      qmicli,wds: new '--wds-get-current-settings' action
>      
>      Will print the IPv4 and IPv6 settings when connected. This information can be
>      used to statically set the network interface configuration, instead of relying
>      on a DHCP client.
>
>
>
>
>
> Bjørn

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libqmi-devel/attachments/20151027/fac24695/attachment.html>


More information about the libqmi-devel mailing list