WO2017016310A1 - Method and apparatus for dynamically configuring remote control function data - Google Patents

Method and apparatus for dynamically configuring remote control function data Download PDF

Info

Publication number
WO2017016310A1
WO2017016310A1 PCT/CN2016/084431 CN2016084431W WO2017016310A1 WO 2017016310 A1 WO2017016310 A1 WO 2017016310A1 CN 2016084431 W CN2016084431 W CN 2016084431W WO 2017016310 A1 WO2017016310 A1 WO 2017016310A1
Authority
WO
WIPO (PCT)
Prior art keywords
remote control
configuration
remote
function data
configuration file
Prior art date
Application number
PCT/CN2016/084431
Other languages
French (fr)
Chinese (zh)
Inventor
罗科峰
曹芝勇
Original Assignee
深圳Tcl数字技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2017016310A1 publication Critical patent/WO2017016310A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/236Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/236Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
    • H04N21/23614Multiplexing of additional data and video streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42226Reprogrammable remote control devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream

Definitions

  • the present invention relates to the field of digital television technologies, and in particular, to a method and apparatus for dynamic configuration of remote control function data.
  • the remote controller transmits a specific remote control code to the television terminal through infrared rays or other radio waves, and the television terminal parses the remote control code according to the corresponding remote control protocol, and then performs the corresponding remote control function operation.
  • the remote control software code of the television which requires the staff to come to the door for remote software code upgrade service. This method of updating the remote control function is very inefficient and increases the workload of the relevant personnel. If the replacement is not timely, the normal use of the user may be affected.
  • the main object of the present invention is to provide a method and apparatus for dynamic configuration of remote control function data, which effectively improves the efficiency of data change of the remote control function of the television and reduces the workload of the relevant personnel.
  • the invention provides a method for dynamically configuring remote control function data, comprising the steps of:
  • the step of parsing the remote control configuration file from the TS includes:
  • the step of obtaining remote configuration information from the remote configuration file includes:
  • a corresponding remote control protocol and a remote control code are generated according to the remotely edited layout of the customized edit, and in the remotely analyzed configuration file of the TS analysis, the corresponding remote control code is searched for.
  • the button picture, the generated remote protocol and remote control code and the searched button picture are used as the remote configuration information.
  • the step of obtaining the remote configuration information from the remote control profile further includes:
  • a remote control protocol, a remote control code, and a button picture are obtained from the remote analysis profile parsed by the TS as the remote control configuration information.
  • the number of remote configuration files parsed by the TS is multiple;
  • the method further includes:
  • the number of remote configuration files parsed by the TS is multiple;
  • the method further includes:
  • the invention also provides a method for dynamic configuration of remote control function data, comprising the steps of:
  • the remote control function data of the local machine is updated according to the remote control configuration information.
  • the step of parsing the remote control profile from the TS comprises:
  • Network Information Table NIT from the TS (Network Information Parsing a predefined link descriptor (Linkage_Descriptor) subtable in Table), obtaining a predefined program number and a predefined first package identifier PID (Packet Identifier)1;
  • Program association table PAT from the TS Program Association Find a second packet identifier PID2 corresponding to the predefined program number in Table;
  • the step of obtaining remote configuration information from the remote control profile includes:
  • a corresponding remote control protocol and a remote control code are generated according to the remotely edited layout of the customized edit, and in the remotely analyzed configuration file of the TS analysis, the corresponding remote control code is searched for.
  • the button picture, the generated remote protocol and remote control code and the searched button picture are used as the remote configuration information.
  • the step of obtaining remote configuration information from the remote control profile includes:
  • a remote control protocol, a remote control code, and a button picture are obtained from the remote analysis profile parsed by the TS as the remote control configuration information.
  • the number of remote configuration files parsed by the TS is multiple;
  • the method further includes:
  • the invention also provides an apparatus for dynamically configuring remote control function data, comprising:
  • a transceiver module configured to receive a transport stream TS sent by the digital television network
  • a parsing module configured to parse the remote control configuration file from the TS
  • a configuration information acquiring module configured to obtain remote configuration information from the remote control configuration file
  • an update module configured to update remote control function data of the local machine according to the remote control configuration information.
  • the parsing module is further configured to:
  • the configuration information acquiring module is further configured to:
  • a corresponding remote control protocol and a remote control code are generated according to the remotely edited layout of the customized edit, and in the remotely analyzed configuration file of the TS analysis, the corresponding remote control code is searched for.
  • the button picture, the generated remote protocol and remote control code and the searched button picture are used as the remote configuration information.
  • the configuration information acquiring module is further configured to:
  • a remote control protocol, a remote control code, and a button picture are obtained from the remote analysis profile parsed by the TS as the remote control configuration information.
  • the number of the remotely configured configuration files of the TS resolution is multiple; the device for dynamically configuring the remote control function data further includes a matching module, configured to acquire remote control configuration identification information of the local device; Find a remote control profile that matches the remote configuration identification information of the local machine in the remote control profile.
  • the invention adds a remote control configuration file to the TS code stream sent by the digital television network, and the television terminal directly analyzes the remote control configuration information from the remote control configuration file, and configures the remote control function mapping according to the remote control configuration information, without manually modifying the software code, reducing The workload of the relevant personnel makes the remote control function data update more convenient.
  • FIG. 1 is a flowchart of a first embodiment of a method for dynamically configuring remote control function data according to the present invention
  • FIG. 2 is a flowchart of a second embodiment of a method for dynamically configuring remote control function data according to the present invention
  • FIG. 3 is a flowchart of a third embodiment of a method for dynamically configuring remote control function data according to the present invention.
  • FIG. 4 is a flowchart of a fourth embodiment of a method for dynamically configuring remote control function data according to the present invention.
  • FIG. 5 is a schematic block diagram of a first embodiment of an apparatus for dynamically configuring remote control function data according to the present invention
  • FIG. 6 is a schematic block diagram of a second embodiment of an apparatus for dynamically configuring remote control function data according to the present invention.
  • FIG. 1 is a flowchart of a first embodiment of a method for dynamically configuring remote control function data according to the present invention.
  • the method for dynamically configuring remote control function data mentioned in this embodiment includes:
  • Step S10 receiving a transport stream TS sent by the digital television network
  • the digital television network encodes the remote control configuration file through the data encoder to generate an ES stream, and then adds the ES stream to the ES stream of other television programs through the TS multiplexer.
  • the TS stream is streamed into the TS stream and broadcasted to the digital television network by the streamer.
  • the television terminal acquires the TS code stream from the digital television network by conventionally receiving the television signal.
  • Step S20 parsing the remote control configuration file from the TS
  • Step S30 obtaining remote control configuration information from a remote control configuration file
  • the TV terminal parses the obtained TS code stream, and parses out the remote control configuration file, where the remote control configuration file includes the latest release remote control configuration information of the TV or the remote controller developer, and the remote control configuration information may include a configuration protocol, a remote control code, and a button picture.
  • the configuration protocol is the mapping relationship between the remote control button and the remote control function
  • the remote control code is the code corresponding to the remote control button
  • the button picture is the picture corresponding to the remote control button.
  • the configuration protocol reflects the mapping relationship between the function and the button before the change and the button after the change.
  • the remote control code also includes the corresponding code of the button before the change and the button after the change
  • the button picture is Corresponds to the picture information of the changed button.
  • step S40 the remote control function data of the local machine is updated according to the remote control configuration information.
  • the television terminal After obtaining the remote control configuration information, the television terminal synchronizes the remote control function data of the television terminal according to the configuration protocol, the remote control code and the button picture, for example, replacing the mapping relationship between the remote control function and the button icon on the user interface with the latest mapping relationship, and refreshing the register.
  • the configuration protocol for example, replacing the mapping relationship between the remote control function and the button icon on the user interface with the latest mapping relationship, and refreshing the register.
  • the television terminal After obtaining the remote control configuration information, the television terminal synchronizes the remote control function data of the television terminal according to the configuration protocol, the remote control code and the button picture, for example, replacing the mapping relationship between the remote control function and the button icon on the user interface with the latest mapping relationship, and refreshing the register.
  • a remote control configuration file is added to the TS code stream sent by the digital television network, and the television terminal directly analyzes the remote control configuration information from the remote control configuration file, and configures the remote control function mapping according to the remote control configuration information, without manually modifying the software code. It reduces the workload of the relevant personnel and makes the remote control function data update more convenient.
  • FIG. 2 is a flowchart of a second embodiment of a method for dynamically configuring remote control function data according to the present invention. This embodiment includes the steps of the embodiment shown in FIG. 1, wherein step S20 includes:
  • Step S21 parsing the predefined link descriptor sub-table from the network information table NIT of the TS, obtaining a predefined program number and a predefined first packet identifier PID1;
  • Step S22 searching for the second package identifier PID2 corresponding to the predefined program number from the program association table PAT of the TS;
  • Step S23 searching for a program mapping table PMT corresponding to PID2 from the TS;
  • Step S24 acquiring basic code stream ES data corresponding to PID1 from the program mapping table PMT;
  • step S25 the ES data is decoded to obtain a remote control configuration file.
  • the digital television network adds the remote control configuration file to the TS code stream before transmitting the TS code stream.
  • the way to create a TS stream is as follows. First, a link descriptor sub-table is predefined in the NIT, and the program number of the remote control configuration file and the PID corresponding to the remote control configuration file (ie, PID1) are predefined in the link descriptor sub-table, and the remote control configuration file for updating is passed through the data encoder.
  • the ES code stream data is generated, and the ES code stream data of the remote control profile is added to the TS stream through a TS multiplexer, and the ES code stream of the remote control profile can be regarded as one program stream in the TS stream.
  • the remote control configuration file is encapsulated in the TS code stream, so that the television terminal can obtain the remote control configuration file from the TS stream to configure the remote control function mapping, without manually modifying the software code, reducing the workload of the relevant personnel, and making the remote control function data update more. Convenience.
  • FIG. 3 is a flowchart of a third embodiment of a method for dynamically configuring remote control function data according to the present invention. This embodiment includes the steps of the embodiment shown in FIG. 1, wherein step S30 includes:
  • Step S31 it is determined whether the remote control layout map of the machine has been custom edited; if so, step S32 is performed; if not, step S33 is performed;
  • Step S32 generating a corresponding remote control protocol and a remote control code according to the remotely edited layout of the customized edit, and searching for a button image corresponding to the remote control code in the remote analysis profile parsed by the TS, and generating the remote control protocol and the remote control code and searching
  • the button picture is used as the remote configuration information.
  • Step S33 obtaining a remote control protocol, a remote control code, and a button picture from the remote configuration file parsed by the TS as the remote configuration information.
  • the television terminal of the embodiment has the function of custom changing the configuration of the remote control button.
  • the custom editing instruction of the remote controller is triggered, the current remote control layout map is displayed on the screen of the television terminal, and the user can Set the button to be changed in the remote layout.
  • the function of increasing the volume is changed from the original “volume plus” button to the “red” button; the function of switching the channel up is changed from the original “channel minus” button to the “blue” button, as shown in the following table. :
  • Custom remote control button Increase volume BTN_VOL_UP BTN_RED Switch channels up BTN_GRP_UP BTN_BLUE ...
  • the TV terminal stores the remote layout map configured by the user, and sets the flag to identify that the remote layout of the machine has been customized.
  • the TV determines whether the remote layout of the machine has been customized. If the edit has been customized, the relevant remote control protocol and remote control code are extracted from the remote control layout map, and only the picture of the custom key in the corresponding remote control layout map is extracted in the remote analysis configuration file of the TS analysis, that is, the remote control according to the user-defined edit.
  • the configuration information is used to update the remote control function data of the television terminal. Otherwise, if the user does not edit the remote configuration information by himself, the remote configuration information is obtained from the remote configuration file of the TS stream.
  • the remote control function data of the television terminal is updated according to the remote control configuration information edited by the user, so that the remote control function configuration is more flexible.
  • FIG. 4 is a flowchart of a fourth embodiment of a method for dynamically configuring remote control function data according to the present invention. This embodiment includes the steps of the embodiment shown in FIG. 1. After step S20, the method further includes:
  • Step S51 acquiring remote control configuration identification information of the local machine
  • Step S52 searching for a remote control profile that matches the remote configuration identification information of the local device from the plurality of remote control profiles parsed by the TS.
  • the remote control configuration file parsed by the TS in this embodiment includes a plurality of TV terminals of different regions or different systems, and may have different requirements on the format and coding mode of the remote control configuration information.
  • the original remote control function data in the TV terminal may have been recently updated.
  • the remote control configuration file parsed from the TS is consistent with the content of the remote control configuration file used for the update, and this time there is no need to update.
  • a plurality of remote control profiles may be pre-packaged into the TS stream, including remote control profiles of different versions, different formats, and different encoding modes, and respective remote control configuration identifiers are respectively added in each remote control configuration file. information.
  • the television terminal After parsing the plurality of remote control profiles from the TS, the television terminal matches the remote configuration identification information in the television terminal with the remote configuration identification information in the analyzed remote configuration file. If a matching remote control profile is found, the current remote control function data needs to be updated; otherwise, the current television terminal does not need to be updated, and the user may be prompted not to find a matching remote control profile. In this way, the remote control configuration information is used to find the matching remote control configuration file, thereby avoiding the normal use of the remote control function due to the error of the remote control configuration file, and ensuring the accuracy of the remote control function configuration.
  • FIG. 5 is a schematic block diagram of a first embodiment of an apparatus for dynamically configuring remote control function data according to the present invention.
  • the apparatus for dynamically configuring the remote control function data of the embodiment includes:
  • the transceiver module 10 is configured to receive a transport stream TS sent by the digital television network;
  • the parsing module 20 is configured to parse the remote control configuration file from the TS;
  • the configuration information obtaining module 30 is configured to obtain remote control configuration information from the remote control configuration file
  • the update module 40 is configured to update the remote control function data of the local machine according to the remote control configuration information.
  • the digital television network encodes the remote control configuration file through the data encoder to generate an ES stream, and then adds the ES stream to the ES stream of other television programs through the TS multiplexer.
  • the TS stream is streamed into the TS stream and broadcasted to the digital television network by the streamer.
  • the television terminal acquires the TS code stream from the digital television network by conventionally receiving the television signal.
  • the TV terminal parses the obtained TS code stream, and parses out the remote control configuration file, where the remote control configuration file includes the latest release remote control configuration information of the TV or the remote controller developer, and the remote control configuration information may include a configuration protocol, a remote control code, and a button picture.
  • the configuration protocol is the mapping relationship between the remote control button and the remote control function
  • the remote control code is the code corresponding to the remote control button
  • the button picture is the picture corresponding to the remote control button.
  • the configuration protocol reflects the mapping relationship between the function and the button before the change and the button after the change.
  • the remote control code also includes the corresponding code of the button before the change and the button after the change
  • the button picture is Corresponds to the picture information of the changed button.
  • the television terminal After obtaining the remote control configuration information, the television terminal synchronizes the remote control function data of the television terminal according to the configuration protocol, the remote control code and the button picture, for example, replacing the mapping relationship between the remote control function and the button icon on the user interface with the latest mapping relationship, and refreshing the register.
  • the configuration protocol for example, replacing the mapping relationship between the remote control function and the button icon on the user interface with the latest mapping relationship, and refreshing the register.
  • the television terminal After obtaining the remote control configuration information, the television terminal synchronizes the remote control function data of the television terminal according to the configuration protocol, the remote control code and the button picture, for example, replacing the mapping relationship between the remote control function and the button icon on the user interface with the latest mapping relationship, and refreshing the register.
  • a remote control configuration file is added to the TS code stream sent by the digital television network, and the television terminal directly analyzes the remote control configuration information from the remote control configuration file, and configures the remote control function mapping according to the remote control configuration information, without manually modifying the software code. It reduces the workload of the relevant personnel and makes the remote control function data update more convenient.
  • parsing module 20 is further configured to:
  • the digital television network adds the remote control configuration file to the TS code stream before transmitting the TS code stream.
  • the way to create a TS stream is as follows. First, a link descriptor sub-table is predefined in the NIT, and the program number of the remote control configuration file and the PID corresponding to the remote control configuration file (ie, PID1) are predefined in the link descriptor sub-table, and the remote control configuration file for updating is passed through the data encoder.
  • the ES code stream data is generated, and the ES code stream data of the remote control profile is added to the TS stream through a TS multiplexer, and the ES code stream of the remote control profile can be regarded as one program stream in the TS stream.
  • the remote control configuration file is encapsulated in the TS code stream, so that the television terminal can obtain the remote control configuration file from the TS stream to configure the remote control function mapping, without manually modifying the software code, reducing the workload of the relevant personnel, and making the remote control function data update more. Convenience.
  • configuration information obtaining module 30 is further configured to:
  • the corresponding remote control protocol and remote control code are generated according to the remotely edited layout of the customized edit, and the button image corresponding to the remote control code is searched in the remotely analyzed configuration file of the TS analysis.
  • the generated remote control protocol and remote control code and the searched button picture are used as the remote configuration information.
  • the remote control protocol, remote control code and button picture are obtained from the remote configuration file parsed by the TS as the remote configuration information.
  • the television terminal of the embodiment has the function of custom changing the configuration of the remote control button.
  • the custom editing instruction of the remote controller is triggered, the current remote control layout map is displayed on the screen of the television terminal, and the user can Set the button to be changed in the remote layout.
  • the function of increasing the volume is changed from the original “volume plus” button to the “red” button; the function of switching the channel up is changed from the original “channel minus” button to the “blue” button, as shown in the following table. :
  • Custom remote control button Increase volume BTN_VOL_UP BTN_RED Switch channels up BTN_GRP_UP BTN_BLUE ...
  • the TV terminal stores the remote layout map configured by the user, and sets the flag to identify that the remote layout of the machine has been customized.
  • the TV determines whether the remote layout of the machine has been customized. If the edit has been customized, the relevant remote control protocol and remote control code are extracted from the remote control layout map, and only the picture of the custom key in the corresponding remote control layout map is extracted in the remote analysis configuration file of the TS analysis, that is, the remote control according to the user-defined edit.
  • the configuration information is used to update the remote control function data of the television terminal. Otherwise, if the user does not edit the remote configuration information by himself, the remote configuration information is obtained from the remote configuration file of the TS stream.
  • the remote control function data of the television terminal is updated according to the remote control configuration information edited by the user, so that the remote control function configuration is more flexible.
  • FIG. 6 is a schematic block diagram of a second embodiment of an apparatus for dynamically configuring remote control function data according to the present invention.
  • the embodiment includes the module of the embodiment shown in FIG. 5, and further includes a matching module 50, configured to acquire remote control configuration identification information of the local device, and search for multiple remote control configuration files parsed by the TS to match the remote control configuration identification information of the local device.
  • a remote control profile configured to acquire remote control configuration identification information of the local device, and search for multiple remote control configuration files parsed by the TS to match the remote control configuration identification information of the local device.
  • the remote control configuration file parsed by the TS in this embodiment includes a plurality of TV terminals of different regions or different systems, and may have different requirements on the format and coding mode of the remote control configuration information.
  • the original remote control function data in the TV terminal may have been recently updated.
  • the remote control configuration file parsed from the TS is consistent with the content of the remote control configuration file used for the update, and this time there is no need to update.
  • a plurality of remote control profiles may be pre-packaged into the TS stream, including remote control profiles of different versions, different formats, and different encoding modes, and respective remote control configuration identifiers are respectively added in each remote control configuration file. information.
  • the television terminal After parsing the plurality of remote control profiles from the TS, the television terminal matches the remote configuration identification information in the television terminal with the remote configuration identification information in the analyzed remote configuration file. If a matching remote control profile is found, the current remote control function data needs to be updated; otherwise, the current television terminal does not need to be updated, and the user may be prompted not to find a matching remote control profile. In this way, the remote control configuration information is used to find the matching remote control configuration file, thereby avoiding the normal use of the remote control function due to the error of the remote control configuration file, and ensuring the accuracy of the remote control function configuration.

Abstract

Disclosed is a method for dynamically configuring remote control function data, comprising the steps: receiving a transport stream (TS) sent by a digital television network; parsing a remote control configuration file from the TS; acquiring remote control configuration information from the remote control configuration file; and updating remote control function data of a local machine according to the remote control configuration information. Further disclosed is an apparatus for dynamically configuring remote control function data. In the present invention, a remote control configuration file is added in a TS code steam sent by a digital television network, and a television terminal directly parses remote control configuration information from the remote control configuration file, and configures remote control function mapping according to the remote control configuration information, without manually modifying a software code, so that the workload of a relevant person is reduced, and the updating of remote control function data becomes more convenient.

Description

遥控功能数据动态配置的方法和装置  Method and device for dynamically configuring remote control function data
技术领域Technical field
本发明涉及数字电视技术领域,特别涉及遥控功能数据动态配置的方法和装置。The present invention relates to the field of digital television technologies, and in particular, to a method and apparatus for dynamic configuration of remote control function data.
背景技术Background technique
随着遥控技术的发展,用户通常可以使用遥控器来控制家用电器。以数字电视机为例,遥控器通过红外线或者其它无线电波发送特定的遥控码至电视端,电视端按对应的遥控协议解析遥控码,然后执行相应的遥控功能操作。在电视机使用过程中,如果需要更改电视机的遥控功能与遥控按键之间的映射关系,则常常需要修改电视机的遥控软件代码,这就需要工作人员上门进行遥控软件代码升级服务。这种更新遥控功能的方法效率非常低下,且增加了相关人员的工作量,如果更换不及时,则可能会影响到用户的正常使用。With the development of remote control technology, users can usually use a remote control to control home appliances. Taking a digital television as an example, the remote controller transmits a specific remote control code to the television terminal through infrared rays or other radio waves, and the television terminal parses the remote control code according to the corresponding remote control protocol, and then performs the corresponding remote control function operation. In the process of using the TV, if it is necessary to change the mapping relationship between the remote control function of the TV and the remote control button, it is often necessary to modify the remote control software code of the television, which requires the staff to come to the door for remote software code upgrade service. This method of updating the remote control function is very inefficient and increases the workload of the relevant personnel. If the replacement is not timely, the normal use of the user may be affected.
发明内容Summary of the invention
本发明的主要目的为提供一种遥控功能数据动态配置的方法和装置,有效提高电视机遥控功能数据更改的效率,减少相关人员的工作量。The main object of the present invention is to provide a method and apparatus for dynamic configuration of remote control function data, which effectively improves the efficiency of data change of the remote control function of the television and reduces the workload of the relevant personnel.
本发明提出一种遥控功能数据动态配置的方法,包括步骤:The invention provides a method for dynamically configuring remote control function data, comprising the steps of:
接收数字电视网络发送的传输流TS;Receiving a transport stream TS sent by the digital television network;
从所述TS中解析出遥控配置文件;Parsing a remote control configuration file from the TS;
从所述遥控配置文件中获取遥控配置信息;Obtaining remote configuration information from the remote configuration file;
根据所述遥控配置信息更新本机的遥控功能数据;Updating the remote control function data of the local machine according to the remote control configuration information;
其中:所述从所述TS中解析出遥控配置文件的步骤包括:The step of parsing the remote control configuration file from the TS includes:
从所述TS的网络信息表NIT中解析预定义的链接描述符子表,获得预定义的节目号和预定义的第一包识别符PID1;Parsing a predefined link descriptor sub-table from the network information table NIT of the TS to obtain a predefined program number and a predefined first packet identifier PID1;
从所述TS的节目关联表PAT中查找与所述预定义的节目号对应的第二包识别符PID2;Searching, from the program association table PAT of the TS, a second packet identifier PID2 corresponding to the predefined program number;
从所述TS中查找与所述PID2对应的节目映射表PMT;Finding a program mapping table PMT corresponding to the PID2 from the TS;
从所述节目映射表PMT中获取与所述PID1对应的基本码流ES数据;Obtaining basic code stream ES data corresponding to the PID1 from the program mapping table PMT;
解码所述ES数据,获得所述遥控配置文件;Decoding the ES data to obtain the remote control configuration file;
所述从遥控配置文件中获取遥控配置信息的步骤包括:The step of obtaining remote configuration information from the remote configuration file includes:
当本机的遥控布局图已自定义编辑时,根据已自定义编辑的遥控布局图生成对应的遥控协议和遥控码,并在所述TS解析的遥控配置文件中,查找与所述遥控码对应的按键图片,将生成的遥控协议和遥控码以及查找的按键图片作为所述遥控配置信息。When the remote control layout map of the local machine has been customized for editing, a corresponding remote control protocol and a remote control code are generated according to the remotely edited layout of the customized edit, and in the remotely analyzed configuration file of the TS analysis, the corresponding remote control code is searched for. The button picture, the generated remote protocol and remote control code and the searched button picture are used as the remote configuration information.
优选地,所述从遥控配置文件中获取遥控配置信息的步骤还包括:Preferably, the step of obtaining the remote configuration information from the remote control profile further includes:
当本机的遥控布局图未自定义编辑时,从所述TS解析的遥控配置文件中获取遥控协议、遥控码和按键图片,作为所述遥控配置信息。When the remote control layout of the local machine is not customized for editing, a remote control protocol, a remote control code, and a button picture are obtained from the remote analysis profile parsed by the TS as the remote control configuration information.
优选地,所述TS解析的遥控配置文件的个数为多个;Preferably, the number of remote configuration files parsed by the TS is multiple;
所述从TS中解析出遥控配置文件的步骤之后还包括:After the step of parsing the remote control configuration file from the TS, the method further includes:
获取本机的遥控配置标识信息;Obtain the remote control configuration identification information of the machine;
从所述TS解析的多个遥控配置文件中查找与所述本机的遥控配置标识信息匹配的一个遥控配置文件。Finding a remote control profile that matches the remote configuration identification information of the local machine from the plurality of remote control profiles parsed by the TS.
优选地,所述TS解析的遥控配置文件的个数为多个;Preferably, the number of remote configuration files parsed by the TS is multiple;
所述从TS中解析出遥控配置文件的步骤之后还包括:After the step of parsing the remote control configuration file from the TS, the method further includes:
获取本机的遥控配置标识信息;Obtain the remote control configuration identification information of the machine;
从所述TS解析的多个遥控配置文件中查找与所述本机的遥控配置标识信息匹配的一个遥控配置文件。Finding a remote control profile that matches the remote configuration identification information of the local machine from the plurality of remote control profiles parsed by the TS.
本发明还提出一种遥控功能数据动态配置的方法,包括步骤:The invention also provides a method for dynamic configuration of remote control function data, comprising the steps of:
接收数字电视网络发送的传输流TS(Transport Stream);Receiving a transport stream TS (Transport Stream) sent by the digital television network;
从所述TS中解析出遥控配置文件;Parsing a remote control configuration file from the TS;
从所述遥控配置文件中获取遥控配置信息;Obtaining remote configuration information from the remote configuration file;
根据所述遥控配置信息更新本机的遥控功能数据。The remote control function data of the local machine is updated according to the remote control configuration information.
优选地,所述从所述TS中解析出遥控配置文件的步骤包括:Preferably, the step of parsing the remote control profile from the TS comprises:
从所述TS的网络信息表NIT(Network Information Table)中解析预定义的链接描述符(Linkage_Descriptor)子表,获得预定义的节目号和预定义的第一包识别符PID(Packet Identifier)1;Network Information Table NIT from the TS (Network Information Parsing a predefined link descriptor (Linkage_Descriptor) subtable in Table), obtaining a predefined program number and a predefined first package identifier PID (Packet Identifier)1;
从所述TS的节目关联表PAT(Program Association Table)中查找与所述预定义的节目号对应的第二包识别符PID2;Program association table PAT from the TS (Program Association Find a second packet identifier PID2 corresponding to the predefined program number in Table;
从所述TS中查找与所述PID2对应的节目映射表PMT(Program Map Table);Searching, from the TS, a program map table PMT corresponding to the PID2;
从所述节目映射表PMT中获取与所述PID1对应的基本码流ES(Elementary Stream)数据;Obtaining a basic code stream ES (Elementary corresponding to the PID1) from the program map table PMT Stream) data;
解码所述ES数据,获得所述遥控配置文件。Decoding the ES data to obtain the remote configuration file.
优选地,所述从遥控配置文件中获取遥控配置信息的步骤包括:Preferably, the step of obtaining remote configuration information from the remote control profile includes:
当本机的遥控布局图已自定义编辑时,根据已自定义编辑的遥控布局图生成对应的遥控协议和遥控码,并在所述TS解析的遥控配置文件中,查找与所述遥控码对应的按键图片,将生成的遥控协议和遥控码以及查找的按键图片作为所述遥控配置信息。When the remote control layout map of the local machine has been customized for editing, a corresponding remote control protocol and a remote control code are generated according to the remotely edited layout of the customized edit, and in the remotely analyzed configuration file of the TS analysis, the corresponding remote control code is searched for. The button picture, the generated remote protocol and remote control code and the searched button picture are used as the remote configuration information.
优选地,所述从遥控配置文件中获取遥控配置信息的步骤包括:Preferably, the step of obtaining remote configuration information from the remote control profile includes:
当本机的遥控布局图未自定义编辑时,从所述TS解析的遥控配置文件中获取遥控协议、遥控码和按键图片,作为所述遥控配置信息。When the remote control layout of the local machine is not customized for editing, a remote control protocol, a remote control code, and a button picture are obtained from the remote analysis profile parsed by the TS as the remote control configuration information.
优选地,所述TS解析的遥控配置文件的个数为多个;Preferably, the number of remote configuration files parsed by the TS is multiple;
所述从TS中解析出遥控配置文件的步骤之后还包括:After the step of parsing the remote control configuration file from the TS, the method further includes:
获取本机的遥控配置标识信息;Obtain the remote control configuration identification information of the machine;
从所述TS解析的多个遥控配置文件中查找与所述本机的遥控配置标识信息匹配的一个遥控配置文件。Finding a remote control profile that matches the remote configuration identification information of the local machine from the plurality of remote control profiles parsed by the TS.
本发明还提出一种遥控功能数据动态配置的装置,包括:The invention also provides an apparatus for dynamically configuring remote control function data, comprising:
收发模块,用于接收数字电视网络发送的传输流TS;a transceiver module, configured to receive a transport stream TS sent by the digital television network;
解析模块,用于从所述TS中解析出遥控配置文件;a parsing module, configured to parse the remote control configuration file from the TS;
配置信息获取模块,用于从所述遥控配置文件中获取遥控配置信息;a configuration information acquiring module, configured to obtain remote configuration information from the remote control configuration file;
更新模块,用于根据所述遥控配置信息更新本机的遥控功能数据。And an update module, configured to update remote control function data of the local machine according to the remote control configuration information.
优选地,所述解析模块还用于:Preferably, the parsing module is further configured to:
从所述TS的网络信息表NIT中解析预定义的链接描述符子表,获得预定义的节目号和预定义的第一包识别符PID1;Parsing a predefined link descriptor sub-table from the network information table NIT of the TS to obtain a predefined program number and a predefined first packet identifier PID1;
从所述TS的节目关联表PAT中查找与所述预定义的节目号对应的第二包识别符PID2;Searching, from the program association table PAT of the TS, a second packet identifier PID2 corresponding to the predefined program number;
从所述TS中查找与所述PID2对应的节目映射表PMT;Finding a program mapping table PMT corresponding to the PID2 from the TS;
从所述节目映射表PMT中获取与所述PID1对应的基本码流ES数据;Obtaining basic code stream ES data corresponding to the PID1 from the program mapping table PMT;
解码所述ES数据,获得所述遥控配置文件。Decoding the ES data to obtain the remote configuration file.
优选地,所述配置信息获取模块还用于:Preferably, the configuration information acquiring module is further configured to:
当本机的遥控布局图已自定义编辑时,根据已自定义编辑的遥控布局图生成对应的遥控协议和遥控码,并在所述TS解析的遥控配置文件中,查找与所述遥控码对应的按键图片,将生成的遥控协议和遥控码以及查找的按键图片作为所述遥控配置信息。When the remote control layout map of the local machine has been customized for editing, a corresponding remote control protocol and a remote control code are generated according to the remotely edited layout of the customized edit, and in the remotely analyzed configuration file of the TS analysis, the corresponding remote control code is searched for. The button picture, the generated remote protocol and remote control code and the searched button picture are used as the remote configuration information.
优选地,所述配置信息获取模块还用于:Preferably, the configuration information acquiring module is further configured to:
当本机的遥控布局图未自定义编辑时,从所述TS解析的遥控配置文件中获取遥控协议、遥控码和按键图片,作为所述遥控配置信息。When the remote control layout of the local machine is not customized for editing, a remote control protocol, a remote control code, and a button picture are obtained from the remote analysis profile parsed by the TS as the remote control configuration information.
优选地,所述TS解析的遥控配置文件的个数为多个;所述遥控功能数据动态配置的装置还包括匹配模块,用于获取本机的遥控配置标识信息;从所述TS解析的多个遥控配置文件中查找与所述本机的遥控配置标识信息匹配的一个遥控配置文件。Preferably, the number of the remotely configured configuration files of the TS resolution is multiple; the device for dynamically configuring the remote control function data further includes a matching module, configured to acquire remote control configuration identification information of the local device; Find a remote control profile that matches the remote configuration identification information of the local machine in the remote control profile.
本发明在数字电视网络发送的TS码流中增加遥控配置文件,电视终端直接从遥控配置文件中解析出遥控配置信息,并根据该遥控配置信息来配置遥控功能映射,无需人工修改软件代码,减少了相关人员的工作量,使遥控功能数据更新更加方便。The invention adds a remote control configuration file to the TS code stream sent by the digital television network, and the television terminal directly analyzes the remote control configuration information from the remote control configuration file, and configures the remote control function mapping according to the remote control configuration information, without manually modifying the software code, reducing The workload of the relevant personnel makes the remote control function data update more convenient.
附图说明DRAWINGS
图1为本发明遥控功能数据动态配置的方法的第一实施例的流程图;1 is a flowchart of a first embodiment of a method for dynamically configuring remote control function data according to the present invention;
图2为本发明遥控功能数据动态配置的方法的第二实施例的流程图;2 is a flowchart of a second embodiment of a method for dynamically configuring remote control function data according to the present invention;
图3为本发明遥控功能数据动态配置的方法的第三实施例的流程图;3 is a flowchart of a third embodiment of a method for dynamically configuring remote control function data according to the present invention;
图4为本发明遥控功能数据动态配置的方法的第四实施例的流程图;4 is a flowchart of a fourth embodiment of a method for dynamically configuring remote control function data according to the present invention;
图5为本发明遥控功能数据动态配置的装置的第一实施例的模块示意图;5 is a schematic block diagram of a first embodiment of an apparatus for dynamically configuring remote control function data according to the present invention;
图6为本发明遥控功能数据动态配置的装置的第二实施例的模块示意图。FIG. 6 is a schematic block diagram of a second embodiment of an apparatus for dynamically configuring remote control function data according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
如图1所示,图1为本发明遥控功能数据动态配置的方法的第一实施例的流程图。本实施例提到的遥控功能数据动态配置的方法,包括:As shown in FIG. 1, FIG. 1 is a flowchart of a first embodiment of a method for dynamically configuring remote control function data according to the present invention. The method for dynamically configuring remote control function data mentioned in this embodiment includes:
步骤S10,接收数字电视网络发送的传输流TS;Step S10, receiving a transport stream TS sent by the digital television network;
本实施例中,数字电视网络在发送TS码流前,预先将遥控配置文件通过数据编码器编码,生成一ES流,再通过TS复用器将该ES流与其他电视节目的ES流一起添加到TS码流中,并通过码流器将TS码流广播到数字电视网络中。电视终端通过常规接收电视信号的方式从数字电视网络中获取TS码流。In this embodiment, before transmitting the TS code stream, the digital television network encodes the remote control configuration file through the data encoder to generate an ES stream, and then adds the ES stream to the ES stream of other television programs through the TS multiplexer. The TS stream is streamed into the TS stream and broadcasted to the digital television network by the streamer. The television terminal acquires the TS code stream from the digital television network by conventionally receiving the television signal.
步骤S20,从TS中解析出遥控配置文件;Step S20, parsing the remote control configuration file from the TS;
步骤S30,从遥控配置文件中获取遥控配置信息;Step S30, obtaining remote control configuration information from a remote control configuration file;
电视终端对获得的TS码流进行解析,从中解析出遥控配置文件,该遥控配置文件中包括电视或遥控器开发方最新发布遥控配置信息,该遥控配置信息可包括配置协议、遥控码和按键图片。其中,配置协议即遥控按键与遥控功能之间的映射关系,遥控码即遥控按键对应的代码,按键图片即遥控按键对应的图片。当某一个按键的功能有修改时,配置协议中反应出该功能与更改前按键和更改后按键之间的映射关系,遥控码也包括更改前按键和更改后按键的对应代码,按键图片则是对应于更改后按键的图片信息。The TV terminal parses the obtained TS code stream, and parses out the remote control configuration file, where the remote control configuration file includes the latest release remote control configuration information of the TV or the remote controller developer, and the remote control configuration information may include a configuration protocol, a remote control code, and a button picture. . Among them, the configuration protocol is the mapping relationship between the remote control button and the remote control function, the remote control code is the code corresponding to the remote control button, and the button picture is the picture corresponding to the remote control button. When the function of a button is modified, the configuration protocol reflects the mapping relationship between the function and the button before the change and the button after the change. The remote control code also includes the corresponding code of the button before the change and the button after the change, and the button picture is Corresponds to the picture information of the changed button.
步骤S40,根据遥控配置信息更新本机的遥控功能数据。In step S40, the remote control function data of the local machine is updated according to the remote control configuration information.
电视终端在获得遥控配置信息后,根据配置协议、遥控码和按键图片同步电视终端的遥控功能数据,例如,将用户界面上的遥控功能与按键图标的映射关系更换为最新的映射关系,刷新寄存器的状态和数据库存储的内容等,从而实现遥控功能配置。After obtaining the remote control configuration information, the television terminal synchronizes the remote control function data of the television terminal according to the configuration protocol, the remote control code and the button picture, for example, replacing the mapping relationship between the remote control function and the button icon on the user interface with the latest mapping relationship, and refreshing the register. The state and the contents stored in the database, etc., to achieve remote control function configuration.
本实施例在数字电视网络发送的TS码流中增加遥控配置文件,电视终端直接从遥控配置文件中解析出遥控配置信息,并根据该遥控配置信息来配置遥控功能映射,无需人工修改软件代码,减少了相关人员的工作量,使遥控功能数据更新更加方便。In this embodiment, a remote control configuration file is added to the TS code stream sent by the digital television network, and the television terminal directly analyzes the remote control configuration information from the remote control configuration file, and configures the remote control function mapping according to the remote control configuration information, without manually modifying the software code. It reduces the workload of the relevant personnel and makes the remote control function data update more convenient.
如图2所示,图2为本发明遥控功能数据动态配置的方法的第二实施例的流程图。本实施例包括图1所示实施例的步骤,其中的步骤S20包括:As shown in FIG. 2, FIG. 2 is a flowchart of a second embodiment of a method for dynamically configuring remote control function data according to the present invention. This embodiment includes the steps of the embodiment shown in FIG. 1, wherein step S20 includes:
步骤S21,从TS的网络信息表NIT中解析预定义的链接描述符子表,获得预定义的节目号和预定义的第一包识别符PID1;Step S21, parsing the predefined link descriptor sub-table from the network information table NIT of the TS, obtaining a predefined program number and a predefined first packet identifier PID1;
步骤S22,从TS的节目关联表PAT中查找与预定义的节目号对应的第二包识别符PID2;Step S22, searching for the second package identifier PID2 corresponding to the predefined program number from the program association table PAT of the TS;
步骤S23,从TS中查找与PID2对应的节目映射表PMT;Step S23, searching for a program mapping table PMT corresponding to PID2 from the TS;
步骤S24,从节目映射表PMT中获取与PID1对应的基本码流ES数据;Step S24, acquiring basic code stream ES data corresponding to PID1 from the program mapping table PMT;
步骤S25,解码ES数据,获得遥控配置文件。In step S25, the ES data is decoded to obtain a remote control configuration file.
本实施例中,数字电视网络在发送TS码流前,预先将遥控配置文件添加到TS码流中。制作TS码流的方式如下。先在NIT中预定义一链接描述符子表,在链接描述符子表中预定义遥控配置文件所在位置的节目号和遥控配置文件对应的PID(即PID1),将用于更新的遥控配置文件通过数据编码器生成ES码流数据,并通过TS复用器将该遥控配置文件的ES码流数据添加到TS流中,该遥控配置文件的ES码流则可认为是TS流中的一路节目流。In this embodiment, the digital television network adds the remote control configuration file to the TS code stream before transmitting the TS code stream. The way to create a TS stream is as follows. First, a link descriptor sub-table is predefined in the NIT, and the program number of the remote control configuration file and the PID corresponding to the remote control configuration file (ie, PID1) are predefined in the link descriptor sub-table, and the remote control configuration file for updating is passed through the data encoder. The ES code stream data is generated, and the ES code stream data of the remote control profile is added to the TS stream through a TS multiplexer, and the ES code stream of the remote control profile can be regarded as one program stream in the TS stream.
电视终端在解析TS时,从NIT中的链接描述符子表中获取预定义的节目号和PID1,即遥控配置文件对应的节目号和PID。根据预定义的节目号从PAT中查找对应于节目号的PID2,并根据PID2查找到对应的PMT,从PMT中查找对应于PID1的ES数据,最终解析该ES数据,获得TS中的遥控配置文件。其中,可预先定义PID1=PID2,那么在从PAT中解析获得对应于节目号的PID2后,可比较解析的PID2是否与预定义的PID1相等,如果相等,说明解析正确,否则,说明解析有误,可提示用户解析出错,重新解析或重新获取TS流。When parsing the TS, the television terminal acquires a predefined program number and PID1 from the link descriptor sub-table in the NIT, that is, the program number and PID corresponding to the remote control configuration file. Searching for the PID2 corresponding to the program number from the PAT according to the predefined program number, and finding the corresponding PMT according to the PID2, searching for the ES data corresponding to the PID1 from the PMT, and finally parsing the ES data to obtain the remote control profile in the TS. . If PID1=PID2 can be defined in advance, after parsing PID2 corresponding to the program number from the PAT, it can be compared whether the parsed PID2 is equal to the predefined PID1. If they are equal, the parsing is correct. Otherwise, the parsing is incorrect. , can prompt the user to parse the error, re-parse or re-acquire the TS stream.
本实施例在TS码流中封装遥控配置文件,方便电视终端从TS流中获取遥控配置文件来配置遥控功能映射,无需人工修改软件代码,减少了相关人员的工作量,使遥控功能数据更新更加方便。In this embodiment, the remote control configuration file is encapsulated in the TS code stream, so that the television terminal can obtain the remote control configuration file from the TS stream to configure the remote control function mapping, without manually modifying the software code, reducing the workload of the relevant personnel, and making the remote control function data update more. Convenience.
如图3所示,图3为本发明遥控功能数据动态配置的方法的第三实施例的流程图。本实施例包括图1所示实施例的步骤,其中的步骤S30包括:As shown in FIG. 3, FIG. 3 is a flowchart of a third embodiment of a method for dynamically configuring remote control function data according to the present invention. This embodiment includes the steps of the embodiment shown in FIG. 1, wherein step S30 includes:
步骤S31,判断本机的遥控布局图是否已自定义编辑;如果是,则执行步骤S32;如果否则执行步骤S33;Step S31, it is determined whether the remote control layout map of the machine has been custom edited; if so, step S32 is performed; if not, step S33 is performed;
步骤S32,根据已自定义编辑的遥控布局图生成对应的遥控协议和遥控码,并在TS解析的遥控配置文件中,查找与遥控码对应的按键图片,将生成的遥控协议和遥控码以及查找的按键图片作为遥控配置信息。Step S32, generating a corresponding remote control protocol and a remote control code according to the remotely edited layout of the customized edit, and searching for a button image corresponding to the remote control code in the remote analysis profile parsed by the TS, and generating the remote control protocol and the remote control code and searching The button picture is used as the remote configuration information.
步骤S33,从TS解析的遥控配置文件中获取遥控协议、遥控码和按键图片,作为遥控配置信息。Step S33, obtaining a remote control protocol, a remote control code, and a button picture from the remote configuration file parsed by the TS as the remote configuration information.
本实施例的电视终端具有自定义更改遥控按键配置的功能,当用户需要更改遥控按键功能时,可触发遥控器的自定义编辑指令时,电视终端的屏幕上显示当前的遥控布局图,用户可在遥控布局图中设置需更改的按键。例如,将增加音量的功能由原有的“音量加”按键更改为“红色”按键;将向上切换频道的功能由原有的“频道减”按键更改为“蓝色”按键,如下表所示:The television terminal of the embodiment has the function of custom changing the configuration of the remote control button. When the user needs to change the function of the remote control button, when the custom editing instruction of the remote controller is triggered, the current remote control layout map is displayed on the screen of the television terminal, and the user can Set the button to be changed in the remote layout. For example, the function of increasing the volume is changed from the original “volume plus” button to the “red” button; the function of switching the channel up is changed from the original “channel minus” button to the “blue” button, as shown in the following table. :
功能Features 当前遥控键Current remote control button 自定义的遥控键Custom remote control button
增加音量Increase volume BTN_VOL_UPBTN_VOL_UP BTN_REDBTN_RED
向上切换频道Switch channels up BTN_GRP_UPBTN_GRP_UP BTN_BLUEBTN_BLUE
...
电视终端将用户配置过的遥控布局图存储起来,并设置标志位标识本机的遥控布局图已进行过自定义编辑。电视机在提取TS解析的遥控配置文件内的配置信息前,先判断本机的遥控布局图是否已自定义编辑。如果已自定义编辑,则从遥控布局图中提取相关的遥控协议和遥控码,在TS解析的遥控配置文件内只提取对应遥控布局图中自定义按键的图片,即根据用户自定义编辑的遥控配置信息来更新电视终端的遥控功能数据。否则,用户没有自行编辑遥控配置信息,则从TS流的遥控配置文件中获取遥控配置信息。The TV terminal stores the remote layout map configured by the user, and sets the flag to identify that the remote layout of the machine has been customized. Before extracting the configuration information in the TS remote configuration file, the TV determines whether the remote layout of the machine has been customized. If the edit has been customized, the relevant remote control protocol and remote control code are extracted from the remote control layout map, and only the picture of the custom key in the corresponding remote control layout map is extracted in the remote analysis configuration file of the TS analysis, that is, the remote control according to the user-defined edit. The configuration information is used to update the remote control function data of the television terminal. Otherwise, if the user does not edit the remote configuration information by himself, the remote configuration information is obtained from the remote configuration file of the TS stream.
本实施例在遥控布局图有修改时,根据用户自定义编辑的遥控配置信息来更新电视终端的遥控功能数据,使遥控功能配置更加灵活。In this embodiment, when the remote control layout map is modified, the remote control function data of the television terminal is updated according to the remote control configuration information edited by the user, so that the remote control function configuration is more flexible.
如图4所示,图4为本发明遥控功能数据动态配置的方法的第四实施例的流程图。本实施例包括图1所示实施例的步骤,在步骤S20之后还包括:As shown in FIG. 4, FIG. 4 is a flowchart of a fourth embodiment of a method for dynamically configuring remote control function data according to the present invention. This embodiment includes the steps of the embodiment shown in FIG. 1. After step S20, the method further includes:
步骤S51,获取本机的遥控配置标识信息;Step S51, acquiring remote control configuration identification information of the local machine;
步骤S52,从TS解析的多个遥控配置文件中查找与本机的遥控配置标识信息匹配的一个遥控配置文件。Step S52, searching for a remote control profile that matches the remote configuration identification information of the local device from the plurality of remote control profiles parsed by the TS.
本实施例中TS解析的遥控配置文件包括多个,不同的地区、或不同制式的电视终端,对遥控配置信息的格式、编码方式等可能会有不同的需求。此外,电视终端内原有的遥控功能数据可能已经是最近更新过的,本次从TS解析的遥控配置文件与前一次用于更新的遥控配置文件内容一致,则本次无须更新。针对上述情况,可预先将多个遥控配置文件一并封装到TS流中,包括不同版本、不同格式、不同编码方式的遥控配置文件,并在各个遥控配置文件中分别添加各自对应的遥控配置标识信息。电视终端在从TS中解析出多个遥控配置文件后,将电视终端内的遥控配置标识信息与解析的遥控配置文件中的遥控配置标识信息进行匹配。如果找到匹配的遥控配置文件,则说明当前的遥控功能数据需要更新;否则,说明当前电视终端无须更新,可提示用户未找到匹配的遥控配置文件。如此一来,通过遥控配置标识信息查找匹配的遥控配置文件,避免了因遥控配置文件出错影响遥控功能的正常使用,确保了遥控功能配置的准确性。The remote control configuration file parsed by the TS in this embodiment includes a plurality of TV terminals of different regions or different systems, and may have different requirements on the format and coding mode of the remote control configuration information. In addition, the original remote control function data in the TV terminal may have been recently updated. The remote control configuration file parsed from the TS is consistent with the content of the remote control configuration file used for the update, and this time there is no need to update. For the above situation, a plurality of remote control profiles may be pre-packaged into the TS stream, including remote control profiles of different versions, different formats, and different encoding modes, and respective remote control configuration identifiers are respectively added in each remote control configuration file. information. After parsing the plurality of remote control profiles from the TS, the television terminal matches the remote configuration identification information in the television terminal with the remote configuration identification information in the analyzed remote configuration file. If a matching remote control profile is found, the current remote control function data needs to be updated; otherwise, the current television terminal does not need to be updated, and the user may be prompted not to find a matching remote control profile. In this way, the remote control configuration information is used to find the matching remote control configuration file, thereby avoiding the normal use of the remote control function due to the error of the remote control configuration file, and ensuring the accuracy of the remote control function configuration.
如图5所示,图5为本发明遥控功能数据动态配置的装置的第一实施例的模块示意图。本实施例的遥控功能数据动态配置的装置,包括:As shown in FIG. 5, FIG. 5 is a schematic block diagram of a first embodiment of an apparatus for dynamically configuring remote control function data according to the present invention. The apparatus for dynamically configuring the remote control function data of the embodiment includes:
收发模块10,用于接收数字电视网络发送的传输流TS;The transceiver module 10 is configured to receive a transport stream TS sent by the digital television network;
解析模块20,用于从TS中解析出遥控配置文件;The parsing module 20 is configured to parse the remote control configuration file from the TS;
配置信息获取模块30,用于从遥控配置文件中获取遥控配置信息;The configuration information obtaining module 30 is configured to obtain remote control configuration information from the remote control configuration file;
更新模块40,用于根据遥控配置信息更新本机的遥控功能数据。The update module 40 is configured to update the remote control function data of the local machine according to the remote control configuration information.
本实施例中,数字电视网络在发送TS码流前,预先将遥控配置文件通过数据编码器编码,生成一ES流,再通过TS复用器将该ES流与其他电视节目的ES流一起添加到TS码流中,并通过码流器将TS码流广播到数字电视网络中。电视终端通过常规接收电视信号的方式从数字电视网络中获取TS码流。In this embodiment, before transmitting the TS code stream, the digital television network encodes the remote control configuration file through the data encoder to generate an ES stream, and then adds the ES stream to the ES stream of other television programs through the TS multiplexer. The TS stream is streamed into the TS stream and broadcasted to the digital television network by the streamer. The television terminal acquires the TS code stream from the digital television network by conventionally receiving the television signal.
电视终端对获得的TS码流进行解析,从中解析出遥控配置文件,该遥控配置文件中包括电视或遥控器开发方最新发布遥控配置信息,该遥控配置信息可包括配置协议、遥控码和按键图片。其中,配置协议即遥控按键与遥控功能之间的映射关系,遥控码即遥控按键对应的代码,按键图片即遥控按键对应的图片。当某一个按键的功能有修改时,配置协议中反应出该功能与更改前按键和更改后按键之间的映射关系,遥控码也包括更改前按键和更改后按键的对应代码,按键图片则是对应于更改后按键的图片信息。The TV terminal parses the obtained TS code stream, and parses out the remote control configuration file, where the remote control configuration file includes the latest release remote control configuration information of the TV or the remote controller developer, and the remote control configuration information may include a configuration protocol, a remote control code, and a button picture. . Among them, the configuration protocol is the mapping relationship between the remote control button and the remote control function, the remote control code is the code corresponding to the remote control button, and the button picture is the picture corresponding to the remote control button. When the function of a button is modified, the configuration protocol reflects the mapping relationship between the function and the button before the change and the button after the change. The remote control code also includes the corresponding code of the button before the change and the button after the change, and the button picture is Corresponds to the picture information of the changed button.
电视终端在获得遥控配置信息后,根据配置协议、遥控码和按键图片同步电视终端的遥控功能数据,例如,将用户界面上的遥控功能与按键图标的映射关系更换为最新的映射关系,刷新寄存器的状态和数据库存储的内容等,从而实现遥控功能配置。After obtaining the remote control configuration information, the television terminal synchronizes the remote control function data of the television terminal according to the configuration protocol, the remote control code and the button picture, for example, replacing the mapping relationship between the remote control function and the button icon on the user interface with the latest mapping relationship, and refreshing the register. The state and the contents stored in the database, etc., to achieve remote control function configuration.
本实施例在数字电视网络发送的TS码流中增加遥控配置文件,电视终端直接从遥控配置文件中解析出遥控配置信息,并根据该遥控配置信息来配置遥控功能映射,无需人工修改软件代码,减少了相关人员的工作量,使遥控功能数据更新更加方便。In this embodiment, a remote control configuration file is added to the TS code stream sent by the digital television network, and the television terminal directly analyzes the remote control configuration information from the remote control configuration file, and configures the remote control function mapping according to the remote control configuration information, without manually modifying the software code. It reduces the workload of the relevant personnel and makes the remote control function data update more convenient.
进一步的,解析模块20还用于:Further, the parsing module 20 is further configured to:
从TS的网络信息表NIT中解析预定义的链接描述符子表,获得预定义的节目号和预定义的第一包识别符PID1;Parsing a predefined link descriptor sub-table from the network information table NIT of the TS to obtain a predefined program number and a predefined first packet identifier PID1;
从TS的节目关联表PAT中查找与预定义的节目号对应的第二包识别符PID2;Finding a second packet identifier PID2 corresponding to the predefined program number from the program association table PAT of the TS;
从TS中查找与PID2对应的节目映射表PMT;Finding a program mapping table PMT corresponding to PID2 from the TS;
从节目映射表PMT中获取与PID1对应的基本码流ES数据;Obtaining basic code stream ES data corresponding to PID1 from the program map table PMT;
解码ES数据,获得遥控配置文件。Decode the ES data to get the remote configuration file.
本实施例中,数字电视网络在发送TS码流前,预先将遥控配置文件添加到TS码流中。制作TS码流的方式如下。先在NIT中预定义一链接描述符子表,在链接描述符子表中预定义遥控配置文件所在位置的节目号和遥控配置文件对应的PID(即PID1),将用于更新的遥控配置文件通过数据编码器生成ES码流数据,并通过TS复用器将该遥控配置文件的ES码流数据添加到TS流中,该遥控配置文件的ES码流则可认为是TS流中的一路节目流。In this embodiment, the digital television network adds the remote control configuration file to the TS code stream before transmitting the TS code stream. The way to create a TS stream is as follows. First, a link descriptor sub-table is predefined in the NIT, and the program number of the remote control configuration file and the PID corresponding to the remote control configuration file (ie, PID1) are predefined in the link descriptor sub-table, and the remote control configuration file for updating is passed through the data encoder. The ES code stream data is generated, and the ES code stream data of the remote control profile is added to the TS stream through a TS multiplexer, and the ES code stream of the remote control profile can be regarded as one program stream in the TS stream.
电视终端在解析TS时,从NIT中的链接描述符子表中获取预定义的节目号和PID1,即遥控配置文件对应的节目号和PID。根据预定义的节目号从PAT中查找对应于节目号的PID2,并根据PID2查找到对应的PMT,从PMT中查找对应于PID1的ES数据,最终解析该ES数据,获得TS中的遥控配置文件。其中,可预先定义PID1=PID2,那么在从PAT中解析获得对应于节目号的PID2后,可比较解析的PID2是否与预定义的PID1相等,如果相等,说明解析正确,否则,说明解析有误,可提示用户解析出错,重新解析或重新获取TS流。When parsing the TS, the television terminal acquires a predefined program number and PID1 from the link descriptor sub-table in the NIT, that is, the program number and PID corresponding to the remote control configuration file. Searching for the PID2 corresponding to the program number from the PAT according to the predefined program number, and finding the corresponding PMT according to the PID2, searching for the ES data corresponding to the PID1 from the PMT, and finally parsing the ES data to obtain the remote control profile in the TS. . If PID1=PID2 can be defined in advance, after parsing PID2 corresponding to the program number from the PAT, it can be compared whether the parsed PID2 is equal to the predefined PID1. If they are equal, the parsing is correct. Otherwise, the parsing is incorrect. , can prompt the user to parse the error, re-parse or re-acquire the TS stream.
本实施例在TS码流中封装遥控配置文件,方便电视终端从TS流中获取遥控配置文件来配置遥控功能映射,无需人工修改软件代码,减少了相关人员的工作量,使遥控功能数据更新更加方便。In this embodiment, the remote control configuration file is encapsulated in the TS code stream, so that the television terminal can obtain the remote control configuration file from the TS stream to configure the remote control function mapping, without manually modifying the software code, reducing the workload of the relevant personnel, and making the remote control function data update more. Convenience.
进一步的,配置信息获取模块30还用于:Further, the configuration information obtaining module 30 is further configured to:
当本机的遥控布局图已自定义编辑时,根据已自定义编辑的遥控布局图生成对应的遥控协议和遥控码,并在TS解析的遥控配置文件中,查找与遥控码对应的按键图片,将生成的遥控协议和遥控码以及查找的按键图片作为遥控配置信息。When the remote layout map of the machine has been customized for editing, the corresponding remote control protocol and remote control code are generated according to the remotely edited layout of the customized edit, and the button image corresponding to the remote control code is searched in the remotely analyzed configuration file of the TS analysis. The generated remote control protocol and remote control code and the searched button picture are used as the remote configuration information.
当本机的遥控布局图未自定义编辑时,从TS解析的遥控配置文件中获取遥控协议、遥控码和按键图片,作为遥控配置信息。When the remote layout of the machine is not customized for editing, the remote control protocol, remote control code and button picture are obtained from the remote configuration file parsed by the TS as the remote configuration information.
本实施例的电视终端具有自定义更改遥控按键配置的功能,当用户需要更改遥控按键功能时,可触发遥控器的自定义编辑指令时,电视终端的屏幕上显示当前的遥控布局图,用户可在遥控布局图中设置需更改的按键。例如,将增加音量的功能由原有的“音量加”按键更改为“红色”按键;将向上切换频道的功能由原有的“频道减”按键更改为“蓝色”按键,如下表所示:The television terminal of the embodiment has the function of custom changing the configuration of the remote control button. When the user needs to change the function of the remote control button, when the custom editing instruction of the remote controller is triggered, the current remote control layout map is displayed on the screen of the television terminal, and the user can Set the button to be changed in the remote layout. For example, the function of increasing the volume is changed from the original “volume plus” button to the “red” button; the function of switching the channel up is changed from the original “channel minus” button to the “blue” button, as shown in the following table. :
功能Features 当前遥控键Current remote control button 自定义的遥控键Custom remote control button
增加音量Increase volume BTN_VOL_UPBTN_VOL_UP BTN_REDBTN_RED
向上切换频道Switch channels up BTN_GRP_UPBTN_GRP_UP BTN_BLUEBTN_BLUE
...
电视终端将用户配置过的遥控布局图存储起来,并设置标志位标识本机的遥控布局图已进行过自定义编辑。电视机在提取TS解析的遥控配置文件内的配置信息前,先判断本机的遥控布局图是否已自定义编辑。如果已自定义编辑,则从遥控布局图中提取相关的遥控协议和遥控码,在TS解析的遥控配置文件内只提取对应遥控布局图中自定义按键的图片,即根据用户自定义编辑的遥控配置信息来更新电视终端的遥控功能数据。否则,用户没有自行编辑遥控配置信息,则从TS流的遥控配置文件中获取遥控配置信息。The TV terminal stores the remote layout map configured by the user, and sets the flag to identify that the remote layout of the machine has been customized. Before extracting the configuration information in the TS remote configuration file, the TV determines whether the remote layout of the machine has been customized. If the edit has been customized, the relevant remote control protocol and remote control code are extracted from the remote control layout map, and only the picture of the custom key in the corresponding remote control layout map is extracted in the remote analysis configuration file of the TS analysis, that is, the remote control according to the user-defined edit. The configuration information is used to update the remote control function data of the television terminal. Otherwise, if the user does not edit the remote configuration information by himself, the remote configuration information is obtained from the remote configuration file of the TS stream.
本实施例在遥控布局图有修改时,根据用户自定义编辑的遥控配置信息来更新电视终端的遥控功能数据,使遥控功能配置更加灵活。In this embodiment, when the remote control layout map is modified, the remote control function data of the television terminal is updated according to the remote control configuration information edited by the user, so that the remote control function configuration is more flexible.
如图6所示,图6为本发明遥控功能数据动态配置的装置的第二实施例的模块示意图。本实施例包括图5所示实施例的模块,还包括匹配模块50,用于获取本机的遥控配置标识信息;从TS解析的多个遥控配置文件中查找与本机的遥控配置标识信息匹配的一个遥控配置文件。As shown in FIG. 6, FIG. 6 is a schematic block diagram of a second embodiment of an apparatus for dynamically configuring remote control function data according to the present invention. The embodiment includes the module of the embodiment shown in FIG. 5, and further includes a matching module 50, configured to acquire remote control configuration identification information of the local device, and search for multiple remote control configuration files parsed by the TS to match the remote control configuration identification information of the local device. A remote control profile.
本实施例中TS解析的遥控配置文件包括多个,不同的地区、或不同制式的电视终端,对遥控配置信息的格式、编码方式等可能会有不同的需求。此外,电视终端内原有的遥控功能数据可能已经是最近更新过的,本次从TS解析的遥控配置文件与前一次用于更新的遥控配置文件内容一致,则本次无须更新。针对上述情况,可预先将多个遥控配置文件一并封装到TS流中,包括不同版本、不同格式、不同编码方式的遥控配置文件,并在各个遥控配置文件中分别添加各自对应的遥控配置标识信息。电视终端在从TS中解析出多个遥控配置文件后,将电视终端内的遥控配置标识信息与解析的遥控配置文件中的遥控配置标识信息进行匹配。如果找到匹配的遥控配置文件,则说明当前的遥控功能数据需要更新;否则,说明当前电视终端无须更新,可提示用户未找到匹配的遥控配置文件。如此一来,通过遥控配置标识信息查找匹配的遥控配置文件,避免了因遥控配置文件出错影响遥控功能的正常使用,确保了遥控功能配置的准确性。The remote control configuration file parsed by the TS in this embodiment includes a plurality of TV terminals of different regions or different systems, and may have different requirements on the format and coding mode of the remote control configuration information. In addition, the original remote control function data in the TV terminal may have been recently updated. The remote control configuration file parsed from the TS is consistent with the content of the remote control configuration file used for the update, and this time there is no need to update. For the above situation, a plurality of remote control profiles may be pre-packaged into the TS stream, including remote control profiles of different versions, different formats, and different encoding modes, and respective remote control configuration identifiers are respectively added in each remote control configuration file. information. After parsing the plurality of remote control profiles from the TS, the television terminal matches the remote configuration identification information in the television terminal with the remote configuration identification information in the analyzed remote configuration file. If a matching remote control profile is found, the current remote control function data needs to be updated; otherwise, the current television terminal does not need to be updated, and the user may be prompted not to find a matching remote control profile. In this way, the remote control configuration information is used to find the matching remote control configuration file, thereby avoiding the normal use of the remote control function due to the error of the remote control configuration file, and ensuring the accuracy of the remote control function configuration.
以上所述仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the invention and the drawings are directly or indirectly applied to other related The technical field is equally included in the scope of patent protection of the present invention.

Claims (20)

  1. 一种遥控功能数据动态配置的方法,其特征在于,包括步骤: A method for dynamic configuration of remote control function data, comprising the steps of:
    接收数字电视网络发送的传输流TS;Receiving a transport stream TS sent by the digital television network;
    从所述TS中解析出遥控配置文件;Parsing a remote control configuration file from the TS;
    从所述遥控配置文件中获取遥控配置信息;Obtaining remote configuration information from the remote configuration file;
    根据所述遥控配置信息更新本机的遥控功能数据;Updating the remote control function data of the local machine according to the remote control configuration information;
    其中:所述从所述TS中解析出遥控配置文件的步骤包括:The step of parsing the remote control configuration file from the TS includes:
    从所述TS的网络信息表NIT中解析预定义的链接描述符子表,获得预定义的节目号和预定义的第一包识别符PID1;Parsing a predefined link descriptor sub-table from the network information table NIT of the TS to obtain a predefined program number and a predefined first packet identifier PID1;
    从所述TS的节目关联表PAT中查找与所述预定义的节目号对应的第二包识别符PID2;Searching, from the program association table PAT of the TS, a second packet identifier PID2 corresponding to the predefined program number;
    从所述TS中查找与所述PID2对应的节目映射表PMT;Finding a program mapping table PMT corresponding to the PID2 from the TS;
    从所述节目映射表PMT中获取与所述PID1对应的基本码流ES数据;Obtaining basic code stream ES data corresponding to the PID1 from the program mapping table PMT;
    解码所述ES数据,获得所述遥控配置文件;Decoding the ES data to obtain the remote control configuration file;
    所述从遥控配置文件中获取遥控配置信息的步骤包括:The step of obtaining remote configuration information from the remote configuration file includes:
    当本机的遥控布局图已自定义编辑时,根据已自定义编辑的遥控布局图生成对应的遥控协议和遥控码,并在所述TS解析的遥控配置文件中,查找与所述遥控码对应的按键图片,将生成的遥控协议和遥控码以及查找的按键图片作为所述遥控配置信息。When the remote control layout map of the local machine has been customized for editing, a corresponding remote control protocol and a remote control code are generated according to the remotely edited layout of the customized edit, and in the remotely analyzed configuration file of the TS analysis, the corresponding remote control code is searched for. The button picture, the generated remote protocol and remote control code and the searched button picture are used as the remote configuration information.
  2. 权利要求1所述的遥控功能数据动态配置的方法,其特征在于,所述从遥控配置文件中获取遥控配置信息的步骤还包括:The method for dynamically configuring remote control function data according to claim 1, wherein the step of obtaining remote control configuration information from the remote control configuration file further comprises:
    当本机的遥控布局图未自定义编辑时,从所述TS解析的遥控配置文件中获取遥控协议、遥控码和按键图片,作为所述遥控配置信息。When the remote control layout of the local machine is not customized for editing, a remote control protocol, a remote control code, and a button picture are obtained from the remote analysis profile parsed by the TS as the remote control configuration information.
  3. 权利要求1所述的遥控功能数据动态配置的方法,其特征在于,所述TS解析的遥控配置文件的个数为多个;The method for dynamically configuring remote control function data according to claim 1, wherein the number of remote configuration files parsed by the TS is multiple;
    所述从TS中解析出遥控配置文件的步骤之后还包括:After the step of parsing the remote control configuration file from the TS, the method further includes:
    获取本机的遥控配置标识信息;Obtain the remote control configuration identification information of the machine;
    从所述TS解析的多个遥控配置文件中查找与所述本机的遥控配置标识信息匹配的一个遥控配置文件。Finding a remote control profile that matches the remote configuration identification information of the local machine from the plurality of remote control profiles parsed by the TS.
  4. 权利要求2所述的遥控功能数据动态配置的方法,其特征在于,所述TS解析的遥控配置文件的个数为多个;The method for dynamic configuration of remote control function data according to claim 2, wherein the number of remote configuration files parsed by the TS is multiple;
    所述从TS中解析出遥控配置文件的步骤之后还包括:After the step of parsing the remote control configuration file from the TS, the method further includes:
    获取本机的遥控配置标识信息;Obtain the remote control configuration identification information of the machine;
    从所述TS解析的多个遥控配置文件中查找与所述本机的遥控配置标识信息匹配的一个遥控配置文件。Finding a remote control profile that matches the remote configuration identification information of the local machine from the plurality of remote control profiles parsed by the TS.
  5. 种遥控功能数据动态配置的方法,其特征在于,包括步骤:A method for dynamic configuration of remote control function data, characterized in that the method comprises the steps of:
    接收数字电视网络发送的传输流TS;Receiving a transport stream TS sent by the digital television network;
    从所述TS中解析出遥控配置文件;Parsing a remote control configuration file from the TS;
    从所述遥控配置文件中获取遥控配置信息;Obtaining remote configuration information from the remote configuration file;
    根据所述遥控配置信息更新本机的遥控功能数据。The remote control function data of the local machine is updated according to the remote control configuration information.
  6. 权利要求5所述的遥控功能数据动态配置的方法,其特征在于,所述从所述TS中解析出遥控配置文件的步骤包括:The method for dynamically configuring remote control function data according to claim 5, wherein the step of parsing the remote control profile from the TS comprises:
    从所述TS的网络信息表NIT中解析预定义的链接描述符子表,获得预定义的节目号和预定义的第一包识别符PID1;Parsing a predefined link descriptor sub-table from the network information table NIT of the TS to obtain a predefined program number and a predefined first packet identifier PID1;
    从所述TS的节目关联表PAT中查找与所述预定义的节目号对应的第二包识别符PID2;Searching, from the program association table PAT of the TS, a second packet identifier PID2 corresponding to the predefined program number;
    从所述TS中查找与所述PID2对应的节目映射表PMT;Finding a program mapping table PMT corresponding to the PID2 from the TS;
    从所述节目映射表PMT中获取与所述PID1对应的基本码流ES数据;Obtaining basic code stream ES data corresponding to the PID1 from the program mapping table PMT;
    解码所述ES数据,获得所述遥控配置文件。Decoding the ES data to obtain the remote configuration file.
  7. 权利要求6所述的遥控功能数据动态配置的方法,其特征在于,所述从遥控配置文件中获取遥控配置信息的步骤包括:The method for dynamically configuring remote control function data according to claim 6, wherein the step of acquiring remote configuration information from the remote control configuration file comprises:
    当本机的遥控布局图已自定义编辑时,根据已自定义编辑的遥控布局图生成对应的遥控协议和遥控码,并在所述TS解析的遥控配置文件中,查找与所述遥控码对应的按键图片,将生成的遥控协议和遥控码以及查找的按键图片作为所述遥控配置信息。When the remote control layout map of the local machine has been customized for editing, a corresponding remote control protocol and a remote control code are generated according to the remotely edited layout of the customized edit, and in the remotely analyzed configuration file of the TS analysis, the corresponding remote control code is searched for. The button picture, the generated remote protocol and remote control code and the searched button picture are used as the remote configuration information.
  8. 权利要求7所述的遥控功能数据动态配置的方法,其特征在于,所述从遥控配置文件中获取遥控配置信息的步骤包括:The method for dynamically configuring remote control function data according to claim 7, wherein the step of acquiring remote configuration information from the remote control configuration file comprises:
    当本机的遥控布局图未自定义编辑时,从所述TS解析的遥控配置文件中获取遥控协议、遥控码和按键图片,作为所述遥控配置信息。When the remote control layout of the local machine is not customized for editing, a remote control protocol, a remote control code, and a button picture are obtained from the remote analysis profile parsed by the TS as the remote control configuration information.
  9. 权利要求5所述的遥控功能数据动态配置的方法,其特征在于,所述TS解析的遥控配置文件的个数为多个;The method for dynamically configuring remote control function data according to claim 5, wherein the number of remote configuration files parsed by the TS is multiple;
    所述从TS中解析出遥控配置文件的步骤之后还包括:After the step of parsing the remote control configuration file from the TS, the method further includes:
    获取本机的遥控配置标识信息;Obtain the remote control configuration identification information of the machine;
    从所述TS解析的多个遥控配置文件中查找与所述本机的遥控配置标识信息匹配的一个遥控配置文件。Finding a remote control profile that matches the remote configuration identification information of the local machine from the plurality of remote control profiles parsed by the TS.
  10. 权利要求6所述的遥控功能数据动态配置的方法,其特征在于,所述TS解析的遥控配置文件的个数为多个;The method for dynamic configuration of remote control function data according to claim 6, wherein the number of remote configuration files parsed by the TS is multiple;
    所述从TS中解析出遥控配置文件的步骤之后还包括:After the step of parsing the remote control configuration file from the TS, the method further includes:
    获取本机的遥控配置标识信息;Obtain the remote control configuration identification information of the machine;
    从所述TS解析的多个遥控配置文件中查找与所述本机的遥控配置标识信息匹配的一个遥控配置文件。Finding a remote control profile that matches the remote configuration identification information of the local machine from the plurality of remote control profiles parsed by the TS.
  11. 权利要求7所述的遥控功能数据动态配置的方法,其特征在于,所述TS解析的遥控配置文件的个数为多个;The method for dynamic configuration of remote control function data according to claim 7, wherein the number of remote configuration files parsed by the TS is multiple;
    所述从TS中解析出遥控配置文件的步骤之后还包括:After the step of parsing the remote control configuration file from the TS, the method further includes:
    获取本机的遥控配置标识信息;Obtain the remote control configuration identification information of the machine;
    从所述TS解析的多个遥控配置文件中查找与所述本机的遥控配置标识信息匹配的一个遥控配置文件。Finding a remote control profile that matches the remote configuration identification information of the local machine from the plurality of remote control profiles parsed by the TS.
  12. 权利要求8所述的遥控功能数据动态配置的方法,其特征在于,所述TS解析的遥控配置文件的个数为多个;The method for dynamic configuration of remote control function data according to claim 8, wherein the number of remote configuration files parsed by the TS is multiple;
    所述从TS中解析出遥控配置文件的步骤之后还包括:After the step of parsing the remote control configuration file from the TS, the method further includes:
    获取本机的遥控配置标识信息;Obtain the remote control configuration identification information of the machine;
    从所述TS解析的多个遥控配置文件中查找与所述本机的遥控配置标识信息匹配的一个遥控配置文件。Finding a remote control profile that matches the remote configuration identification information of the local machine from the plurality of remote control profiles parsed by the TS.
  13. 种遥控功能数据动态配置的装置,其特征在于,包括:The device for dynamic configuration of remote control function data is characterized in that it comprises:
    收发模块,用于接收数字电视网络发送的传输流TS;a transceiver module, configured to receive a transport stream TS sent by the digital television network;
    解析模块,用于从所述TS中解析出遥控配置文件;a parsing module, configured to parse the remote control configuration file from the TS;
    配置信息获取模块,用于从所述遥控配置文件中获取遥控配置信息;a configuration information acquiring module, configured to obtain remote configuration information from the remote control configuration file;
    更新模块,用于根据所述遥控配置信息更新本机的遥控功能数据。And an update module, configured to update remote control function data of the local machine according to the remote control configuration information.
  14. 权利要求13所述的遥控功能数据动态配置的装置,其特征在于,所述解析模块还用于:The apparatus for dynamically configuring remote control function data according to claim 13, wherein the parsing module is further configured to:
    从所述TS的网络信息表NIT中解析预定义的链接描述符子表,获得预定义的节目号和预定义的第一包识别符PID1;Parsing a predefined link descriptor sub-table from the network information table NIT of the TS to obtain a predefined program number and a predefined first packet identifier PID1;
    从所述TS的节目关联表PAT中查找与所述预定义的节目号对应的第二包识别符PID2;Searching, from the program association table PAT of the TS, a second packet identifier PID2 corresponding to the predefined program number;
    从所述TS中查找与所述PID2对应的节目映射表PMT;Finding a program mapping table PMT corresponding to the PID2 from the TS;
    从所述节目映射表PMT中获取与所述PID1对应的基本码流ES数据;Obtaining basic code stream ES data corresponding to the PID1 from the program mapping table PMT;
    解码所述ES数据,获得所述遥控配置文件。Decoding the ES data to obtain the remote configuration file.
  15. 如权利要求13所述的遥控功能数据动态配置的装置,其特征在于,所述配置信息获取模块还用于:The apparatus for dynamically configuring remote control function data according to claim 13, wherein the configuration information acquisition module is further configured to:
    当本机的遥控布局图已自定义编辑时,根据已自定义编辑的遥控布局图生成对应的遥控协议和遥控码,并在所述TS解析的遥控配置文件中,查找与所述遥控码对应的按键图片,将生成的遥控协议和遥控码以及查找的按键图片作为所述遥控配置信息。When the remote control layout map of the local machine has been customized for editing, a corresponding remote control protocol and a remote control code are generated according to the remotely edited layout of the customized edit, and in the remotely analyzed configuration file of the TS analysis, the corresponding remote control code is searched for. The button picture, the generated remote protocol and remote control code and the searched button picture are used as the remote configuration information.
  16. 权利要求15所述的遥控功能数据动态配置的装置,其特征在于,所述配置信息获取模块还用于:The apparatus for dynamically configuring remote control function data according to claim 15, wherein the configuration information acquisition module is further configured to:
    当本机的遥控布局图未自定义编辑时,从所述TS解析的遥控配置文件中获取遥控协议、遥控码和按键图片,作为所述遥控配置信息。When the remote control layout of the local machine is not customized for editing, a remote control protocol, a remote control code, and a button picture are obtained from the remote analysis profile parsed by the TS as the remote control configuration information.
  17. 权利要求13所述的遥控功能数据动态配置的装置,其特征在于,所述TS解析的遥控配置文件的个数为多个;所述遥控功能数据动态配置的装置还包括匹配模块,用于获取本机的遥控配置标识信息;从所述TS解析的多个遥控配置文件中查找与所述本机的遥控配置标识信息匹配的一个遥控配置文件。The device for dynamic configuration of remote control function data according to claim 13, wherein the number of remotely configured configuration files of the TS analysis is multiple; and the device for dynamically configuring the remote control function data further comprises a matching module, configured to acquire The remote control configuration identification information of the local machine; searching for a remote control configuration file matching the remote control configuration identification information of the local machine from the plurality of remote control configuration files parsed by the TS.
  18. 权利要求14所述的遥控功能数据动态配置的装置,其特征在于,所述TS解析的遥控配置文件的个数为多个;所述遥控功能数据动态配置的装置还包括匹配模块,用于获取本机的遥控配置标识信息;从所述TS解析的多个遥控配置文件中查找与所述本机的遥控配置标识信息匹配的一个遥控配置文件。The device for dynamic configuration of remote control function data according to claim 14, wherein the number of remotely configured configuration files of the TS analysis is multiple; and the device for dynamically configuring the remote control function data further comprises a matching module, configured to acquire The remote control configuration identification information of the local machine; searching for a remote control configuration file matching the remote control configuration identification information of the local machine from the plurality of remote control configuration files parsed by the TS.
  19. 权利要求15所述的遥控功能数据动态配置的装置,其特征在于,所述TS解析的遥控配置文件的个数为多个;所述遥控功能数据动态配置的装置还包括匹配模块,用于获取本机的遥控配置标识信息;从所述TS解析的多个遥控配置文件中查找与所述本机的遥控配置标识信息匹配的一个遥控配置文件。The device for dynamic configuration of remote control function data according to claim 15, wherein the number of remotely configured configuration files of the TS analysis is multiple; and the device for dynamically configuring the remote control function data further comprises a matching module, configured to acquire The remote control configuration identification information of the local machine; searching for a remote control configuration file matching the remote control configuration identification information of the local machine from the plurality of remote control configuration files parsed by the TS.
  20. 如权利要求16所述的遥控功能数据动态配置的装置,其特征在于,所述TS解析的遥控配置文件的个数为多个;所述遥控功能数据动态配置的装置还包括匹配模块,用于获取本机的遥控配置标识信息;从所述TS解析的多个遥控配置文件中查找与所述本机的遥控配置标识信息匹配的一个遥控配置文件。The apparatus for dynamic configuration of remote control function data according to claim 16, wherein the number of remotely configured configuration files parsed by the TS is multiple; and the apparatus for dynamically configuring the remote control function data further comprises a matching module, Obtaining remote control configuration identification information of the local device; searching for a remote control configuration file matching the remote control configuration identification information of the local machine from the plurality of remote control configuration files parsed by the TS.
