Quantcast
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

Reader ein festen Port zuweisen geht nicht

Crispy666

Freak
Registriert
12. Oktober 2011
Beiträge
273
Reaktionspunkte
22
Punkte
78
Hallo versuche meinen Readern ein festen Port zuzuweisen aber irgendwie geht das nicht mehr.Habe mir schon das komplette System neu aufgesetzt.Hoffe mir kann da jemand weiter helfen

ls -l /dev/ttyUSB*
crw-rw---T 1 root dialout 188, 1 Sep 17 19:14 /dev/ttyUSB1
crw-rw---T 1 root dialout 188, 3 Sep 17 19:12 /dev/ttyUSB3
crw-rw---T 1 root dialout 188, 4 Sep 17 19:12 /dev/ttyUSB4

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:03.1/usb3/3-1/3-1:1.0/ttyUSB0/tty/ttyUSB0':
KERNEL=="ttyUSB0"
SUBSYSTEM=="tty"
DRIVER==""

looking at parent device '/devices/pci0000:00/0000:00:03.1/usb3/3-1/3-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:03.1/usb3/3-1/3-1:1.0':
KERNELS=="3-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{supports_autosuspend}=="1"
ATTRS{interface}=="FT232R USB UART"

looking at parent device '/devices/pci0000:00/0000:00:03.1/usb3/3-1':
KERNELS=="3-1"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{configuration}==""
ATTRS{bNumInterfaces}==" 1"
ATTRS{bConfigurationValue}=="1"
ATTRS{bmAttributes}=="a0"
ATTRS{bMaxPower}==" 90mA"
ATTRS{urbnum}=="194634"
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}=="3"
ATTRS{devnum}=="2"
ATTRS{devpath}=="1"
ATTRS{version}==" 2.00"
ATTRS{maxchild}=="0"
ATTRS{quirks}=="0x0"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{authorized}=="1"
ATTRS{manufacturer}=="FTDI"
ATTRS{product}=="FT232R USB UART"
ATTRS{serial}=="AH0133R2"

looking at parent device '/devices/pci0000:00/0000:00:03.1/usb3':
KERNELS=="usb3"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{configuration}==""
ATTRS{bNumInterfaces}==" 1"
ATTRS{bConfigurationValue}=="1"
ATTRS{bmAttributes}=="e0"
ATTRS{bMaxPower}==" 0mA"
ATTRS{urbnum}=="51"
ATTRS{idVendor}=="1d6b"
ATTRS{idProduct}=="0001"
ATTRS{bcdDevice}=="0302"
ATTRS{bDeviceClass}=="09"
ATTRS{bDeviceSubClass}=="00"
ATTRS{bDeviceProtocol}=="00"
ATTRS{bNumConfigurations}=="1"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{speed}=="12"
ATTRS{busnum}=="3"
ATTRS{devnum}=="1"
ATTRS{devpath}=="0"
ATTRS{version}==" 1.10"
ATTRS{maxchild}=="3"
ATTRS{quirks}=="0x0"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{authorized}=="1"
ATTRS{manufacturer}=="Linux 3.2.0-4-686-pae ohci_hcd"
ATTRS{product}=="OHCI Host Controller"
ATTRS{serial}=="0000:00:03.1"
ATTRS{authorized_default}=="1"

looking at parent device '/devices/pci0000:00/0000:00:03.1':
KERNELS=="0000:00:03.1"
SUBSYSTEMS=="pci"
DRIVERS=="ohci_hcd"
ATTRS{vendor}=="0x1039"
ATTRS{device}=="0x7001"
ATTRS{subsystem_vendor}=="0x1039"
ATTRS{subsystem_device}=="0x7001"
ATTRS{class}=="0x0c0310"
ATTRS{irq}=="3"
ATTRS{local_cpus}=="ffffffff"
ATTRS{local_cpulist}=="0-31"
ATTRS{dma_mask_bits}=="32"
ATTRS{consistent_dma_mask_bits}=="32"
ATTRS{enable}=="1"
ATTRS{broken_parity_status}=="0"
ATTRS{msi_bus}==""

looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""
 
AW: Reader ein festen Port zuweisen geht nicht

Zum Einen, bitte Spoiler verwenden.
Zum anderen: Was ist dein konkretes Problem?
Hier ist die Serial des Readers:
ATTRS{serial}=="AH0133R2"

