Discussion:
Clarification regarding USB Data Card (Dongle) enumeration in Linux udev
Suresh Kumar N.
2014-05-04 09:22:23 UTC
Permalink
Hi,

I am new to udev and device enumeration.

I am interested to know how USB Data Card would get enumerated.

Based on my understanding Data Card can get enumerated below 2 possible ways -
1. As a modem
2. As a Network Interface Card (NIC)

Is there a Standard defining the way a Data Card should be enumerated?

Please correct if my understanding is not correct or incomplete.

Thanks in advance for your clarifications.

Warm Regards,
Suresh
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Greg KH
2014-05-04 16:16:08 UTC
Permalink
Post by Suresh Kumar N.
Hi,
I am new to udev and device enumeration.
I am interested to know how USB Data Card would get enumerated.
Based on my understanding Data Card can get enumerated below 2 possible ways -
1. As a modem
2. As a Network Interface Card (NIC)
Is there a Standard defining the way a Data Card should be enumerated?
What do you mean by "data card"?

As for how the device is enumerated, that depends on the device itself,
and how it tells the operating system it should be talked to through its
configuration descriptors. See the USB spec for more details about
this.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Suresh Kumar N.
2014-05-05 03:43:08 UTC
Permalink
Dear Greg,

Data Card here refers to 3G Dongle.

Yes, it is right; device enumeration depends on the device itself.
But, there must be some guideline defined regarding the same.

As per the link (http://www.linux-usb.org/usb.devices.txt) USB device
cannot be enumerated as Network controllers, please correct me if
something has been overlooked.

Would all 3G Dongle devices be enumerated as "ACM USB modems"?

Warm Regards,
Suresh
Post by Greg KH
Post by Suresh Kumar N.
Hi,
I am new to udev and device enumeration.
I am interested to know how USB Data Card would get enumerated.
Based on my understanding Data Card can get enumerated below 2 possible ways -
1. As a modem
2. As a Network Interface Card (NIC)
Is there a Standard defining the way a Data Card should be enumerated?
What do you mean by "data card"?
As for how the device is enumerated, that depends on the device itself,
and how it tells the operating system it should be talked to through its
configuration descriptors. See the USB spec for more details about
this.
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Greg KH
2014-05-05 17:09:24 UTC
Permalink
Post by Suresh Kumar N.
Dear Greg,
Data Card here refers to 3G Dongle.
There is not any "standard" for these.
Post by Suresh Kumar N.
Yes, it is right; device enumeration depends on the device itself.
But, there must be some guideline defined regarding the same.
As per the link (http://www.linux-usb.org/usb.devices.txt) USB device
cannot be enumerated as Network controllers, please correct me if
something has been overlooked.
Not true, I have a usb network device right here.
Post by Suresh Kumar N.
Would all 3G Dongle devices be enumerated as "ACM USB modems"?
Not at all, some show up as a custom USB to serial device, some as a
network device, and others as a ACM modem.

Again, look at the USB descriptors in the device, that will tell you how
the device is to be communicated with.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Suresh Kumar N.
2014-05-06 03:07:47 UTC
Permalink
Post by Greg KH
Post by Suresh Kumar N.
Dear Greg,
Data Card here refers to 3G Dongle.
There is not any "standard" for these.
Post by Suresh Kumar N.
Yes, it is right; device enumeration depends on the device itself.
But, there must be some guideline defined regarding the same.
As per the link (http://www.linux-usb.org/usb.devices.txt) USB device
cannot be enumerated as Network controllers, please correct me if
something has been overlooked.
Not true, I have a usb network device right here.
In such a case, who configures or should configure IP address to this
network device?.
Post by Greg KH
Post by Suresh Kumar N.
Would all 3G Dongle devices be enumerated as "ACM USB modems"?
Not at all, some show up as a custom USB to serial device, some as a
network device, and others as a ACM modem.
So it all depends on the Vendor (providing the 3G Dongle) about how
the device gets enumerated (again based on the USB descriptors in the
device).
Post by Greg KH
Again, look at the USB descriptors in the device, that will tell you how
the device is to be communicated with.
Thanks for the information Greg.
Post by Greg KH
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Loading...