Opened 12 years ago

Closed 11 years ago

#2392 closed defect (invalid)

Oscam SVN and mask function for caids not working on newcand readers

Reported by: lazik Owned by:
Priority: critical Component: Protocol - Newcamd
Severity: high Keywords: caid mask
Cc: Sensitive: no

Description

Revision

6363

Issue Description

Hi I test some sharing connection. Server is on newcs taht change caid from 1803 to 1801. In server I use for reader this entry :

[reader]
label = remote_polsat
enable = 1
protocol = newcamd
device = IP,PORT
key = 0102030405060708091011121314
user = login
password = pass
caid = 1803:1801
services = polsat
ident =
inactivitytimeout = 15
reconnecttimeout = 20
cacheex = 2
group = 1,2,3,4
lb_weight = 100
audisabled = 1

This code with old oscam works flawless without any problems. I tested on stable v1 and latest oscam-ymod. When I want to update oscam to SVN version for example 6370 I can not watch TV - screen is black. In webif looks that everything OK is, but box shows nothing, only black screen for 1803 caid. Of course when other readers not use map function everything works fine for this caids and I can watch TV.

When the issue occurs

always when you use mask in caids

How the issue is reproducable

connect with newcamd reader to provider that use newcs and change caids for example normally caid for polsat platform is 1803 and newcs gives 1801. In this case you should mask 1801 caid.

caid =1803,1801 I have log like this and tv screen is black:

2012/02/11 16:54:37 5F9420 c dvbapi: new program number: 0C1D (Polsat Sport HD)
2012/02/11 16:54:37 57E4A8 p IP: resolved ip=IP
2012/02/11 16:54:37 57E4A8 p connecting to remote_polsat on IPORT
2012/02/11 16:54:37 57E4A8 p socket open for newcamd fd=21
2012/02/11 16:54:37 57E4A8 p connect succesfull newcamd fd=21
2012/02/11 16:54:37 57E4A8 p Newcamd Server: IPORT - UserID: 0
2012/02/11 16:54:37 57E4A8 p CAID: 1801 - UA: 0000000000000000 - Provider # 3
2012/02/11 16:54:37 57E4A8 p Provider ID: 000100 - SA: 00000000
2012/02/11 16:54:37 57E4A8 p Provider ID: 000000 - SA: 00000000
2012/02/11 16:54:37 57E4A8 p Provider ID: 007101 - SA: 00000000
2012/02/11 16:54:37 5F9420 c dvbapi: try pids again #1
2012/02/11 16:54:37 5F9420 c localuser (1803&000000/0C1D/92:8245): not found (235 ms) by remote_polsat - Polsat Sport HD
2012/02/11 16:54:38 5F9420 c dvbapi: try pids again #2
2012/02/11 16:54:38 5F9420 c dvbapi: try pids again #3
2012/02/11 16:54:38 5F9420 c dvbapi: can't decode channel
2012/02/11 16:53:34 5F9420 c dvbapi: [ADD PID 0] CAID: 1861 ECM_PID: 013A PROVID: 000000
2012/02/11 16:53:34 5F9420 c dvbapi: [ADD PID 1] CAID: 1803 ECM_PID: 013B PROVID: 000000
2012/02/11 16:53:34 5F9420 c dvbapi: new program number: 3330 (1861:3330 unknown)
2012/02/11 16:53:34 5F9420 c dvbapi: try pids again #1
2012/02/11 16:53:34 5F9420 c localuser (1803&000000/3330/92:77CD): not found (3 ms) by remote_polsat - Polsat Sport
==========================================================================================================
with caid 1803:1801 on socam SVN 6363:

2012/02/11 16:59:29 5F9908 c dvbapi: [ADD PID 0] CAID: 1803 ECM_PID: 0393 PROVID: 000000
2012/02/11 16:59:29 5F9908 c dvbapi: [ADD PID 1] CAID: 1861 ECM_PID: 0503 PROVID: 000000
2012/02/11 16:59:29 5F9908 c dvbapi: new program number: 0C1D (Polsat Sport HD)
2012/02/11 16:59:29 5F9908 c dvbapi: try pids again #1
2012/02/11 16:59:29 5F9908 c dvbapi: try pids again #2
2012/02/11 16:59:30 5F9908 c dvbapi: try pids again #3
2012/02/11 16:59:30 5F9908 c dvbapi: can't decode channel
==========================================================================================================

and stable oscam with caid = 1803:1801 - everything works OK:

2012/02/11 17:01:50 1825 2D2004C8 p proxy IPORT newcamd525 (fd=35)
2012/02/11 17:01:50 1825 2E2004C8 c plain dvbapi-client granted (localuser, au=off)
2012/02/11 17:01:50 1825 2E2004C8 c stapi: 14 entries read from oscam.dvbapi
2012/02/11 17:01:51 1825 2E2004C8 c stapi: [ADD PID 0] CAID: 1803 ECM_PID: 0393 PROVID: 000000
2012/02/11 17:01:51 1825 2E2004C8 c stapi: [ADD PID 1] CAID: 1861 ECM_PID: 0503 PROVID: 000000
2012/02/11 17:01:51 1825 2E2004C8 c stapi: new program number: 0C1D (Polsat Sport HD)
2012/02/11 17:01:51 1825 2B8E54C8 p connecting to IP
2012/02/11 17:01:51 1825 2B8E54C8 p IP: resolved ip=IP
2012/02/11 17:01:52 1825 2B8E54C8 p Newcamd Server: IPORT - UserID: 0
2012/02/11 17:01:52 1825 2B8E54C8 p CAID: 1801 - UA: 0000000000000000 - Provider # 3
2012/02/11 17:01:52 1825 2B8E54C8 p Provider ID: 000100 - SA: 00000000
2012/02/11 17:01:52 1825 2B8E54C8 p Provider ID: 000000 - SA: 00000000
2012/02/11 17:01:52 1825 2B8E54C8 p Provider ID: 007101 - SA: 00000000
2012/02/11 17:01:52 1825 2E2004C8 c stapi: Start descrambling PID #0 (CAID: 1803) 1
2012/02/11 17:01:52 1825 2E2004C8 c localuser (1803&000000/0C1D/0393/0000/92:4DD1/CC-B0): cache2 (333 ms) by remote_polsat - Polsat Sport HD
2012/02/11 17:01:57 1825 2E2004C8 c localuser (1803&000000/0C1D/0393/0000/92:2FD3/D8-B0): cache2 (555 ms) by remote_polsat - Polsat Sport HD
2012/02/11 17:02:11 1825 2E2004C8 c localuser (1803&000000/0C1D/0393/0000/92:0141/D8-AD): cache2 (463 ms) by remote_polsat - Polsat Sport HD

Change History (5)

comment:1 by BurnMasterRecords, 12 years ago

If you use OSCam as Client you can map in oscam.dvbapi.

Last edited 12 years ago by BurnMasterRecords (previous) (diff)

comment:2 by lazik, 12 years ago

in oscam.dvbapi I added line:
M: 1801 1803

in reader is caid = 1803:1801
screen is black

log below
2012/02/11 17:58:45 5D8CB0 p Newcamd Server: IP:PORT - UserID: 0
2012/02/11 17:58:45 5D8CB0 p CAID: 1801 - UA: 0000000000000000 - Provider # 3
2012/02/11 17:58:45 5D8CB0 p Provider ID: 000100 - SA: 00000000
2012/02/11 17:58:45 5D8CB0 p Provider ID: 000000 - SA: 00000000
2012/02/11 17:58:45 5D8CB0 p Provider ID: 007101 - SA: 00000000
2012/02/11 17:58:45 5F1F28 c starting thread housekeeping lb stats
2012/02/11 17:58:45 5F1F28 c housekeeping lb stats thread started
2012/02/11 17:58:45 5F1F28 c localuser (1801&000000/0C1D/92:625A): rejected caid (280 ms) by remote_polsat - Polsat Sport HD
2012/02/11 17:58:54 5F1F28 c localuser (1801&000000/0C1D/92:8CD0): found (562 ms) by remote_polsat - Polsat Sport HD
2012/02/11 17:59:09 5F1F28 c localuser (1801&000000/0C1D/92:B403): found (507 ms) by remote_polsat - Polsat Sport HD
2012/02/11 17:59:24 5F1F28 c localuser (1801&000000/0C1D/92:71E3): found (667 ms) by remote_polsat - Polsat Sport HD

