#4859 closed defect (fixed)
SkyNZ2 [videoguard2] classD3 ins54: no cw --> Card needs pin
Reported by: | haydos | Owned by: | |
---|---|---|---|
Priority: | major | Component: | Reader |
Severity: | high | Keywords: | |
Cc: | Sensitive: | no |
Description
Revision
OSCam: 1.20_svn Build: r11693
Issue Description
Pin Entry on NDS
When the issue occurs
After 6:30AM a Pin is required to be entered on R18 Shows
Attachments (4)
Change History (16)
by , 3 years ago
comment:1 by , 3 years ago
follow-up: 3 comment:2 by , 3 years ago
Your oscam still send ins40 = D1 40 00 80 , must be ins40 = D1 40 60 80
comment:3 by , 3 years ago
Replying to Sambas1980:
Your oscam still send ins40 = D1 40 00 80 , must be ins40 = D1 40 60 80
here is the code in the reader-videoguard2.c file
what do i need to change to send ins40 = D1 40 60 80
memcpy(tbuff + 1, er->ecm + posECMpart2 + 1, lenECMpart2 - 1);
int32_t new_len = lenECMpart2;
if(reader->fix_9993 && reader->caid == 0x919 && tbuff[1] == 0x7F)
{
tbuff[1] = 0x47;
tbuff[2] = 0x08;
memmove(tbuff + 11, tbuff + 13, new_len - 11);
new_len -= 2;
}
if(reader->caid == 0x92F reader->caid == 0x91F reader->caid == 0x961 reader->caid == 0x96A reader->caid == 0x958) {
ins40[2] = 0x60;
}
ins40[4] = new_len;
int32_t l;
l = do_cmd(reader, ins40, tbuff, NULL, cta_res);
by , 3 years ago
Attachment: | reader-videoguard2.rar added |
---|
follow-up: 5 comment:4 by , 3 years ago
This should work fine.
memcpy(tbuff + 1, er->ecm + posECMpart2 + 1, lenECMpart2 - 1);
int32_t new_len = lenECMpart2;
if(reader->fix_9993 && reader->caid == 0x919 && tbuff[1] == 0x7F)
{
tbuff[1] = 0x47;
tbuff[2] = 0x08;
memmove(tbuff + 11, tbuff + 13, new_len - 11);
new_len -= 2;
}
ins40[2] = 0x60;
ins40[4] = new_len;
int32_t l;
l = do_cmd(reader, ins40, tbuff, NULL, cta_res);
comment:5 by , 3 years ago
Replying to cokeaddict:
This should work fine.
memcpy(tbuff + 1, er->ecm + posECMpart2 + 1, lenECMpart2 - 1);
int32_t new_len = lenECMpart2;
if(reader->fix_9993 && reader->caid == 0x919 && tbuff[1] == 0x7F)
{
tbuff[1] = 0x47;
tbuff[2] = 0x08;
memmove(tbuff + 11, tbuff + 13, new_len - 11);
new_len -= 2;
}
ins40[2] = 0x60;
ins40[4] = new_len;
int32_t l;
l = do_cmd(reader, ins40, tbuff, NULL, cta_res);
Something is not right, we have updated the file and it still is having a issue.
follow-up: 7 comment:6 by , 3 years ago
This not ok if your need ignore caid, must set direct on variable uint8_t ins40[5]!lol
by , 3 years ago
Attachment: | reader-videoguard2.c added |
---|
by , 3 years ago
Attachment: | log (3).txt added |
---|
follow-up: 8 comment:7 by , 3 years ago
Replying to Sambas1980:
This not ok if your need ignore caid, must set direct on variable uint8_t ins40[5]!lol
can you check the new log, i updated the reader-videoguard2.c with your one but still get a card needs pin error...
follow-up: 9 comment:8 by , 3 years ago
Replying to haydos:
Replying to Sambas1980:
This not ok if your need ignore caid, must set direct on variable uint8_t ins40[5]!lol
can you check the new log, i updated the reader-videoguard2.c with your one but still get a card needs pin error...
Your sure compile oscam with last change?
Like not...
2021/07/16 13:22:26 4F228365 r (reader) SkyNZ2 [videoguard2] write to cardreader
24 2021/07/16 13:22:26 4F228365 r (reader) D1 40 00 80 56 00
comment:9 by , 3 years ago
Replying to Sambas1980:
Replying to haydos:
Replying to Sambas1980:
This not ok if your need ignore caid, must set direct on variable uint8_t ins40[5]!lol
can you check the new log, i updated the reader-videoguard2.c with your one but still get a card needs pin error...
Your sure compile oscam with last change?
Like not...
2021/07/16 13:22:26 4F228365 r (reader) SkyNZ2 [videoguard2] write to cardreader
24 2021/07/16 13:22:26 4F228365 r (reader) D1 40 00 80 56 00
You couldn’t do me a favour and compile it and I’ll try it?
I have a gigablue ARM box I’m trying it on
comment:10 by , 3 years ago
Update Line 1191
uint8_t ins40[5] = { 0xD1, 0x40, 0x60, 0x80, 0xFF };
now works ok.
comment:11 by , 3 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Please update line 1191 in reader-videoguard2.c
uint8_t ins40[5] = { 0xD1, 0x40, 0x60, 0x80, 0xFF };
Solution is on trunk, add your caid.