Opened 2 months ago

Closed 8 weeks ago

Last modified 8 weeks ago

#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)

log.txt (47.3 KB ) - added by haydos 2 months ago.
reader-videoguard2.rar (11.7 KB ) - added by cokeaddict 2 months ago.
reader-videoguard2.c (45.2 KB ) - added by Sambas1980 2 months ago.
log (3).txt (47.0 KB ) - added by haydos 2 months ago.

Download all attachments as: .zip

Change History (16)

by haydos, 2 months ago

Attachment: log.txt added

comment:1 by Sambas1980, 2 months ago

Solution is on trunk, add your caid.

comment:2 by Sambas1980, 2 months ago

Your oscam still send ins40 = D1 40 00 80 , must be ins40 = D1 40 60 80

in reply to:  2 comment:3 by haydos, 2 months 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 cokeaddict, 2 months ago

Attachment: reader-videoguard2.rar added

comment:4 by cokeaddict, 2 months 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);

in reply to:  4 comment:5 by haydos, 2 months 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.

comment:6 by Sambas1980, 2 months ago

This not ok if your need ignore caid, must set direct on variable uint8_t ins40[5]!lol

by Sambas1980, 2 months ago

Attachment: reader-videoguard2.c added

by haydos, 2 months ago

Attachment: log (3).txt added

in reply to:  6 ; comment:7 by haydos, 2 months 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...

in reply to:  7 ; comment:8 by Sambas1980, 2 months 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

in reply to:  8 comment:9 by haydos, 2 months 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 haydos, 8 weeks ago

Update Line 1191
uint8_t ins40[5] = { 0xD1, 0x40, 0x60, 0x80, 0xFF };

now works ok.

comment:11 by haydos, 8 weeks ago

Resolution: fixed
Status: newclosed

Please update line 1191 in reader-videoguard2.c

uint8_t ins40[5] = { 0xD1, 0x40, 0x60, 0x80, 0xFF };

comment:12 by Sambas1980, 8 weeks ago

Good!

Note: See TracTickets for help on using tickets.