With this configuration I can connect to oscam from my PC with dvb-s2 card and acamd. I can watch channels on PC. Log is below:
2012/02/11 18:04:02 5F9450 c encrypted newcamd:1006-client 192.168.0.103 granted (pcuser, au=off)
2012/02/11 18:04:02 5F9450 c user pcuser authenticated successfully (ACamd)
2012/02/11 18:04:02 5F9450 c AU disabled for user pcuser
2012/02/11 18:04:02 5F9450 c pcuser (1801&000000/3330/92:CD09): found (84 ms) by remote_polsat - Polsat Sport
2012/02/11 18:04:02 5F9450 c pcuser (1801&000000/3330/92:CD09): found (83 ms) by remote_polsat - Polsat Sport
2012/02/11 18:04:02 5F9450 c pcuser (1801&000000/3330/92:E45B): found (89 ms) by remote_polsat - Polsat Sport
2012/02/11 18:04:04 5F9450 c pcuser (1801&000000/3330/92:D714): found (504 ms) by remote_polsat - Polsat Sport

comment:3 by Deas, 12 years ago

newcs server reads the card as 1801.

dvbapi without any mapping finds this:

2012/02/11 16:54:37 5F9420 c localuser (1803&000000/0C1D/92:8245): not found (235 ms) by remote_polsat - Polsat Sport HD

so why do you try to map 1801 to 1803 in oscam.dvbapi?

the reader must have the caid your server can handle and in oscam.dvbapi you must map the caid.

M: 1803 1801

you could also try it with this in the reader:

caid = 1803:1801,1801

btw.: this is a ticket system and not a good place for discussions. so it would be better to discuss this in the forum first and if it turns out to be a bug THEN open a ticket.

in reply to:  3 comment:4 by lazik, 12 years ago

Replying to Deas:

newcs server reads the card as 1801.
dvbapi without any mapping finds this:
2012/02/11 16:54:37 5F9420 c localuser (1803&000000/0C1D/92:8245): not found (235 ms) by remote_polsat - Polsat Sport HD

so why do you try to map 1801 to 1803 in oscam.dvbapi?

the reader must have the caid your server can handle and in oscam.dvbapi you must map the caid.

M: 1803 1801

you could also try it with this in the reader:

caid = 1803:1801,1801

I tested everything what you wrote. Below logs. Nothing works. I reverted back to caid = 1803:1801 and oscam-ymod and everything works just fine!

[dvbapi]
M: 1803 1801
[reader]
caid = 1803

log:
2012/02/15 19:49:49 621048 c dvbapi: [ADD PID 0] CAID: 1803 ECM_PID: 0393 PROVID: 000000
2012/02/15 19:49:49 621048 c dvbapi: [ADD PID 1] CAID: 1861 ECM_PID: 0503 PROVID: 000000
2012/02/15 19:49:49 621048 c dvbapi: new program number: 0C1D (Polsat Sport HD)
2012/02/15 19:49:49 621048 c localuser (1801&000000/0C1D/92:9681): rejected caid (1 ms) (0 of 0) - Polsat Sport HD (invalid caid 1801)


[dvbapi]
M: 1803 1801
[reader]
caid = 1801

