CN112019885A - ECM data verification method and device based on digital television and computer equipment - Google Patents
ECM data verification method and device based on digital television and computer equipment Download PDFInfo
- Publication number
- CN112019885A CN112019885A CN202010808427.XA CN202010808427A CN112019885A CN 112019885 A CN112019885 A CN 112019885A CN 202010808427 A CN202010808427 A CN 202010808427A CN 112019885 A CN112019885 A CN 112019885A
- Authority
- CN
- China
- Prior art keywords
- data
- ecm
- crc
- pes
- value
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000013524 data verification Methods 0.000 title claims description 24
- 125000004122 cyclic group Chemical group 0.000 claims abstract description 11
- 238000012937 correction Methods 0.000 claims abstract description 9
- 238000004590 computer program Methods 0.000 claims description 7
- 238000012545 processing Methods 0.000 claims description 2
- 230000002159 abnormal effect Effects 0.000 abstract description 8
- 238000012795 verification Methods 0.000 abstract description 3
- 238000013475 authorization Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 6
- 238000007726 management method Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 238000013461 design Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/238—Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
- H04N21/2383—Channel coding or modulation of digital bit-stream, e.g. QPSK modulation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0056—Systems characterized by the type of code used
- H04L1/0061—Error detection codes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/266—Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
- H04N21/26606—Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel for generating or managing entitlement messages, e.g. Entitlement Control Message [ECM] or Entitlement Management Message [EMM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/438—Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
- H04N21/4382—Demodulation or channel decoding, e.g. QPSK demodulation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/462—Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
- H04N21/4623—Processing of entitlement messages, e.g. ECM [Entitlement Control Message] or EMM [Entitlement Management Message]
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention provides an ECM data checking method based on a digital television, which is applied to a sending end and comprises the following steps: acquiring ECM data to be transmitted; generating a first CRC check value for the ECM data; when the ECM data passes through a packer to generate a PES (packet error correction) data packet, setting a CRC (cyclic redundancy check) flag bit in the PES data packet to a first preset value, and setting a CRC check bit in the PES data packet to the first CRC check value; and encapsulating the PES data packet into target TS data and then sending the target TS data to a receiving end, so that the receiving end checks the ECM data according to the first preset value and the first CRC check value. The invention intercepts the data failed in verification by verifying the carried ECM data, prevents the receiving end from inputting wrong ECM data into the conditional access subsystem for analysis, avoids abnormal information in a digital television screen and improves the experience of users.
Description
Technical Field
The invention relates to the technical field of digital televisions, in particular to an ECM data verification method, an ECM data verification device and computer equipment based on a digital television.
Background
With the development of video broadcasting, viewers are confronted with the selection of more and more digital television programs, and broadcasters require to charge certain viewing fees for users due to the increase of investment cost, a Conditional Access (CA system for short) is a system for implementing Access control on certain broadcast services, and the main function is to ensure that only users who pay or are about to pay can watch the selected television programs; authorization Control information (ECM) plays a crucial role in CA system.
When the weather condition is not good, the probability of receiving wrong ECM data is increased by the satellite digital television receiver; because the error correction capability of the ECM data exceeds the error correction capability of the current chip design in channel transmission, the wrong ECM data cannot be corrected in time, and when the wrong ECM data is sent to a CA system for analysis, abnormal prompt information can be frequently displayed in the digital television, and the experience of a user is influenced.
Therefore, the prior art cannot timely and effectively correct the ECM data, so that abnormal prompt information is frequently displayed in the satellite digital television, and the experience of a user is influenced.
Disclosure of Invention
Aiming at the defects in the prior art, the ECM data verification method, the device and the computer equipment based on the digital television solve the problem that abnormal prompt information is frequently displayed in a satellite digital television due to the fact that ECM data cannot be timely and effectively corrected in the prior art, and improve user experience.
In a first aspect, the present invention provides an ECM data checking method based on a digital television, which is applied to a transmitting end, and the method includes: acquiring ECM data to be transmitted; generating a first CRC check value for the ECM data; when the ECM data passes through a packer to generate a PES (packet error correction) data packet, setting a CRC (cyclic redundancy check) flag bit in the PES data packet to a first preset value, and setting a CRC check bit in the PES data packet to the first CRC check value; and encapsulating the PES data packet into target TS data and then sending the target TS data to a receiving end, so that the receiving end checks the ECM data according to the first preset value and the first CRC check value.
Optionally, encapsulating the PES packet into target TS data and sending the target TS data to a receiving end, where the method includes: generating first TS data by the PES data packet through a TS multiplexer; setting an error code indicating bit in the first TS data as a first identifier to obtain second TS data; and sending the second TS data as the target TS data to the receiving end.
Optionally, the checking, by the receiver, the ECM data according to the first preset value and the first CRC check value includes: when the receiving end detects that the CRC flag bit in the PES data packet is a first preset value, generating a second CRC value for the ECM data; comparing the first CRC check value to the second CRC check value; determining that the ECM data is correct data when the first CRC check value is the same as the second CRC check value; and when the first CRC check value is not the same as the second CRC check value, judging the ECM data as error data.
Optionally, the method further comprises: when the ECM data is judged to be correct data, a filter of the receiving end inputs the ECM data into a CA system for analysis according to the first identification; and when the ECM data is judged to be error data, setting error code indicating bits in the target TS data as second identifications, and enabling a filter at the receiving end to intercept the ECM data according to the second identifications.
In a second aspect, the present invention provides an ECM data verification method based on a digital television, which is applied to a receiving end, and the method includes: analyzing target TS data from a sending end to obtain a PES data packet, wherein the PES data packet comprises ECM data of the sending end and a first CRC (cyclic redundancy check) value generated by the sending end according to the ECM data; when the CRC flag bit in the PES data packet is detected to be a first preset value, generating a second CRC check value for the ECM data; judging whether the first CRC check value is the same as the second CRC check value; when the first CRC check value is the same as the second CRC check value, determining the ECM data as correct data.
Optionally, after determining that the ECM data is correct data, the method further comprises: a filter in the receiving end inputs the ECM data into a CA system for analysis according to a first identifier in the target TS data; and the first identification is the value of an error code indicating bit in the target TS data.
Optionally, the method further comprises: and when the first CRC value is different from the second CRC value, setting an error code indicating bit in the target TS data as a second identifier, so that a filter at the receiving end intercepts the ECM data according to the second identifier.
In a third aspect, the present invention provides an ECM data calibration apparatus based on a digital television, which is applied to a transmitting end, and the apparatus includes: the ECM data acquisition module is used for acquiring ECM data to be transmitted; a first CRC check value generation module for generating a first CRC check value from the ECM data; the setting module is used for setting a CRC (cyclic redundancy check) flag bit in a PES (packet data processing) data packet to a first preset value and setting a CRC check bit in the PES data packet to the first CRC check value when the ECM data passes through a packer to generate the PES data packet; and the sending module is used for encapsulating the PES data packet into target TS data and sending the target TS data to a receiving end, so that the receiving end checks the ECM data according to the first preset value and the first CRC value.
In a fourth aspect, the present invention provides an ECM data calibration apparatus based on a digital television, which is applied to a receiving end, and the apparatus includes: the system comprises an analysis module, a first CRC module and a second CRC module, wherein the analysis module is used for analyzing target TS data from a sending end to obtain a PES data packet, and the PES data packet comprises ECM data of the sending end and a first CRC value generated by the sending end according to the ECM data; the second CRC value generation module is used for generating a second CRC value for the ECM data when the CRC flag bit in the PES data packet is detected to be a first preset value; the judging module is used for judging whether the first CRC check value is the same as the second CRC check value; a determination module to determine the ECM data as correct data when the first CRC check value is the same as the second CRC check value.
In a fifth aspect, the present invention provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the computer program to perform the steps of: acquiring ECM data to be transmitted; generating a first CRC check value for the ECM data; when the ECM data passes through a packer to generate a PES (packet error correction) data packet, setting a CRC (cyclic redundancy check) flag bit in the PES data packet to a first preset value, and setting a CRC check bit in the PES data packet to the first CRC check value; and encapsulating the PES data packet into target TS data and then sending the target TS data to a receiving end, so that the receiving end checks the ECM data according to the first preset value and the first CRC check value.
Compared with the prior art, the invention has the following beneficial effects:
when acquiring the ECM data to be transmitted, a transmitting end in the ECM data checking method based on the digital television obtains a first CRC check value of the ECM data by a cyclic redundancy check code checking method, and when packetizing the ECM data into a PES packet by a PES packetizer, sets a CRC flag bit in the PES packet to a first preset value, that is, sets a PES _ CRC _ flag field value in a PES _ packet table to 1, and sets a CRC check bit in the PES packet to the first CRC check value, that is, sets a selectable parameter previous _ PES _ packet _ field value containing 4 bytes to the first CRC check value; and then encapsulating the PES data packet into a transport stream through a TS multiplexer and sending the transport stream to a receiving end, so that the ECM data carried by the receiving end is verified after being analyzed by the demultiplexer according to the field value of a PES _ CRC _ flag in the PES data packet and the field value of an optional parameter previous _ PES _ packet _ CRC, the data failed in verification is intercepted, the receiving end is prevented from inputting wrong ECM data into a conditional access subsystem for analysis, abnormal information in a digital television screen is avoided, and the experience of a user is improved.
Drawings
Fig. 1 is a schematic diagram of a framework of a conditional access system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of an ECM data verification method based on a digital television according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another digital television-based ECM data verification method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an ECM data verification apparatus based on a digital television according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another digital television-based ECM data verification apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Before describing the present invention in detail, a background description will be given of the conditional access system and ECM data related to the present invention: fig. 1 is a schematic diagram of a framework of a conditional access system according to an embodiment of the present invention, and as shown in fig. 1, the conditional access system includes a scrambler, a descrambler, an encryptor, a control word generator, a user authorization control system, a user authorization management system, and a conditional access subsystem; the conditional access sub-system decodes the electronic key and recovers the information required for controlling the descrambling sequence; the Control Word (CW) is a key used in the decoder; the authorization control information (ECM) is a special form of electronic key signal and channel addressing information, the transmitting end ECM is encrypted and then transmitted together with the signal, and the receiving end ECM is used for controlling the descrambler; an Entitlement Management Message (EMM) is a message for an authorized user to descramble a certain service, the EMM at a transmitting end is transmitted together with a signal after being encrypted, and the EMM at a receiving end is used for turning on/off a single decoder or a group of descramblers; the authorization management system sends instructions to the authorization control system according to the conditions of the users for ordering and watching programs, determines which users can be authorized to watch which programs and receive which services, and meanwhile, the authorization management system sends bills to the users. The authorization control system generates a service key according to the instruction of the user authorization management system, and determines which users watch which programs and enjoy which services.
The working principle of the conditional access system is as follows: at the transmitting end of the signal, a control word CW is first generated by a control word generator and supplied to the scrambler and encryptor a, the CW typically being 60 bits long and changing every 2 to 10 seconds. The scrambler performs scrambling operation on the TS data stream from the multiplexer according to the CW. And the scrambler outputs the TS data stream after scrambling, and CW is a key used by the scrambler for scrambling. After the encryptor A receives the CW, encryption operation is carried out on the CW according to a service Key (Service Key) provided by a user authorization control system, and the encryptor A outputs an encrypted control word, namely the ECM. The service key is provided to the encryptor B at the same time, and the difference between the encryptor B and the encryptor a is that the encryptor B can generate the key by itself and can encrypt the service key sent by the authorization control system by using the key. The encryptor B outputs the encrypted service key, namely the EMM. Then, the ECM and EMM information PES packetizer generates PES data, which are sent to a TS multiplexer, and packetized into a TS data stream output together with the image, sound and data signal bit stream sent to the same multiplexer.
At the receiving end of the signal, the scrambled bit stream is obtained after demodulation, and because the CW is not recovered in the scrambled bit stream at the initial moment, the scrambled bit stream is sent to the demultiplexer without being descrambled by the descrambler. The ECM and EMM signals are placed in fixed positions in the header of the packet so that the demultiplexer can easily decode the ECM and EMM signals. The ECM and EMM signals from the demultiplexer are sent to a decryptor a and a decryptor B, respectively, in a Smart Card (Smart Card). The decryptor A and the decryptor B work together with the safety processor in the smart card to recover the control word CW and send the CW to the descrambler. The above process of obtaining the CW is only performed at the moment of initialization, once the CW is correctly obtained, the descrambler can resume normal operation, and descramble the demodulated bit stream to restore the normal bit stream.
Therefore, the ECM data has a crucial control function in the conditional access system, but if packet loss or errors occur in the ECM data in the satellite transmission process, because the end of the ECM Section data has no 4-byte CRC check value, the ECM Section data exceeds the error correction capability of chip design, the error data cannot be intercepted by CRC in the Section, the conditional access subsystem cannot analyze correct control words, and then abnormal information is frequently displayed in a digital television screen, which affects the experience of a user.
In order to solve the above problems, the present invention provides an ECM data verification method based on a digital television, and fig. 2 is a schematic flow chart of the ECM data verification method based on a digital television according to an embodiment of the present invention; referring to fig. 2, when the ECM data verification method based on the digital television is applied to a transmitting end, the method specifically includes the following steps:
step S101, ECM data to be transmitted is acquired.
Step S102 generates a first CRC check value from the ECM data.
Step S103, when the ECM data passes through the packer to generate a PES data packet, setting a CRC flag bit in the PES data packet to be a first preset value, and setting a CRC check bit in the PES data packet to be the first CRC check value.
And step S104, encapsulating the PES data packet into target TS data and sending the target TS data to a receiving end, so that the receiving end checks the ECM data according to the first preset value and the first CRC check value.
It should be noted that, when acquiring ECM data to be transmitted, a transmitting end in this embodiment obtains a first CRC check value of the ECM data by a cyclic redundancy check code check method, and when packetizing the ECM data into a PES packet by a PES packetizer, sets a CRC flag bit in the PES packet to a first preset value, that is, sets a PES _ CRC _ flag field value in a PES _ packet table to 1, and sets a CRC check bit in the PES packet to the first CRC check value, that is, sets a value of a previous _ PES _ packet _ CRC field including 4 bytes to the first CRC check value; and then encapsulating the PES data packet into a transport stream through a TS multiplexer and sending the transport stream to a receiving end, so that the ECM data carried by the receiving end is verified after being analyzed by the demultiplexer according to the field value of a PES _ CRC _ flag in the PES data packet and the field value of an optional parameter previous _ PES _ packet _ CRC, the data failed in verification is intercepted, the receiving end is prevented from inputting wrong ECM data into a conditional access subsystem for analysis, abnormal information in a digital television screen is avoided, and the experience of a user is improved.
In another embodiment of the present invention, encapsulating the PES packet into target TS data and transmitting the target TS data to a receiving end includes: generating first TS data by the PES data packet through a TS multiplexer; setting an error code indicating bit in the first TS data as a first identifier to obtain second TS data; and sending the second TS data as the target TS data to the receiving end.
In an embodiment of the present invention, the checking, by the receiving end, the ECM data according to the first preset value and the first CRC check value includes: when the receiving end detects that the CRC flag bit in the PES data packet is a first preset value, generating a second CRC value for the ECM data; comparing the first CRC check value to the second CRC check value; determining that the ECM data is correct data when the first CRC check value is the same as the second CRC check value; and when the first CRC check value is not the same as the second CRC check value, judging the ECM data as error data.
In the embodiment of the invention, when the ECM data is judged to be correct data, a filter at the receiving end inputs the ECM data into a CA system for analysis according to the first identification; and when the ECM data is judged to be error data, setting error code indicating bits in the target TS data as second identifications, and enabling a filter at the receiving end to intercept the ECM data according to the second identifications.
It should be noted that, in this embodiment, the sending end mainly packetizes ECM data, the receiving end mainly performs check and interception on the received ECM data, in order to enable the receiving end to obtain the ECM data to be checked and the check efficiency of the receiving end in time, when packetizing PES data, setting a field value of PES _ CRC _ flag to 1 indicates that the ECM data carried in the PES packet needs to be checked, when the field value of PES _ CRC _ flag is 0, it indicates that the ECM data carried in the PES packet does not need to be checked, therefore, when the receiving end detects that the field value of PES _ CRC _ flag is 1, performing CRC check on parsed ECM data to obtain a second CRC check value, comparing a first CRC check value generated by the sending end according to the ECM data with a second CRC check value generated by the receiving end according to the received ECM data, when the two CRC check values are the same, and judging the ECM data to be correct data, and judging the ECM data to be error data when the two CRC check values are different.
Further, in order to enable a filter in a receiving end to quickly and effectively intercept error data, when a PES (packet error correction) data packet is packed into TS (transport stream) data by a sending end, an error code indicating bit TEI (test error indicator) in a TS data packet header is set to be 0, and when the receiving end judges that the ECM data is correct, the filter directly sends the TS data carrying the ECM data into a CA (conditional access) system for analysis; when the receiving end judges that the ECM data is error data, the receiving end changes an error code indicating bit TEI in a TS data packet head into 1, so that a filter intercepts the TS data carrying the ECM data and discards the TS data.
Fig. 3 is a schematic flow chart of another digital television-based ECM data verification method according to an embodiment of the present invention; referring to fig. 3, when the ECM data verification method based on the digital television is applied to a receiving end, the method specifically includes the following steps:
step S201, analyzing target TS data from a sending end to obtain a PES packet, where the PES packet includes ECM data of the sending end and a first CRC check value generated by the sending end according to the ECM data.
Step S202, when the CRC flag bit in the PES data packet is detected to be a first preset value, generating a second CRC check value for the ECM data.
Step S203, determining whether the first CRC value is the same as the second CRC value, performing step S204 when the first CRC value is the same as the second CRC value, and performing step S205 when the first CRC value is not the same as the second CRC value.
Step S204, the filter in the receiving end inputs the ECM data into a CA system for analysis according to the first identification in the target TS data.
Step S205, setting the error code indicator bit in the target TS data as a second identifier, so that the filter at the receiving end intercepts the ECM data according to the second identifier.
It should be noted that the specific working process of this embodiment is as follows:
(1) the PES _ CRC _ flag in the PES is set to 1 when the ECM data is packetized, indicating that the CRC field is present in the PES packet for parsing.
(2) PES packets, which pack ECM data, contain an optional parameter previous _ PES _ packet _ CRC of 4 bytes, which is used to compare if ECM data transmission is erroneous.
(3) When the PES data of the ECM are filtered out, a CRC Actual value CRC Actual is calculated for the received ECM data.
(4) The CRC _ Actual is compared with the previous _ PES _ packet _ CRC in the PES packet and if the values are not equal, it indicates that the data transmission has been in error and that the wrong ECM data was received.
(5) Setting the TEI value in the header of the frame-changed TS to be 1, judging the TEI value in the header of the TS by the filter Demux, and discarding the TS packet with the TEI value of 1.
(6) If the TS packet with TEI value of 1 is discarded in step 5, the wrong ECM Section data will not be sent to the CA system, and the CA system will not analyze the wrong data and will not have CA abnormal prompt information to pop up.
Fig. 4 is a schematic structural diagram of an ECM data verification apparatus based on a digital television according to an embodiment of the present invention; as shown in fig. 4, when the ECM data verification apparatus based on a digital television according to the embodiment of the present invention is applied to a transmitting end, the apparatus includes:
an ECM data acquisition module 410 for acquiring ECM data to be transmitted;
a first CRC check value generation module 420 for generating a first CRC check value from the ECM data;
a setting module 430, configured to set a CRC flag bit in a PES packet to a first preset value and set a CRC check bit in the PES packet to the first CRC check value when the ECM data passes through a packetizer to generate the PES packet;
a sending module 440, configured to encapsulate the PES packet into target TS data and send the target TS data to a receiving end, so that the receiving end checks the ECM data according to the first preset value and the first CRC check value.
Fig. 5 is a schematic structural diagram of another digital television-based ECM data verification apparatus according to an embodiment of the present invention, and as shown in fig. 5, when the digital television-based ECM data verification apparatus according to the embodiment of the present invention is applied to a receiving end, the apparatus includes:
an analyzing module 510, configured to analyze target TS data from a sending end to obtain a PES packet, where the PES packet includes ECM data of the sending end and a first CRC check value generated by the sending end according to the ECM data;
a second CRC check value generating module 520, configured to generate a second CRC check value from the ECM data when it is detected that the CRC flag in the PES packet is the first preset value;
a determining module 530, configured to determine whether the first CRC check value is the same as the second CRC check value;
a determining module 540, configured to determine that the ECM data is correct data when the first CRC check value is the same as the second CRC check value.
In another embodiment of the present invention, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing the computer program to perform the steps of: acquiring ECM data to be transmitted; generating a first CRC check value for the ECM data; when the ECM data passes through a packer to generate a PES (packet error correction) data packet, setting a CRC (cyclic redundancy check) flag bit in the PES data packet to a first preset value, and setting a CRC check bit in the PES data packet to the first CRC check value; and encapsulating the PES data packet into target TS data and then sending the target TS data to a receiving end, so that the receiving end checks the ECM data according to the first preset value and the first CRC check value.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Claims (10)
1. An ECM data verification method based on a digital television is applied to a transmitting end, and the method comprises the following steps:
acquiring ECM data to be transmitted;
generating a first CRC check value for the ECM data;
when the ECM data passes through a packer to generate a PES (packet error correction) data packet, setting a CRC (cyclic redundancy check) flag bit in the PES data packet to a first preset value, and setting a CRC check bit in the PES data packet to the first CRC check value;
and encapsulating the PES data packet into target TS data and then sending the target TS data to a receiving end, so that the receiving end checks the ECM data according to the first preset value and the first CRC check value.
2. The method for checking ECM data according to claim 1, wherein encapsulating the PES packet into target TS data and transmitting the target TS data to a receiving end comprises:
generating first TS data by the PES data packet through a TS multiplexer;
setting an error code indicating bit in the first TS data as a first identifier to obtain second TS data;
and sending the second TS data as the target TS data to the receiving end.
3. The method for checking ECM data according to claim 2, wherein the checking the ECM data by the receiver according to the first preset value and the first CRC check value comprises:
when the receiving end detects that the CRC flag bit in the PES data packet is a first preset value, generating a second CRC value for the ECM data;
comparing the first CRC check value to the second CRC check value;
determining that the ECM data is correct data when the first CRC check value is the same as the second CRC check value;
and when the first CRC check value is not the same as the second CRC check value, judging the ECM data as error data.
4. The digital television-based ECM data verification method of claim 3, further comprising:
when the ECM data is judged to be correct data, a filter of the receiving end inputs the ECM data into a CA system for analysis according to the first identification;
and when the ECM data is judged to be error data, setting error code indicating bits in the target TS data as second identifications, and enabling a filter at the receiving end to intercept the ECM data according to the second identifications.
5. An ECM data checking method based on a digital television is applied to a receiving end, and the method comprises the following steps:
analyzing target TS data from a sending end to obtain a PES data packet, wherein the PES data packet comprises ECM data of the sending end and a first CRC (cyclic redundancy check) value generated by the sending end according to the ECM data;
when the CRC flag bit in the PES data packet is detected to be a first preset value, generating a second CRC check value for the ECM data;
judging whether the first CRC check value is the same as the second CRC check value;
when the first CRC check value is the same as the second CRC check value, determining the ECM data as correct data.
6. The digital television-based ECM data verification method of claim 5, wherein after determining that the ECM data is correct data, the method further comprises:
a filter in the receiving end inputs the ECM data into a CA system for analysis according to a first identifier in the target TS data;
and the first identification is the value of an error code indicating bit in the target TS data.
7. The digital television-based ECM data verification method of claim 6, further comprising:
and when the first CRC value is different from the second CRC value, setting an error code indicating bit in the target TS data as a second identifier, so that a filter at the receiving end intercepts the ECM data according to the second identifier.
8. An ECM data checking device based on a digital television is characterized in that the device is applied to a transmitting end and comprises:
the ECM data acquisition module is used for acquiring ECM data to be transmitted;
a first CRC check value generation module for generating a first CRC check value from the ECM data;
the setting module is used for setting a CRC (cyclic redundancy check) flag bit in a PES (packet data processing) data packet to a first preset value and setting a CRC check bit in the PES data packet to the first CRC check value when the ECM data passes through a packer to generate the PES data packet;
and the sending module is used for encapsulating the PES data packet into target TS data and sending the target TS data to a receiving end, so that the receiving end checks the ECM data according to the first preset value and the first CRC value.
9. An ECM data verification apparatus based on digital tv, applied to a receiving end, the apparatus comprising:
the system comprises an analysis module, a first CRC module and a second CRC module, wherein the analysis module is used for analyzing target TS data from a sending end to obtain a PES data packet, and the PES data packet comprises ECM data of the sending end and a first CRC value generated by the sending end according to the ECM data;
the second CRC value generation module is used for generating a second CRC value for the ECM data when the CRC flag bit in the PES data packet is detected to be a first preset value;
the judging module is used for judging whether the first CRC check value is the same as the second CRC check value;
a determination module to determine the ECM data as correct data when the first CRC check value is the same as the second CRC check value.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented when the computer program is executed by the processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010808427.XA CN112019885A (en) | 2020-08-12 | 2020-08-12 | ECM data verification method and device based on digital television and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010808427.XA CN112019885A (en) | 2020-08-12 | 2020-08-12 | ECM data verification method and device based on digital television and computer equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112019885A true CN112019885A (en) | 2020-12-01 |
Family
ID=73504265
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010808427.XA Pending CN112019885A (en) | 2020-08-12 | 2020-08-12 | ECM data verification method and device based on digital television and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112019885A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1351445A (en) * | 2000-08-25 | 2002-05-29 | 索尼公司 | Information processing device, method and recording media |
CN102098539A (en) * | 2010-12-11 | 2011-06-15 | 福州大学 | Conditional access system for cable television |
CN104320673A (en) * | 2014-10-30 | 2015-01-28 | 山东泰信电子股份有限公司 | Method for program content illegal tampering preventing |
CN108847248A (en) * | 2018-06-15 | 2018-11-20 | 珠海市杰理科技股份有限公司 | Bluetooth equipment audio-frequency processing method, system, readable storage medium storing program for executing and bluetooth equipment |
US20190132371A1 (en) * | 2017-11-02 | 2019-05-02 | Arris Enterprises Llc | Approach to live multi-camera streaming of events with hand-held cameras |
CN110312147A (en) * | 2019-06-12 | 2019-10-08 | 高新兴科技集团股份有限公司 | Method, system and the storage medium of business data transmission |
-
2020
- 2020-08-12 CN CN202010808427.XA patent/CN112019885A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1351445A (en) * | 2000-08-25 | 2002-05-29 | 索尼公司 | Information processing device, method and recording media |
CN102098539A (en) * | 2010-12-11 | 2011-06-15 | 福州大学 | Conditional access system for cable television |
CN104320673A (en) * | 2014-10-30 | 2015-01-28 | 山东泰信电子股份有限公司 | Method for program content illegal tampering preventing |
US20190132371A1 (en) * | 2017-11-02 | 2019-05-02 | Arris Enterprises Llc | Approach to live multi-camera streaming of events with hand-held cameras |
CN108847248A (en) * | 2018-06-15 | 2018-11-20 | 珠海市杰理科技股份有限公司 | Bluetooth equipment audio-frequency processing method, system, readable storage medium storing program for executing and bluetooth equipment |
CN110312147A (en) * | 2019-06-12 | 2019-10-08 | 高新兴科技集团股份有限公司 | Method, system and the storage medium of business data transmission |
Non-Patent Citations (1)
Title |
---|
侯正信,吕卫,褚晶辉: "《电视原理第7版》", 30 September 2016 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7684567B2 (en) | Smartcard dynamic management | |
US7970138B2 (en) | Method and apparatus for supporting broadcast efficiency and security enhancements | |
US8831219B2 (en) | Method of transmitting an additional piece of data to a reception terminal | |
US20070169173A1 (en) | System and method for providing a secure environment for performing conditional access functions for a set top box | |
US20090150673A1 (en) | Authentication of Entitlement Authorization in Conditional Access Systems | |
US20050246735A1 (en) | Methods of broadcasting and reception of radio or television data, and also transmitter and receiver for implementing of these methods | |
KR101833214B1 (en) | Validation and fast cahnnel change for broadcast system | |
US20060095935A1 (en) | Method for receiving digital broadcast signal | |
KR20100044969A (en) | System apparatus and method for conditional broadcast reception without cablecard | |
US8885816B2 (en) | Method for detecting an illicit use of a security processor | |
EP1878159A1 (en) | A conditional access system in digital multimedia broadcasting system and method thereof | |
EP1624692A1 (en) | Forcing an action in a terminal | |
CN112019885A (en) | ECM data verification method and device based on digital television and computer equipment | |
US20060031871A1 (en) | Forcing an action in a terminal | |
JPH07131443A (en) | Repeating installation | |
KR101980928B1 (en) | Method, cryptographic system and security module for descrambling content packets of a digital transport stream | |
US20160241900A1 (en) | Descrambling of data according to the properties of the control words | |
JP5098292B2 (en) | Content decryption key extraction method and content reception device | |
JP6440302B2 (en) | Receiving apparatus, broadcasting system, receiving method and program | |
JP2008011406A (en) | Receiving apparatus and transmitting apparatus | |
KR100705978B1 (en) | method and device for readjusting timeline | |
JP6374694B2 (en) | Transmitter and receiver | |
JP6374693B2 (en) | Transmitter and receiver | |
JP5180728B2 (en) | Broadcast receiving apparatus and control method thereof | |
JP2008136108A (en) | Digital broadcast distribution system, and its transmitting/receiving device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201201 |