du kannst das Ganze auch über's WebIf von IPc unter Manger einrichten.
 
AW: Reader ein festen Port zuweisen geht nicht

Hi,

Du nutzt IPC, dort kannst Du unter Manager direkt einen Namen für die Reader vergeben (UDEV).
Konsole auslesen benötigst Du nicht.
 
AW: Reader ein festen Port zuweisen geht nicht

Ja @ al-x83 werde ich demnächst machen.

@joopastron die reader werden obwohl ich sie im Manager eine (UDEV) regel vergeben hab leider nur mit ERROR angezeigt.Es sind drei Easymouse 2 Premium.Nur die G02 wird richtig erkannt.

Hier mal meine config:

oscam.conf
# OSCam Konfiguration IPC - oscam.conf

[global]
logfile = /var/log/ipc/OScam.log
bindwait = 60
unlockparental = 1
nice = -1
maxlogsize = 5000
preferlocalcards = 1
lb_mode = 1
lb_save = 2500
lb_nfb_readers = 2
lb_max_ecmcount = 2000
lb_retrylimit = 2500
failbantime = 30
failbancount = 3

[cccam]
port = 12962
nodeid = 0166CCCB10DA151C
version = 2.3.0
reshare = 1
updateinterval = 300

[webif]
httpport = 12961
httpuser = oscam
httppwd = oscam
httpcss = /var/etc/skin-carbon.css
httptpl = /var/etc/picon
http_prepend_embedded_css = 1
httprefresh = 15
httpshowpicons = 1
httpallowed = 127.0.0.1,192.168.0.0-192.168.255.255

oscam.user
# OSCam Konfiguration IPC - oscam.user

[account]
user =
pwd =
au = 1
betatunnel = 1834.FFFF:1722
group = 1
cccreshare = 0

[account]
user =
pwd =
caid = 09C7,1722,1834
au = 1
betatunnel = 1834.FFFF:1722
group = 1
cccreshare = 1

[account]
user =
pwd =
caid = 09C7,1722,1834
au = 1
betatunnel = 1834.FFFF:1722
group = 1
cccreshare = 1

[account]
user =
pwd =
caid = 09C7,1722,1834
au = 1
betatunnel = 1834.FFFF:1722
group = 1
cccreshare = 1

[account]
user =
pwd =
caid = 09C7,1722,1834
au = 1
betatunnel = 1834.FFFF:1722
group = 1
cccreshare = 1

[account]
user =
pwd =
caid = 09C7,1722,1834
au = 1
betatunnel = 1834.FFFF:1722
group = 1
cccreshare = 1

oscam.server
# OSCam Konfiguration IPC - oscam.server

[reader]
label = G09
description = G09
protocol = mouse
device = /dev/G09
#services = g09,!newservice2,!newservice3
caid = 09C7
boxid = 12345678
ins7e11 = 15
#ecmwhitelist = 5D,5E,5F,60,61,62,63,64,77,78,79
detect = cd
group = 1
emmcache = 1,3,2
blockemm-unknown = 1
lb_weight = 300
ndsversion = 2

[reader]
label = D02
protocol = mouse
device = /dev/D02
#services = d02,!newservice2,!newservice3
caid = 1722,1834
boxkey = 1122334455667788
#ecmwhitelist = 1722:93
detect = cd
mhz = 1000
cardmhz = 600
group = 2
emmcache = 1,3,2
blockemm-unknown = 1

[reader]
label = G02
description = G02
protocol = mouse
device = /dev/G02
caid = 09C7
boxid = 12345678
boxkey = 1122334455667788
ins7e11 = 15
detect = cd
mhz = 600
group = 3
emmcache = 1,3,2
lb_weight = 300
ndsversion = 2

Das ist meine UDEV Regel
SUBSYSTEMS=="usb",KERNEL=="ttyUSB*",ATTRS{serial}=="AH0133R2",SYMLINK+="G02"
SUBSYSTEMS=="usb",KERNEL=="ttyUSB*",ATTRS{serial}=="AM0208I3",SYMLINK+="D02"
SUBSYSTEMS=="usb",KERNEL=="ttyUSB*",ATTRS{serial}=="A400ZG2A",SYMLINK+="G09"
 
