KR20010018378A - Apparatus for detecting sync of transport packet - Google Patents

Apparatus for detecting sync of transport packet Download PDF

Info

Publication number
KR20010018378A
KR20010018378A KR1019990034325A KR19990034325A KR20010018378A KR 20010018378 A KR20010018378 A KR 20010018378A KR 1019990034325 A KR1019990034325 A KR 1019990034325A KR 19990034325 A KR19990034325 A KR 19990034325A KR 20010018378 A KR20010018378 A KR 20010018378A
Authority
KR
South Korea
Prior art keywords
packet
synchronization
counter
sync
signal
Prior art date
Application number
KR1019990034325A
Other languages
Korean (ko)
Inventor
김성태
Original Assignee
윤종용
삼성전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 윤종용, 삼성전자 주식회사 filed Critical 윤종용
Priority to KR1019990034325A priority Critical patent/KR20010018378A/en
Publication of KR20010018378A publication Critical patent/KR20010018378A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PURPOSE: An apparatus for detecting the synchronization of a transport packet is provided to detect the synchronization regardless of continuity or discontinuity of effective signal of transport packet of MPEG2, and to detect the synchronization of DSS(Direc TV) packet. CONSTITUTION: The apparatus for detecting the synchronization of a transport packet includes a DSS transport packet synchronization detecting unit(10) and a MPEG2 transport packet synchronization detecting unit(20). A synchronization output selection unit(30) selects a synchronization output by the value (i_DSS or TS) of an input signal. The MPEG2 transport packet synchronization detecting unit(20) includes a 8 bit packet counter(21)(p_cnt) for counting the number of the inputted packet data(i_packet_data). A N bit synchronization detecting counter(23) counts the number that the synchronization is generated. A M bit synchronization loss counter(22)(s_loss) counts the number that the synchronization does not generated. A synchronization output unit(30) selects and outputs the synchronization according to the DSS or TS(i_DSS or TS) signal.

Description

트랜스포트 패킷의 동기를 검출하는 장치{Apparatus for detecting sync of transport packet}Apparatus for detecting sync of transport packet

본 발명은 압축된 비데오 및 오디오데이타를 트랜스포트 패킷의 형태로 전송할 때, 트랜스포트 패킷의 시작 즉, 동기를 검출하는 장치에 관한 것이다.The present invention relates to an apparatus for detecting the start of a transport packet, i.e., synchronization, when transmitting compressed video and audio data in the form of a transport packet.

Direc TV(이하, "DSS"라 함)와 MPEG2시스템에서는 압축된 오디오/비디오 데이타를 트랜스포트 패킷(transport packet)의 형태로 전송하며, 트랜스포트 패킷은 헤더(header)와 정보(payload)로 구성된다. 이 트랜스포트 패킷의 크기는 MPEG2시스템에서는 188바이트이며, DSS는 130바이트이다. 이러한 트랜스포트 패킷의 모임을 트랜스포트 스트림(Transport Stream; TS)이라고 한다.Direc TV (hereinafter referred to as "DSS") and MPEG2 systems transmit compressed audio / video data in the form of transport packets, which are composed of a header and a payload. do. The size of this transport packet is 188 bytes in the MPEG2 system, and the DSS is 130 bytes. This collection of transport packets is called a transport stream (TS).

일반적으로 MPEG2의 트랜스포트 스트림과 DSS의 트랜스포트 스트림에서는 패킷이 매우 높은 속도로 전송되기 때문에 패킷의 동기검출은 프로세서를 이용한 소프트웨어로 처리하기보다는 하드웨어로 처리한다.In general, in the MPEG2 transport stream and the DSS transport stream, the packet is transmitted at a very high speed, so the synchronous detection of the packet is performed by hardware rather than by software using a processor.

도 1은 DSS와 MPEG2시스템의 트랜스포트 패킷에 대한 타이밍도를 보여주는 것으로, 도 1a는 DSS의 경우에 대해서, 도 1b 및 도 1c는 MPEG2에 대해서 보여준다. 도 1b는 패킷유효(packet_valid)신호가 188바이트 동안 연속적인 경우를, 도 1c는 패킷유효(packet_valid)신호가 불연속적인 경우를 보여준다.FIG. 1 shows a timing diagram for a transport packet of a DSS and MPEG2 system. FIG. 1A shows a case of DSS, and FIGS. 1B and 1C show MPEG2. FIG. 1B shows a case where a packet valid signal is continuous for 188 bytes, and FIG. 1C shows a case where a packet valid signal is discontinuous.

도 1a에 보여진 DSS의 트랜스포트 패킷은 특별하게 동기 바이트가 없기 때문에 패킷의 유효한 신호가 시작되는 지점이 패킷의 동기가 된다. 따라서, DSS의 경우 패킷의 유효신호가 활성화(active)되는 첫번째 바이트가 트랜스포트 패킷의 시작점이 되므로 동기를 검출하기가 쉽다. 한편, MPEG2의 트랜스포트 패킷은 47h(16진수)이라는 동기 바이트가 있기 때문에 이를 검출함으로써 패킷의 동기를 검출한다. 종래의 MPEG2의 트랜스포트스트림(TS)을 비데오 및 오디오신호로 분리하기 위한 디멀티플렉서(demux)들은 이러한 가정하에 동기를 검출하였기 때문에 패킷의 유효한 신호가 불연속으로 즉, 한개의 트랜스포트 패킷이 여러개로 나누어서 입력될 경우 동기를 검출하기가 힘들다.Since the transport packet of the DSS shown in FIG. 1A has no special sync byte, the point at which the valid signal of the packet starts is the synchronization of the packet. Accordingly, in the case of DSS, synchronization is easy to detect because the first byte of the packet's valid signal becomes active as a starting point of the transport packet. On the other hand, since the transport packet of MPEG2 has a synchronization byte of 47h (hexadecimal), the synchronization of the packet is detected by detecting it. Demultiplexers (demux) for separating the transport stream (TS) of the conventional MPEG2 into video and audio signals have detected synchronization under this assumption, so that the valid signal of the packet is discontinuous, that is, one transport packet is divided into several. If input, it is difficult to detect sync.

이와같이, 종래에는 패킷의 유효한 신호가 불연속적으로 입력될 경우 동기를 검출하지 못하였다. 동기검출을 위해, 버퍼에 패킷을 저장하여 프로세서가 연속적으로 읽어들여서 동기를 검출하는 방법을 사용하였다. 그러나, 버퍼에 저장하여 처리하는 경우에 동기 검출을 위해서 프로세서에 과중한 부하가 걸릴 수 있다.As described above, in the prior art, when a valid signal of a packet is discontinuously input, synchronization cannot be detected. For synchronous detection, a method is used to detect synchronization by storing packets in a buffer and continuously reading them by the processor. However, in the case of storing and processing in a buffer, an excessive load may be placed on the processor for synchronization detection.

따라서, 본 발명의 목적은 MPEG2의 트랜스포트 패킷의 유효한 신호가 연속적이든지 불연속적이든 관계없이 동기를 검출하고, 아울러 DSS 패킷의 동기를 검출할 수 있는 장치를 제공함에 있다.Accordingly, an object of the present invention is to provide an apparatus capable of detecting synchronization and detecting synchronization of a DSS packet regardless of whether a valid signal of an MPEG2 transport packet is continuous or discontinuous.

도 1a-c는 DSS와 MPEG2시스템의 트랜스포트 패킷에 대한 타이밍을 보여주는 도면,1A-C illustrate timings of transport packets of a DSS and an MPEG2 system.

도 2는 본 발명의 트랜스포트 패킷의 동기를 검출하는 장치를 간략하게 보여주는 도면,2 is a view showing briefly an apparatus for detecting synchronization of a transport packet of the present invention;

도 3은 도 2에 보여진 동기검출장치(100)를 좀더 자세히 보여주는 도면,3 is a view showing in more detail the synchronous detection device 100 shown in FIG.

도 4는 도 3장치의 동작을 설명하기 위한 흐름도.4 is a flowchart for explaining an operation of the apparatus of FIG. 3;

〈 도면의 주요 부분에 대한 부호의 설명 〉<Description of the code | symbol about the principal part of drawing>

10 : DSS트랜스포트 패킷 동기검출부10: DSS transport packet synchronous detection unit

20 : MPEG2 트랜스포트 패킷 동기검출부20: MPEG2 transport packet synchronous detection unit

30 : 동기출력선택부30: Sync output selector

위와같은 목적을 달성하기 위한 본 발명의 특징은 디지탈방송신호의 트랜스포트 패킷의 동기를 검출하기 위한 장치에 있어서, 다이렉TV(DSS)신호의 동기를 검출하는 DSS 트랜스포트 패킷 동기검출수단, MPEG2신호의 동기를 검출하기 위한 MPEG2 트랜스포트 패킷 동기검출수단 및 상기 DSS트랜스포트 패킷 동기검출부의 출력과, 상기 MPEG2 트랜스포트패킷 동기검출부의 출력중에서 동기선택신호에 따라 해당하는 동기를 선택하여 출력하는 동기출력선택부를 포함하며, 상기 MPEG2 트랜스포트 패킷 동기검출수단은 패킷신호가 유효함을 알리는 패킷유효신호가 활성화(active)상태에서 패킷데이타의 수를 카운트하면서 기설정된 동기검출횟수와 현재 검출된 동기의 횟수를 비교하면서, 트랜스포트 패킷의 동기를 검출하는 것을 특징으로 하는 트랜스포트패킷 동기검출장치에 있다.A feature of the present invention for achieving the above object is, in the apparatus for detecting the synchronization of the transport packet of the digital broadcast signal, DSS transport packet synchronization detection means for detecting the synchronization of a direct TV (DSS) signal, MPEG2 Synchronization which selects and outputs corresponding synchronization according to the synchronization selection signal from the output of the MPEG2 transport packet synchronization detection unit and the DSS transport packet synchronization detection unit for detecting the synchronization of the signal, and the output of the MPEG2 transport packet synchronization detection unit. And an output selection unit, wherein the MPEG2 transport packet synchronization detecting means counts the number of packet data while the packet valid signal indicating that the packet signal is valid is active, and compares the preset number of synchronization detections with the currently detected synchronization. Transport packet synchronization characterized by detecting the synchronization of transport packets while comparing the number of times. In the output apparatus.

본 발명의 목적을 달성하기 위한 다른 특징은 트랜스포트패킷의 동기를 검출하기 위한 방법에 있어서, (1) 입력되는 패킷데이타(packet data)의 수를 카운트하는 패킷카운터(p_cnt)와, 동기가 몇번 검출되었는지를 카운트하는 동기카운터 및 동기가 몇번 맞지 않았는지를 카운트하는 동기손실카운터가 인에이블되었는지 판단하는 단계; (2) 상기 카운터들이 인에이블되었으면, 입력되는 패킷데이타가 MPEG2의 트랜스포트스트림(TS)인지 판단하고, 인에이블되지 않았으면, 단계(1)을 반복수행하는 단계; (3) 상기 제 (2)단계에서, 입력되는 패킷데이타가 MPEF2의 트랜스포트스트림(TS)이 아닌 경우에는 DSS로 판단하여 DSS 트랜스포트 패킷의 동기검출과정을 수행하고, MPEG2의 트랜스포트스트림인 경우에는 패킷신호가 유효함을 알리는 패킷유효신호가 활성화(active)상태에서 패킷데이타의 수를 카운트하면서 패킷데이타의 동기를 검출하는 MPEG2 트랜스포트 패킷의 동기검출과정을 수행하는 단계를 포함하는 트랜스포트패킷 동기검출방법에 있다.Another feature for achieving the object of the present invention is a method for detecting the synchronization of a transport packet, (1) a packet counter (p_cnt) that counts the number of packet data to be input, and how many times the synchronization Determining whether a synchronization counter that counts whether it has been detected and a synchronization loss counter that counts how many times the synchronization has not been enabled; (2) if the counters are enabled, determining whether the input packet data is a transport stream (TS) of MPEG2, and if not, repeating step (1); (3) In step (2), if the input packet data is not a transport stream (TS) of MPEF2, it is determined as DSS to perform a synchronous detection process of the DSS transport packet and is a transport stream of MPEG2. In this case, the transport includes a step of performing a synchronization detection process of an MPEG2 transport packet that detects synchronization of packet data while counting the number of packet data while the packet valid signal indicating that the packet signal is valid is active. Packet synchronization detection method.

이하, 첨부된 도면들을 참조하여 본 발명의 바람직한 실시예를 상세히 설명하겠다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 2는 본 발명의 트랜스포트 패킷의 동기를 검출하는 장치를 간략하게 보여주는 도면이다. 도 2에 보여진 바와같이, 동기검출장치(100)는 8비트의 패킷데이타(i_packet_data)와, 패킷이 유효한 값이라는 것을 나타내는 패킷유효(i_packet_valid)신호, 패킷클럭(i_packet clock), 입력되는 패킷이 DSS인지 트랜스포트스트림(TS)인지를 알려주는 DSS 또는 TS신호(i_DSS or TS), MPEG2인 경우 연속적으로 몇번 동기 바이트가 일치되어야지 동기를 검출했다고 판단할 것인지를 알려주는 N비트의 동기잠금(i_sync_lock)신호, 연속적으로 몇번 동기바이트가 일치하지 않았을 경우 동기를 잃었다고 판단할 것인지를 알려주는 M비트의 동기손실(i_sync_loss)신호를 입력받는다. 또한, 동기검출부(100)는 8비트의 패킷데이타(o_packet_data), 패킷유효(o_packet_valid)신호, 패킷클럭(o_packet clock), 패킷의 동기를 알려주는 패킷동기신호(o_packet_sync) 및 패킷의 마지막 부분을 알려주는 앤드오브패킷(o_endofpacket)신호를 출력한다.2 is a diagram schematically showing an apparatus for detecting synchronization of a transport packet of the present invention. As shown in FIG. 2, the synchronous detection apparatus 100 has 8 bits of packet data (i_packet_data), a packet valid signal (i_packet_valid) indicating that the packet is a valid value, a packet clock (i_packet clock), and an incoming packet is a DSS. DSS or TS signal (i_DSS or TS) indicating whether it is a transport stream (TS), N-bit sync lock (i_sync_lock) indicating how many sync bytes must be matched consecutively or in case of MPEG2 Signal, i.e., a sync bit (i_sync_loss) signal indicating whether the synchronization is lost when the synchronization byte does not match several times. In addition, the synchronization detector 100 notifies the 8-bit packet data (o_packet_data), the packet valid (o_packet_valid) signal, the packet clock (o_packet clock), the packet synchronization signal (o_packet_sync) indicating the packet synchronization, and the last part of the packet. Outputs an o_endofpacket signal.

도 3은 도 2에 보여진 동기검출장치(100)를 좀더 자세히 보여주는 도면이다. 본 발명의 동기검출장치(100)는 DSS트랜스포트 패킷 동기검출부(10)와 MPEG2 트랜스포트 패킷 동기검출부(20)를 포함한다. 그리고, DSS트랜스포트 패킷 동기검출부(10)의 출력과, MPEG2트랜스포트 패킷 동기검출부(20)의 출력중에서 입력신호의 값(i_DSS or TS)에 의해 동기출력을 선택하는 동기출력선택부(30)를 포함한다.3 is a view showing in more detail the synchronization detection device 100 shown in FIG. The synchronization detection apparatus 100 of the present invention includes a DSS transport packet synchronization detection unit 10 and an MPEG2 transport packet synchronization detection unit 20. The synchronization output selector 30 selects a synchronous output based on the input signal value i_DSS or TS from the output of the DSS transport packet synchronization detector 10 and the output of the MPEG2 transport packet synchronization detector 20. It includes.

도 1a에 보여진 DSS의 경우에는 패킷유효신호가 연속적이기 때문에, DSS트랜스포트 패킷 동기검출부(10)는 패킷유효(packet_valid)신호를 딜레이부(1D)에서 딜레이시킨 신호와 원래의 신호를 논리합연산하여 검출한다. 그러나, MPEG2의 트랜스포트 패킷의 경우는 트랜스포트 스트림에서 동기 바이트를 찾아야 하기 때문에 DSS트랜스포트 패킷 동기검출부(10) 보다는 더욱 복잡한 과정을 거쳐야 한다.In the case of the DSS shown in FIG. 1A, since the packet valid signal is continuous, the DSS transport packet synchronous detection unit 10 performs a logical sum operation on the signal obtained by delaying the packet valid signal from the delay unit 1D and the original signal. Detect. However, the transport packet of MPEG2 needs to go through a more complicated process than the DSS transport packet synchronization detector 10 because the sync byte must be found in the transport stream.

도 3에 보여진 바와같이, MPEG2 트랜스포트 패킷 동기검출부(20)는 입력된 패킷데이타(i_packet_data)의 수를 카운트하는 8비트의 패킷카운터(21)(p_cnt)를 포함한다. 그리고, 동기가 몇번 검출되었는지를 카운트하는 N비트의 동기검출카운터(23)(s_lock)와, 동기가 몇번 맞지 않았는지를 카운트하는 M비트의 동기손실카운터(22)(s_loss)를 포함한다. 그리고, 입력되는 패킷데이타가 동기바이트인지를 판단하기 위해 기설정된 동기바이트값(47h)과 비교하는 제 1비교부(31)를 포함한다. 제 2비교부(32)는 동기손실카운터(s_loss)의 카운트값과, 몇번 동기 바이트가 일치하지 않았을 경우 동기를 잃었다고 판단할 것인지를 알려주는 기설정된 동기손실신호(i_sync_loss)를 비교한다. 제 3비교부(33)는 동기검출카운터(23)의 카운트값과, 몇번 동기 바이트가 일치되어야지 동기를 검출했다고 판단할 것인지를 알려주는 동기잠금신호(i_sync_lock)를 비교한다. 동기출력선택부(30)는 DSS트랜스포트 패킷 동기검출부(10)의 출력과, MPEG2 트랜스포트패킷 동기검출부(20)의 출력중, 입력되는 패킷이 DSS인지 트랜스포트스트림(TS)인지를 알려주는 DSS 또는 TS신호(i_DSS or TS)에 따라 동기를 선택하여 출력한다.As shown in Fig. 3, the MPEG2 transport packet synchronization detecting unit 20 includes an 8-bit packet counter 21 (p_cnt) that counts the number of input packet data i_packet_data. And an N-bit synchronous detection counter 23 (s_lock) for counting how many times synchronization has been detected, and an M-bit synchronous loss counter 22 (s_loss) for counting how many times the synchronization has not been matched. And a first comparing unit 31 for comparing with the preset sync byte value 47h to determine whether the input packet data is a sync byte. The second comparison unit 32 compares the count value of the synchronous loss counter s_loss with a preset synchronous loss signal i_sync_loss indicating how many times the synchronization byte is determined to be lost when the synchronous byte does not match. The third comparison unit 33 compares the count value of the synchronization detection counter 23 with the synchronization lock signal i_sync_lock indicating how many synchronization bytes should be matched and whether it is determined that synchronization has been detected. The synchronous output selector 30 indicates whether the input packet is a DSS or a transport stream (TS) during the output of the DSS transport packet synchronous detection unit 10 and the output of the MPEG2 transport packet synchronous detection unit 20. The synchronization is selected and output according to the DSS or TS signal (i_DSS or TS).

도 4는 도 3장치의 동작을 설명하기 위한 흐름도이다.4 is a flowchart for describing an operation of the apparatus of FIG. 3.

