Http://huai900.bloghome.cn/posts/56665.html
Keyword: Network catvpcm on-demand video spectrum utilization cable TV network video encoding ofdm mpeg Modem Digital TV set-top box
1 Introduction
Settopbox (STB) is the best solution for simulating the transition from a broadcast TV to a digital broadcast TV.
By combining a digital set-top box with an ordinary analog TV, you can implement the digital TV function. The digital set-top box can convert digital TV signals from satellites, the ground, or the cable into the PAL/NTSC signals that can be received by analog TVs. It also supports functions such as on-demand video streaming and Internet browsing. At present, a set-top box with practical development value can be divided into digital satellite receiving (DVB-S) set-top box and digital cable TV (DVB-C) set-top box two kinds.
The cable TV (CATV) network has the advantages of wide coverage, rich Bandwidth Resources, and low construction costs. It can also support traditional analog services and new types of digital on-demand (VOD) and data information services. China has not yet formulated CATV digital television broadcasting standards, but adopted European DVB-C standards. This paper introduces the design principle and solution of the cable TV set-top box system based on DVB-C standard.
2. design principles and key technologies
Cable TV set-top boxes should have the following main functions: receive digital broadcast signals (including audio, video, and data signals on CATV) and on-demand video.
Digital data streams are demodulated, demultiplexing, and decoded by various chips in the set-top box. The schematic diagram 1 is shown in.
2.1 data modulation and demodulation technology
At present, international digital high definition television transmission systems are mainly used in modulation technology: four-phase shift keying (PSK), multi-level orthogonal Amplitude Modulation (MQAM), multi-level residual side band modulation (mvsb) orthogonal Frequency Division Multiplexing modulation (OFDM ). MQAM Modulation is used in cable TV. QAM modulation is a digital amplitude modulation method that saves the frequency band (the spectrum utilization of 16QAM is 4 (bit/s)/Hz, and the spectrum utilization of 64QAM is 6 (bit/s) /Hz), with a high signal-to-noise ratio. The QAM modulation method is often used in medium and high-speed modulation of 2400bit/s and is widely used in downlink transmission of cable TV and ground Broadcast Transmission of HDTV.
2.2 disturbing Technology
The anti-disturbing technology is used to encrypt and decrypt digital programs. The basic principle is to use the encryption and control method of character transmission, and the client uses the IC card for decryption. In the mpeg transmission stream, there are two data streams related to the control word transmission: Authorization Control Information (ecms) and authorization management information (EMMS), which are composed of the Business key (SK) the encrypted control word is transmitted in ecms, which also includes program source, time, content classification, program price, and other program information. The business keys that control word encryption are transmitted in authorization management, and the Business keys must be encrypted by the user's personal distribution key (PDK) before transmission, emms also includes address and user authorization information, such as the programs or time periods that users can watch and the video fees paid by users. The user's personal distribution key (PDK) is stored in the user's smart card. On the user side, the set-top box obtains the PID values of EMM and ECM Based on the cadescriptor In the PMT and CAT tables, filters ecms and Emms from the TS stream, and sends them to smartcard through the smartcard interface. Smart card first reads the user's personal distribution key (PDK), decrypts EMM with PDK, retrieves SK, decrypts ECM with SK, and retrieves CW, and send the CW to the disturbing engine through the smart card interface. The disturbing engine can use the CW interface to interpret the disturbing transmission stream. The anti-disturbing technology is divided into the same-password and multi-password technologies.
Same-Password Technology applies two or more conditional receiving (CA) systems to the same network platform. for cable TV stations, it is a choice of technology and a competitive environment.
Multi-key technology requires the set-top box to adopt CI technology, so that the same set-top box can receive encrypted programs from different CAS. From the user's point of view, there is no restriction on which CA's set-top box to purchase, and the possibility of selecting its ca service is also available.
2.3 reuse and demultiplexing technology
The entire reuse process can be described as two different levels of reuse.
· Program layer multiplexing: video streams, audio streams, and data stream multiplexing form a program transmission bit stream.
· System layer multiplexing: The transfer bit multiplexing of multiple programs is used as system bit streams.
Through these two levels of reuse generated are standard MPEG-2 ts code streams.
The demultiplexing unit consists of a dedicated processor, which is responsible for parsing the TS stream and the packet basic code stream (PES) of the MPEG-2, restoring the code stream required by the audio and video decoder, and marking the transmission error. The transfer system uses a transport stream grouping method defined by the MPEG-2 with a fixed length of 188 bytes that identifies video, audio, or data information through the group ID (PID) in the grouping header. A transmission stream contains one or more programs. Each program is composed of one or more reusable basic streams. When a single program is transmitted over and over again, it constitutes the PID information of the program transmission code stream, the application (such as audio and video) identifier of the transmission code stream, and the relationship between these code streams, it is represented by the program ing table (PMT. The PID Number of the code stream that contains PMT is provided by the Program Association Table (PAT) carried by the system-level control code stream defined by PID = 0 when the program system is reused. Both PMT and pat are part of the program-specific information (PSI) that contains program and system information. Demultiplexing uses the program Association Table (PAT) with PID = 0 to identify the PID of the bit stream carrying the required program ing table (PMT), and then from the program ing table (PMT) to obtain the PID Number that constitutes the basic code stream of the program. You can set the filter in the demultiplexing to receive the transmission code stream of the program. The basic stream of audio and video is transmitted in the form of group basic streams (PES) in the transport layer, perform PES unpack compression audio, video stream data delivery audio, and video decoding unit processing on the selected program.
2.4mpeg-2 Video Encoding
The MPEG-2 video encoding system is composed of a family of systems, each of which has compatibility and commonalities. According to different image definitions, it is divided into four source formats or "level ), from low-definition video tapes (VCR) to High-Definition TVs. In addition to the "level" defined based on the image definition, the DVB video standard also defines the "level" (profile) concept, each different "Grade" provides compression tools and compression algorithms that constitute the encoding system.
2.4.1 "Grade"
At present, there are five "grades" in the MPEG-2 system, each "Grade" will be more complex than its previous "Grade", more perfect, provide more tools, at the same time, the relative price of the equipment is higher.
The initial level of "Grade" is simpleprofile, followed by mainprofile, which adds the two-way coding prediction function, namely B-frames. When the same code stream is used, the quality is better, but the algorithm is more complex and more chips are used. The main-grade decoding chip can be compatible with the encoding of simple decoding grades. This downward compatibility runs through the "grades" of the entire series ".
After the primary level, the signal-to-noise ratio (snrscalable) and space spectrum (spacescalableprofile) are classified. The two "grades" can adjust the relationship between the signal-to-noise ratio and the bit stream rate, and the relationship between the image definition and the bit rate. Due to the complexity of the encoding and the expensive price of the receiving device, the DVB standard currently does not support these two "grades ". The highest level is the high profile. It is compatible with both the previous low level and all functions, and supports simultaneous encoding of multiple lines.
2.4.2 "level"
The dvbmp eg2 standard is divided into many "levels" based on the definition of the image content source from low to high. The lowest lowlevel definition is the 601 recommended by Iu-r-BT and 1/4, that is: 352x288x25 frames/second. Mainlevel fully complies with the Iu-r-BT and 601 standard, that is, 720x576x25 frames/second. High-1440 level uses 1440 samples per line. High level uses a higher sampling method of 1920 entries per line.
At present, the most common MPEG-2 standard in the world is MP @ ML, namely: mainprofle @ Main level, which is the basis of the first generation of digital cable TV and digital satellite TV, the program provider can provide 625-line quality programs, and the aspect ratio of images can be or. As for the bitrate, it is determined by the program provider based on the program quality. The higher the image quality, the higher the bitrate required, and the lower the vice versa.
3. Hardware Implementation
Currently, most of the set-top boxes sold on the market only have a single function that converts digital signals to analog signals that can be received by normal televisions. Apsaravideo for VOD and other services have been activated in certain residential areas in some cities. Most cable TV users in China still use one-way networks, and investment in two-way transformation is relatively large, which cannot be completed in the near future. Therefore, you can use modem to transmit upstream data over a telephone line. This article describes how to use a series of St chips to implement a CATV set-top box, as shown in figure 2.
3.1 front-end
The main function of the front-end module is to reduce the high-frequency signal sent from the cable TV network from the tuner to the intermediate-frequency signal. After filtering and amplification, the signal is sent to the QAM demodulation chip for decoding. The solution uses the mt2040silicontuner tuner of microtune and the stv0297qam demodulation chip of St.
The frontend structure 3 is shown in. Mt2040silicontuner can receive high-frequency signals of 48mhz-860mhz and convert them to the intermediate frequency band required by users. After a surface acoustic filter (sawfilter) and mt1230 intermediate frequency amplifier, the intermediate frequency signal after downgrading is sent to stv0297 for QAM demodulation.
The stv0297 is integrated with a high-performance A/D converter, which can directly sample the input intermediate frequency signal into A/D. Stv0297 also provides two-way PWM output for AGC, one for tuner (agc1), and the other for ifamplifier (agc2) for AGC adjustment of the input signal. The digital signal obtained after A/D conversion is processed by the nequest filter to reach a 0.13-0.15 transmission rolldown coefficient. The energy loss after signal passing through the nequest filter is compensated by the digital AGC module in the chip. In addition, the stv0297 must complete carrier recovery, balancing, decoupling, and FEC decoding. Carrier recovery can eliminate the residual carrier frequency and phase offset. Channel balancing can properly eliminate echo and linear channel distortion. In order to reduce the pulse noise and increase the error correction capability of R-SFEC coding, the data is intertwined after the R-S code of the sending end. Therefore, the R-S decoding at the receiving end must be performed. In stv0297, The Forney deinterlace device is used. The default deinterlace depth is 12 and the unit depth is 17. Because the mpeg data stream header information is very important for correctly receiving signals, stv0297 uses Reed-Solomon error codes to ensure the correctness of the received digital bit streams.
3.2 backend part
The backend Part 4 is shown in. The QAM modem completes Channel Decoding and separates the transmission streams (TS) that contain audio, video, and other data information from the carrier ). A transmission stream generally contains multiple audio streams, video streams, and data information. Demultiplexing is used to differentiate different programs and extract audio streams, video streams, and data streams. The demultiplexing module contains a disturbing engine that can be used to describe the disturbed data at the transmission stream layer and PES layer. The output is the decrypted PES. The video PES stream is sent to the video decoding module, and the MPEG video data is extracted, decoded, and output to the PAL/NTSC encoder. The analog signal is encoded and output by the video output circuit. Audio PES streams are sent to the audio decoding module to extract the MPEG audio data and decode the MPEG audio data. The PCM audio data is output to the PCM decoder, And the PCM decoder outputs the Stereo analog audio signal, output by audio output circuit. For pay-as-you-go TVs, the conditional receiving (CA) module unblocks audio and video streams and uses a smart card containing the user identification and billing functions to ensure normal watching by legitimate users.
Sti5518 uses the os20 real-time embedded operating system (RTOs ). Its feature is that it is not very huge and can be scaled based on user requirements (implemented through Conditional compilation in C), but it must be able to work in real-time environments, and can run in a small memory space. Os20 is an operating system developed by St to support real-time processing. Its CPU is st20c2 + 32-bit processor and supports real-time features such as multitasking, kernel management, process scheduling, and task priority.
4 Conclusion
TV digitalization is the development trend in the future. Although theoretically mature, due to the fact that the existing cable TV network is a one-way network, restrictions on problems such as uplink data return are not allowed. The design method needs to be changed based on the actual situation. The method mentioned in this article that uses MODEM for uplink data return can use the existing cable TV transmission network without the need for large-scale line transformation, it is a more economical and practical solution.