PCT/CN2016/084431 2015-07-30 2016-06-02 Method and apparatus for dynamically configuring remote control function data WO2017016310A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510458580.3 2015-07-30
CN201510458580.3A CN105187854B (en) 2015-07-30 2015-07-30 The method and apparatus of distant control function data dynamic configuration

Publications (1)

Publication Number Publication Date
WO2017016310A1 true WO2017016310A1 (en) 2017-02-02

Family

ID=54909655

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084431 WO2017016310A1 (en) 2015-07-30 2016-06-02 Method and apparatus for dynamically configuring remote control function data

Country Status (2)

Country Link
CN (1) CN105187854B (en)
WO (1) WO2017016310A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187854B (en) * 2015-07-30 2018-09-04 深圳Tcl数字技术有限公司 The method and apparatus of distant control function data dynamic configuration
CN105979322A (en) * 2016-05-18 2016-09-28 深圳创维-Rgb电子有限公司 Intelligent television client modification method and system
CN108012174A (en) * 2017-12-20 2018-05-08 深圳创维-Rgb电子有限公司 Intelligent terminal shortcut customizing method, intelligent terminal and readable storage medium
CN109257652B (en) * 2018-07-27 2021-04-06 广州视源电子科技股份有限公司 Configuration information switching method and device, electronic device, system and storage medium
CN111385636A (en) * 2018-12-27 2020-07-07 深圳Tcl数字技术有限公司 Method and device for configuring television accompanying sound and readable storage medium
CN111417002A (en) * 2020-03-16 2020-07-14 青岛海信传媒网络技术有限公司 Method for customizing control protocol and display equipment
CN114895954B (en) * 2022-05-26 2024-02-13 广州安广电子科技股份有限公司 Code modification method, system, equipment and storage medium of remote control system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040237115A1 (en) * 2003-05-19 2004-11-25 Koichi Horiuchi Remote control unit for operating server, and server system including server and remote control unit
CN101276511A (en) * 2007-01-22 2008-10-01 英飞凌科技股份公司 Remote control apparatus unit for generating file thereof and corresponding method and equipment
CN101493988A (en) * 2009-02-27 2009-07-29 深圳华为通信技术有限公司 Method for configuring teleswitch value information, control equipment and system
US20150091708A1 (en) * 2013-09-27 2015-04-02 Apple Inc. Remote Control Configuration using a Remote Control Profile
CN105187854A (en) * 2015-07-30 2015-12-23 深圳Tcl数字技术有限公司 Method and device for dynamically configuring remote control function data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103607617A (en) * 2013-11-18 2014-02-26 四川长虹电器股份有限公司 Method for changing digital television remote controller button function in bidirectional application

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040237115A1 (en) * 2003-05-19 2004-11-25 Koichi Horiuchi Remote control unit for operating server, and server system including server and remote control unit
CN101276511A (en) * 2007-01-22 2008-10-01 英飞凌科技股份公司 Remote control apparatus unit for generating file thereof and corresponding method and equipment
CN101493988A (en) * 2009-02-27 2009-07-29 深圳华为通信技术有限公司 Method for configuring teleswitch value information, control equipment and system
US20150091708A1 (en) * 2013-09-27 2015-04-02 Apple Inc. Remote Control Configuration using a Remote Control Profile
CN105187854A (en) * 2015-07-30 2015-12-23 深圳Tcl数字技术有限公司 Method and device for dynamically configuring remote control function data

