usbserial id confusion in /dev/serial/by-id/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I happen to have two Huawei USB mobile broadband modem devices from two
different providers that act like this when plugged in simultaneously
into my machine currently running Linux 2.6.31.6:

Bus 001 Device 007: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
Bus 002 Device 008: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem

usb 1-1: generic converter now attached to ttyUSB0
usb 1-1: generic converter now attached to ttyUSB1
usb 2-2: generic converter now attached to ttyUSB2
usb 2-2: generic converter now attached to ttyUSB3

That's all acceptable. However, the last one plugged in overrides the
previous one's /dev/serial/by-id/ entries because both of them use the
same names:

usb-HUAWEI_Technology_HUAWEI_Mobile-if00-port0
usb-HUAWEI_Technology_HUAWEI_Mobile-if01-port0

Is there any way some sort of a more unique identifier could be made for
these so that I can keep using /dev/serial/by-id/ rather than semi-random
/dev/ttyUSB* numbers? Especially because these two devices are really
different, one is model E180 and the other is model E160, they have
different SIM cards/ISPs so they must have different IMEIs, etc.

I also have an internal device like this that creates these kinds of
symlinks:

usb-Ericsson_Ericsson_F3507g_Mobile_Broadband_Minicard_Composite_Device_3541430202471020-if01
usb-Ericsson_Ericsson_F3507g_Mobile_Broadband_Minicard_Composite_Device_3541430202471020-if03
usb-Ericsson_Ericsson_F3507g_Mobile_Broadband_Minicard_Composite_Device_3541430202471020-if09

That 16-digit number looks good... it seems to come from the "iSerial"
variable (lsusb). Sadly this variable is missing on the two Huawei devices.
Can something be done?

-- 
     2. That which causes joy or happiness.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux