Hi

Note that if you have more than one same device, this workaround will
not work since all of them will have the same vendor/id pair.

Regards

Alvaro
|-----------------------------------------------------------------------------------------------------------------|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
SMS y GPRS online
              Visitenos en www.perusms.com


On Fri, May 9, 2014 at 4:29 AM, Milan P. Stanic <[email protected]> wrote:
> On Fri, 2014-05-09 at 11:16, Daniel Boira wrote:
>> On 06/05/2014 Milan Stanic wrote:
>> On Linux that can be done by setting udev rules using attributes
>> (vendor and product id are enough).
>> Example from one of my /etc/udev/rules.d/local.rules files:
>> ATTR{idVendor}=="22b8", ATTR{idProduct}=="6422", SYMLINK+="razrv8",
>> MODE="0660", OWNER="kannel"
>> ATTR{idVendor}=="22b8", ATTR{idProduct}=="3802", NAME="a1200", MODE="0660",
>> OWNER="kannel", GROUP="dialout"
>> ATTR{idVendor}=="0fce", ATTR{idProduct}=="d0d9", SYMLINK+="sony",
>> MODE="0660", OWNER="kannel"
>> Restart/reload udevd or machine.
>> Devices becomes (and stays persistent):
>> /dev/razrv8
>> /dev/a1200
>> /dev/sony
>>
>> ***********************************************
>>
>> Milan, is there any method or command to obtain that information (idVendor,
>> dProduct, etc.)?
>
> lsusb (list usb devices)
>
> example:
>
> Bus 004 Device 011: ID 046d:c714 Logitech, Inc. diNovo Edge Keyboard
> Bus 004 Device 010: ID 046d:c713 Logitech, Inc.
> Bus 004 Device 009: ID 046d:0b04 Logitech, Inc.
> Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
> Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 001 Device 003: ID 0a46:9601 Davicom Semiconductor, Inc. DM9601 Fast 
> Ethernet Adapter
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 003 Device 003: ID 1bcf:2883 Sunplus Innovation Technology Inc.
> Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
> Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>
> Look at these: 046d is Logitech (vendor) and it is repeated for every
> Logitech product. Every different Logitech product have different ID
> (no serial number or something else, but Product ID)
>
> If you insert your modem/usb dongle it should be listed but you have to
> to find it's name in the list.
>
> --
> Kind regards,  Milan
> --------------------------------------------------
> Arvanta,        http://www.arvanta.net
> Please do not send me e-mail containing HTML code or documents in
> proprietary format (word, excel, pps and so on)
>

Reply via email to