The above features of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings in which:
As previously mentioned, since the parity check block code in the MPEG framing block (200-I) is not very powerful, its decoder (210) may indicate several positions in a packet (position-candidates) where a possible sync byte could be found, when only one position is the correct one, and the Syndrome Detector 220-I may false lock and output a false Sync_flag, a false Error_flag and a false Lock_flag.
The False Lock Detector 540 is adapted to detect a false synchronization lock condition of the Syndrome Detector 220-I and to output a “loss of synchronization”/“resync” command (skip_pattern_cntl) to the Syndrome Detector 220-I. The Syndrome Detector 220-I is adapted to respond to that command by unlocking and trying to resynchronize, that is, to try to detect another (the true) sync-byte position candidate indicated by the parity check block decoder (Syndrome Generator 210) and by the Syndrome Detector 220-I and to lock on to that (new) detected position. This process of unlocking and resynchronization may repeat until the correct sync-byte position is found (e.g., when no anomaly or insufficient anomalies indicating a false-lock condition is/are detected by the False Lock Detector 540).
When the “resync” command (skip_pattern_cntl) is asserted, the Syndrome Detector 220-I enters a “resync phase” (resynchronization phase) and restarts the conventional process of detecting a checksum-encoded sync-byte. The operation of the Syndrome Detector 220-I, during the “resync phase” (resynchronization phase) may be identical to the conventional synchronization process of detecting a checksum-encoded sync-byte performed in the Syndrome Detector 220 of the related art.
The False Lock Detector 540 declares a loss of synchronization by the assertion of the skip_pattern_cntl signal when one or more anomalies are detected in the Serial Data Stream as delineated by the current sync-byte position lock. A distinct resynchronization-enabling signal separate from skip_pattern_cntl is not required to restart the synchronization process (to start the resynchronization process) once the “loss of synchronization” signal (skip_pattern_cntl) has been asserted by the False Lock Detector 540. When the Syndrome Detector 220-I finds a synchronization-byte (periodically) at a (new) location in the stream, the system returns to the lock phase, through detection of a checksum-encoded synchronization-byte as is typically performed by the Syndrome Detector 220 of the related art. The return of the Syndrome Detector 220-I to the lock phase may depend upon the occurrence of an uninterrupted series of detections of the checksum-encoded synchronization-byte at the same (periodic) position, each detection of said synchronization-byte occurring at intervals of time equal to the time required for an entire packet length of data to flow through the Syndrome Detector 220-I.
After the “loss of sync”/“resync” (skip_pattern_cntl) signal is asserted, the Syndrome Detector 220-I compares the Syndrome Generator's 210 output with 47 Hex for a number of packets, N, and a programmable threshold, synd_thresh, establishes whether a sync-byte has actually been detected. For example, if during N packets, the number of Syndrome Generator 210 outputs equal to 47 Hex is greater than or equal to synd_thresh, then a sync-byte has been detected. A Lock_flag indicates whether or not regular periodic sync-bytes have been detected in packets within the data stream, for example, by being 1 or 0, respectively. A Sync_flag indicates the detected position of the detected checksum-encoded sync-byte within each packet in the data stream by, for example, (e.g., being 1 during the sync-byte and 0 otherwise). Once a “locked” packet alignment (synchronization) condition is reestablished, the absence of a valid checksum-encoded sync-byte word (47 Hex) at the expected location in the Serial Data Stream will indicate a packet error.
The False Lock Detector 540 detects a possible false lock condition by analyzing packet-derived information fed back from the transport layer 402 (e.g., including an MPEG Packet Parser 544 and/or an MPEG demultiplexer/decoder). The packet header bytes following the sync-byte candidate and/or the Program Specific Information are parsed in order to identify synchronization related problems in the transport block and instructs the Syndrome Detector 220-I to try and lock to another position identified using the parity check decoder (Syndrome Generator 210) and the Syndrome Detector 220-I until the correct sync-byte position is found. A false lock condition may be identified by examination of the supposed transport packet header fields (PID, continuity_counter, adaptation_field_control and transport_error_indicator), and/or by parsing supposed Program Specific Information.
In
The False Lock Detector 540 generates and outputs the “skip” command (skip_pattern_cntl) to the Syndrome Detector 220-I in the framing block 200-I based upon information (e.g., from the Serial Data Stream) received via the physical layer. A false lock condition may be indicated by the occurrence of various events or non-occurrence of expected events in the transport layer 402 (e.g., in a MPEG-2 demultiplexer/decoder of the related art). The following are examples of events, the occurrence or non-occurrence of which may be used (e.g., by the False Lock Detector 540) to detect a false lock condition:
Anomaly 1=a PAT table has not been successfully received from the transport stream (e.g., PID=0×00 has not been detected);
Anomaly 2=A PMT table has not been successfully received from the transport stream;
Anomaly 3=a) an invalid PID is present in the data stream; or b) At least one of the PIDs in the PMT are not present in the stream; or
Anomaly 4=A discontinuity occurs in at least one of the continuity counters in the stream;
Anomaly 5=The Transport_error_indicator encoded in the supposed packet header is “1” appearing to indicate an uncorrectable bit error in the current transport packet while the MPEG-2 Error_flag output is “0”.
In a situation of a false synchronization lock: the search for a PAT (Anomaly 1) and/or PMT (Anomaly 2) will be compromised, since the fields contained in each of these tables, will not necessarily match with proper values; the PIDs (Anomaly 3) previously identified by a correct or by a corrupted PMT may not be found in the stream; an apparent discontinuity in a continuity counter (Anomaly 4) pertaining to at least one of the PIDs previously identified by a correct or by a corrupted PMT may occur; a transport_error_indicator (Anomaly 5) bit may be randomly set or be inconsistent with other information (e.g., the transport_error_indicator bit is ‘1’, when the error_flag signal is ‘0’).
In the False Lock Detector 540 of
PAT_flag indicates Anomaly 1;
PAT_flag indicates Anomaly 2;
PID_flag indicates Anomaly 3a or Anomaly 3b;
cc_flag indicates Anomaly 4;
TE_flag indicates Anomaly 5.
The MPEG Packet Parser 544 generates the foregoing Anomaly-indicating flags (1-5) based upon parsing the contents of the Serial Data Stream (Data_out) and the other normal outputs (Error_flag, Sync_flag) from the MPEG framing (physical) layer 401. The MPEG Packet Parser 544 may be implemented by discrete anomaly-dedicated detection blocks (e.g., CC Verifier 548) or it may be implemented by an MPEG Demultiplexer/decoder of the related art.
The Decision Logic Block 542 receives, combines and filters the Anomaly flags (e.g., PID_flag etc.) that indicate the occurrence of the various Anomalies (1-5), to output the skip_pattern_cntl signal to the Syndrome Detector 220-I based upon a decision as to whether there probably exists a false lock condition.
The Decision Logic Block 542 may include state machines or other circuits adapted to perform hysteretic threshold filtering of one or more of the Anomaly Flags (1-5) and then pass the filtered Anomaly Flags to a flag combining circuit that generates a final decision in the form of the skip_pattern_cntl signal. The flag combining circuit within the Decision Logic Block 542 of the False Lock Detector 540 may include an OR-gate, an AND-gate, or a multiplexer, a microprocessor, a State Machine, a Latch, a Shift Register, or combinations of these and other elements known to persons skilled in the art.
The output (skip_pattern_cntl) of the False lock Detector block 540-A, is the same as the output (skip_pattern_cntl) of the similar False Lock Detector Block 540 of
The False Lock Detector 540-A detects a possible false lock condition by analyzing information parsed from the Serial Data Stream (Data_out) that is output by the MPEG framing block 200-I, such as the Error_flag and bits parsed from the header of MPEG-2 Packets (e.g., supposed PID, continuity_counter, adaptation_field_control, transport_error indicator, etc.) from an MPEG demultiplexer/decoder of the related art.
The False Lock Detector 540-A may include a plurality of circuits (A1, A2, A3) adapted to perform, in parallel, a plurality of detection algorithms upon the information received (e.g., from the MPEG demultiplexer/decoder), as follows:
Algorithm A1 detects Anomaly 3b as follows: The continuity_counters for a given PMT are cc(n,k), 0≦n<N, k≧0, where n represents a distinct PID (e.g., PID=n) in a PMT, NPID is the total number of distinct PID's in a PMT and k represents packet count. For a particular program, hence PMT, the transport demultiplexer creates one continuity counter per each distinct PID. The algorithm creates a flag for each continuity counter, cc_pid(n), 0≦n<N, that are originally set to ‘1’ and are only set to ‘0’ after cc(n,k) has incremented for the first time (when the first packet having a particular PID value listed in the PMT is detected). The algorithm runs indefinitely (if not reset by a Detector_Reset) and outputs PID_flag(k) for each value of k≧0. The value of PID_flag(k) is ‘1’ as long as there is at least one flag cc_pid(n) for which its value is ‘1’. This algorithm flags a possible false lock condition, since it means that at least one of the expected PID's in a supposed PMT are not available in the stream:
1. Set k=0.
2. Set cc_pid(n)=1, for 0≦n<NPID.
3. If ((cc(n, k)=1) and (cc_pid(n)=1)), then cc_pid(n)=0, for 0<n≦NPID.
4. Set PID_flag(k)=OR[cc_pid(n), for 0≦n<NPID].
5. Set k=k+1. Go to 3.
Algorithm A2 detects Anomaly 4 as follows: The continuity_counters for a given PMT are cc(n,k), 0≦n<NPID, k≧0, where n represents a distinct PID (PID=n) in a PMT, NPID is the total number of distinct PID's in a PMT and k represents packet count. For a particular program, hence, PMT, the transport demultiplexer creates one continuity counter per distinct PID. The algorithm runs indefinitely (if not reset by a Detector_Reset) and outputs cc_flag(k) for each value of k. The value of cc_flag(k) is ‘1’ when a discontinuity is detected in one of the counters. This algorithm flags a possible false lock condition:
1. Set k=0.
2. Set cc flag(k)=0.
3. If ((adaptation_field_control=‘00’) or (adaptation_field_control=‘10’)), then go to 6.
4. Else if ((adaptation_field_control=‘01’ or adaptation_field_control=‘11’) and ( ( (cc(n,k)>cc(n,k−1)) and (cc(n,k−1)<15) ) or (cc(n,k)=cc(n,k−1)) or ( (cc(n,k)=0) and (cc(n,k−1)=15) ), for 0≦n<NPID, k>0), then go to 6.
5. Else, set cc_flag(k)=1.
6. Set k=k+1. Go to 2.
Algorithm A3 detects Anomaly 5 as follows: The algorithm runs indefinitely (if not reset by a Detector_Reset) and outputs TE_flag(k) for each value of k, where k represents packet count. The value of TE_flag(k) is ‘1’ when the recovered transport_error_indicator (TEI) is ‘1’, while the MPEG framing block error_flag indicates no errors in the physical layer. This indicates a possible false lock condition. It is possible for the transmitter to send an MPEG-2 stream with the transport_error_indicator already set to ‘1’, indicating prior error in the data generation. Although that means that the transport will discard this packet anyway, a possible false lock condition may be indicated when many of these anomalies appear in the transport stream:
1. Set k=0.
2. Set TE_flag(k)=0;
3. If ((transport_error_indicator=1) and (error_flag=0)) then set TE_flag(k)=1.
4. Set k=k+1. Go to 2.
To increase the reliability and stability of the output (skip_pattern_cntl) of the False Lock Detector 540-A, state machines (e.g., SM1, SM2, SM3) may be provided so as to capture the Anomaly-flag output of each Algorithm block (A1, A2, A3) and to provide a hysteretic thresholding characteristic to each Anomaly-flag (PID_flag, cc_flag, TE_flag) as well as PAT_flag and PMT_flag (see
The Decision Logic Block 542-A which generates the skip_pattern_cntl command output by the False Lock Detector 540-A may be multi-modal, the particular mode being dynamically selected according to the value of a programmable control signal, decision_cntl. For example, in different modes, the Decision Logic Block 542-A may function as a three-input OR-gate; a five-input OR-gate; a three-input AND-gate, etc., or multiplexer with respect to the outputs of the hysteretic thresholding filters (SM1, SM2, SM3, SM4, SM5). For example, the False Lock Detector 540-A could function as a five-input OR-gate (e.g., for decision_cntl=0) or a five-input AND-gate (e.g., for decision_cntl=1). In addition, the False Lock Detector 540-A could be a five-input multiplexer controlled by decision_cntl=2, 3, 4, 5, or 6 selecting, respectively, PID_flag_out, cc_flag_out, TE_flag_out, PAT_flag_out, or PMT_flag_out, as the multiplexer's output. Other variations of these settings are possible.
In each flowchart (e.g.,
The algorithm A400 of
The Start corresponds generally to a nominal condition of a flow of a supposedly valid synchronized Serial Data Stream out of the framing block 200-I during a supposedly true synchronization lock, and/or to the initialization of the False Lock Detector (540 and 540-A) using the Detector_Reset input
In initialization step S401 (the first step of PAT_loop), which follows the Start, the PAT_flag is initialized to ‘1’. The PAT_flag when set to ‘0’ indicates that a (valid) PAT table has been successfully received from the transport stream; when set to ‘1’, it indicates that the table has not (yet) been successfully received from the transport stream. At start-up of the MPEG-2 receiver system, the PAT_flag is set to ‘1’ (and will change to “0” after a valid PAT is acquired).
Step S402 is a wait step implemented as a decision branch step in which the initialized value of PAT_flag is maintained (PAT_flag=‘1’) until at least a supposed PID (packet ID) having value ‘0’ is found (detected).
The next step S403, is a decision branch step in which the initialized value of PAT_flag is maintained (PAT_flag=‘1’) until all the packets having PID=0×00 and containing a section of the PAT table can be “verified” as containing a seemingly valid (e.g., non-corrupted) PAT. During step S403 the MPEG demultiplexer/decoder (or the MPEG Packet Parser 544 of
Verification of the PAT may be superficial, or extensive, in various alternative embodiments of the invention. In some embodiments of the invention, the PAT verification step S403 may include simply verifying that all “sections” of a PAT have been received. In some embodiments of the invention, the PAT verification step S403 may be practically eliminated such that next step S404 is performed immediately upon the detection of one or more expected bit patterns, such as the pattern of the 13 bits of the PID.
Step S405 is a decision branch step of detecting (Y) or not detecting (N) the End of the Data Stream output from the MPEG framing block 200-I of
Step S406 is a wait step implemented as a decision branch step in which the determined value of PAT_flag is maintained (PAT_flag=‘0’) until a new PAT table is due (expected). Thus, the PAT_flag is set to “1” every time a new PAT is being sought (due) and it is only set to “0” when the PAT has been acquired.
The value of PAT_flag may be sampled and if the time between the initialization step S401 (PAT_flag=‘1’) and the step in which the Flag indicates a valid PAT packet has been received (PAT_flag=‘0’) exceeds a predetermined timing threshold, the sampled value PAT_flag=‘1’ will be output to the Decision Logic Block (542, 542-A) of the False Lock Detector (540, 540-A) to indicate the occurrence of Anomaly 1. The sampling of PAT_flag may be timed to correspond to when a (new) PAT has been due for the predetermined time (threshold), by measuring the (sample period) time from the point when a new PAT table is determined to be due (the Y branch in wait step S406).
The algorithm A500 of
The Start corresponds generally to a nominal condition of a flow of a supposedly valid synchronized Serial Data Stream out of the framing block 200-I during a supposedly true synchronization lock, and/or to the initialization of the False Lock Detector (540 and 540-A) using the Detector_Reset input
In initialization step S501 (the first step of PMT_loop), which follows the Start, the PMT_flag is initialized to ‘1’. The PAT_flag when set to ‘0’ indicates that a (valid) PMT has been successfully received from the transport stream; when set to ‘1’, it indicates that the PMT has not (yet) been successfully received from the transport stream. At start-up of the MPEG-2 receiver system, the PMT_flag is set to ‘1’ (and will change to “0” after a valid PMT is acquired).
Step S502 is a wait step implemented as a decision branch step in which the initialized value of PAT_flag is maintained (PAT_flag=‘1’) until at least a PID (packet ID) having an expected value (derived from a PAT) is found (detected).
The next step S503, is a decision branch step in which the initialized value of PMT_flag is maintained (PAT_flag=‘1’) until all the packets detected as having a PMT-PID can be “verified” as received containing a (seemingly) valid (e.g., non-corrupted) PMT. During step S503 the MPEG demultiplexer/decoder (or the MPEG Packet Parser 544 of
Step S505 is a decision branch step of detecting (Y) or not detecting (N) the End of the Data Stream output from the MPEG framing block 200-I of
Step S506 is a wait step implemented as a decision branch step in which the determined value of PMT_flag is maintained (PMT_flag=‘0’) until a new PMT is due (expected). Thus, the PMT_flag is set to “1” every time a new PMT is being sought (due) and it is only set to “0” when the PMT has been acquired.
The value of PMT_flag may be sampled and if the time between the initialization step S501 (PMT_flag=‘1’) and the step in which the Flag indicates a valid PMT packet has been received (PMT_flag=‘0’) exceeds a predetermined timing threshold, the sampled value PMT_flag=‘1’ will be output to the Decision Logic Block (542, 542-A) of the False Lock Detector (540, 540-A) to indicate the occurrence of Anomaly 2. The sampling of PAT_flag may be timed to correspond to when a (new) PMT has been due for the predetermined time (threshold), by measuring the (sample period) time from the point when a new PMT table is determined to be due (the Y branch in wait step S506).
In summary, the PMT_flag when set to “0” indicates that a PMT table has been successfully received from the transport stream; when set to “1”, it indicates that the table has not (yet) been successfully received from the transport stream. At start-up (Start) of the MPEG-2 receiver system, the PMT_flag is set to “1”. Furthermore, the PMT_flag is set to “1” every time a new program (hence, a new PMT) is being sought and it is only set to “0” when the PMT has been acquired.
The foregoing description merely illustrates the principles of the invention. It will be appreciated that those skilled in the art will be able to devise various arrangements that, although not explicitly described or shown herein, embody the principles of the invention and are included within its spirit and scope. Furthermore, all examples recited herein are principally intended expressly to be only for pedagogical purposes to aid the reader in understanding the principles of the invention and the concepts contributed by the inventor to furthering the art, and are to be construed as being without limitation to such specifically recited examples and conditions.
Moreover, all statements herein reciting principles, aspects, and embodiments of the invention, as well as specific examples thereof, are intended to encompass both structural and functional equivalents thereof. Additionally, it is intended that such equivalents include both currently known equivalents as well as equivalents developed in the future, i.e., any elements developed that perform the same function, regardless of structure.
Thus, for example, it will be appreciated by those skilled in the art that the block diagrams herein represent conceptual views of illustrative circuitry embodying the principles of the invention. Similarly, it will be appreciated that any flow charts, flow diagrams, state transition diagrams, pseudocode, and the like represent various processes which may be substantially represented in computer readable media and so executed by a computer or other processor, whether or not such computer or processor is explicitly shown.
The functions of the various elements shown in the figures may be provided through the use of dedicated hardware as well as hardware capable of executing software in association with appropriate software. When provided by a processor, the functions may be provided by a single dedicated processor, by a single shared processor, or by a plurality of individual processors, some of which may be shared.
Moreover, explicit use of the term “processor” or “controller” should not be construed to refer exclusively to hardware capable of executing software, and may implicitly include, without limitation, digital signal processor (“DSP”) hardware, read-only memory (“ROM”) for storing software, random access memory (“RAM”), and non-volatile storage. Other hardware, conventional and/or custom, may also be included. Similarly, any switches, gates, or multiplexers described or shown in the figures are conceptual only. Their function may be carried out through the operation of program logic, through dedicated logic, through the interaction of program control and dedicated logic, or even manually, the particular technique being selectable by the implementer as more specifically understood from the context.
In the claims hereof any element expressed as a means for performing a specified function is intended to encompass any way of performing that function including, for example, a) a combination of circuit elements that performs that function or b) software in any form, including, therefore, firmware, microcode or the like, combined with appropriate circuitry for executing that software to perform the function. The invention as defined by such claims resides in the fact that the functionalities provided by the various recited means are combined and brought together in the manner which the claims call for. Applicant thus regards any means that can provide those functionalities as equivalent to those shown herein.
These and other features of the present invention may be readily ascertained by one of ordinary skill in the pertinent art based on the principles disclosed herein. It is to be understood that the principles of the present invention may be implemented in various forms of hardware, software, firmware, special purpose processors, or combinations thereof.
The present invention is implemented as a combination of hardware and software. Moreover, a software implementation may be implemented as an application program tangibly embodied on a program storage unit or fixed media. The application program may be uploaded to, and executed by, a machine comprising any suitable architecture. Preferably, the machine is implemented on a computer platform having hardware such as one or more central processing units (“CPU”), a random access memory (“RAM”), and input/output (“I/O”) interfaces. The computer platform may also include an operating system and microinstruction code. The various processes and functions described herein may be either part of the microinstruction code or part of the application program, or any combination thereof, which may be executed by a CPU.
Exemplary embodiments of the invention have been explained above and are shown in the figures. However, the present invention is not limited to the exemplary embodiments described above, and it is apparent that variations and modifications can be effected by those skilled in the art within the spirit and scope of the present invention.
It is to be further understood that, because some of the constituent system components and methods depicted in the accompanying drawings may be implemented in software (e.g., adapted to be executed by a personal computer or a set-top box), the actual connections between the system components or the method blocks may differ depending upon the manner in which the software programmed to implement the present invention is programmed. Given the principles of the present invention disclosed herein, one of ordinary skill in the pertinent art will be able to contemplate these and similar implementations or configurations of the present invention.
Although the illustrative embodiments have been described herein with reference to the accompanying drawings, it is to be understood that the present invention is not limited to those precise embodiments, and that various changes and modifications may be effected therein by one of ordinary skill in the pertinent art without departing from the scope or spirit of the present invention. All such changes and modifications are intended to be included within the scope of the present invention as set forth in the appended claims.
Therefore, the exemplary embodiments should be understood not as limitations but as examples. The scope of the present invention is not determined by the above description but by the accompanying claims, and variations and modifications may be made to the embodiments of the invention without departing from the scope of the invention as defined by the appended claims and equivalents.
This application claims the benefit of U.S. Provisional Application Ser. No. 60/479,395 (Attorney Docket No. PU030167), filed Jun. 18, 2003, and entitled “METHOD AND APPARATUS PROCESSING NULL PACKETS IN A DIGITAL MEDIA RECEIVER”, which is incorporated herein by reference in its entirety.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/US04/19357 | 6/16/2004 | WO | 00 | 3/22/2007 |
Number | Date | Country | |
---|---|---|---|
60479395 | Jun 2003 | US |