먼저, 각 카운터들(21, 22, 23)이 인에이블(enable)되었는지 판단한다(단계 411). 각 카운터들이 인에이블되었으면, 입력되는 패킷데이타가 MPEG2의 트랜스포트스트림(TS)인지 판단하고(단계 412), 트랜스포트스트림(TS)이 아닌 경우에는 DSS로 판단하여 DSS 트랜스포트 패킷의 동기검출과정을 수행한다(단계 413). 그러나, 카운터들이 인에이블되지 않았으면, 단계 411을 반복수행한다. 단계 412에서, TS인 경우에는 입력되는 패킷유효(i_packet_valid)신호가 활성화(active)되었는지 판단한다(단계 414). 패킷유효신호가 활성화되었으면, 패킷카운터(21)(p_cnt)의 카운트값이 '0'인지 판단한다(단계 415). 그러나, 패킷유효신호가 활성화되지 않았으면, 단계 411로 돌아가 단계를 반복수행한다. 단계 415에서, 패킷카운터(21)(p_cnt)값이 '0'이면, 제 1비교부(31)는 기설정된 동기바이트(47h)와 비교하여 패킷데이타(packet_data)가 동기(sync)바이트인지 판단한다(단계 416). 동기바이트가 맞으면 패킷카운터(21)(p_cnt)값을 증가시키고(단계 417), 동기손실카운터(22)(s_loss)값을 리셋한다(단계 418). 그 다음, 제 3비교부(33)는 동기검출카운터(23)(s_lock)값과 상술한 동기잠금신호(sync_lock)를 비교한다(단계 419). 두 값이 같으면 동기를 찾았다고 판단하여(단계 420) 동기를 출력한다(단계 421). 그러나, 두 값이 같지 않으면, 동기검출카운터(23)(s_lock)값을 증가시킨다(단계 422).First, it is determined whether the counters 21, 22, 23 are enabled (step 411). If each of the counters is enabled, it is determined whether the input packet data is a transport stream (TS) of MPEG2 (step 412). If the counters are not transport stream (TS), it is determined by the DSS and the synchronous detection process of the DSS transport packet is performed. Perform step 413. However, if the counters are not enabled, repeat step 411. In step 412, the TS determines whether an input packet valid (i_packet_valid) signal is active (step 414). If the packet valid signal is activated, it is determined whether the count value of the packet counter 21 (p_cnt) is '0' (step 415). However, if the packet valid signal is not activated, the flow returns to step 411 to repeat the step. In step 415, if the packet counter 21 (p_cnt) value is '0', the first comparison unit 31 compares the preset sync byte 47h to determine whether the packet data packet_data is a sync byte. (Step 416). If the sync byte is correct, the packet counter 21 (p_cnt) value is increased (step 417), and the sync loss counter 22 (s_loss) value is reset (step 418). Next, the third comparison unit 33 compares the synchronous detection counter 23 (s_lock) value with the above-described synchronous lock signal sync_lock (step 419). If the two values are the same, it is determined that synchronization has been found (step 420) and the synchronization is output (step 421). However, if the two values are not equal, the synchronous detection counter 23 (s_lock) value is increased (step 422).

제 416단계에서, 패킷데이타(packet_data)가 동기(sync)바이트가 아니면, 제 2비교부(32)는 동기손실카운터(22)(s_loss)값과 상술한 동기손실신호(sync_loss)를 비교한다(단계 423). 단계 423에서, 두 값이 같으면 동기검출카운터(23)(s_lock)와 패킷카운터(21)(p_cnt)를 리셋하고(단계 424, 425), 동기를 잃어버렸다고 판단한다(단계 426). 그러나, 단계 423에서, 두 값이 다르면, 제 3비교기(33)는 동기검출카운터(23)(s_lock)값과 상술한 동기잠금신호(sync_lock)를 비교한다(단계 427). 비교결과, 두 값이 같으면, 아직 동기를 잃어버린 상태로 판단되지 않기 때문에, 패킷카운터(21)(p_cnt)값도 증가시키고(단계 429), 동기를 출력한다(단계 430, 431). 그렇지만, 동기손실카운터(42)(s_loss)는 증가시켜 동기를 잃어버린 횟수는 표시해야 한다(단계 428). 그러나, 단계 427에서, 동기검출카운터(23)(s_lock)와 동기잠금신호(s_lock)가 같지 않으면, 동기가 검출되지 않은 상태에서 동기검출횟수도 일치하지 않은 경우로 처음부터 다시 동기를 검출해야 하므로, 단계 423 이후로 넘어가 동기검출카운터(23)(s_lock)값과 패킷카운터(21)(p_cnt)값을 리셋한다. 다시, 단계 415에서, 패킷카운터(21)(p_cnt)값이 '0'이 아니면, '187'인지 비교한다(단계 432). 패킷카운터(21)(p_cnt)값이 '187' 즉, 패킷의 끝부분일 경우 패킷카운터(21)(p_cnt)를 리셋하고(단계 433), 동기가 검출된 상태인지 판단하여(단계 434) 동기가 검출된 상태이면, 패킷의 끝부분을 나타내는 엔드오프패킷(endofpacket)신호를 만들어 낸다(단계 435).In operation 416, if the packet data packet_data is not a sync byte, the second comparator 32 compares the sync loss counter 22 (s_loss) value with the above-described sync loss signal sync_loss ( Step 423). In step 423, if the two values are the same, the synchronization detection counter 23 (s_lock) and the packet counter 21 (p_cnt) are reset (steps 424 and 425), and it is determined that synchronization has been lost (step 426). However, in step 423, if the two values are different, the third comparator 33 compares the synchronous detection counter 23 (s_lock) value with the above-described synchronous lock signal sync_lock (step 427). As a result of the comparison, if the two values are the same, it is not determined that synchronization is still lost. Therefore, the packet counter 21 (p_cnt) value is also increased (step 429), and the synchronization is output (steps 430 and 431). However, the synchronous loss counter 42 (s_loss) should be increased to indicate the number of times the synchronization is lost (step 428). However, in step 427, if the synchronous detection counter 23 (s_lock) and the synchronous lock signal s_lock are not the same, the synchronous detection frequency must be detected again from the beginning because the synchronous detection frequency does not match in the state where the synchronous is not detected. After step 423, the synchronous detection counter 23 (s_lock) and the packet counter 21 (p_cnt) are reset. Again, in step 415, if the packet counter 21 (p_cnt) value is not '0', it is compared to '187' (step 432). If the value of the packet counter 21 (p_cnt) is '187', that is, at the end of the packet, the packet counter 21 (p_cnt) is reset (step 433), and it is determined whether synchronization is detected (step 434). If is detected, an endofpacket signal indicating the end of the packet is generated (step 435).

