* Understanding what's going on when using a Huawei E173 USB 3G web-stick (UMTS/HSPA)
@ 2014-11-04 15:11 Sedat Dilek
2014-11-04 16:55 ` Dan Williams
0 siblings, 1 reply; 13+ messages in thread
From: Sedat Dilek @ 2014-11-04 15:11 UTC (permalink / raw)
To: Greg KH, David S. Miller; +Cc: netdev@vger.kernel.org, linux-usb
Hi,
I wanted to understand what is going on the kernel-side when
connecting to the Internet via a Huawei E173 USB web-stick (3rd
Generation: UMTS / HSPA).
Especially the correlation between the diverse USB/NET kernel-drivers
and how the networking is setup.
I have tested a Ubuntu trusty kernel on my Ubuntu/precise system and
compared the configs to get the stuff run on 3.18-rc2+.
Beyond the "option" driver, I required usb_serial / usb_wwan to be
activated and some more ("cde-ether" or sth. sound similiar...).
( Currently, I am not sitting (it's a Windows machine) in front of my
machine, so I cannot send you my latest kernel-config. )
As usually I looked into Documentation directory.
So, my 1st question where do I get some informations in general on
this topic - usb [1] or net subdirectory (seen from kernel-side)?
I found a usb-serial kernel-doc [1].
( I have no Linux Git source so I cannot grep for patterns. )
The next mystery is what is network-manager doing in the background?
I have seen that modem-manager is invoked, but as said I would like to
understand the "internas" (means check the logs, turn on some
debugging kernel-space/user-space, etc.).
I am not sure but syncing with 3G network seems to take a while since
I really can connect to the Internet.
I am happy about some fruitful informations or web-links...
Thanks in advance.
Regards,
- Sedat -
[1] https://www.kernel.org/doc/Documentation/usb/usb-serial.txt
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Understanding what's going on when using a Huawei E173 USB 3G web-stick (UMTS/HSPA)
2014-11-04 15:11 Understanding what's going on when using a Huawei E173 USB 3G web-stick (UMTS/HSPA) Sedat Dilek
@ 2014-11-04 16:55 ` Dan Williams
2014-11-12 11:54 ` Aleksander Morgado
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Dan Williams @ 2014-11-04 16:55 UTC (permalink / raw)
To: sedat.dilek; +Cc: Greg KH, David S. Miller, netdev@vger.kernel.org, linux-usb
On Tue, 2014-11-04 at 16:11 +0100, Sedat Dilek wrote:
> Hi,
>
> I wanted to understand what is going on the kernel-side when
> connecting to the Internet via a Huawei E173 USB web-stick (3rd
> Generation: UMTS / HSPA).
>
> Especially the correlation between the diverse USB/NET kernel-drivers
> and how the networking is setup.
General overview: there are many different types of WWAN devices and
they fall into a couple groups:
1) PPP-only via serial ports; IP packets are transmitted via a PPP
interface (eg, ppp0) created after sending some AT commands to the modem
over that serial port. IP addressing happens via PPP's IPCP/IPV6CP
protocols.
2) Net interface with AT commands over serial ports: the modem provides
a 'net' interface that is activated with proprietary AT commands over a
serial port. IP addressing happens via either DHCP on that net interface
after the AT setup, or the IP/DNS details are queried via proprietary AT
commands.
3) Net interface with proprietary protocols: the modem provides a 'net'
interface that is activated via proprietary protocols (QMI, MBIM, CnS,
etc). IP addressing happens either via DHCP on the net interface after
proprietary protocol setup, or the IP/DNS details are queried via
proprietary protocol commands.
It's often possible to know what category a device fits into, but even
devices from the same manufacturer with *the same model number* can fall
into different categories, because the firmware is different, or because
the firmware can switch between these categories using special commands.
> I have tested a Ubuntu trusty kernel on my Ubuntu/precise system and
> compared the configs to get the stuff run on 3.18-rc2+.
> Beyond the "option" driver, I required usb_serial / usb_wwan to be
> activated and some more ("cde-ether" or sth. sound similiar...).
> ( Currently, I am not sitting (it's a Windows machine) in front of my
> machine, so I cannot send you my latest kernel-config. )
>
> As usually I looked into Documentation directory.
> So, my 1st question where do I get some informations in general on
> this topic - usb [1] or net subdirectory (seen from kernel-side)?
> I found a usb-serial kernel-doc [1].
> ( I have no Linux Git source so I cannot grep for patterns. )
None of those really have any information about WWAN specific setup, and
I fear that if documentation was added, it would be quickly out-of-date
because device manufacturers change things so frequently.
> The next mystery is what is network-manager doing in the background?
> I have seen that modem-manager is invoked, but as said I would like to
> understand the "internas" (means check the logs, turn on some
> debugging kernel-space/user-space, etc.).
NetworkManager uses ModemManager for all WWAN control, NM only handles
the configuration storage and IP addressing parts of the setup.
ModemManager handles modem hardware detection, capability detection,
WWAN registration and setup, signal strength reporting, network
connection initiation, and bearer IP addressing method determination.
If you want more information from ModemManager, you can run "mmcli
--help" or "mmcli --set-logging=debug".
> I am not sure but syncing with 3G network seems to take a while since
> I really can connect to the Internet.
What do you mean by "syncing"?
Dan
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Understanding what's going on when using a Huawei E173 USB 3G web-stick (UMTS/HSPA)
2014-11-04 16:55 ` Dan Williams
@ 2014-11-12 11:54 ` Aleksander Morgado
[not found] ` <1415120132.31049.11.camel-ZWpNTBV2bRGs1BDpvl8NfQ@public.gmane.org>
[not found] ` <CAAP7ucKO2D8B1gG943aNcqWuLm2UWt3AsfZAh5bzeaA1gzSaHQ@mail.gmail.com>
2 siblings, 0 replies; 13+ messages in thread
From: Aleksander Morgado @ 2014-11-12 11:54 UTC (permalink / raw)
To: Dan Williams
Cc: sedat.dilek, Greg KH, David S. Miller, netdev@vger.kernel.org,
linux-usb
>
> NetworkManager uses ModemManager for all WWAN control, NM only handles
> the configuration storage and IP addressing parts of the setup.
> ModemManager handles modem hardware detection, capability detection,
> WWAN registration and setup, signal strength reporting, network
> connection initiation, and bearer IP addressing method determination.
>
> If you want more information from ModemManager, you can run "mmcli
> --help" or "mmcli --set-logging=debug".
>
That (mmcli) will only be available in ModemManager >= 1.x, BTW. And
beware of --set-logging=debug, as syslog may limit those if MM sends
too many too fast. In general I usually prefer to ask for --debug
output just in case:
http://www.freedesktop.org/wiki/Software/ModemManager/Debugging/
I saw the reporter talk about Ubuntu Precise (12.04) and Trusty
(14.04), so only in the latter mmcli will be available (if I'm not
mistaken). For Precise, this Ubuntu page shows how to enable debug
logs:
https://wiki.ubuntu.com/DebuggingModemmanager
--
Aleksander
https://aleksander.es
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Understanding what's going on when using a Huawei E173 USB 3G web-stick (UMTS/HSPA)
[not found] ` <1415120132.31049.11.camel-ZWpNTBV2bRGs1BDpvl8NfQ@public.gmane.org>
@ 2014-11-12 13:21 ` Sedat Dilek
[not found] ` <CA+icZUW2iRkoAK10ayJ9PFuFGWBQzKdFe+8mfd=8oKkAp1txtg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 13+ messages in thread
From: Sedat Dilek @ 2014-11-12 13:21 UTC (permalink / raw)
To: Dan Williams
Cc: Greg KH, David S. Miller,
netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-usb-u79uwXL29TY76Z2rM5mHXA, Aleksander Morgado
On Tue, Nov 4, 2014 at 5:55 PM, Dan Williams <dcbw-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> On Tue, 2014-11-04 at 16:11 +0100, Sedat Dilek wrote:
>> Hi,
>>
>> I wanted to understand what is going on the kernel-side when
>> connecting to the Internet via a Huawei E173 USB web-stick (3rd
>> Generation: UMTS / HSPA).
>>
>> Especially the correlation between the diverse USB/NET kernel-drivers
>> and how the networking is setup.
>
[ Sitting in front of a foreign Windows machine ]
[ CC Aleksander ]
Hi Dan,
sorry for the late (and short) response.
AFAICS you have given a "skeleton" for a "usb-wwan-networking"
documentation :-).
Personally, I would like to take into account some kernel-config
options and some more things.
> General overview: there are many different types of WWAN devices and
> they fall into a couple groups:
>
> 1) PPP-only via serial ports; IP packets are transmitted via a PPP
> interface (eg, ppp0) created after sending some AT commands to the modem
> over that serial port. IP addressing happens via PPP's IPCP/IPV6CP
> protocols.
>
> 2) Net interface with AT commands over serial ports: the modem provides
> a 'net' interface that is activated with proprietary AT commands over a
> serial port. IP addressing happens via either DHCP on that net interface
> after the AT setup, or the IP/DNS details are queried via proprietary AT
> commands.
>
> 3) Net interface with proprietary protocols: the modem provides a 'net'
> interface that is activated via proprietary protocols (QMI, MBIM, CnS,
> etc). IP addressing happens either via DHCP on the net interface after
> proprietary protocol setup, or the IP/DNS details are queried via
> proprietary protocol commands.
>
> It's often possible to know what category a device fits into, but even
> devices from the same manufacturer with *the same model number* can fall
> into different categories, because the firmware is different, or because
> the firmware can switch between these categories using special commands.
>
As I have a ppp0 network-interface setup, I guess I have the example #1 here.
What about putting these examples into a section "General Overview:
WWAN devices".
>> I have tested a Ubuntu trusty kernel on my Ubuntu/precise system and
>> compared the configs to get the stuff run on 3.18-rc2+.
>> Beyond the "option" driver, I required usb_serial / usb_wwan to be
>> activated and some more ("cde-ether" or sth. sound similiar...).
>> ( Currently, I am not sitting (it's a Windows machine) in front of my
>> machine, so I cannot send you my latest kernel-config. )
>>
>> As usually I looked into Documentation directory.
>> So, my 1st question where do I get some informations in general on
>> this topic - usb [1] or net subdirectory (seen from kernel-side)?
>> I found a usb-serial kernel-doc [1].
>> ( I have no Linux Git source so I cannot grep for patterns. )
>
> None of those really have any information about WWAN specific setup, and
> I fear that if documentation was added, it would be quickly out-of-date
> because device manufacturers change things so frequently.
>
Anyway as said above a brief documentation would be nice.
Dunno placed below "networking" or "usb" - what is your POV?
>> The next mystery is what is network-manager doing in the background?
>> I have seen that modem-manager is invoked, but as said I would like to
>> understand the "internas" (means check the logs, turn on some
>> debugging kernel-space/user-space, etc.).
>
> NetworkManager uses ModemManager for all WWAN control, NM only handles
> the configuration storage and IP addressing parts of the setup.
> ModemManager handles modem hardware detection, capability detection,
> WWAN registration and setup, signal strength reporting, network
> connection initiation, and bearer IP addressing method determination.
>
Hmm, as I have a GUI hiding what's going on behind the scenes :-), I
wanted to have a step-by-step understanding - not only in words - also
understanding my logs.
What about putting this section in sth. like a "(General Overview:)
Userland software".
> If you want more information from ModemManager, you can run "mmcli
> --help" or "mmcli --set-logging=debug".
>
That sort of information could be placed in a "Debugging (userland)" section.
Or at least with some links to what Alexander pointed to.
What sort of debugging can I do from kernel-side (-> "Debugging kernel-side")?
>> I am not sure but syncing with 3G network seems to take a while since
>> I really can connect to the Internet.
>
> What do you mean by "syncing"?
>
"Syncing" means here setting up my Internet 3G (PPP) connection or
more precisely after I plugin my USB Internet-stick (usable in my
Linux OS) it takes some time to check for the next 2G/3G "attenna
tower" or "receiver/transmitter mast" (translation according to
<dict.leo.org>).
Checking my dmesg...
My eth0 is setup within 25secs and ready to receive/send from/to my
network-interface, whereas my PPP connection around 72secs.
As I have no automatic dialin selected in NM, I have to activate...
* 1st "mobile broadband"
* and then select the (provider) profile in a second step
So we are talking about 1 minute after login into my desktop, I can
live with that.
What I had in mind is... How can I accelerate/speedup (and establish)
an Internet 3G connection.
If you can give me your guidance, I am willing to write down a 1st
draft of a "usb-wwan-networking" documentation (currently I am really
busy with daily life and I hope I find some minutes).
I am looking for a "YES, I will." :-).
Regards.
- Sedat -
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Understanding what's going on when using a Huawei E173 USB 3G web-stick (UMTS/HSPA)
[not found] ` <CAAP7ucKO2D8B1gG943aNcqWuLm2UWt3AsfZAh5bzeaA1gzSaHQ@mail.gmail.com>
@ 2014-11-12 13:34 ` Sedat Dilek
2014-11-12 13:49 ` Sedat Dilek
1 sibling, 0 replies; 13+ messages in thread
From: Sedat Dilek @ 2014-11-12 13:34 UTC (permalink / raw)
To: Aleksander Morgado
Cc: Dan Williams, Greg KH, David S. Miller, netdev@vger.kernel.org,
linux-usb
On Wed, Nov 12, 2014 at 12:51 PM, Aleksander Morgado
<aleksander@aleksander.es> wrote:
>
> On Tue, Nov 4, 2014 at 5:55 PM, Dan Williams <dcbw@redhat.com> wrote:
>>
>> > The next mystery is what is network-manager doing in the background?
>> > I have seen that modem-manager is invoked, but as said I would like to
>> > understand the "internas" (means check the logs, turn on some
>> > debugging kernel-space/user-space, etc.).
>>
>> NetworkManager uses ModemManager for all WWAN control, NM only handles
>> the configuration storage and IP addressing parts of the setup.
>> ModemManager handles modem hardware detection, capability detection,
>> WWAN registration and setup, signal strength reporting, network
>> connection initiation, and bearer IP addressing method determination.
>>
>> If you want more information from ModemManager, you can run "mmcli
>> --help" or "mmcli --set-logging=debug".
>
>
> That (mmcli) will only be available in ModemManager >= 1.x, BTW. And beware
> of --set-logging=debug, as syslog may limit those if MM sends too many too
> fast. In general I usually prefer to ask for --debug output just in case:
> http://www.freedesktop.org/wiki/Software/ModemManager/Debugging/
>
> I saw the reporter talk about Ubuntu Precise (12.04) and Trusty (14.04), so
> only in the latter mmcli will be available (if I'm not mistaken). For
> Precise, this Ubuntu page shows how to enable debug logs:
> https://wiki.ubuntu.com/DebuggingModemmanager
>
Hi Aleksander,
thanks for the web-links.
IMHO both can be placed in the "usb-wwan-networking" documentation I
have in mind.
The fdo-weblink is distro-independant.
Regards,
- Sedat -
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Understanding what's going on when using a Huawei E173 USB 3G web-stick (UMTS/HSPA)
[not found] ` <CAAP7ucKO2D8B1gG943aNcqWuLm2UWt3AsfZAh5bzeaA1gzSaHQ@mail.gmail.com>
2014-11-12 13:34 ` Sedat Dilek
@ 2014-11-12 13:49 ` Sedat Dilek
1 sibling, 0 replies; 13+ messages in thread
From: Sedat Dilek @ 2014-11-12 13:49 UTC (permalink / raw)
To: Aleksander Morgado
Cc: Dan Williams, Greg KH, David S. Miller, netdev@vger.kernel.org,
linux-usb
On Wed, Nov 12, 2014 at 12:51 PM, Aleksander Morgado
<aleksander@aleksander.es> wrote:
>
[...}
> I saw the reporter talk about Ubuntu Precise (12.04) and Trusty (14.04), so
> only in the latter mmcli will be available (if I'm not mistaken). For
> Precise, this Ubuntu page shows how to enable debug logs:
> https://wiki.ubuntu.com/DebuggingModemmanager
>
That wiki needs to be pimped-up (-> clarify on testing tools aka
outdated "mm-test.py", -> Ubuntu releases w/ and w/o upstart, etc.).
- Sedat -
"test: remove testers of the old interface"
[1] http://cgit.freedesktop.org/ModemManager/ModemManager/commit/?id=f3f499fcec13e6ffa9a428972c1108e7c23065d2
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Understanding what's going on when using a Huawei E173 USB 3G web-stick (UMTS/HSPA)
[not found] ` <CA+icZUW2iRkoAK10ayJ9PFuFGWBQzKdFe+8mfd=8oKkAp1txtg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-11-14 10:56 ` Sedat Dilek
2014-11-14 16:18 ` Dan Williams
0 siblings, 1 reply; 13+ messages in thread
From: Sedat Dilek @ 2014-11-14 10:56 UTC (permalink / raw)
To: Dan Williams
Cc: Greg KH, David S. Miller,
netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-usb-u79uwXL29TY76Z2rM5mHXA, Aleksander Morgado
On Wed, Nov 12, 2014 at 2:21 PM, Sedat Dilek <sedat.dilek-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> On Tue, Nov 4, 2014 at 5:55 PM, Dan Williams <dcbw-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
>> On Tue, 2014-11-04 at 16:11 +0100, Sedat Dilek wrote:
>>> Hi,
>>>
>>> I wanted to understand what is going on the kernel-side when
>>> connecting to the Internet via a Huawei E173 USB web-stick (3rd
>>> Generation: UMTS / HSPA).
>>>
>>> Especially the correlation between the diverse USB/NET kernel-drivers
>>> and how the networking is setup.
>>
>
> [ Sitting in front of a foreign Windows machine ]
>
> [ CC Aleksander ]
>
> Hi Dan,
>
> sorry for the late (and short) response.
>
> AFAICS you have given a "skeleton" for a "usb-wwan-networking"
> documentation :-).
>
> Personally, I would like to take into account some kernel-config
> options and some more things.
>
I started with documenting...
I have still some difficulties in understanding USB WWAN Networking.
So, this is what I revealed...
##### USB: HUAWEI E173 3G/UMTS/HSPA INTERNET STICK
### USB-NETWORKING AND WWAN SETUP
CONFIG_USB_USBNET=m <--- usb networking
CONFIG_USB_NET_CDCETHER=m <--- usb-wwan (net) configuration
CONFIG_USB_SERIAL_WWAN=m <--- usb-wwan (serial) configuration
CONFIG_USB_SERIAL_OPTION=m <--- usb-serial driver called "option"
### PPP OPTIONS
CONFIG_PPP=y
CONFIG_PPP_BSDCOMP=m
CONFIG_PPP_DEFLATE=m
CONFIG_PPP_FILTER=y
CONFIG_PPP_MULTILINK=y
CONFIG_PPP_ASYNC=m
Beyond the PPP options, I wanted to understand what
CONFIG_USB_NET_CDCETHER does and why I need it.
Can someone help?
Thanks.
- Sedat -
[1] http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/net/usb/Kconfig#n189
P.S.: cdc_ether Kconfig option and checking my logs
>From [1]...
...
config USB_NET_CDCETHER
tristate "CDC Ethernet support (smart devices such as cable modems)"
depends on USB_USBNET
default y
help
This option supports devices conforming to the Communication Device
Class (CDC) Ethernet Control Model, a specification that's easy to
implement in device firmware. The CDC specifications are available
from <http://www.usb.org/>.
CDC Ethernet is an implementation option for DOCSIS cable modems
that support USB connectivity, used for non-Microsoft USB hosts.
The Linux-USB CDC Ethernet Gadget driver is an open implementation.
This driver should work with at least the following devices:
* Dell Wireless 5530 HSPA
* Ericsson PipeRider (all variants)
* Ericsson Mobile Broadband Module (all variants)
* Motorola (DM100 and SB4100)
* Broadcom Cable Modem (reference design)
* Toshiba (PCX1100U and F3507g/F3607gw)
* ...
This driver creates an interface named "ethX", where X depends on
what other networking devices you have in use. However, if the
IEEE 802 "local assignment" bit is set in the address, a "usbX"
name is used instead.
...
>From my logs...
$ dmesg | egrep -i 'option|wwan|ppp|3-1.2|huawei|gsm|modem'
[ 0.000000] please try 'cgroup_disable=memory' option if you don't
want memory cgroups
[ 0.549498] PPP generic driver version 2.4.2
[ 1.299059] usb 3-1.2: new high-speed USB device number 3 using ehci-pci
[ 1.394084] usb 3-1.2: New USB device found, idVendor=12d1, idProduct=1436
[ 1.394095] usb 3-1.2: New USB device strings: Mfr=4, Product=3,
SerialNumber=0
[ 1.394100] usb 3-1.2: Product: HUAWEI Mobile
[ 1.394103] usb 3-1.2: Manufacturer: HUAWEI Technology
[ 2.115424] usb-storage 3-1.2:1.0: USB Mass Storage device detected
[ 2.125026] usb-storage 3-1.2:1.1: USB Mass Storage device detected
[ 2.125607] usb-storage 3-1.2:1.2: USB Mass Storage device detected
[ 2.125888] usb-storage 3-1.2:1.3: USB Mass Storage device detected
[ 2.126187] usb-storage 3-1.2:1.4: USB Mass Storage device detected
[ 2.126461] usb-storage 3-1.2:1.5: USB Mass Storage device detected
[ 2.127098] scsi host11: usb-storage 3-1.2:1.5
[ 2.129370] usb-storage 3-1.2:1.6: USB Mass Storage device detected
[ 2.131685] scsi host12: usb-storage 3-1.2:1.6
[ 3.127317] scsi 11:0:0:0: CD-ROM HUAWEI Mass Storage
2.31 PQ: 0 ANSI: 2
[ 3.137589] scsi 12:0:0:0: Direct-Access HUAWEI SD Storage
2.31 PQ: 0 ANSI: 2
[ 13.500302] cdc_ether 3-1.2:1.1 wwan0: register 'cdc_ether' at
usb-0000:00:1a.0-1.2, Mobile Broadband Network Device,
02:50:f3:00:00:00
[ 14.160221] usbcore: registered new interface driver option
[ 14.160820] usbserial: USB Serial support registered for GSM modem (1-port)
[ 14.160940] option 3-1.2:1.0: GSM modem (1-port) converter detected
[ 14.163032] usb 3-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 14.163305] option 3-1.2:1.3: GSM modem (1-port) converter detected
[ 14.163676] usb 3-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[ 14.163742] option 3-1.2:1.4: GSM modem (1-port) converter detected
[ 14.165227] usb 3-1.2: GSM modem (1-port) converter now attached to ttyUSB2
[ 72.877065] PPP BSD Compression module registered
[ 72.881701] PPP Deflate Compression module registered
- EOT -
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Understanding what's going on when using a Huawei E173 USB 3G web-stick (UMTS/HSPA)
2014-11-14 10:56 ` Sedat Dilek
@ 2014-11-14 16:18 ` Dan Williams
2014-11-15 9:23 ` Sedat Dilek
0 siblings, 1 reply; 13+ messages in thread
From: Dan Williams @ 2014-11-14 16:18 UTC (permalink / raw)
To: sedat.dilek
Cc: Greg KH, David S. Miller, netdev@vger.kernel.org, linux-usb,
Aleksander Morgado
On Fri, 2014-11-14 at 11:56 +0100, Sedat Dilek wrote:
> On Wed, Nov 12, 2014 at 2:21 PM, Sedat Dilek <sedat.dilek@gmail.com> wrote:
> > On Tue, Nov 4, 2014 at 5:55 PM, Dan Williams <dcbw@redhat.com> wrote:
> >> On Tue, 2014-11-04 at 16:11 +0100, Sedat Dilek wrote:
> >>> Hi,
> >>>
> >>> I wanted to understand what is going on the kernel-side when
> >>> connecting to the Internet via a Huawei E173 USB web-stick (3rd
> >>> Generation: UMTS / HSPA).
> >>>
> >>> Especially the correlation between the diverse USB/NET kernel-drivers
> >>> and how the networking is setup.
> >>
> >
> > [ Sitting in front of a foreign Windows machine ]
> >
> > [ CC Aleksander ]
> >
> > Hi Dan,
> >
> > sorry for the late (and short) response.
> >
> > AFAICS you have given a "skeleton" for a "usb-wwan-networking"
> > documentation :-).
> >
> > Personally, I would like to take into account some kernel-config
> > options and some more things.
> >
>
> I started with documenting...
>
> I have still some difficulties in understanding USB WWAN Networking.
> So, this is what I revealed...
>
> ##### USB: HUAWEI E173 3G/UMTS/HSPA INTERNET STICK
>
> ### USB-NETWORKING AND WWAN SETUP
> CONFIG_USB_USBNET=m <--- usb networking
> CONFIG_USB_NET_CDCETHER=m <--- usb-wwan (net) configuration
> CONFIG_USB_SERIAL_WWAN=m <--- usb-wwan (serial) configuration
> CONFIG_USB_SERIAL_OPTION=m <--- usb-serial driver called "option"
Most WWAN devices actually require option, because most WWAN devices
have "serial" ports (even if they aren't used for PPP), and 'option' is
the driver that handles this. The 'option' name is historic, but the
driver should really be called something like 'wwan-serial-generic' or
something like that.
You're missing a few other "net" type drivers:
CONFIG_USB_NET_QMI_WWAN = Qualcomm QMI capable devices (net)
CONFIG_USB_HSO = "Option High-Speed" (net) devices
CONFIG_USB_NET_KALMIA = Samsung LTE dongle (net)
CONFIG_USB_SIERRA_NET = Sierra devices (net)
CONFIG_USB_NET_CDC_NCM = Ericsson F5321 (?) and some others (net)
CONFIG_USB_NET_HUAWEI_CDC_NCM = Huawei NCM variant (net)
CONFIG_USB_VL600 = LG VL600 / AD600 LTE device (net)
CONFIG_USB_NET_CDC_MBIM = MBIM (net) devices (popular currently)
and maybe even:
CONFIG_USB_CDC_PHONET = Nokia phones and USB sticks, not "net" but
proprietary protocol that handles both data/control channels
For the "serial" side:
CONFIG_USB_ACM = generic "serial" devices, many are *not* WWAN but many
WWAN devices use this class/driver
CONFIG_USB_SERIAL_QCAUX = Various Qualcomm-based devices' "auxiliary"
ports (DIAG, GPS, etc)
CONFIG_USB_SERIAL_QUALCOMM = Firmware loading and "auxiliary" ports on
various Qualcomm Gobi devices
CONFIG_USB_SERIAL_SIERRAWIRELESS = Older Sierra device serial ports for
PPP/control and "auxiliary" functions
WWAN devices basically mix & match these drivers depending on what
interfaces the firmware exposes.
For example, some Sierra devices may require both
CONFIG_USB_SERIAL_SIERRAWIRELESS and CONFIG_USB_SIERRA_NET.
Older Sierra devices may use only CONFIG_USB_SERIAL_SIERRAWIRELESS and
do not provide a 'net' port at all, but use only PPP.
Sierra devices based on Icera chips may use CONFIG_USB_ACM and either
CONFIG_USB_SIERRA_NET or CONFIG_USB_NET_CDCETHER.
Some Huawei devices may use CONFIG_USB_NET_CDCETHER and either
CONFIG_USB_SERIAL_OPTION or CONFIG_USB_ACM.
Other Huawei devices may use CONFIG_USB_NET_QMI_WWAN and
CONFIG_USB_SERIAL_OPTION.
Even other Huawei devices may be Qualcomm Gobi type and use
CONFIG_USB_NET_QMI_WWAN and CONFIG_USB_SERIAL_QUALCOMM.
So you see it really depends on exactly how the firmware is implemented.
But in general, devices still fall into the categories I originally
listed, and the drivers fall into specific categories too ("net",
"serial", "proprietary"), and devices mix & match drivers to achieve the
end result.
Dan
> ### PPP OPTIONS
> CONFIG_PPP=y
> CONFIG_PPP_BSDCOMP=m
> CONFIG_PPP_DEFLATE=m
> CONFIG_PPP_FILTER=y
> CONFIG_PPP_MULTILINK=y
> CONFIG_PPP_ASYNC=m
>
> Beyond the PPP options, I wanted to understand what
> CONFIG_USB_NET_CDCETHER does and why I need it.
> Can someone help?
> Thanks.
>
> - Sedat -
>
> [1] http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/net/usb/Kconfig#n189
>
> P.S.: cdc_ether Kconfig option and checking my logs
>
> From [1]...
> ...
> config USB_NET_CDCETHER
> tristate "CDC Ethernet support (smart devices such as cable modems)"
> depends on USB_USBNET
> default y
> help
> This option supports devices conforming to the Communication Device
> Class (CDC) Ethernet Control Model, a specification that's easy to
> implement in device firmware. The CDC specifications are available
> from <http://www.usb.org/>.
>
> CDC Ethernet is an implementation option for DOCSIS cable modems
> that support USB connectivity, used for non-Microsoft USB hosts.
> The Linux-USB CDC Ethernet Gadget driver is an open implementation.
> This driver should work with at least the following devices:
>
> * Dell Wireless 5530 HSPA
> * Ericsson PipeRider (all variants)
> * Ericsson Mobile Broadband Module (all variants)
> * Motorola (DM100 and SB4100)
> * Broadcom Cable Modem (reference design)
> * Toshiba (PCX1100U and F3507g/F3607gw)
> * ...
>
> This driver creates an interface named "ethX", where X depends on
> what other networking devices you have in use. However, if the
> IEEE 802 "local assignment" bit is set in the address, a "usbX"
> name is used instead.
> ...
>
> From my logs...
>
> $ dmesg | egrep -i 'option|wwan|ppp|3-1.2|huawei|gsm|modem'
> [ 0.000000] please try 'cgroup_disable=memory' option if you don't
> want memory cgroups
> [ 0.549498] PPP generic driver version 2.4.2
> [ 1.299059] usb 3-1.2: new high-speed USB device number 3 using ehci-pci
> [ 1.394084] usb 3-1.2: New USB device found, idVendor=12d1, idProduct=1436
> [ 1.394095] usb 3-1.2: New USB device strings: Mfr=4, Product=3,
> SerialNumber=0
> [ 1.394100] usb 3-1.2: Product: HUAWEI Mobile
> [ 1.394103] usb 3-1.2: Manufacturer: HUAWEI Technology
> [ 2.115424] usb-storage 3-1.2:1.0: USB Mass Storage device detected
> [ 2.125026] usb-storage 3-1.2:1.1: USB Mass Storage device detected
> [ 2.125607] usb-storage 3-1.2:1.2: USB Mass Storage device detected
> [ 2.125888] usb-storage 3-1.2:1.3: USB Mass Storage device detected
> [ 2.126187] usb-storage 3-1.2:1.4: USB Mass Storage device detected
> [ 2.126461] usb-storage 3-1.2:1.5: USB Mass Storage device detected
> [ 2.127098] scsi host11: usb-storage 3-1.2:1.5
> [ 2.129370] usb-storage 3-1.2:1.6: USB Mass Storage device detected
> [ 2.131685] scsi host12: usb-storage 3-1.2:1.6
> [ 3.127317] scsi 11:0:0:0: CD-ROM HUAWEI Mass Storage
> 2.31 PQ: 0 ANSI: 2
> [ 3.137589] scsi 12:0:0:0: Direct-Access HUAWEI SD Storage
> 2.31 PQ: 0 ANSI: 2
> [ 13.500302] cdc_ether 3-1.2:1.1 wwan0: register 'cdc_ether' at
> usb-0000:00:1a.0-1.2, Mobile Broadband Network Device,
> 02:50:f3:00:00:00
> [ 14.160221] usbcore: registered new interface driver option
> [ 14.160820] usbserial: USB Serial support registered for GSM modem (1-port)
> [ 14.160940] option 3-1.2:1.0: GSM modem (1-port) converter detected
> [ 14.163032] usb 3-1.2: GSM modem (1-port) converter now attached to ttyUSB0
> [ 14.163305] option 3-1.2:1.3: GSM modem (1-port) converter detected
> [ 14.163676] usb 3-1.2: GSM modem (1-port) converter now attached to ttyUSB1
> [ 14.163742] option 3-1.2:1.4: GSM modem (1-port) converter detected
> [ 14.165227] usb 3-1.2: GSM modem (1-port) converter now attached to ttyUSB2
> [ 72.877065] PPP BSD Compression module registered
> [ 72.881701] PPP Deflate Compression module registered
> - EOT -
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Understanding what's going on when using a Huawei E173 USB 3G web-stick (UMTS/HSPA)
2014-11-14 16:18 ` Dan Williams
@ 2014-11-15 9:23 ` Sedat Dilek
2014-11-15 20:07 ` Greg KH
0 siblings, 1 reply; 13+ messages in thread
From: Sedat Dilek @ 2014-11-15 9:23 UTC (permalink / raw)
To: Dan Williams
Cc: Greg KH, David S. Miller, netdev@vger.kernel.org, linux-usb,
Aleksander Morgado
On Fri, Nov 14, 2014 at 5:18 PM, Dan Williams <dcbw@redhat.com> wrote:
> On Fri, 2014-11-14 at 11:56 +0100, Sedat Dilek wrote:
>> On Wed, Nov 12, 2014 at 2:21 PM, Sedat Dilek <sedat.dilek@gmail.com> wrote:
>> > On Tue, Nov 4, 2014 at 5:55 PM, Dan Williams <dcbw@redhat.com> wrote:
>> >> On Tue, 2014-11-04 at 16:11 +0100, Sedat Dilek wrote:
>> >>> Hi,
>> >>>
>> >>> I wanted to understand what is going on the kernel-side when
>> >>> connecting to the Internet via a Huawei E173 USB web-stick (3rd
>> >>> Generation: UMTS / HSPA).
>> >>>
>> >>> Especially the correlation between the diverse USB/NET kernel-drivers
>> >>> and how the networking is setup.
>> >>
>> >
>> > [ Sitting in front of a foreign Windows machine ]
>> >
>> > [ CC Aleksander ]
>> >
>> > Hi Dan,
>> >
>> > sorry for the late (and short) response.
>> >
>> > AFAICS you have given a "skeleton" for a "usb-wwan-networking"
>> > documentation :-).
>> >
>> > Personally, I would like to take into account some kernel-config
>> > options and some more things.
>> >
>>
>> I started with documenting...
>>
>> I have still some difficulties in understanding USB WWAN Networking.
>> So, this is what I revealed...
>>
>> ##### USB: HUAWEI E173 3G/UMTS/HSPA INTERNET STICK
>>
>> ### USB-NETWORKING AND WWAN SETUP
>> CONFIG_USB_USBNET=m <--- usb networking
>> CONFIG_USB_NET_CDCETHER=m <--- usb-wwan (net) configuration
>> CONFIG_USB_SERIAL_WWAN=m <--- usb-wwan (serial) configuration
>> CONFIG_USB_SERIAL_OPTION=m <--- usb-serial driver called "option"
>
> Most WWAN devices actually require option, because most WWAN devices
> have "serial" ports (even if they aren't used for PPP), and 'option' is
> the driver that handles this. The 'option' name is historic, but the
> driver should really be called something like 'wwan-serial-generic' or
> something like that.
>
Is there sth. against renaming the "option" driver to "wwan-serial-generic"?
> You're missing a few other "net" type drivers:
>
> CONFIG_USB_NET_QMI_WWAN = Qualcomm QMI capable devices (net)
> CONFIG_USB_HSO = "Option High-Speed" (net) devices
> CONFIG_USB_NET_KALMIA = Samsung LTE dongle (net)
> CONFIG_USB_SIERRA_NET = Sierra devices (net)
> CONFIG_USB_NET_CDC_NCM = Ericsson F5321 (?) and some others (net)
> CONFIG_USB_NET_HUAWEI_CDC_NCM = Huawei NCM variant (net)
> CONFIG_USB_VL600 = LG VL600 / AD600 LTE device (net)
> CONFIG_USB_NET_CDC_MBIM = MBIM (net) devices (popular currently)
>
> and maybe even:
>
> CONFIG_USB_CDC_PHONET = Nokia phones and USB sticks, not "net" but
> proprietary protocol that handles both data/control channels
>
> For the "serial" side:
>
> CONFIG_USB_ACM = generic "serial" devices, many are *not* WWAN but many
> WWAN devices use this class/driver
> CONFIG_USB_SERIAL_QCAUX = Various Qualcomm-based devices' "auxiliary"
> ports (DIAG, GPS, etc)
> CONFIG_USB_SERIAL_QUALCOMM = Firmware loading and "auxiliary" ports on
> various Qualcomm Gobi devices
> CONFIG_USB_SERIAL_SIERRAWIRELESS = Older Sierra device serial ports for
> PPP/control and "auxiliary" functions
>
> WWAN devices basically mix & match these drivers depending on what
> interfaces the firmware exposes.
>
> For example, some Sierra devices may require both
> CONFIG_USB_SERIAL_SIERRAWIRELESS and CONFIG_USB_SIERRA_NET.
>
> Older Sierra devices may use only CONFIG_USB_SERIAL_SIERRAWIRELESS and
> do not provide a 'net' port at all, but use only PPP.
>
> Sierra devices based on Icera chips may use CONFIG_USB_ACM and either
> CONFIG_USB_SIERRA_NET or CONFIG_USB_NET_CDCETHER.
>
> Some Huawei devices may use CONFIG_USB_NET_CDCETHER and either
> CONFIG_USB_SERIAL_OPTION or CONFIG_USB_ACM.
>
> Other Huawei devices may use CONFIG_USB_NET_QMI_WWAN and
> CONFIG_USB_SERIAL_OPTION.
>
> Even other Huawei devices may be Qualcomm Gobi type and use
> CONFIG_USB_NET_QMI_WWAN and CONFIG_USB_SERIAL_QUALCOMM.
>
> So you see it really depends on exactly how the firmware is implemented.
> But in general, devices still fall into the categories I originally
> listed, and the drivers fall into specific categories too ("net",
> "serial", "proprietary"), and devices mix & match drivers to achieve the
> end result.
>
Hi Dan,
Hmm, yeah I see more clearly this usb-networking is not that simple.
Anyway, I will face you if I need some aid or examples.
Unfortunately, you did not answer my "cdc_ether" questions...
I am a bit irritated about the Kconfig help-text (might be outdated or
not precise enough)...
...
config USB_NET_CDCETHER
tristate "CDC Ethernet support (smart devices such as cable modems)"
...
Is this here a "GSM modem" (see dmesg extract below)?
Or even (taken from the logs) "Mobile Broadband Network Device".
...
This driver creates an interface named "ethX", where X depends on
what other networking devices you have in use. However, if the
IEEE 802 "local assignment" bit is set in the address, a "usbX"
name is used instead.
,,,
Checking my logs I have no "ethX" or "usbX"...
$ dmesg | egrep -i 'cdc|wwan'
[ 13.448398] cdc_ether 3-1.2:1.1 wwan0: register 'cdc_ether' at
usb-0000:00:1a.0-1.2, Mobile Broadband Network Device,
02:50:f3:00:00:00
[ 13.448497] usbcore: registered new interface driver cdc_ether
...what do I have? "wwanX"?
I can send a patch to clarify on the Kconfig help-text.
Which MLs BTW (netdev and linux-usb, even linux-serial)?
Hope I do not annoy you that much.
Just curious.
- Sedat -
P.S.: Extract from my dmesg after plugging-in my Huawei Internet USB stick.
...
[ 57.117170] usb 4-1.5: USB disconnect, device number 4
[ 66.248136] usb 3-1.2: new high-speed USB device number 4 using ehci-pci
[ 66.343169] usb 3-1.2: New USB device found, idVendor=12d1, idProduct=1446
[ 66.343182] usb 3-1.2: New USB device strings: Mfr=3, Product=2,
SerialNumber=0
[ 66.343188] usb 3-1.2: Product: HUAWEI Mobile
[ 66.343193] usb 3-1.2: Manufacturer: HUAWEI Technology
[ 66.388091] usb-storage 3-1.2:1.0: USB Mass Storage device detected
[ 66.388430] scsi host6: usb-storage 3-1.2:1.0
[ 66.388646] usb-storage 3-1.2:1.1: USB Mass Storage device detected
[ 66.388805] scsi host7: usb-storage 3-1.2:1.1
[ 66.389042] usbcore: registered new interface driver usb-storage
[ 67.389689] scsi 6:0:0:0: CD-ROM HUAWEI Mass Storage
2.31 PQ: 0 ANSI: 2
[ 67.389737] scsi 7:0:0:0: Direct-Access HUAWEI SD Storage
2.31 PQ: 0 ANSI: 2
[ 67.393600] sr 6:0:0:0: [sr0] scsi-1 drive
[ 67.393606] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 67.394901] sr 6:0:0:0: Attached scsi CD-ROM sr0
[ 67.395973] sr 6:0:0:0: Attached scsi generic sg2 type 5
[ 67.403214] sd 7:0:0:0: Attached scsi generic sg3 type 0
[ 67.411095] sd 7:0:0:0: [sdc] Attached SCSI removable disk
[ 67.834115] usb 3-1.2: USB disconnect, device number 4
[ 71.612271] usb 3-1.2: new high-speed USB device number 5 using ehci-pci
[ 71.707111] usb 3-1.2: New USB device found, idVendor=12d1, idProduct=1436
[ 71.707123] usb 3-1.2: New USB device strings: Mfr=4, Product=3,
SerialNumber=0
[ 71.707129] usb 3-1.2: Product: HUAWEI Mobile
[ 71.707142] usb 3-1.2: Manufacturer: HUAWEI Technology
[ 71.710324] usb-storage 3-1.2:1.0: USB Mass Storage device detected
[ 71.711244] usb-storage 3-1.2:1.1: USB Mass Storage device detected
[ 71.711563] usb-storage 3-1.2:1.2: USB Mass Storage device detected
[ 71.711928] usb-storage 3-1.2:1.3: USB Mass Storage device detected
[ 71.712279] usb-storage 3-1.2:1.4: USB Mass Storage device detected
[ 71.712661] usb-storage 3-1.2:1.5: USB Mass Storage device detected
[ 71.713143] scsi host13: usb-storage 3-1.2:1.5
[ 71.713564] usb-storage 3-1.2:1.6: USB Mass Storage device detected
[ 71.714058] scsi host14: usb-storage 3-1.2:1.6
[ 71.747682] usbcore: registered new interface driver usbserial
[ 71.758867] cdc_ether 3-1.2:1.1 wwan0: register 'cdc_ether' at
usb-0000:00:1a.0-1.2, Mobile Broadband Network Device,
02:50:f3:00:00:00
[ 71.758955] usbcore: registered new interface driver cdc_ether
[ 71.759467] usbcore: registered new interface driver option
[ 71.761290] usbserial: USB Serial support registered for GSM modem (1-port)
[ 71.761687] option 3-1.2:1.0: GSM modem (1-port) converter detected
[ 71.762458] usb 3-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 71.762697] option 3-1.2:1.3: GSM modem (1-port) converter detected
[ 71.763122] usb 3-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[ 71.763179] option 3-1.2:1.4: GSM modem (1-port) converter detected
[ 71.763428] usb 3-1.2: GSM modem (1-port) converter now attached to ttyUSB2
[ 72.713937] scsi 13:0:0:0: CD-ROM HUAWEI Mass Storage
2.31 PQ: 0 ANSI: 2
[ 72.713995] scsi 14:0:0:0: Direct-Access HUAWEI SD Storage
2.31 PQ: 0 ANSI: 2
[ 72.716804] sr 13:0:0:0: [sr0] scsi-1 drive
[ 72.717888] sr 13:0:0:0: Attached scsi CD-ROM sr0
[ 72.718765] sr 13:0:0:0: Attached scsi generic sg2 type 5
[ 72.723309] sd 14:0:0:0: Attached scsi generic sg3 type 0
[ 72.728186] sd 14:0:0:0: [sdc] Attached SCSI removable disk
[ 107.625267] PPP BSD Compression module registered
[ 107.632006] PPP Deflate Compression module registered
- EOT -
> Dan
>
>> ### PPP OPTIONS
>> CONFIG_PPP=y
>> CONFIG_PPP_BSDCOMP=m
>> CONFIG_PPP_DEFLATE=m
>> CONFIG_PPP_FILTER=y
>> CONFIG_PPP_MULTILINK=y
>> CONFIG_PPP_ASYNC=m
>>
>> Beyond the PPP options, I wanted to understand what
>> CONFIG_USB_NET_CDCETHER does and why I need it.
>> Can someone help?
>
>
>
>
>> Thanks.
>>
>> - Sedat -
>>
>> [1] http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/net/usb/Kconfig#n189
>>
>> P.S.: cdc_ether Kconfig option and checking my logs
>>
>> From [1]...
>> ...
>> config USB_NET_CDCETHER
>> tristate "CDC Ethernet support (smart devices such as cable modems)"
>> depends on USB_USBNET
>> default y
>> help
>> This option supports devices conforming to the Communication Device
>> Class (CDC) Ethernet Control Model, a specification that's easy to
>> implement in device firmware. The CDC specifications are available
>> from <http://www.usb.org/>.
>>
>> CDC Ethernet is an implementation option for DOCSIS cable modems
>> that support USB connectivity, used for non-Microsoft USB hosts.
>> The Linux-USB CDC Ethernet Gadget driver is an open implementation.
>> This driver should work with at least the following devices:
>>
>> * Dell Wireless 5530 HSPA
>> * Ericsson PipeRider (all variants)
>> * Ericsson Mobile Broadband Module (all variants)
>> * Motorola (DM100 and SB4100)
>> * Broadcom Cable Modem (reference design)
>> * Toshiba (PCX1100U and F3507g/F3607gw)
>> * ...
>>
>> This driver creates an interface named "ethX", where X depends on
>> what other networking devices you have in use. However, if the
>> IEEE 802 "local assignment" bit is set in the address, a "usbX"
>> name is used instead.
>> ...
>>
>> From my logs...
>>
>> $ dmesg | egrep -i 'option|wwan|ppp|3-1.2|huawei|gsm|modem'
>> [ 0.000000] please try 'cgroup_disable=memory' option if you don't
>> want memory cgroups
>> [ 0.549498] PPP generic driver version 2.4.2
>> [ 1.299059] usb 3-1.2: new high-speed USB device number 3 using ehci-pci
>> [ 1.394084] usb 3-1.2: New USB device found, idVendor=12d1, idProduct=1436
>> [ 1.394095] usb 3-1.2: New USB device strings: Mfr=4, Product=3,
>> SerialNumber=0
>> [ 1.394100] usb 3-1.2: Product: HUAWEI Mobile
>> [ 1.394103] usb 3-1.2: Manufacturer: HUAWEI Technology
>> [ 2.115424] usb-storage 3-1.2:1.0: USB Mass Storage device detected
>> [ 2.125026] usb-storage 3-1.2:1.1: USB Mass Storage device detected
>> [ 2.125607] usb-storage 3-1.2:1.2: USB Mass Storage device detected
>> [ 2.125888] usb-storage 3-1.2:1.3: USB Mass Storage device detected
>> [ 2.126187] usb-storage 3-1.2:1.4: USB Mass Storage device detected
>> [ 2.126461] usb-storage 3-1.2:1.5: USB Mass Storage device detected
>> [ 2.127098] scsi host11: usb-storage 3-1.2:1.5
>> [ 2.129370] usb-storage 3-1.2:1.6: USB Mass Storage device detected
>> [ 2.131685] scsi host12: usb-storage 3-1.2:1.6
>> [ 3.127317] scsi 11:0:0:0: CD-ROM HUAWEI Mass Storage
>> 2.31 PQ: 0 ANSI: 2
>> [ 3.137589] scsi 12:0:0:0: Direct-Access HUAWEI SD Storage
>> 2.31 PQ: 0 ANSI: 2
>> [ 13.500302] cdc_ether 3-1.2:1.1 wwan0: register 'cdc_ether' at
>> usb-0000:00:1a.0-1.2, Mobile Broadband Network Device,
>> 02:50:f3:00:00:00
>> [ 14.160221] usbcore: registered new interface driver option
>> [ 14.160820] usbserial: USB Serial support registered for GSM modem (1-port)
>> [ 14.160940] option 3-1.2:1.0: GSM modem (1-port) converter detected
>> [ 14.163032] usb 3-1.2: GSM modem (1-port) converter now attached to ttyUSB0
>> [ 14.163305] option 3-1.2:1.3: GSM modem (1-port) converter detected
>> [ 14.163676] usb 3-1.2: GSM modem (1-port) converter now attached to ttyUSB1
>> [ 14.163742] option 3-1.2:1.4: GSM modem (1-port) converter detected
>> [ 14.165227] usb 3-1.2: GSM modem (1-port) converter now attached to ttyUSB2
>> [ 72.877065] PPP BSD Compression module registered
>> [ 72.881701] PPP Deflate Compression module registered
>> - EOT -
>> --
>> To unsubscribe from this list: send the line "unsubscribe netdev" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Understanding what's going on when using a Huawei E173 USB 3G web-stick (UMTS/HSPA)
2014-11-15 9:23 ` Sedat Dilek
@ 2014-11-15 20:07 ` Greg KH
[not found] ` <20141115200711.GA24643-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 13+ messages in thread
From: Greg KH @ 2014-11-15 20:07 UTC (permalink / raw)
To: Sedat Dilek
Cc: Dan Williams, David S. Miller, netdev@vger.kernel.org, linux-usb,
Aleksander Morgado
On Sat, Nov 15, 2014 at 10:23:55AM +0100, Sedat Dilek wrote:
> On Fri, Nov 14, 2014 at 5:18 PM, Dan Williams <dcbw@redhat.com> wrote:
> > On Fri, 2014-11-14 at 11:56 +0100, Sedat Dilek wrote:
> >> On Wed, Nov 12, 2014 at 2:21 PM, Sedat Dilek <sedat.dilek@gmail.com> wrote:
> >> > On Tue, Nov 4, 2014 at 5:55 PM, Dan Williams <dcbw@redhat.com> wrote:
> >> >> On Tue, 2014-11-04 at 16:11 +0100, Sedat Dilek wrote:
> >> >>> Hi,
> >> >>>
> >> >>> I wanted to understand what is going on the kernel-side when
> >> >>> connecting to the Internet via a Huawei E173 USB web-stick (3rd
> >> >>> Generation: UMTS / HSPA).
> >> >>>
> >> >>> Especially the correlation between the diverse USB/NET kernel-drivers
> >> >>> and how the networking is setup.
> >> >>
> >> >
> >> > [ Sitting in front of a foreign Windows machine ]
> >> >
> >> > [ CC Aleksander ]
> >> >
> >> > Hi Dan,
> >> >
> >> > sorry for the late (and short) response.
> >> >
> >> > AFAICS you have given a "skeleton" for a "usb-wwan-networking"
> >> > documentation :-).
> >> >
> >> > Personally, I would like to take into account some kernel-config
> >> > options and some more things.
> >> >
> >>
> >> I started with documenting...
> >>
> >> I have still some difficulties in understanding USB WWAN Networking.
> >> So, this is what I revealed...
> >>
> >> ##### USB: HUAWEI E173 3G/UMTS/HSPA INTERNET STICK
> >>
> >> ### USB-NETWORKING AND WWAN SETUP
> >> CONFIG_USB_USBNET=m <--- usb networking
> >> CONFIG_USB_NET_CDCETHER=m <--- usb-wwan (net) configuration
> >> CONFIG_USB_SERIAL_WWAN=m <--- usb-wwan (serial) configuration
> >> CONFIG_USB_SERIAL_OPTION=m <--- usb-serial driver called "option"
> >
> > Most WWAN devices actually require option, because most WWAN devices
> > have "serial" ports (even if they aren't used for PPP), and 'option' is
> > the driver that handles this. The 'option' name is historic, but the
> > driver should really be called something like 'wwan-serial-generic' or
> > something like that.
> >
>
> Is there sth. against renaming the "option" driver to "wwan-serial-generic"?
Yes, people's scripts might break that are hard-coded to use the
"option" driver.
thanks,
greg "here, have a vowel, they are cheap" k-h
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Understanding what's going on when using a Huawei E173 USB 3G web-stick (UMTS/HSPA)
[not found] ` <20141115200711.GA24643-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
@ 2014-11-16 1:40 ` Sedat Dilek
2014-11-16 2:34 ` Greg KH
0 siblings, 1 reply; 13+ messages in thread
From: Sedat Dilek @ 2014-11-16 1:40 UTC (permalink / raw)
To: Greg KH
Cc: Dan Williams, David S. Miller,
netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-usb-u79uwXL29TY76Z2rM5mHXA, Aleksander Morgado
On Sat, Nov 15, 2014 at 9:07 PM, Greg KH <greg-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org> wrote:
> On Sat, Nov 15, 2014 at 10:23:55AM +0100, Sedat Dilek wrote:
>> On Fri, Nov 14, 2014 at 5:18 PM, Dan Williams <dcbw-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
>> > On Fri, 2014-11-14 at 11:56 +0100, Sedat Dilek wrote:
>> >> On Wed, Nov 12, 2014 at 2:21 PM, Sedat Dilek <sedat.dilek@gmail.com> wrote:
>> >> > On Tue, Nov 4, 2014 at 5:55 PM, Dan Williams <dcbw-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
>> >> >> On Tue, 2014-11-04 at 16:11 +0100, Sedat Dilek wrote:
>> >> >>> Hi,
>> >> >>>
>> >> >>> I wanted to understand what is going on the kernel-side when
>> >> >>> connecting to the Internet via a Huawei E173 USB web-stick (3rd
>> >> >>> Generation: UMTS / HSPA).
>> >> >>>
>> >> >>> Especially the correlation between the diverse USB/NET kernel-drivers
>> >> >>> and how the networking is setup.
>> >> >>
>> >> >
>> >> > [ Sitting in front of a foreign Windows machine ]
>> >> >
>> >> > [ CC Aleksander ]
>> >> >
>> >> > Hi Dan,
>> >> >
>> >> > sorry for the late (and short) response.
>> >> >
>> >> > AFAICS you have given a "skeleton" for a "usb-wwan-networking"
>> >> > documentation :-).
>> >> >
>> >> > Personally, I would like to take into account some kernel-config
>> >> > options and some more things.
>> >> >
>> >>
>> >> I started with documenting...
>> >>
>> >> I have still some difficulties in understanding USB WWAN Networking.
>> >> So, this is what I revealed...
>> >>
>> >> ##### USB: HUAWEI E173 3G/UMTS/HSPA INTERNET STICK
>> >>
>> >> ### USB-NETWORKING AND WWAN SETUP
>> >> CONFIG_USB_USBNET=m <--- usb networking
>> >> CONFIG_USB_NET_CDCETHER=m <--- usb-wwan (net) configuration
>> >> CONFIG_USB_SERIAL_WWAN=m <--- usb-wwan (serial) configuration
>> >> CONFIG_USB_SERIAL_OPTION=m <--- usb-serial driver called "option"
>> >
>> > Most WWAN devices actually require option, because most WWAN devices
>> > have "serial" ports (even if they aren't used for PPP), and 'option' is
>> > the driver that handles this. The 'option' name is historic, but the
>> > driver should really be called something like 'wwan-serial-generic' or
>> > something like that.
>> >ö"
>>
>> Is there sth. against renaming the "option" driver to "wwan-serial-generic"?
>
> Yes, people's scripts might break that are hard-coded to use the
> "option" driver.
>
As far as I read on LKML... breaking userspace is a reason not to do
such changes.
That's really a reason not to break "handmade" scripts on some machines?
As this is new to me... is that documented?
Surely, it's fretful to change scripts, but life is change.
For me there is a more reasonable thing... Did you grep for "option"
pattern in the kernel sources?
Try.... :-).
> thanks,
>
> greg "here, have a vowel, they are cheap" k-h
Hmm, being a non-English native, I am not sure to get this...
What about languages from mostly Eastern countries having so much
consonants in a single word like Russian, Polish, etc.
Not every language is rich like German which has WOWels like "ä" (ae)
"ö" (oe) "ü" (ue).
- Sedat -
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Understanding what's going on when using a Huawei E173 USB 3G web-stick (UMTS/HSPA)
2014-11-16 1:40 ` Sedat Dilek
@ 2014-11-16 2:34 ` Greg KH
2014-11-16 2:48 ` Sedat Dilek
0 siblings, 1 reply; 13+ messages in thread
From: Greg KH @ 2014-11-16 2:34 UTC (permalink / raw)
To: Sedat Dilek
Cc: Dan Williams, David S. Miller, netdev@vger.kernel.org, linux-usb,
Aleksander Morgado
On Sun, Nov 16, 2014 at 02:40:15AM +0100, Sedat Dilek wrote:
> On Sat, Nov 15, 2014 at 9:07 PM, Greg KH <greg@kroah.com> wrote:
> > On Sat, Nov 15, 2014 at 10:23:55AM +0100, Sedat Dilek wrote:
> >> On Fri, Nov 14, 2014 at 5:18 PM, Dan Williams <dcbw@redhat.com> wrote:
> >> > On Fri, 2014-11-14 at 11:56 +0100, Sedat Dilek wrote:
> >> >> On Wed, Nov 12, 2014 at 2:21 PM, Sedat Dilek <sedat.dilek@gmail.com> wrote:
> >> >> > On Tue, Nov 4, 2014 at 5:55 PM, Dan Williams <dcbw@redhat.com> wrote:
> >> >> >> On Tue, 2014-11-04 at 16:11 +0100, Sedat Dilek wrote:
> >> >> >>> Hi,
> >> >> >>>
> >> >> >>> I wanted to understand what is going on the kernel-side when
> >> >> >>> connecting to the Internet via a Huawei E173 USB web-stick (3rd
> >> >> >>> Generation: UMTS / HSPA).
> >> >> >>>
> >> >> >>> Especially the correlation between the diverse USB/NET kernel-drivers
> >> >> >>> and how the networking is setup.
> >> >> >>
> >> >> >
> >> >> > [ Sitting in front of a foreign Windows machine ]
> >> >> >
> >> >> > [ CC Aleksander ]
> >> >> >
> >> >> > Hi Dan,
> >> >> >
> >> >> > sorry for the late (and short) response.
> >> >> >
> >> >> > AFAICS you have given a "skeleton" for a "usb-wwan-networking"
> >> >> > documentation :-).
> >> >> >
> >> >> > Personally, I would like to take into account some kernel-config
> >> >> > options and some more things.
> >> >> >
> >> >>
> >> >> I started with documenting...
> >> >>
> >> >> I have still some difficulties in understanding USB WWAN Networking.
> >> >> So, this is what I revealed...
> >> >>
> >> >> ##### USB: HUAWEI E173 3G/UMTS/HSPA INTERNET STICK
> >> >>
> >> >> ### USB-NETWORKING AND WWAN SETUP
> >> >> CONFIG_USB_USBNET=m <--- usb networking
> >> >> CONFIG_USB_NET_CDCETHER=m <--- usb-wwan (net) configuration
> >> >> CONFIG_USB_SERIAL_WWAN=m <--- usb-wwan (serial) configuration
> >> >> CONFIG_USB_SERIAL_OPTION=m <--- usb-serial driver called "option"
> >> >
> >> > Most WWAN devices actually require option, because most WWAN devices
> >> > have "serial" ports (even if they aren't used for PPP), and 'option' is
> >> > the driver that handles this. The 'option' name is historic, but the
> >> > driver should really be called something like 'wwan-serial-generic' or
> >> > something like that.
> >> >ö"
> >>
> >> Is there sth. against renaming the "option" driver to "wwan-serial-generic"?
> >
> > Yes, people's scripts might break that are hard-coded to use the
> > "option" driver.
> >
>
> As far as I read on LKML... breaking userspace is a reason not to do
> such changes.
Exactly.
> That's really a reason not to break "handmade" scripts on some machines?
Yes.
> As this is new to me... is that documented?
It's our "culture" :)
> Surely, it's fretful to change scripts, but life is change.
> For me there is a more reasonable thing... Did you grep for "option"
> pattern in the kernel sources?
> Try.... :-).
Oh I know, I wrote the first version of this driver and named it this :)
> > greg "here, have a vowel, they are cheap" k-h
>
> Hmm, being a non-English native, I am not sure to get this...
> What about languages from mostly Eastern countries having so much
> consonants in a single word like Russian, Polish, etc.
> Not every language is rich like German which has WOWels like "ä" (ae)
> "ö" (oe) "ü" (ue).
I was referring to your "sth." abbreviation above.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Understanding what's going on when using a Huawei E173 USB 3G web-stick (UMTS/HSPA)
2014-11-16 2:34 ` Greg KH
@ 2014-11-16 2:48 ` Sedat Dilek
0 siblings, 0 replies; 13+ messages in thread
From: Sedat Dilek @ 2014-11-16 2:48 UTC (permalink / raw)
To: Greg KH
Cc: Dan Williams, David S. Miller, netdev@vger.kernel.org, linux-usb,
Aleksander Morgado
On Sun, Nov 16, 2014 at 3:34 AM, Greg KH <greg@kroah.com> wrote:
> On Sun, Nov 16, 2014 at 02:40:15AM +0100, Sedat Dilek wrote:
>> On Sat, Nov 15, 2014 at 9:07 PM, Greg KH <greg@kroah.com> wrote:
>> > On Sat, Nov 15, 2014 at 10:23:55AM +0100, Sedat Dilek wrote:
>> >> On Fri, Nov 14, 2014 at 5:18 PM, Dan Williams <dcbw@redhat.com> wrote:
>> >> > On Fri, 2014-11-14 at 11:56 +0100, Sedat Dilek wrote:
>> >> >> On Wed, Nov 12, 2014 at 2:21 PM, Sedat Dilek <sedat.dilek@gmail.com> wrote:
>> >> >> > On Tue, Nov 4, 2014 at 5:55 PM, Dan Williams <dcbw@redhat.com> wrote:
>> >> >> >> On Tue, 2014-11-04 at 16:11 +0100, Sedat Dilek wrote:
>> >> >> >>> Hi,
>> >> >> >>>
>> >> >> >>> I wanted to understand what is going on the kernel-side when
>> >> >> >>> connecting to the Internet via a Huawei E173 USB web-stick (3rd
>> >> >> >>> Generation: UMTS / HSPA).
>> >> >> >>>
>> >> >> >>> Especially the correlation between the diverse USB/NET kernel-drivers
>> >> >> >>> and how the networking is setup.
>> >> >> >>
>> >> >> >
>> >> >> > [ Sitting in front of a foreign Windows machine ]
>> >> >> >
>> >> >> > [ CC Aleksander ]
>> >> >> >
>> >> >> > Hi Dan,
>> >> >> >
>> >> >> > sorry for the late (and short) response.
>> >> >> >
>> >> >> > AFAICS you have given a "skeleton" for a "usb-wwan-networking"
>> >> >> > documentation :-).
>> >> >> >
>> >> >> > Personally, I would like to take into account some kernel-config
>> >> >> > options and some more things.
>> >> >> >
>> >> >>
>> >> >> I started with documenting...
>> >> >>
>> >> >> I have still some difficulties in understanding USB WWAN Networking.
>> >> >> So, this is what I revealed...
>> >> >>
>> >> >> ##### USB: HUAWEI E173 3G/UMTS/HSPA INTERNET STICK
>> >> >>
>> >> >> ### USB-NETWORKING AND WWAN SETUP
>> >> >> CONFIG_USB_USBNET=m <--- usb networking
>> >> >> CONFIG_USB_NET_CDCETHER=m <--- usb-wwan (net) configuration
>> >> >> CONFIG_USB_SERIAL_WWAN=m <--- usb-wwan (serial) configuration
>> >> >> CONFIG_USB_SERIAL_OPTION=m <--- usb-serial driver called "option"
>> >> >
>> >> > Most WWAN devices actually require option, because most WWAN devices
>> >> > have "serial" ports (even if they aren't used for PPP), and 'option' is
>> >> > the driver that handles this. The 'option' name is historic, but the
>> >> > driver should really be called something like 'wwan-serial-generic' or
>> >> > something like that.
>> >> >ö"
>> >>
>> >> Is there sth. against renaming the "option" driver to "wwan-serial-generic"?
>> >
>> > Yes, people's scripts might break that are hard-coded to use the
>> > "option" driver.
>> >
>>
>> As far as I read on LKML... breaking userspace is a reason not to do
>> such changes.
>
> Exactly.
>
>> That's really a reason not to break "handmade" scripts on some machines?
>
> Yes.
>
>> As this is new to me... is that documented?
>
> It's our "culture" :)
>
OK.
>> Surely, it's fretful to change scripts, but life is change.
>> For me there is a more reasonable thing... Did you grep for "option"
>> pattern in the kernel sources?
>> Try.... :-).
>
> Oh I know, I wrote the first version of this driver and named it this :)
>
Ah, IIRC the company was called so.
>> > greg "here, have a vowel, they are cheap" k-h
>>
>> Hmm, being a non-English native, I am not sure to get this...
>> What about languages from mostly Eastern countries having so much
>> consonants in a single word like Russian, Polish, etc.
>> Not every language is rich like German which has WOWels like "ä" (ae)
>> "ö" (oe) "ü" (ue).
>
> I was referring to your "sth." abbreviation above.
>
Hmm, I thought this is a "normal" abbreviation.
Maybe I should not mix IRC and Email writing styles.
Thanks for your comments.
- Sedat -
P.S.: /me was reading about the systemd transition (now default
init-system) and reading about Joey Hess leaving Debian, Damn and I
initiated the Debian systemd wiki. If I ever knew... Life is change
and neat and polite people died (I lost my parents the last two
years).
> thanks,
>
> greg k-h
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2014-11-16 2:48 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-04 15:11 Understanding what's going on when using a Huawei E173 USB 3G web-stick (UMTS/HSPA) Sedat Dilek
2014-11-04 16:55 ` Dan Williams
2014-11-12 11:54 ` Aleksander Morgado
[not found] ` <1415120132.31049.11.camel-ZWpNTBV2bRGs1BDpvl8NfQ@public.gmane.org>
2014-11-12 13:21 ` Sedat Dilek
[not found] ` <CA+icZUW2iRkoAK10ayJ9PFuFGWBQzKdFe+8mfd=8oKkAp1txtg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-11-14 10:56 ` Sedat Dilek
2014-11-14 16:18 ` Dan Williams
2014-11-15 9:23 ` Sedat Dilek
2014-11-15 20:07 ` Greg KH
[not found] ` <20141115200711.GA24643-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2014-11-16 1:40 ` Sedat Dilek
2014-11-16 2:34 ` Greg KH
2014-11-16 2:48 ` Sedat Dilek
[not found] ` <CAAP7ucKO2D8B1gG943aNcqWuLm2UWt3AsfZAh5bzeaA1gzSaHQ@mail.gmail.com>
2014-11-12 13:34 ` Sedat Dilek
2014-11-12 13:49 ` Sedat Dilek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).