MC7304 connection?

Aleksander Morgado aleksander at aleksander.es
Wed May 21 07:22:12 PDT 2014


On Wed, May 21, 2014 at 3:28 PM, Bjørn Mork <bjorn at mork.no> wrote:
>> Since the interfaces are effectively paired, is ModemManager detecting
>> the #1 WDM and the #3 net ports?  Is there a way to ensure that if MM
>> picks WDM #1 that it also uses net #1 as the data port?  If we don't
>> have any kind of links in sysfs, I guess we could poke udev for USB
>> interface numbers or something, but that's icky.
>
> The links will be there, but I don't know if it's less icky than using
> the interface numbers directly.  It's basically the same - both the net
> and the usbmisc dev will be children of the USB interface device:
>
> bjorn at nemi:~$ ls -ld /sys/bus/usb/devices/2-4\:1.*/{net,usbmisc}/*
> drwxr-xr-x 5 root root 0 May 21 15:23 /sys/bus/usb/devices/2-4:1.19/net/wwan1
> drwxr-xr-x 3 root root 0 May 21 15:23 /sys/bus/usb/devices/2-4:1.19/usbmisc/cdc-wdm1
> drwxr-xr-x 5 root root 0 May 21 15:23 /sys/bus/usb/devices/2-4:1.20/net/wwan2
> drwxr-xr-x 3 root root 0 May 21 15:23 /sys/bus/usb/devices/2-4:1.20/usbmisc/cdc-wdm2
> drwxr-xr-x 5 root root 0 May 21 15:23 /sys/bus/usb/devices/2-4:1.8/net/wwan0
> drwxr-xr-x 3 root root 0 May 21 15:23 /sys/bus/usb/devices/2-4:1.8/usbmisc/cdc-wdm0
>
>
> Find the cdc-wdm device via the netdev:
>
> bjorn at nemi:~$ ls -l /sys/class/net/wwan1/device/usbmisc
> total 0
> drwxr-xr-x 3 root root 0 May 21 15:23 cdc-wdm1
>
>
> Or the other way round:
>
> bjorn at nemi:~$ ls -l /sys/class/usbmisc/cdc-wdm1/device/net
> total 0
> drwxr-xr-x 5 root root 0 May 21 15:23 wwan1


Yes, MM does that correctly. When using the WWAN in a given interface,
it will use the QMI port in the same interface to get the connection
up.

-- 
Aleksander
https://aleksander.es


More information about the libqmi-devel mailing list