상술한 바와같이, 본 발명은 MPEG2와 DSS 트랜스포트 패킷의 동기를 검출하는 방법 및 장치에 관한 것으로, MPEG2의 패킷이 불연속적으로 입력되더라도 동기를 효율적으로 검출할 수 있는 효과가 있다.As described above, the present invention relates to a method and apparatus for detecting synchronization of MPEG2 and DSS transport packets, and has an effect of efficiently detecting synchronization even when MPEG2 packets are discontinuously input.

Claims (6)

디지탈방송신호의 트랜스포트 패킷의 동기를 검출하기 위한 장치에 있어서,An apparatus for detecting synchronization of a transport packet of a digital broadcast signal, 다이렉TV(DSS)신호의 동기를 검출하는 DSS 트랜스포트 패킷 동기검출수단;DSS transport packet synchronization detecting means for detecting synchronization of a DirectTV (DSS) signal; MPEG2신호의 동기를 검출하기 위한 MPEG2 트랜스포트 패킷 동기검출수단; 및MPEG2 transport packet synchronization detecting means for detecting synchronization of the MPEG2 signal; And 상기 DSS트랜스포트 패킷 동기검출부의 출력과, 상기 MPEG2 트랜스포트패킷 동기검출부의 출력중에서 동기선택신호에 따라 해당하는 동기를 선택하여 출력하는 동기출력선택부를 포함하며,A synchronization output selection unit for selecting and outputting a corresponding synchronization according to a synchronization selection signal from an output of the DSS transport packet synchronization detection unit and an output of the MPEG2 transport packet synchronization detection unit; 상기 MPEG2 트랜스포트 패킷 동기검출수단은 패킷신호가 유효함을 알리는 패킷유효신호가 활성화(active)상태에서 패킷데이타의 수를 카운트하면서 기설정된 동기검출횟수와 현재 검출된 동기의 횟수를 비교하면서, 트랜스포트 패킷의 동기를 검출하는 것을 특징으로 하는 트랜스포트패킷 동기검출장치.The MPEG2 transport packet synchronization detecting means compares the preset synchronization detection count with the number of currently detected synchronizations while counting the number of packet data while the packet valid signal indicating that the packet signal is valid is active. A transport packet synchronous detection device for detecting synchronization of a port packet. 제 1항에 있어서, 상기 DSS 트랜스포트 패킷 동기검출수단은 입력되는 데이타가 유효함을 알려주는 패킷유효신호가 연속적으로 입력되는 동안 상기 패킷유효신호를 소정 기간 딜레이시킨 신호와 원래의 패킷유효신호를 논리합연산하여 동기신호를 검출하는 것을 특징으로 하는 트랜스포트패킷 동기검출장치.4. The DSS transport packet synchronization detecting means performs a signal delayed by the packet valid signal for a predetermined period and an original packet valid signal during continuous input of a packet valid signal indicating that input data is valid. A transport packet synchronous detection device characterized in that it detects a synchronization signal by performing a logical sum operation. 제 1항에 있어서, 상기 MPEG2 트랜스포트 패킷 동기검출수단은 입력된 패킷데이타(packet data)수를 카운트하는 8비트의 패킷데이타카운터(p_cnt);2. The apparatus of claim 1, wherein the MPEG2 transport packet synchronization detecting unit comprises: an 8-bit packet data counter (p_cnt) for counting the number of input packet data; 동기가 몇번 검출되었는지를 카운트하는 동기검출카운터(s_lock);A synchronization detection counter (s_lock) for counting how many times synchronization has been detected; 동기가 몇번 맞지 않았는지를 카운트하는 동기손실카운터(s_loss)Synchronous loss counter (s_loss) that counts how many times the synchronization was not correct 기설정된 동기바이트값과 입력되는 패킷데이타를 비교하는 제 1비교부;A first comparing unit which compares a predetermined sync byte value with input packet data; 몇번 동기 바이트가 일치하지 않았을 경우 동기를 잃었다고 판단할 것인지를 알려주는 동기손실신호(sync_loss)와 상기 동기손실카운터(s_lock)의 카운트값을 비교하는 제 2비교부;A second comparison unit comparing a count value of the sync loss signal sync_loss and the sync loss counter s_lock indicating how many times the sync byte is determined to be out of sync; 몇번 동기 바이트가 일치되어야지 동기를 검출했다고 판단할 것인지를 알려주는 동기잠금신호(sync_lock)와 상기 동기검출카운터(s_lock)의 카운트값을 비교하는 제 3비교부를 포함하는 것을 특징으로 하는 트랜스포트패킷 동기검출장치.And a third comparison unit for comparing the count value of the sync detection counter s_lock and the sync lock signal sync_lock indicating how many sync bytes should be matched and determining that sync has been detected. Detection device. 트랜스포트패킷의 동기를 검출하기 위한 방법에 있어서,In the method for detecting the synchronization of the transport packet, (1) 입력되는 패킷데이타(packet data)의 수를 카운트하는 패킷카운터(p_cnt)와, 동기가 몇번 검출되었는지를 카운트하는 동기검출카운터(s_lock) 및 동기가 몇번 맞지 않았는지를 카운트하는 동기손실카운터(s_loss)가 인에이블되었는지 판단하는 단계;(1) A packet counter (p_cnt) that counts the number of packet data input, a synchronization detection counter (s_lock) that counts how many times a synchronization has been detected, and a synchronization loss counter (counting how many times the synchronization has not been met) determining whether s_loss) is enabled; (2) 상기 카운터들이 인에이블되었으면, 입력되는 패킷데이타가 MPEG2의 트랜스포트스트림(TS)인지 판단하고, 인에이블되지 않았으면, 단계(1)을 반복수행하는 단계;(2) if the counters are enabled, determining whether the input packet data is a transport stream (TS) of MPEG2, and if not, repeating step (1); (3) 상기 제 (2)단계에서, 입력되는 패킷데이타가 MPEG2의 트랜스포트스트림(TS)이 아닌 경우에는 DSS로 판단하여 DSS 트랜스포트 패킷의 동기검출과정을 수행하고, MPEG2의 트랜스포트스트림인 경우에는 패킷신호가 유효함을 알리는 패킷유효신호가 활성화(active)된 상태에서 패킷데이타의 수를 카운트하면서 패킷데이타의 동기를 검출하는 MPEG2 트랜스포트 패킷의 동기검출과정을 수행하는 단계를 포함하는 트랜스포트패킷 동기검출방법.(3) In step (2), if the input packet data is not a transport stream (TS) of MPEG2, it is determined as DSS to perform a synchronous detection process of the DSS transport packet, and is a transport stream of MPEG2. In this case, the synchronous detection process of the MPEG2 transport packet which detects the synchronization of packet data while counting the number of packet data while the packet valid signal indicating that the packet signal is valid is active is performed. Port packet synchronous detection method. 제 4항에 있어서, 상기 (3)단계는The method of claim 4, wherein step (3) (a) 패킷 유효(packet_valid)신호가 활성화(active)되었는지 판단하는 단계;(a) determining whether a packet valid signal is active; (b) 패킷유효신호가 활성화되었으면, 패킷카운터(p_cnt)의 카운트값이 '0'인지 판단하는 단계;(b) if the packet valid signal is activated, determining whether the count value of the packet counter p_cnt is '0'; (c) 패킷카운터가 '0'이면 기설정된 기준에 의해 패킷데이타(packet_data)가 동기(sync)바이트인지 판단하고, 패킷카운터가 '0이 아니면 마지막 바이트인지 판단하는 단계;(c) if the packet counter is '0', determining whether the packet data (sync) is a sync byte according to a predetermined criterion, and determining whether the packet counter is the last byte if the packet counter is '0'; (d) 상기 (c)단계에서, 패킷데이타가 동기바이트이면, 상기 패킷카운터의 카운트값을 증가시키고, 동기손실카운터의 값을 리셋시키며, 상기 동기검출카운터(s_lock)값과 몇번 동기 바이트가 일치되어야지 동기를 검출했다고 판단할 것인지를 알려주는 동기잠금신호(sync_lock)를 비교하여 두 값이 같으면 동기를 찾았다고 판단하여 동기를 출력하고, 두 값이 같지 않으면, 동기검출카운터(s_lock)값만 증가시키는 단계;(d) In step (c), if the packet data is a sync byte, the count value of the packet counter is increased, the value of the sync loss counter is reset, and the sync detection counter (s_lock) value is synchronized with the sync byte several times. If the two values are the same, the synchronization is output. If the two values are not the same, only the synchronous detection counter (s_lock) value is increased. step; (e) 상기 (c)단계에서, 패킷데이타가 동기바이트가 아니면, 동기손실카운터(s_loss)값과 몇번 동기 바이트가 일치하지 않았을 경우 동기를 잃었다고 판단할 것인지를 알려주는 동기손실신호(sync_loss)를 비교하여 두 값이 같으면 동기검출카운터(s_lock)와 패킷데이타카운터(p_cnt)를 리셋하고, 두 값이 다르면 동기검출카운터(s_lock)의 카운트값과 동기잠금(sync_lock)신호를 비교하는 단계;(e) In step (c), if the packet data is not a sync byte, a sync loss signal (sync_loss) indicating whether or not the sync loss counter (s_loss) is determined to be lost when the sync byte is not matched. Comparing the two values, resetting the synchronous detection counter (s_lock) and the packet data counter (p_cnt), and comparing the count value of the synchronous detection counter (s_lock) and the sync_lock signal if the two values are different; (f) 상기 (e)단계에서, 동기검출카운터(s_lock)의 카운트값과 동기잠금(sync_lock)신호가 같으면, 패킷카운터(p_cnt)값을 증가시키며, 동기검출카운터(s_lock)의 카운트값과 동기잠금(sync_lock)신호가 같지 않으면, 동기검출카운터(s_lock)값과 패킷카운터(p_cnt)값을 리셋하는 단계를 포함하는 것을 특징으로 하는 트랜스포트패킷의 동기검출방법.(f) In step (e), if the count value of the synchronous detection counter s_lock and the sync_lock signal are the same, the packet counter p_cnt value is increased and the count value of the synchronous detection counter s_lock is synchronized with the count value. And resetting the s_lock value and the packet counter value (p_cnt) if the lock (sync_lock) signal is not the same. 제 5항에 있어서, 상기 (c)단계는 패킷카운터가 '0이 아니면 마지막 바이트인지 판단하여 패킷데이타의 끝부분이면, 패킷데이타카운터(p_cnt)를 리셋하고, 동기가 검출된 상태인지 판단하여 동기가 검출된 상태이면, 패킷의 끝부분을 나타내는 엔드오프패킷(endofpacket)신호를 만들어 내는 단계를 포함하는 것을 특징으로 하는 트랜스포트패킷의 동기검출방법.6. The method of claim 5, wherein the step (c) determines whether the packet counter is the last byte if not 0, and if the packet data is at the end of the packet data, resets the packet data counter p_cnt and determines whether synchronization is detected. Generating an end-off-packet signal indicating the end of the packet if is detected.
KR1019990034325A 1999-08-19 1999-08-19 Apparatus for detecting sync of transport packet KR20010018378A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019990034325A KR20010018378A (en) 1999-08-19 1999-08-19 Apparatus for detecting sync of transport packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019990034325A KR20010018378A (en) 1999-08-19 1999-08-19 Apparatus for detecting sync of transport packet

