Opened 13 years ago
Closed 13 years ago
#1906 closed defect (fixed)
Disable or Enable reader ..problem
Reported by: | ngc1927 | Owned by: | admin |
---|---|---|---|
Priority: | major | Component: | Reader |
Severity: | high | Keywords: | |
Cc: | Sensitive: | no |
Description
from 5303(?) to 5351
All operation executed from WebIf.
1) if i "disable" cccam reader CRASH oscam
..no error reported, simple crash.
(if i "enable" cccam reader NOT CRASH)
2) if disable internal card reader, and after want re-enable ..not more work
..error is:
ERROR opening device /dev/sci0
Cannot open device: /dev/sci0
and if i do Refresh Entitlement, read my second card is in /dev/sci1
Change History (11)
comment:1 by , 13 years ago
Owner: | set to |
---|
comment:2 by , 13 years ago
comment:3 by , 13 years ago
Component: | Please fill in → Reader |
---|
From r5353 problem 1 is solved (Thx admin)
Now remain problem 2, for this problem i add part of debug:
When disable reader (/dev/sci0):
2011/06/05 8:36:11 31825B50 h IFD: Closing device /dev/sci0
2011/06/05 8:36:11 31825B50 h IFD: Deactivating card
2011/06/05 8:36:11 31825B50 h ERROR, function call ioctl(reader->handle, IOCTL_SET_DEACTIVATE)<0 returns error.
2011/06/05 8:36:11 31825B50 h ERROR, function call Sci_Deactivate(reader) returns error.
2011/06/05 8:36:11 31825B50 h thread 32825B50 killed!
When re-enable reader (/dev/sci0):
2011/06/05 8:37:04 31825B50 h restarting reader reader_down
2011/06/05 8:37:04 31825B50 h creating thread for device /dev/sci0
2011/06/05 8:37:04 32825B50 r reader thread started (thread=32825B50, label=reader_down, device=/dev/sci0, detect=cd, mhz=500, cardmhz=368)
2011/06/05 8:37:04 32825B50 r IFD: Opening device /dev/sci0
2011/06/05 8:37:04 32825B50 r ERROR opening device /dev/sci0
2011/06/05 8:37:04 32825B50 r Cannot open device: /dev/sci0
comment:4 by , 13 years ago
Obviously, the call to close the device doesn't succeed. As it's not closed it cannot be opened later.
Did this work previously (which revision was the last working) and what receiver is this? Do you close while there are requests to the reader or is it idle?
comment:5 by , 13 years ago
The disable/enable of internal card reader never worked.
Is a problem that has never been solved.
The call to close the device doesn´t suceed so it cannot be opened later.
comment:6 by , 13 years ago
Could you remove the line "return ERROR; \" in line 66 of globals.h? This leads to an immediate return out of the function instead of trying to resume work. The error above should not go away but it could be that the device gets at least closed.
comment:8 by , 13 years ago
comment:9 by , 13 years ago
Please test thoroughly if you get any other errors from this change and report back here. Then I can commit this. The point on this is, that it should have worked previously if you had a version without debug compiled (but actually noone does that and all binaries are with debug) as this line is only active then!
comment:10 by , 13 years ago
After hours of testing seems to work well.
I have disabled and enabled a number of times the two card readers.
And not problem reoccurs.
thx admin, when you add change in svn branch is possible close this ticket
This is just one occurs when there is only 1 reader.