Zuletzt bearbeitet:
AW: Reader ein festen Port zuweisen geht nicht

Poste mal bitte den LOG beim einlesen der karte. Hast Du die Reader auch 1 nach dem anderen angeschlossen ?
 
AW: Reader ein festen Port zuweisen geht nicht

Hier mal der Log:

-------------------------------------------------------------------------------
>> OSCam << cardserver started at Tue Sep 17 20:53:23 2013
-------------------------------------------------------------------------------
2013/09/17 20:53:23 0 s >> OSCam << cardserver started, version 1.20-unstable_svn, build r313 (i486-linux-gnu)
2013/09/17 20:53:23 0 s creating pidfile /tmp/.oscam/oscam.pid with pid 7190
2013/09/17 20:53:23 0 s userdb reloaded: 6 accounts loaded, 0 expired, 0 disabled
2013/09/17 20:53:23 0 s signal handling initialized
2013/09/17 20:53:23 0 s cccam: initialized (fd=5, port=12962)
2013/09/17 20:53:23 0 s Binary without Conax module - no EMM processing for Conax possible!
2013/09/17 20:53:23 0 s Binary without Cryptoworks module - no EMM processing for Cryptoworks possible!
2013/09/17 20:53:23 0 s Binary without Seca module - no EMM processing for Seca possible!
2013/09/17 20:53:23 0 s Binary without Viaccess module - no EMM processing for Viaccess possible!
2013/09/17 20:53:23 0 s Binary without DRE Crypt module - no EMM processing for DRE Crypt possible!
2013/09/17 20:53:23 0 s Binary without TONGFANG module - no EMM processing for TONGFANG possible!
2013/09/17 20:53:23 0 s Binary without Bulcrypt module - no EMM processing for Bulcrypt possible!
2013/09/17 20:53:23 0 s Binary without Griffin module - no EMM processing for Griffin possible!
2013/09/17 20:53:23 0 s Binary without DGCrypt module - no EMM processing for DGCrypt possible!
2013/09/17 20:53:23 0 s G09 [mouse] creating thread for device /dev/G09
2013/09/17 20:53:23 0 s D02 [mouse] creating thread for device /dev/D02
2013/09/17 20:53:23 0 s G02 [mouse] creating thread for device /dev/G02
2013/09/17 20:53:23 0 s waiting for local card init
2013/09/17 20:53:23 8B75928 h webif: decompressed 67335 bytes back into 190568 bytes
2013/09/17 20:53:23 8B75928 h HTTP Server running. ip=0.0.0.0 port=12961
2013/09/17 20:53:24 8B61730 r G09 [mouse] Reader initialized (device=/dev/G09, detect=cd, mhz=357, cardmhz=357)
2013/09/17 20:53:24 8B63080 r D02 [mouse] Reader initialized (device=/dev/D02, detect=cd, mhz=1000, cardmhz=600)
2013/09/17 20:53:24 8B737F8 r G02 [mouse] Reader initialized (device=/dev/G02, detect=cd, mhz=600, cardmhz=357)
2013/09/17 20:53:24 8B737F8 r G02 [mouse] card detected
2013/09/17 20:53:24 8B63080 r D02 [mouse] card detected
2013/09/17 20:53:24 8B61730 r G09 [mouse] card detected
2013/09/17 20:53:25 8B737F8 r G02 [mouse] Error activating card.
2013/09/17 20:53:25 8B63080 r D02 [mouse] ATR: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2013/09/17 20:53:25 8B63080 r D02 [mouse] ERROR: Could not read reader->convention
2013/09/17 20:53:25 8B63080 r D02 [mouse] Error activating card.
2013/09/17 20:53:26 8B61730 r G09 [mouse] ATR: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2013/09/17 20:53:26 8B61730 r G09 [mouse] Init card protocol T0, FI=1, F=372, D=16, N=2
2013/09/17 20:53:26 8B61730 r G09 [mouse] Setting baudrate to 153600 bps
2013/09/17 20:53:26 8B61730 r G09 [mouse] Calculated work ETU is 6.51 us
2013/09/17 20:53:26 8B61730 r G09 [mouse] ATR Fsmax is: 5 MHz, clocking card to wanted user cardspeed of 3.57 MHz (specified in reader->mhz)
2013/09/17 20:53:26 8B737F8 r G02 [mouse] Error activating card.
2013/09/17 20:53:27 8B61730 r G09 [mouse] Card type: KLTV
2013/09/17 20:53:27 8B61730 r G09 [mouse] Rom version: 10LM
2013/09/17 20:53:27 8B737F8 r G02 [mouse] Error activating card.
2013/09/17 20:53:27 8B61730 r G09 [mouse] parental lock setting: FF FF FF FF
2013/09/17 20:53:27 8B61730 r G09 [mouse] parental lock disabled
2013/09/17 20:53:27 8B61730 r G09 [mouse] parental lock setting after disabling: FF FF FF FF
2013/09/17 20:53:27 8B61730 r G09 [mouse] type: VideoGuard Kabel Deutschland G02/G09 (09C7), caid: 09C7
2013/09/17 20:53:27 8B61730 r G09 [mouse] serial: ########, BoxID: ########, baseyear: 2004
2013/09/17 20:53:27 8B61730 r G09 [mouse] ready for requests
2013/09/17 20:53:27 8B61730 r G09 [mouse] found card system videoguard2
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] card detected
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] type: VideoGuard Kabel Deutschland G02/G09 (09C7)
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 0056, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 0057, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 0065, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 0066, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 0067, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 0068, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 0069, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 006a, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 006b, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 006c, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 007b, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 007d, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 0081, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 008e, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 00c7, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 00c8, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 00c9, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 00ca, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 00e4, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 00e5, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 00f3, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 00f4, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 00fa, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 00fe, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 00ff, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 0106, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 012d, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 0133, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B61730 r G09 [videoguard2] tier: 0137, expiry date: 2013/12/12-00:00:00
2013/09/17 20:53:27 8B63080 r D02 [mouse] ATR: xxxxxxxxxxxxxxxxxxxxxxxxxxxx
2013/09/17 20:53:27 8B63080 r D02 [mouse] ERROR: Could not read reader->convention
2013/09/17 20:53:27 8B63080 r D02 [mouse] Error activating card.
2013/09/17 20:53:27 8B737F8 r G02 [mouse] card initializing error
2013/09/17 20:53:29 8B63080 r D02 [mouse] ATR:xxxxxxxxxxxxxxxxxxxxxxxxxxxx
2013/09/17 20:53:29 8B63080 r D02 [mouse] ERROR: Could not read reader->convention
2013/09/17 20:53:29 8B63080 r D02 [mouse] Error activating card.
2013/09/17 20:53:29 8B63080 r D02 [mouse] card initializing error
2013/09/17 20:53:30 0 s init for all local cards done
2013/09/17 20:53:30 0 s anti cascading disabled
2013/09/17 20:53:30 8B8B0C0 c encrypted cccam-client 192.168.2.123 granted (Homeshare, au=auto (3 reader))
2013/09/17 20:53:30 8B86620 c anonymous disconnected from 89.182.14.17
 