Publications (1)

Publication Number Publication Date
KR20010018378A true KR20010018378A (en) 2001-03-05

Family

ID=19607813

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019990034325A KR20010018378A (en) 1999-08-19 1999-08-19 Apparatus for detecting sync of transport packet

Country Status (1)

Country Link
KR (1) KR20010018378A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100713468B1 (en) * 2005-09-15 2007-04-30 삼성전자주식회사 Synchronization method and device of moving picture experts group transport stream for reducing initial delay
WO2007114598A1 (en) * 2006-04-04 2007-10-11 Samsung Electronics Co., Ltd. Digital broadcasting system and data processing method thereof
US7876750B2 (en) 2006-04-04 2011-01-25 Samsung Electronics Co., Ltd. Digital broadcasting system and data processing method thereof

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100713468B1 (en) * 2005-09-15 2007-04-30 삼성전자주식회사 Synchronization method and device of moving picture experts group transport stream for reducing initial delay
WO2007114598A1 (en) * 2006-04-04 2007-10-11 Samsung Electronics Co., Ltd. Digital broadcasting system and data processing method thereof
KR100793963B1 (en) * 2006-04-04 2008-01-16 삼성전자주식회사 Digital broadcasting system and method for data processing
US7876750B2 (en) 2006-04-04 2011-01-25 Samsung Electronics Co., Ltd. Digital broadcasting system and data processing method thereof
US7929529B2 (en) 2006-04-04 2011-04-19 Samsung Electronics Co., Ltd. Digital broadcasting system and data processing method thereof
US8223764B2 (en) 2006-04-04 2012-07-17 Samsung Electronics Co., Ltd. Digital broadcasting system and data processing method thereof

