Opened 13 years ago

Closed 13 years ago

#1317 closed defect (fixed)

EMM sent to the wrong reader

Reported by: neoen Owned by:
Priority: critical Component: DVBApi
Severity: high Keywords: dvbapi emm
Cc: Sensitive: no

Description

Revision

All

Issue Description

In some conditions and using dvbapi, EMMs received for a caid is sent to another reader with a different caid.

When the issue occurs

When two (at least) different cards with different caid are used simultaneously (recording + live view), if autoau user is configured and demux emm filters are enabled for both caid, emm are sent to the last reader which received an ecm. This happens because client->aureader is changed during ecm handling.
In log file you can see how an emm receiced by demux filter with fd 28 for reader 'mediaset' (caid 1803) is erroneously sent to reader 'sky' (caid 0919).
In attachment also my attempt to fix this bug, tested with build 4005.

How the issue is reproducable

Dvbapi enabled and configured with autoau user.
With two cards, start recording a channel with caid of first card and then switch to another channel with caid of second card. All emm are always sent to the last reader which receives an ecm.

Attachments (2)

dvbapi-bug-log.txt (26.1 KB ) - added by neoen 13 years ago.
dvbapi.patch.txt (1.1 KB ) - added by neoen 13 years ago.
Patch to try to solve bug

Download all attachments as: .zip

Change History (4)

by neoen, 13 years ago

Attachment: dvbapi-bug-log.txt added

by neoen, 13 years ago

Attachment: dvbapi.patch.txt added

Patch to try to solve bug

comment:1 by fricco, 13 years ago

Confirm! on ppc-tuxbox machine (dm7000) sometimes this error causes a freeze image (NOT on mipsel-tuxbox machine)

Partial log: channel descrambled in use: reader UPPER with card nd* 0919, BUT emm send to reader LOWER with card nagra 183d (it's WRONG)

2010/12/12 12:20:34 32059B50 c emm:
2010/12/12 12:20:34 32059B50 82 30 78 40 00 F0 8F EE 00 00 F8 07 6D 05 31 00
2010/12/12 12:20:34 32059B50 F0 8F EE 07 14 AF 0A FF FF 00 21 00 22 01 00 01
2010/12/12 12:20:34 32059B50 01 00 00 00 0A 00 00 00 AF 01 00 01 0C 52 99 22
2010/12/12 12:20:34 32059B50 EA 9B C0 4B B7 E1 EB 68 57 E8 2B F1 11 22 1A 3F
2010/12/12 12:20:34 32059B50 0C 88 DD A6 4A A2 88 AD 5B 31 C9 5C E8 3A D3 17
2010/12/12 12:20:34 32059B50 FC 92 A2 F0 93 94 C1 BD D1 6B 25 D3 E8 FF 36 DE
2010/12/12 12:20:34 32059B50 45 C0 9E 29 16 7C 07 92 85 4F 54 91 67 CB C0 E9
2010/12/12 12:20:34 32059B50 52 CA 5D F2 16 C9 F5 EF 00 07 00
2010/12/12 12:20:34 32059B50 c Entered reader_get_emm_type cardsystem 1
2010/12/12 12:20:34 32059B50 c emmtype global. Reader lower has serial 0000xxxxxxxx0000.
2010/12/12 12:20:34 32059B50 c emm UA/SA:

2010/12/12 12:20:34 32059B50 00 00 00 00 00 00 00 00
2010/12/12 12:20:34 32059B50 c dvbapi: read error 75 on fd 25
2010/12/12 12:20:34 32059B50 c dvbapi: event 11 on fd 22
2010/12/12 12:20:34 32059B50 c dvbapi: read error 75 on fd 22
2010/12/12 12:20:34 32059B50 c emm from fd 22:
2010/12/12 12:20:34 32059B50 82 30 B3 50 00 F4 25 01 01 62 F8 20 00 00 F8 07
2010/12/12 12:20:34 32059B50 6D 05 31 00 F4 25 01 07 14 AF 0A FF FF 00 0D 00
2010/12/12 12:20:34 32059B50 22 01 00 01 01 00 00 00 0A 00 00 00 AF 01 00 01
2010/12/12 12:20:34 32059B50 0C 66 FE F9 BA D0 FC A6 88 3C D8 CE 89 60 6A 85
2010/12/12 12:20:34 32059B50 25 16 B6 AC C9 27 C3 D7 78 FB 98 29 AE 13 4C 36
2010/12/12 12:20:34 32059B50 55 35 B4 34 22 AE E6 DD 63 01 46 29 FC 84 51 06
2010/12/12 12:20:34 32059B50 DC B3 EF 37 C4 E0 DD 17 04 88 1E 52 47 48 2B 1C
2010/12/12 12:20:34 32059B50 72 C8 93 A0 56 B4 39 27 86 20 82 EC 00 B1 00 DB
2010/12/12 12:20:34 32059B50 02 00 32 90 30 44 03 CE 67 18 D4 2B 5C 34 8F EA
2010/12/12 12:20:34 32059B50 5F 95 9B AB 3E 56 3F B3 DB 90 31 1B F6 E7 33 0A
2010/12/12 12:20:34 32059B50 7A 62 D4 84 D1 27 9F 44 9F 23 69 59 4D C8 25 EC
2010/12/12 12:20:34 32059B50 59 2A F7 EF 66 00

Please insert the neoen's patch

comment:2 by neoen, 13 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.