Digital signal systems and their input source adaptation methods
By adapting the input source of the digital signal system, the modified program data is automatically identified and reused, thus solving the playback anomaly problem caused by changes in the input source and reducing maintenance costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HUIZHOU WELLAV TECH
- Filing Date
- 2022-12-26
- Publication Date
- 2026-06-30
Smart Images

Figure CN116320598B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of digital signal processing, and in particular to a digital signal system and its input source adaptation method. Background Technology
[0002] In domestic digital television usage scenarios, there is often a single RF antenna input signal to the digital signal system, which then multiplexes the signal before sending it to the terminal device. If the program data from the input source changes, a mismatch between the program list and the received data can cause playback abnormalities at the terminal. To restore normal playback, it's necessary to rescan for channels on the digital signal system, re-multiplex the signal, and then have the terminal device rescan for channels again. In scenarios like schools, hospitals, and hotels, maintenance personnel might need to travel to the affected equipment room every one or two months to perform these operations, significantly increasing maintenance costs.
[0003] In another approach, operators can modify the PSI / SI table in the input source's TS at the signal transmitter, allowing existing front-end devices to play without re-scanning for stations. However, regardless of the method, any change in the input signal of the input source will cause many digital signal systems to become incompatible, resulting in terminal devices being unable to play normally. This not only inconveniences users and maintenance personnel but also increases the maintenance costs of digital signal systems. Summary of the Invention
[0004] This application provides a digital signal system and its input source adaptation method, which can reduce the maintenance cost of the digital signal system.
[0005] This application discloses an input source adaptation method for a digital signal system, which is applied to a digital signal system for acquiring input signals from an input source. The method includes:
[0006] Obtain the TS packets of the input signal and extract the program association table from the TS packets;
[0007] The program association table is parsed to obtain program mapping data, which includes at least the associated program number.
[0008] Identify the program number and determine whether the current program number and the corresponding program mapping data have been modified according to a preset database;
[0009] If so, the program association table is reused based on the modified program number and / or program mapping data.
[0010] In one embodiment, the program mapping data further includes at least one of a video PID code, an audio PID code, and a clock PID code.
[0011] In one embodiment, the database includes raw data codes and monitoring data codes with mapping relationships;
[0012] The reuse of the program association table based on the modified program number and / or program mapping data includes:
[0013] The modified program number and / or program mapping data obtained through parsing will be used as the monitoring data code;
[0014] The original data code is reused based on the mapping relationship between the original data code and the monitoring data code.
[0015] In one embodiment, the raw data code is obtained from an input source and is associated with a program association table of the current input signal.
[0016] In one embodiment, determining whether the current program number and the corresponding program mapping data have been modified according to a preset database includes:
[0017] Several program numbers are obtained by filtering PID codes;
[0018] Determine whether the program number is the same as the program number in the database;
[0019] If they are the same, then determine whether the program mapping data associated with the program number has been modified;
[0020] If they are not the same, continue filtering the received PID codes.
[0021] In one embodiment, the program mapping data includes a corresponding checksum;
[0022] The step of determining whether the current program number and the corresponding program mapping data have been modified according to a preset database includes:
[0023] The verification code of the program mapping data is compared with the verification code of the program mapping data corresponding to the program number in the database;
[0024] If a discrepancy is found during the comparison, it is determined that the program mapping data has been modified.
[0025] In one embodiment, acquiring the TS packets of the input signal and extracting the program association table from the TS packets includes:
[0026] The TS packets of the input signal are monitored and acquired in real time, and the program association table in each TS packet is extracted.
[0027] This application also provides a digital signal system for acquiring an input signal from an input source, the system comprising:
[0028] The monitoring module is used to acquire the TS packets of the input signal, extract the program association table from the TS packets; parse the program association table to obtain program mapping data, the program mapping data including at least the associated program number; identify the program number, and determine whether the current program number and the corresponding program mapping data have been modified according to a preset database; and
[0029] The reuse module is used to reuse the program association table according to the modified program number and / or program mapping data if the current program number and the corresponding program mapping data are modified.
[0030] In one embodiment, the program mapping data further includes at least one of a video PID code, an audio PID code, and a clock PID code;
[0031] The multiplexing module is also used for:
[0032] Replace the modified program number and / or program mapping data with data from a preset database;
[0033] The replaced data can be reused.
[0034] In one embodiment, the database includes raw data codes and monitoring data codes with mapping relationships;
[0035] The reuse of the program association table based on the modified program number and / or program mapping data includes:
[0036] The modified program number and / or program mapping data obtained through parsing will be used as the monitoring data code;
[0037] The original data code is reused based on the mapping relationship between the original data code and the monitoring data code.
[0038] As described above, the digital signal system and its input source adaptation method of this application obtain a program association table in the TS packet by parsing the TS packet of the input signal obtained from the input source, identify the program mapping data in the program association table, and reuse the modified program mapping data. This digital signal system and its input source adaptation method can automatically perform multiplexing operations on changed program data, enabling the terminal device to play programs normally without modifying the PSI / SI table in the TS, thereby achieving maintenance-free equipment and reducing the maintenance cost of the digital signal system. Attached Figure Description
[0039] Figure 1 This is a schematic diagram of the structure of a digital signal system provided in an embodiment of this application.
[0040] Figure 2 This is a schematic diagram illustrating the implementation process of the input source adaptation method for a digital signal system provided in an embodiment of this application.
[0041] Figure 3 This is a schematic diagram of the data structure of the database provided in an embodiment of this application.
[0042] Figure 4 This is a schematic diagram illustrating the implementation process of reusing the program association table as provided in an embodiment of this application. Detailed Implementation
[0043] The preferred embodiments of this application will now be described in detail with reference to the accompanying drawings, so that the advantages and features of this application can be more easily understood by those skilled in the art, thereby providing a clearer definition of the scope of protection of this application.
[0044] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection, an electrical connection, or a connection that allows communication between them; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication between two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0045] Please see Figure 1 The figure shows the structure of a digital signal system provided in an embodiment of this application.
[0046] like Figure 1 As shown, the digital signal system 10 includes a monitoring module 11 and a multiplexing module 12. The input terminal of the monitoring module 11 is connected to an input source, thereby acquiring an input signal from the input source. This input signal can be a TS stream in the digital television field, or other audio and video data related to the digital television field. The monitoring module 11 can monitor and analyze the input signal in real time. The digital signal system 10 can be a front-end system 10 of a terminal device. The front-end system 10 is responsible for signal transmission and decoding, and transmits the decoded signal to the digital signal system 10.
[0047] Please see Figure 2 The figure shows the flow of the input source adaptation method for digital signal systems provided in the embodiments of this application.
[0048] like Figure 2 As shown, the input source adaptation method includes:
[0049] 101. Obtain the TS packets of the input signal and extract the program association table from the TS packets.
[0050] The program association table can be a "PAT (Program Association Table)" within a TS packet. This PAT is contained in every TS packet or certain specific TS packets, and its specific location depends on the encapsulation format of the different TS packets. Alternatively, the program association table can be a program association file named in other ways to store the association structure between different program numbers and different program data.
[0051] In one embodiment, the program association table in the TS packet can be extracted based on the data characteristics of the PAT. For example, if the PID code of the PAT is set to 0, while the PID codes of other program data are other parameters, the data with PID 0 can be extracted separately to obtain the PAT PID information.
[0052] Of course, PAT can be extracted by recognizing other feature codes, and there are no restrictions on the specific extraction methods.
[0053] In one implementation, the TS packets of the input signal can be monitored and acquired in real time, and the program association table in each TS packet can be extracted. By monitoring in real time and obtaining the program association table, the digital signal system can detect changes in a timely manner, ensuring normal playback on the terminal equipment.
[0054] 102. Parse the program association table to obtain program mapping data. The program mapping data shall include at least the associated program number.
[0055] The program mapping data can be a "PMT (Program Map Table)". This program mapping data can include one or more program data, such as program numbers. The program number can be set in the form of a "Service Id" code or other parameter forms, thus serving as information related to the program number in the input signal.
[0056] In one embodiment, the obtained program mapping data may further include video PID codes, audio PID codes, and clock PID codes, etc., to contain the program data required for playing the program. In addition, different program data may be included depending on the protocol, and this application does not limit this.
[0057] In another embodiment, the obtained program mapping data may also include its corresponding check code, which may be a "CRC (Cyclic redundancy check)". Of course, other check codes may also be used depending on the data transmission protocol.
[0058] 103. Identify the program number and determine whether the current program number and its corresponding program mapping data have been modified based on the preset database.
[0059] The database can be a pre-configured database. For example, when it is used for the first time or when the information is updated regularly, the database information related to the program mapping data can be obtained by updating the program list (searching for stations) and obtaining information from tables such as PSI / SI.
[0060] In one embodiment, the program ID is obtained by parsing program mapping data. Specifically, it can be obtained by parsing the code corresponding to the program ID. For example, if the program ID code is Service ID, then the Service IDs within all PMTs in the PAT can be filtered to obtain all program IDs corresponding to that PMT.
[0061] Once all Service IDs are obtained, it can be determined whether the current program ID and its corresponding program mapping data have been modified based on a pre-defined database. Specifically, the current program ID is matched with the program IDs stored in the database to obtain the corresponding program IDs. Then, the program mapping data corresponding to the current program ID is compared with the program mapping data corresponding to the same program ID in the database. If the program mapping data for both program IDs are the same, it is determined that there has been no modification; if the program mapping data for the two program IDs are different, it is determined that there has been a modification.
[0062] It is understandable that whether the program mapping data is the same can be verified in a variety of ways, such as by verifying specific markers on the program mapping data or by using a checksum. The specific verification method can be a common verification method in this field, depending on the circumstances.
[0063] In one embodiment, the program mapping data can be verified using the CRC code contained in the PMT. Verification using the CRC code can quickly determine whether the program mapping data has been modified, improve data processing efficiency, and facilitate the realization of real-time monitoring.
[0064] 104. If there are any changes, the program association table shall be reused based on the changed program number and / or program mapping data.
[0065] Data can be multiplexed using a multiplexing module in a digital signal system, also known as a multiplexer, allowing the backend to correctly decode and play the multiplexed program data. For example, by modifying the mapping parameters of modified program mapping data, the multiplexed program data can be correctly read or parsed. The specific modification method can be adjusted according to the characteristics of the actual protocol format.
[0066] In one embodiment, please refer to Figure 3 The figure shows the data structure of the database provided in an embodiment of this application.
[0067] Combination Figure 3 As shown, the database can include raw data codes and monitoring data codes with a mapping relationship. Both the raw data codes and monitoring data codes include a video PID code, an audio PID code, a clock PID code, a program number, and a checksum. These are mapped to each other. This mapping relationship can be determined based on the PMT's characteristic values or the program number.
[0068] The step of reusing the program association table based on the modified program ID and / or program mapping data may include: using the parsed modified program ID and / or program mapping data as monitoring data codes, and reusing them according to the mapping relationship between the original data codes and the monitoring data codes.
[0069] The original data code can be obtained by updating the program list (channel search) and acquiring information from tables such as PSI / SI. Specifically, the data code of the modified program number and / or program mapping data can be used as the monitoring data code, or all data codes corresponding to the modified program mapping data can be used as the monitoring data code.
[0070] For example, if the clock PID code under the program number is modified, the clock PID code can be used as the monitoring data code alone, or all the data codes in the PMT corresponding to the clock PID code can be used as the monitoring data code.
[0071] During the reuse process, the monitoring data code can be reused based on the original data code, thereby modifying all PMTPID mappings to the parameters before the PMTPID was modified, so that the backend can read or parse it correctly.
[0072] Understandably, the specific method of reuse can be determined according to the actual situation, and this application does not limit it.
[0073] As described above, the input source adaptation method for a digital signal system of this application parses the TS packets of the input signal obtained from the input source to obtain the program association table in the TS packets, identifies the program mapping data in the program association table, and reuses the modified program mapping data. This digital signal system and its input source adaptation method can automatically perform multiplexing operations on changed program data, enabling terminal devices to play programs normally without modifying the PSI / SI table in the TS, thereby achieving maintenance-free equipment and reducing the maintenance cost of the digital signal system.
[0074] Please see Figure 4 The figure illustrates the process for reusing the program association table provided in an embodiment of this application.
[0075] Determining whether the current program number and its corresponding program mapping data have been modified based on a preset database may include:
[0076] 201. Obtain several program numbers by filtering PID codes.
[0077] The program ID can have a corresponding PID feature. By filtering the PID codes in the PMT that correspond to the program ID, all program IDs can be retrieved. For example, if the PID code corresponding to the program ID is set to 0, then only the data with PID code 0 needs to be filtered to obtain the program ID.
[0078] In one embodiment, program numbers can be filtered out from PMT based on the PID of the program number and the table id being 2.
[0079] 202. Determine if the program number is the same as the program number in the database.
[0080] Each program has a unique program ID. The program IDs in the database are program IDs from the program table pre-set in the front-end system, and each has a unique ID.
[0081] To determine if program mapping data has been modified, first check if the program number matches the program number in the database. If they match, further investigate whether the mapping data for other programs under that program number has been modified. If they do not match, continue filtering the subsequently received PID codes.
[0082] 203. If they are the same, determine whether the program mapping data associated with the program number has been modified.
[0083] When the check code is CRC, the corresponding CRC code can be obtained from the PMT (Program Mapping Data) parsed from the input signal, and the CRC can be compared with the CRC stored in the database to determine whether the PID in the PMT has been modified.
[0084] 204. If they are not the same, continue to filter the received PID codes.
[0085] 205. Reuse the program association table based on the modified program number and / or program mapping data.
[0086] This reuse method can be implemented according to the working method of the actual protocol.
[0087] In one embodiment, if the program mapping data is modified, the video PID code, audio PID code, clock PID code, program number, and checksum can be parsed from the PMT and used as monitoring data code. This data code is then reused with the video PID code, audio PID code, clock PID code, program number, and checksum in the corresponding original data code, thereby enabling the backend device to perform normal parsing.
[0088] In one implementation, the monitoring data code can be replaced with the original data code during reuse, thereby mapping and reusing the content in the PMT.
[0089] Through the above Figure 4 The steps described in the text enable rapid identification of changes to program mapping data and reuse of the modified content using a database. This allows for timely and automatic modification of the modified program data in digital signal equipment, enabling terminal equipment to play programs normally without the need for manual modification of the PSI / SI table in TS, thus achieving maintenance-free equipment operation.
[0090] Please return Figure 1 This application also discloses the structure of a digital signal system 10. The digital signal system 10 includes a monitoring module and a multiplexing module 12. The input terminal of the monitoring module is connected to an input source to acquire an input signal. This input signal can be a TS stream in the digital television field, or other audio and video data related to digital television. The monitoring module can monitor and analyze the input signal in real time. The digital signal system 10 can be a front-end system of a terminal device, responsible for signal transmission and decoding, and transmitting the decoded signal to the digital signal system 10.
[0091] The digital signal system 10 may include processing units such as MCUs and FPGAs, as well as functional modules such as storage devices and power modules. The specific types and numbers of functional modules included in the system can be determined according to actual conditions. Furthermore, the input source adaptation method for the digital signal system 10 can be set in memory, and the corresponding method steps can be implemented by executing corresponding programs through processing units such as MCUs and FPGAs.
[0092] The monitoring module can be used to acquire the TS packets of the input signal, extract the program association table from the TS packets, parse the program association table to obtain program mapping data, the program mapping data including at least the associated program number, identify the program number, and determine whether the current program number and the corresponding program mapping data have been modified according to a preset database.
[0093] The TS packets can be continuous, forming a TS stream carrying program data. The monitoring module can monitor each TS packet individually and parse out the program association table within, thereby determining whether the program mapping data has been modified. It then executes actions such as... Figure 1-3 The action of monitoring changes to program mapping data as shown in any of the embodiments.
[0094] For example, the database includes original data codes and monitoring data codes with mapping relationships; the reuse of the program association table based on modified program numbers and / or program mapping data includes: using the parsed modified program numbers and / or program mapping data as monitoring data codes; and reusing the data based on the mapping relationship between the original data codes and the monitoring data codes.
[0095] Alternatively, the system can determine whether the current program number and its corresponding program mapping data have been modified based on a preset database, including: obtaining several program numbers by filtering PID codes; determining whether the program number is the same as the program number in the database; if they are the same, determining whether the program mapping data associated with the program number has been modified; if they are not the same, continuing to filter the received PID codes.
[0096] For example, program mapping data includes a corresponding check code; determining whether the current program number and its corresponding program mapping data have been modified based on a preset database includes: comparing the check code of the program mapping data with the check code of the program mapping data for the corresponding program number in the database; if there is a difference in the comparison, it is determined that the program mapping data has been modified.
[0097] The reuse module 12 is used to reuse the program association table according to the modified program number and / or program mapping data if the current program number and the corresponding program mapping data are modified.
[0098] When reusing, one can utilize, for example Figure 1-3 The reuse method described in any embodiment is used to reuse modified program data detected in the monitoring module, thereby ensuring the normal use of backend data parsing and playback.
[0099] The multiplexing module 12 can employ a multiplexer commonly used in the art and perform a multiplexing method for the input source adaptation method of the digital signal system 10.
[0100] For example, reusing the program association table based on the modified program ID and / or program mapping data includes: using the parsed modified program ID and / or program mapping data as monitoring data codes; and reusing the data based on the mapping relationship between the original data codes and the monitoring data codes.
[0101] It is known that this digital signal system can automatically perform multiplexing of changed program data, and can enable terminal devices to play programs normally without modifying the PSI / SI table in TS, thereby achieving maintenance-free equipment and reducing the maintenance cost of digital signal systems.
[0102] In this embodiment, the digital signal system described herein is based on the same concept as the input source adaptation method for the digital signal system described above. Any of the method steps provided in the embodiment of the input source adaptation method for the digital signal system can be run on the digital signal system. The specific implementation process is detailed in the embodiment, and any combination thereof can be used to form optional embodiments of this application, which will not be repeated here.
[0103] The embodiments of this application have been described in detail above with reference to the accompanying drawings. However, this application is not limited to the above embodiments. Within the scope of knowledge possessed by those skilled in the art, various changes can be made without departing from the spirit of this application.
Claims
1. An input source adaptation method for a digital signal system, applied to a digital signal system for acquiring input signals from an input source, characterized in that, The method includes: Obtain the TS packets of the input signal and extract the program association table from the TS packets; The program association table is parsed to obtain program mapping data, which includes at least the associated program number. Identify the program number and determine whether the current program number and the corresponding program mapping data have been modified according to a preset database; If so, the program association table is reused based on the modified program number and / or program mapping data; The database includes raw data codes and monitoring data codes with mapping relationships; The reuse of the program association table based on the modified program number and / or program mapping data includes: The modified program number and / or program mapping data obtained through parsing will be used as the monitoring data code; The data is reused according to the mapping relationship between the original data code and the monitoring data code, and the reuse includes replacing the monitoring data code with the original data code; The step of acquiring the TS packet of the input signal and extracting the program association table from the TS packet includes: The TS packets of the input signal are monitored and acquired in real time, and the program association table in each TS packet is extracted.
2. The input source adaptation method for a digital signal system as described in claim 1, characterized in that, The program mapping data also includes at least one video PID code, audio PID code, and clock PID code.
3. The input source adaptation method for a digital signal system as described in claim 2, characterized in that, The raw data code is obtained from the input source and is related to the program association table of the current input signal.
4. The input source adaptation method for a digital signal system as described in claim 2, characterized in that, The step of determining whether the current program number and the corresponding program mapping data have been modified according to a preset database includes: Several program numbers are obtained by filtering PID codes; Determine whether the program number is the same as the program number in the database; If they are the same, then determine whether the program mapping data associated with the program number has been modified; If they are not the same, continue filtering the received PID codes.
5. The input source adaptation method for a digital signal system as described in any one of claims 2-4, characterized in that, The program mapping data includes the corresponding checksum; The step of determining whether the current program number and the corresponding program mapping data have been modified according to a preset database includes: The verification code of the program mapping data is compared with the verification code of the program mapping data corresponding to the program number in the database; If a discrepancy is found during the comparison, it is determined that the program mapping data has been modified.
6. A digital signal system, the digital signal system being used to acquire an input signal from an input source, characterized in that, The system includes: The monitoring module is used to acquire the TS packets of the input signal, extract the program association table from the TS packets; parse the program association table to obtain program mapping data, the program mapping data including at least the associated program number; identify the program number, and determine whether the current program number and the corresponding program mapping data have been modified according to a preset database; and The reuse module is used to reuse the program association table according to the modified program number and / or program mapping data if the current program number and the corresponding program mapping data are modified. The database includes raw data codes and monitoring data codes with mapping relationships; The reuse of the program association table based on the modified program number and / or program mapping data includes: The modified program number and / or program mapping data obtained through parsing will be used as the monitoring data code; The data is reused according to the mapping relationship between the original data code and the monitoring data code, and the reuse includes replacing the monitoring data code with the original data code; The step of acquiring the TS packet of the input signal and extracting the program association table from the TS packet includes: The TS packets of the input signal are monitored and acquired in real time, and the program association table in each TS packet is extracted.
7. The digital signal system as described in claim 6, characterized in that, The program mapping data also includes at least one video PID code, audio PID code, and clock PID code.