Similar Documents

Publication Publication Date Title
US20080186972A1 (en) Data Stream Synchronization
US20090034597A1 (en) Method and apparatus for measuring bit error rate of tuner
JP2006186521A (en) Bit error rate (ber) measuring method and apparatus for tuner
JPH0879228A (en) Synchronizing circuit
KR20010018378A (en) Apparatus for detecting sync of transport packet
JP2004350292A (en) Asynchronous transmission stream receiver of digital broadcast receiving system employing dvb-asi mode and method for transmitting asynchronous transport stream thereof
US20070162168A1 (en) Audio signal delay apparatus and method
KR0175371B1 (en) Apparatus for detecting the sync. byte of transport stream
EP0299265A2 (en) Receiver synchronization in encoder/decoder
JPH10117189A (en) Detector for mpeg-2 transport stream packet and its method
JP3981985B2 (en) Source identification device and source identification method
US20010040934A1 (en) Synchronization detection apparatus and receiving apparatus and methods of the same
JPS62131636A (en) Data transmission system
JPH0832573A (en) Frame synchronization protection circuit
JP3144487B2 (en) DVB-SPI additional information transmission method and transmission system
JP3110387B2 (en) Multi-frame synchronization detector
JP3559840B2 (en) Super frame synchronization signal generation circuit
KR100611997B1 (en) Packetizer for high speed serial bus and method thereof
KR100677195B1 (en) Horizontal synchronous signal detection apparatus for digital television
KR100239469B1 (en) Synchronous recovery apparatus in digital tv
US20070083684A1 (en) Data stream converter and data conversion circuit
JP2715953B2 (en) Synchronous circuit
JP2002176418A (en) Frame synchronization circuit
JPH11239281A (en) Synchronizing signal detector
JPH1115636A (en) Serial/parallel conversion circuit

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application