AW: Reader ein festen Port zuweisen geht nicht

Die Udev Rule passt doch. Nur ist der D02 Reader wohl nicht richtig konfiguriert:
2013/09/17 20:53:27 8B63080 r D02 [mouse] ATR: xxxxxxxxxxxxxxxxxxxxxxxxxxxx
2013/09/17 20:53:27 8B63080 r D02 [mouse] ERROR: Could not read reader->convention
2013/09/17 20:53:27 8B63080 r D02 [mouse] Error activating card.
2013/09/17 20:53:27 8B737F8 r G02 [mouse] card initializing error
2013/09/17 20:53:29 8B63080 r D02 [mouse] ATR:xxxxxxxxxxxxxxxxxxxxxxxxxxxx
2013/09/17 20:53:29 8B63080 r D02 [mouse] ERROR: Could not read reader->convention
2013/09/17 20:53:29 8B63080 r D02 [mouse] Error activating card.
2013/09/17 20:53:29 8B63080 r D02 [mouse] card initializing error
 
AW: Reader ein festen Port zuweisen geht nicht

ja,die D02 läuft jetzt auch nur die G02 nicht da ist ERROR
 
AW: Reader ein festen Port zuweisen geht nicht

Ist die G02 richtig drin? Wir ja lautLog gar nicht richtig ausgelesn
 
Zurück
Oben