Opened 9 years ago

Closed 9 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 Changed 9 years ago by pooyair

Owner: set to admin

comment:2 Changed 9 years ago by wolf84

This is just one occurs when there is only 1 reader.

comment:3 Changed 9 years ago by ngc1927

Component: Please fill inReader

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 Changed 9 years ago by Admin

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 Changed 9 years ago by FilipeAmadeuO

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 Changed 9 years ago by Admin

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:7 Changed 9 years ago by FilipeAmadeuO

Sorry. I don´t have a compiler to test...

Last edited 9 years ago by FilipeAmadeuO (previous) (diff)

comment:8 Changed 9 years ago by ngc1927

Ho man, I are go back (from r5353 -10 -10 ..ecc up to r4300 ) and all have this problem.

now see your post :) ..i delete line 66 and recompile ..and work ok ;)
Very thx admin.

Now test other little time and after (if is all ok) close ticket.

comment:9 Changed 9 years ago by Admin

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 Changed 9 years ago by ngc1927

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

comment:11 Changed 9 years ago by Admin

Resolution: fixed
Status: newclosed

Committed in r5356.

Note: See TracTickets for help on using tickets.