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

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

 



Josip Rodin schrieb:

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.



If there is no way in the serial driver, there still may be a chance using the storage portion of the devices. They are automatically switched by the kernel with "usb_stor_huawei_e220_init", started by an entry in "unusual_devs.h".

To access the storage part (containing the Windows driver) you'd have to out-comment the entry for your ID in "unusual_devs.h".

Then check and compare the SCSI identifiers after plugging in. If there are no differences either, there is still the content of the storage to test; it should be provider-specific.

Once you have found a significant difference, you can switch the devices to modem mode with the help of a userspace program, and create a script or something to do all that automagically via udev.


Josua Dietze
--
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