1. Diese Seite verwendet Cookies. Wenn du dich weiterhin auf dieser Seite aufhältst, akzeptierst du unseren Einsatz von Cookies. Weitere Informationen

How-To Udev

Dieses Thema im Forum "Linux-Server How-To´s (Italiana)" wurde erstellt von meister85, 5. Oktober 2011.

Status des Themas:
Es sind keine weiteren Antworten möglich.
  1. meister85
    Offline

    meister85 VIP

    Registriert:
    21. September 2009
    Beiträge:
    7.927
    Zustimmungen:
    5.229
    Punkte für Erfolge:
    113
    Prerequisto per usare UDEV


    • Un PC Linux
    • Un Reader per esempio Easymouse2, Smargo (FW >= 1.4)

    FAQ

    1. Apri PUTTY e dai questo commando

    Code:
    ls -l /dev/ttyUSB*
    2. Dovrebbe uscire un output come questo

    Code:
    root@cardserver:~ ls -l /dev/ttyUSB*
    crw-rw---- 1 root dialout 188, 0 2011-10-05 13:05 [B][COLOR=#800080]/dev/ttyUSB0[/COLOR][/B]
    3. Ora devi mettere questo commando in PUTTY

    Code:
    udevadm info -n [B][COLOR=#800080]/dev/ttyUSB0[/COLOR][/B] -a
    3. Segue il seguente output

    Code:
    root@cardserver:~ udevadm info -n /dev/ttyUSB0 -a
     
    Udevadm info starts with the device specified by the devpath and then
    walks up the chain of parent devices. It prints for every device
    found, all possible attributes in the udev rules key format.
    A rule to match, can be composed by the attributes of the device
    and the attributes from one single parent device.
     
      looking at device '/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1:1.0/ttyUSB0/tty/ttyUSB0':
        KERNEL=="ttyUSB0"
        SUBSYSTEM=="tty"
        DRIVER==""
     
      looking at parent device '/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1:1.0/ttyUSB0':
        KERNELS=="ttyUSB0"
        SUBSYSTEMS=="usb-serial"
        DRIVERS=="ftdi_sio"
        ATTRS{latency_timer}=="1"
        ATTRS{port_number}=="0"
     
      looking at parent device '/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1:1.0':
        KERNELS=="4-1:1.0"
        SUBSYSTEMS=="usb"
        DRIVERS=="ftdi_sio"
        ATTRS{bInterfaceNumber}=="00"
        ATTRS{bAlternateSetting}==" 0"
        ATTRS{bNumEndpoints}=="02"
        ATTRS{bInterfaceClass}=="ff"
        ATTRS{bInterfaceSubClass}=="ff"
        ATTRS{bInterfaceProtocol}=="ff"
        ATTRS{modalias}=="usb:v0403p6001d0600dc00dsc00dp00icFFiscFFipFF"
        ATTRS{supports_autosuspend}=="0"
        ATTRS{interface}=="FT232R USB UART"
     
      looking at parent device '/devices/pci0000:00/0000:00:1d.0/usb4/4-1':
        KERNELS=="4-1"
        SUBSYSTEMS=="usb"
        DRIVERS=="usb"
        ATTRS{configuration}==""
        ATTRS{bNumInterfaces}==" 1"
        ATTRS{bConfigurationValue}=="1"
        ATTRS{bmAttributes}=="a0"
        ATTRS{bMaxPower}==" 90mA"
        ATTRS{urbnum}=="80894013"
        ATTRS{idVendor}=="0403"
        ATTRS{idProduct}=="6001"
        ATTRS{bcdDevice}=="0600"
        ATTRS{bDeviceClass}=="00"
        ATTRS{bDeviceSubClass}=="00"
        ATTRS{bDeviceProtocol}=="00"
        ATTRS{bNumConfigurations}=="1"
        ATTRS{bMaxPacketSize0}=="8"
        ATTRS{speed}=="12"
        ATTRS{busnum}=="4"
        ATTRS{devnum}=="2"
        ATTRS{version}==" 2.00"
        ATTRS{maxchild}=="0"
        ATTRS{quirks}=="0x0"
        ATTRS{authorized}=="1"
        ATTRS{manufacturer}=="FTDI"
        ATTRS{product}=="FT232R USB UART"
     [SIZE=3][B]   [COLOR=#008000]ATTRS{serial}[/COLOR]==[COLOR=#ff0000]"A423fRMO"[/COLOR][/B][/SIZE]
     
      looking at parent device '/devices/pci0000:00/0000:00:1d.0/usb4':
        KERNELS=="usb4"
        SUBSYSTEMS=="usb"
        DRIVERS=="usb"
        ATTRS{configuration}==""
        ATTRS{bNumInterfaces}==" 1"
        ATTRS{bConfigurationValue}=="1"
        ATTRS{bmAttributes}=="e0"
        ATTRS{bMaxPower}=="  0mA"
        ATTRS{urbnum}=="52"
        ATTRS{idVendor}=="1d6b"
        ATTRS{idProduct}=="0001"
        ATTRS{bcdDevice}=="0206"
        ATTRS{bDeviceClass}=="09"
        ATTRS{bDeviceSubClass}=="00"
        ATTRS{bDeviceProtocol}=="00"
        ATTRS{bNumConfigurations}=="1"
        ATTRS{bMaxPacketSize0}=="64"
        ATTRS{speed}=="12"
        ATTRS{busnum}=="4"
        ATTRS{devnum}=="1"
        ATTRS{version}==" 1.10"
        ATTRS{maxchild}=="2"
        ATTRS{quirks}=="0x0"
        ATTRS{authorized}=="1"
        ATTRS{manufacturer}=="Linux 2.6.32-27-generic-pae uhci_hcd"
        ATTRS{product}=="UHCI Host Controller"
        ATTRS{serial}=="0000:00:1d.0"
        ATTRS{authorized_default}=="1"
     
      looking at parent device '/devices/pci0000:00/0000:00:1d.0':
        KERNELS=="0000:00:1d.0"
        SUBSYSTEMS=="pci"
        DRIVERS=="uhci_hcd"
        ATTRS{vendor}=="0x8086"
        ATTRS{device}=="0x27c8"
        ATTRS{subsystem_vendor}=="0x1462"
        ATTRS{subsystem_device}=="0x7379"
        ATTRS{class}=="0x0c0300"
        ATTRS{irq}=="23"
        ATTRS{local_cpus}=="ff"
        ATTRS{local_cpulist}=="0-7"
        ATTRS{modalias}=="pci:v00008086d000027C8sv00001462sd00007379bc0Csc03i00"
        ATTRS{enable}=="1"
        ATTRS{broken_parity_status}=="0"
        ATTRS{msi_bus}==""
     
      looking at parent device '/devices/pci0000:00':
        KERNELS=="pci0000:00"
        SUBSYSTEMS==""
        DRIVERS==""
    Cercate la linea ATTRS{serial}
    In questa linea ce la serial del reader, come nel mio esempio A423fRMO

    4. Vai nella cartella /etc/udev/rules.d

    Code:
    cd /etc/udev/rules.d
    Per systema Debian

    5. Dobbiamo creare un file che si chiama 10-usbadapter.rules

    Code:
    touch [COLOR=#ff0000]10[/COLOR]-usbadapter.rules
    6. Dopo aver creato il file 10-usbadapter.rules, lo dobbiamo editare

    Code:
    nano [COLOR=#ff0000]10[/COLOR]-usbadapter.rules
    7. Nell file dobbiamo inserire questo

    Code:
    SUBSYSTEMS=="usb", KERNEL=="ttyUSB[COLOR=#ff0000]*[/COLOR]", ATTRS{serial}=="[COLOR=#ff0000][B]A423fRMO[/B][/COLOR]", SYMLINK+="[COLOR=#0000cd][B]Sceda1[/B][/COLOR]"
    Per systema Ubuntu

    5. Dobbiamo creare un file che si chiama 40-usbadapter.rules

    Code:
    touch [COLOR=#ff0000]40[/COLOR]-usbadapter.rules
    6. Dopo aver creato il file 40-usbadapter.rules, lo dobbiamo editare

    Code:
    nano [COLOR=#ff0000]40[/COLOR]-usbadapter.rules
    7. Nell file dobbiamo inserire questo

    Code:
    SUBSYSTEMS=="usb", KERNEL=="ttyUSB[COLOR=#ff0000]?[/COLOR]", ATTRS{serial}=="[COLOR=#ff0000][B]A423fRMO[/B][/COLOR]", SYMLINK+="[COLOR=#0000cd][B]Sceda1[/B][/COLOR]"
    Sceda1 lo potete sostituire con un nome qualsiasi per esempio SKYITALIA!!!

    Esempio per la configurazione OScam:

    device = dev/Sceda1


    Il Punto 4 - 7 lo potete fare anche con WINSCP, e piu facile ;-)


    IMPORTANTE: DOPO AVER FATTO TUTTO, DOVETE FARE RIAVVIARE IL SERVER/PC!!!





    >>>>>

    Dieser Link ist nur für Mitglieder!!! Jetzt kostenlos Registrieren ?

    <<<<<

     
    Zuletzt bearbeitet: 22. Februar 2013
    #1
    treki1, cliff.t, giuseppe001sub und 3 anderen gefällt das.
Status des Themas:
Es sind keine weiteren Antworten möglich.

Diese Seite empfehlen