* USB device getting different product ids
@ 2010-08-10 15:08 Dhaval Giani
2010-08-10 20:34 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Dhaval Giani @ 2010-08-10 15:08 UTC (permalink / raw)
To: Greg Kroah-Hartman, LKML
Heya,
Admittedly I am using an older kernel, but I was wondering if a USB
device can get different product ids on being plugged in at different
times. I have one of these nice USB modems to connect to the internet
. It is one of these huawei devices. Now, most of the times, it gets
detected with vendor id 0x12d1 and product id 0x1446. In this mode, on
loading the usbserial module, I see only ttyUSB0 come up, which for
whatever reason, I am unable to use to connect to the internet.
However when it is detected as the product id 0x140b, I get
ttyUSB[0-2] which then connects very nicely via both wvdial and
networkmanager to the internet. Now obviously, I would like for the
device to get detected as 0x140b each time, as opposed to me pulling
it out and inserting it back in till does get detected as 0x140b :-).
So my question is,
1. Is it possible for the same device to get different product ids at
different times
2. If so, how do I possibly get it to detect the id I want, as opposed
to playing a game of chance.
I am currently using the Fedora 13 default kernel.
Thanks,
Dhaval
(I would copy linux-usb if I knew the mailing list id, but as I am on
a slow GPRS connection, which is quite flaky right now, I would like
to send this out right now. Please copy that list if it would help!)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: USB device getting different product ids
2010-08-10 15:08 USB device getting different product ids Dhaval Giani
@ 2010-08-10 20:34 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2010-08-10 20:34 UTC (permalink / raw)
To: Dhaval Giani; +Cc: LKML
On Tue, Aug 10, 2010 at 05:08:00PM +0200, Dhaval Giani wrote:
> Heya,
>
> Admittedly I am using an older kernel, but I was wondering if a USB
> device can get different product ids on being plugged in at different
> times. I have one of these nice USB modems to connect to the internet
> . It is one of these huawei devices. Now, most of the times, it gets
> detected with vendor id 0x12d1 and product id 0x1446. In this mode, on
> loading the usbserial module, I see only ttyUSB0 come up, which for
> whatever reason, I am unable to use to connect to the internet.
> However when it is detected as the product id 0x140b, I get
> ttyUSB[0-2] which then connects very nicely via both wvdial and
> networkmanager to the internet. Now obviously, I would like for the
> device to get detected as 0x140b each time, as opposed to me pulling
> it out and inserting it back in till does get detected as 0x140b :-).
>
> So my question is,
>
> 1. Is it possible for the same device to get different product ids at
> different times
Yes, it's quite common for some devices to do this.
> 2. If so, how do I possibly get it to detect the id I want, as opposed
> to playing a game of chance.
Look at the usb-modeswitch program, it's what you want to control this.
> (I would copy linux-usb if I knew the mailing list id, but as I am on
> a slow GPRS connection, which is quite flaky right now, I would like
> to send this out right now. Please copy that list if it would help!)
In the future, it's the linux-usb@vger.kernel.org list, also available in
the MAINTAINERS file.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-10 20:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-10 15:08 USB device getting different product ids Dhaval Giani
2010-08-10 20:34 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox