Opened 11 years ago
Closed 11 years ago
#2703 closed defect (fixed)
Unable to get NDS ROM version
Reported by: | shsoya | Owned by: | |
---|---|---|---|
Priority: | Please fill in | Component: | ! Please select... |
Severity: | Please fill in | Keywords: | |
Cc: | Sensitive: | no |
Description
Revision
<7278>
Issue Description
<Please fill in>
When the issue occurs
<2012/08/23 19:02:58 9DDFD70 r d2h [smartreader] ATR: 3F 7F 13 25 03 33 B0 11 69 FF 4A 50 50 00 00 49 56 01 00 00
2012/08/23 19:02:59 9DDFD70 r d2h [smartreader] Maximum frequency for this card is formally 5 Mhz, clocking it to 4.80 Mhz
2012/08/23 19:03:00 9DDFD70 r d2h [smartreader] Unable to get NDS ROM version.
2012/08/23 19:03:00 9DDFD70 r d2h [smartreader] classD0 ins4C: failed - sending boxid failed
2012/08/23 19:03:00 9DDFD70 r d2h [smartreader] card system not supported
2012/08/23 19:03:00 9DDFD70 r d2h [smartreader] Normal mode failed, reverting to Deprecated Mode
2012/08/23 19:03:04 9DDFD70 r d2h [smartreader] ATR: 3F 7F 13 25 03 33 B0 11 69 FF 4A 50 50 00 00 49 56 01 00 00
2012/08/23 19:03:04 9DDFD70 r d2h [smartreader] Maximum frequency for this card is formally 5 Mhz, clocking it to 4.80 Mhz
2012/08/23 19:03:07 9DDFD70 r d2h [smartreader] card system not supported
2012/08/23 19:03:07 9DDFD70 r d2h [smartreader] card initializing error>
How the issue is reproducable
<Please fill in>
<Don't forget to ATTACH (NOT post here as text) a log file of oscam in debug mode (start oscam with -d255) and to remove the brackets around the fields! Otherwise, your ticket will be closed as you seem to be unable to read.>
Attachments (6)
Change History (21)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Please make a debug log, start oscam with -d255.
It's clear what commit that triggered it but instead of reverting it we might be able to make a better patch if we get a debug log.
comment:3 by , 11 years ago
I seem to be having the same problem as lintendo, and it looks as if this patch was the reason for all those tickets from PauluZ. Back to 7277, which works fine with the same config. BTW, I do not see any difference that might have caused the "classD0 ins4C: failed - sending boxid failed". The transmits and receives directly before that line are identical for SVN versions 7277 and 7278; the only difference is a bit before that, the failed attempt to read the ROM version. I'll add a log from 7277 for comparison.
by , 11 years ago
Attachment: | oscam-7277.log added |
---|
Log from SVN 7277, everything OK, for comparison.
comment:5 by , 11 years ago
I saw the log, but i think that I missing something
first of all i don't understand why v13 has answered in right mode at ins02 but oscam give error.. see the log posted previously:
D0 02 00 00 08 334 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] IFD: Transmit: 335 2012/08/23 18:03:40 628780 D0 02 00 00 08 336 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] IO: SR: Transmit: 337 2012/08/23 18:03:40 628780 D0 02 00 00 08 338 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] IFD: Transmit succesful 339 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] IO: SR: Receive: 340 2012/08/23 18:03:40 628780 02 341 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] IFD: Received: 342 2012/08/23 18:03:40 628780 02 343 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] IO: SR: Receive: 344 2012/08/23 18:03:40 628780 50 31 54 56 01 00 41 37 345 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] IFD: Received: 346 2012/08/23 18:03:40 628780 50 31 54 56 01 00 41 37
v13 answer 50 31 54 56 01 00 41 37 -->P1TV-10A7
other thing:if we check with
if(cmd_exists(reader,ins02)) {
maybe oscam only with 1 or 2 card in the word will support the ins, bcs is not listed in 7401
for example italian cards don't list ins02 as supported in 7401, but ins02 should be universal in all ndz crd released
another interesting thing that i saw in log
358 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] write to cardreader 359 2012/08/23 18:03:40 628780 D0 4C 00 00 09 12 34 56 78 03 00 00 00 04 360 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] IFD: Transmit: 361 2012/08/23 18:03:40 628780 D0 4C 00 00 09 362 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] IO: SR: Transmit: 363 2012/08/23 18:03:40 628780 D0 4C 00 00 09 364 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] IFD: Transmit succesful 365 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] IO: SR: Receive: 366 2012/08/23 18:03:40 628780 4C 367 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] IFD: Received: 368 2012/08/23 18:03:40 628780 4C 369 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] IFD: Transmit: 370 2012/08/23 18:03:40 628780 12 34 56 78 03 00 00 00 04 371 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] IO: SR: Transmit: 372 2012/08/23 18:03:40 628780 12 34 56 78 03 00 00 00 04 373 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] IFD: Transmit succesful 374 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] IO: SR: Receive: 375 2012/08/23 18:03:40 628780 90 376 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] IFD: Received: 377 2012/08/23 18:03:40 628780 90 378 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] IO: SR: Receive: 379 2012/08/23 18:03:40 628780 00 380 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] IFD: Received: 381 2012/08/23 18:03:40 628780 00 382 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] Answer from cardreader: 383 2012/08/23 18:03:40 628780 90 00 384 2012/08/23 18:03:40 628780 r v13_smargo [smartreader] classD0 ins4C: failed - sending boxid failed
oscam tells us classD0 ins4C: failed.. but the reader answers correctly!!
i suspect a bug in do_cmd or near there
comment:6 by , 11 years ago
@lattjo: just tested SVN 7281. Looks good so far, the V13 card works again. No more messages about the ROM or the boxid.
comment:7 by , 11 years ago
fixes SVN 7281
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] Answer from cardreader:
2012/08/24 15:13:46 90B31A8 26 02 3F 00 90 00
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] write to cardreader
2012/08/24 15:13:46 90B31A8 D0 4C 00 00 09 00 48 03 00 00 00 04
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] IFD: Transmit:
2012/08/24 15:13:46 90B31A8 D0 4C 00 00 09
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] IO: SR: Transmit:
2012/08/24 15:13:46 90B31A8 D0 4C 00 00 09
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] IFD: Transmit succesful
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] IO: SR: Receive:
2012/08/24 15:13:46 90B31A8 4C
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] IFD: Received:
2012/08/24 15:13:46 90B31A8 4C
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] IFD: Transmit:
2012/08/24 15:13:46 90B31A8 00 48 03 00 00 00 04
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] IO: SR: Transmit:
2012/08/24 15:13:46 90B31A8 00 48 03 00 00 00 04
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] IFD: Transmit succesful
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] IO: SR: Receive:
2012/08/24 15:13:46 90B31A8 90
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] IFD: Received:
2012/08/24 15:13:46 90B31A8 90
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] IO: SR: Receive:
2012/08/24 15:13:46 90B31A8 00
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] IFD: Received:
2012/08/24 15:13:46 90B31A8 00
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] Answer from cardreader:
2012/08/24 15:13:46 90B31A8 90 00
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] write to cardreader
2012/08/24 15:13:46 90B31A8 D0 58 00 00 4A
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] IFD: Transmit:
2012/08/24 15:13:46 90B31A8 D0 58 00 00 4A
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] IO: SR: Transmit:
2012/08/24 15:13:46 90B31A8 D0 58 00 00 4A
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] IFD: Transmit succesful
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] IO: SR: Receive:
2012/08/24 15:13:46 90B31A8 58
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] IFD: Received:
2012/08/24 15:13:46 90B31A8 58
2012/08/24 15:13:46 90B31A8 r d2h [smartreader] IO: SR: Receive:
2012/08/24 15:13:46 90B31A8 15 48 25 00 48 05 33 FF B3 62 00 60 4C 00
............
2012/08/24 15:13:47 90B31A8 r d2h [smartreader] Answer from cardreader:
2012/08/24 15:13:47 90B31A8 06 90 00
2012/08/24 15:13:47 90B31A8 r d2h [smartreader] write to cardreader
2012/08/24 15:13:47 90B31A8 D0 74 0E 00 06
2012/08/24 15:13:47 90B31A8 r d2h [smartreader] IFD: Transmit:
2012/08/24 15:13:47 90B31A8 D0 74 0E 00 06
2012/08/24 15:13:47 90B31A8 r d2h [smartreader] IO: SR: Transmit:
2012/08/24 15:13:47 90B31A8 D0 74 0E 00 06
2012/08/24 15:13:47 90B31A8 r d2h [smartreader] IFD: Transmit succesful
2012/08/24 15:13:47 90B31A8 r d2h [smartreader] IO: SR: Receive:
2012/08/24 15:13:47 90B31A8 74
2012/08/24 15:13:47 90B31A8 r d2h [smartreader] IFD: Received:
2012/08/24 15:13:47 90B31A8 74
2012/08/24 15:13:47 90B31A8 r d2h [smartreader] IO: SR: Receive:
2012/08/24 15:13:47 90B31A8 1B 04 FF FF FF FF
2012/08/24 15:13:47 90B31A8 r d2h [smartreader] IFD: Received:
2012/08/24 15:13:47 90B31A8 1B 04 FF FF FF FF
2012/08/24 15:13:47 90B31A8 r d2h [smartreader] IO: SR: Receive:
2012/08/24 15:13:47 90B31A8 90
2012/08/24 15:13:47 90B31A8 r d2h [smartreader] IFD: Received:
2012/08/24 15:13:47 90B31A8 90
2012/08/24 15:13:47 90B31A8 r d2h [smartreader] IO: SR: Receive:
2012/08/24 15:13:47 90B31A8 00
2012/08/24 15:13:47 90B31A8 r d2h [smartreader] IFD: Received:
2012/08/24 15:13:47 90B31A8 00
2012/08/24 15:13:47 90B31A8 r d2h [smartreader] Answer from cardreader:
2012/08/24 15:13:47 90B31A8 1B 04 FF FF FF FF 90 00
2012/08/24 15:13:47 90B31A8 r d2h [smartreader] parental lock setting: FF FF FF FF
2012/08/24 15:13:47 90B31A8 r d2h [smartreader] type: VideoGuard Unknown Card, caid: 09C1
2012/08/24 15:13:47 90B31A8 r d2h [smartreader] serial: ########, BoxID: ########, baseyear: 1997
2012/08/24 15:13:47 90B31A8 r d2h [smartreader] ready for requests
2012/08/24 15:13:47 90B31A8 r d2h [smartreader] found cardsystem videoguard2
2012/08/24 15:13:47 90B31A8 r d2h [videoguard2] card detected
2012/08/24 15:13:47 90B31A8 r d2h [videoguard2] type: VideoGuard Unknown Card
2012/08/24 15:13:47 90B31A8 r d2h [videoguard2] write to cardreader
2012/08/24 15:13:47 90B31A8 D0 76 00 7F 02
2012/08/24 15:13:47 90B31A8 r d2h [videoguard2] IFD: Transmit:
2012/08/24 15:13:47 90B31A8 D0 76 00 7F 02
2012/08/24 15:13:47 90B31A8 r d2h [videoguard2] IO: SR: Transmit:
2012/08/24 15:13:47 90B31A8 D0 76 00 7F 02
2012/08/24 15:13:47 90B31A8 r d2h [videoguard2] IFD: Transmit succesful
2012/08/24 15:13:47 90B31A8 r d2h [videoguard2] IO: SR: Receive:
comment:8 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
by , 11 years ago
Attachment: | vg2-ins02- test for v13.patch added |
---|
comment:9 by , 11 years ago
this new patch should show rom version also for v13 without error.
Please test
we talk about on http://www.streamboard.tv/wbb2/thread.php?threadid=34848
comment:10 by , 11 years ago
@lintendo: tried your patch (patch complained about a malformed patch at line 32, so I edited reader-videoguard2.c manually), and it seems to work fine.
The data to and from the card seems to be the same as in SVN 7277 (including the "D0 02 00 00 08" sequence being written to the card, see lines 357 to 381 in my latest log; these are missing with the unmodified SVN 7282), but the card initializes fine. I do not get any "Unable to get NDS ROM version." or "classD0 ins4C: failed - sending boxid failed".
Btw, is it possible to display the NDS ROM version or use it in any way? Is it the sequence "50 31 54 56 01 00 41 37"?
comment:11 by , 11 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
tnx to Mandos for testing with v13
@lattjo and other devs
now oscam shows rom version in entitlements page and in log for all vg2 card without error
also if it isn't listed in ins7401.
The problem was do_cmd that can't find the ins on supported list of ins7401
comment:12 by , 11 years ago
Your solution works but I think maybe I can patch do_cmd instead, it can be done, I tested and it works as well. But you solution + a comment why write_cmd is used is also ok.
I will think about it and commit something soon.
comment:13 by , 11 years ago
no problem ;)
but in my opinion make no sense, in this case, call function_a(function_b) that returns value of function_b, if i need this last one.
less work for oscam, more efficiency:)
i'm reading the oscam's vg code and more functions need to be optimized..
(I'm not a professional programmer but I can understand if the code is not well written.. or written by many people )
by , 11 years ago
Attachment: | ndsromrdrlog.patch added |
---|
comment:14 by , 11 years ago
maybe someone can add just the part where the rom version is shown in the logs? i have add just this part as a patch from lintendos patch.
comment:15 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Added latest patch in r7288
your problem is
not
Unable to get NDS ROM version!
check your boxid or do a log 4