Aktuelles
Digital Eliteboard - Das Digitale Technik Forum

Registriere dich noch heute kostenlos, um Mitglied zu werden! Sobald du angemeldet bist, kannst du auf unserer Seite aktiv teilnehmen, indem du deine eigenen Themen und Beiträge erstellst und dich über deinen eigenen Posteingang mit anderen Mitgliedern unterhalten kannst! Zudem bekommst du Zutritt zu Bereichen, welche für Gäste verwehrt bleiben

Registriere dich noch heute kostenlos, um Mitglied zu werden! Sobald du angemeldet bist, kannst du auf unserer Seite aktiv teilnehmen, indem du deine eigenen Themen und Beiträge erstellst und dich über deinen eigenen Posteingang mit anderen Mitgliedern unterhalten kannst! Zudem bekommst du Zutritt zu Bereichen, welche für Gäste verwehrt bleiben

How-To Udev

    Nobody is reading this thread right now.
Status
Für weitere Antworten geschlossen.

meister85

Best Member
Boardveteran
Registriert
21. September 2009
Beiträge
7.781
Reaktionspunkte
4.999
Punkte
373
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!!!





>>>>> Per domande clicca qui <<<<<

 
Zuletzt bearbeitet:
Status
Für weitere Antworten geschlossen.
Zurück
Oben