Also Published As

Publication number Publication date
CN105187854A (en) 2015-12-23
CN105187854B (en) 2018-09-04

Similar Documents

Publication Publication Date Title
WO2017016310A1 (en) Method and apparatus for dynamically configuring remote control function data
WO2017028601A1 (en) Voice control method and device for intelligent terminal, and television system
WO2018023926A1 (en) Interaction method and system for television and mobile terminal
WO2017126835A1 (en) Display apparatus and controlling method thereof
WO2016091011A1 (en) Subtitle switching method and device
WO2015046747A1 (en) Tv and operating method therefor
WO2016065705A1 (en) Channel list updating method and apparatus, and terminal device
WO2020133978A1 (en) Electronic program guide generation method and device, and computer-readable storage medium
WO2018028124A1 (en) Television set and signal source switching method thereof
WO2017084301A1 (en) Audio data playing method and apparatus, and smart television
WO2017000729A1 (en) Audio/video playing control method and device
WO2020071871A1 (en) Method and apparatus for processing image service
WO2014084592A1 (en) Method and apparatus for processing digital service signal
WO2016206223A1 (en) Screenshooting method and system
EP3314906A1 (en) Method and apparatus for transmitting and receiving signal in multimedia system
WO2017113600A1 (en) Video playing method and device
WO2017096764A1 (en) Audio data output method and device
WO2017016308A1 (en) Menu background color processing method and device
WO2016208988A1 (en) Method and apparatus for transmitting and receiving signal in multimedia system
WO2019137016A1 (en) Television programme recommendation method, device, and computer readable storage medium
WO2014178587A1 (en) Apparatus and method of transmitting and receiving signal
WO2015060523A1 (en) Method and apparatus for processing broadcasting signal for panorama video service
WO2017166430A1 (en) Caption display method and device
WO2017215135A1 (en) Method and system for upgrading terminal
WO2023027487A1 (en) Display device and method for controlling display device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16829677

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14.06.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16829677

Country of ref document: EP

Kind code of ref document: A1