log:
2012/02/15 19:51:45 620598 c dvbapi: [ADD PID 0] CAID: 1803 ECM_PID: 0393 PROVID: 000000
2012/02/15 19:51:45 620598 c dvbapi: [ADD PID 1] CAID: 1861 ECM_PID: 0503 PROVID: 000000
2012/02/15 19:51:45 620598 c dvbapi: new program number: 0C1D (Polsat Sport HD)
2012/02/15 19:51:45 620598 c localuser (1801&000000/0C1D/92:883A): rejected caid (0 ms) (0 of 0) - Polsat Sport HD (invalid caid 1801)
2012/02/15 19:51:47 620598 c localuser (1801&000000/0C1D/92:1ADC): rejected caid (0 ms) (0 of 0) - Polsat Sport HD (invalid caid 1801)


[dvbapi]
M: 1803 1801
[reader]
caid = 1803:1801,1801

log:
2012/02/15 19:54:07 618D88 c dvbapi: [ADD PID 0] CAID: 1803 ECM_PID: 0393 PROVID: 000000
2012/02/15 19:54:07 618D88 c dvbapi: [ADD PID 1] CAID: 1861 ECM_PID: 0503 PROVID: 000000
2012/02/15 19:54:07 618D88 c dvbapi: new program number: 0C1D (Polsat Sport HD)
2012/02/15 19:54:07 618D88 c localuser (1801&000000/0C1D/92:0E68): rejected caid (0 ms) (0 of 0) - Polsat Sport HD (invalid caid 1801)

When I delete map in dvbapi and add only caid = 1803:1801 or caid = 1803:1801,1801 log looks like below and tv screen is black

log:
2012/02/15 19:58:22 2A008F98 p Newcamd Server: 188.165.194.47:8002 - UserID: 0
2012/02/15 19:58:22 2A008F98 p CAID: 1801 - UA: 0000000000000000 - Provider # 3
2012/02/15 19:58:22 2A008F98 p Provider ID: 000100 - SA: 00000000
2012/02/15 19:58:22 2A008F98 p Provider ID: 000000 - SA: 00000000
2012/02/15 19:58:22 2A008F98 p Provider ID: 007101 - SA: 00000000
2012/02/15 19:58:22 2A05D4A8 c starting thread housekeeping lb stats
2012/02/15 19:58:22 2A05D4A8 c housekeeping lb stats thread started
2012/02/15 19:58:22 2A05D4A8 c localuser (1801&000000/0C1D/92:5D35): rejected caid (268 ms) by remote_polsat - Polsat Sport HD
2012/02/15 19:58:37 2A05D4A8 c localuser (1801&000000/0C1D/92:A056): found (826 ms) by remote_polsat - Polsat Sport HD
2012/02/15 19:58:51 2A05D4A8 c localuser (1801&000000/0C1D/92:31AE): found (650 ms) by remote_polsat - Polsat Sport HD
2012/02/15 19:59:08 2A05D4A8 c localuser (1801&000000/0C1D/92:B95A): rejected caid (2502 ms) by remote_polsat - Polsat Sport HD
2012/02/15 19:59:22 2A05D4A8 c localuser (1801&000000/0C1D/92:5389): found (630 ms) by remote_polsat - Polsat Sport HD
2012/02/15 19:59:37 2A05D4A8 c localuser (1801&000000/0C1D/92:4046): found (511 ms) by remote_polsat - Polsat Sport HD


btw.: this is a ticket system and not a good place for discussions. so it would be better to discuss this in the forum first and if it turns out to be a bug THEN open a ticket.

here you can find discussion http://www.oscam.to/wbb3/index.php?page=Thread&threadID=13410
One of the moderators give advice to open new ticket

Last edited 12 years ago by lazik (previous) (diff)

comment:5 by Nimloth, 11 years ago

Resolution: invalid
Status: newclosed

Who even uses 1801 (when proper one is 1803 for N3 P2C card)?
Migrate to 1803 (newcs is old and no longer developed)

Note: See TracTickets for help on using tickets.