CN114895954A - Code modification method, system, equipment and storage medium of remote control system - Google Patents

Code modification method, system, equipment and storage medium of remote control system Download PDF

Info

Publication number
CN114895954A
CN114895954A CN202210579609.3A CN202210579609A CN114895954A CN 114895954 A CN114895954 A CN 114895954A CN 202210579609 A CN202210579609 A CN 202210579609A CN 114895954 A CN114895954 A CN 114895954A
Authority
CN
China
Prior art keywords
code
codes
data
user terminal
functional data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210579609.3A
Other languages
Chinese (zh)
Other versions
CN114895954B (en
Inventor
刘振华
黄海峰
夏俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Anguang Electronic Technology Co ltd
Original Assignee
Guangzhou Anguang Electronic Technology Co ltd
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 Guangzhou Anguang Electronic Technology Co ltd filed Critical Guangzhou Anguang Electronic Technology Co ltd
Priority to CN202210579609.3A priority Critical patent/CN114895954B/en
Publication of CN114895954A publication Critical patent/CN114895954A/en
Application granted granted Critical
Publication of CN114895954B publication Critical patent/CN114895954B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/447Target code generation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application relates to a code modification method, a system, equipment and a storage medium of a remote control system, which comprises the steps of identifying and reading functions of a television or a set top box, obtaining a plurality of functional data codes and sending the functional data codes to a user terminal; creating a code matching model, wherein the code matching model is preset with a plurality of input ports for inputting functional data codes by a user terminal; establishing a mapping relation between a plurality of input ports and a plurality of storage units of a remote controller terminal, wherein after the input ports receive the functional data codes, when receiving a modification instruction from a user terminal, the functional data codes in the input ports are extracted, and key codes in the associated storage units are modified according to the mapping relation; when a compiling instruction from the user terminal is received, the key code is compiled to obtain an executable code matched with the functional data code. The method and the device have the effects of reducing the development difficulty of the remote controller key codes, reducing the remote controller development threshold and improving the development efficiency.

Description

Code modification method, system, equipment and storage medium of remote control system
Technical Field
The present application relates to the field of infrared remote control technologies, and in particular, to a code modification method, system, device, and storage medium for a remote control system.
Background
Infrared remote control is a wireless and non-contact control technology, has the obvious advantages of strong anti-interference capability, reliable information transmission, low power consumption, low cost, easy realization and the like, is widely adopted by a plurality of electronic devices, particularly household appliances, such as infrared remote control systems of televisions or set top boxes, and is increasingly applied to computers and mobile phone systems.
In the development process of an infrared remote control system of a television or a set-top box, due to different formats of remote controllers and different functions and logical relations between keys of the remote controllers, before the functions of the remote controllers and the set-top box are matched, developers need to manually analyze the logical relations between the keys of the remote controllers and decode key codes, and then the functions of the keys of the remote controllers and the set-top box can be matched.
However, in the development process, when a developer develops a new remote controller, it takes a lot of time to analyze the logic of each key and decode the key codes, the development efficiency is low, and a professional technician needs to complete the development through the operation of the code level, so that the professional threshold is high, and therefore, the improvement is needed.
Disclosure of Invention
In order to reduce the development difficulty of remote controller key codes, reduce a remote controller development threshold and improve the development efficiency, the application provides a code modification method, a system, equipment and a storage medium of a remote control system.
The above object of the present invention is achieved by the following technical solutions:
a code modification method of a remote control system, comprising the steps of:
identifying and reading the functions of the television or the set top box to obtain a plurality of functional data codes and sending the functional data codes to a user terminal;
creating a code matching model, wherein the code matching model is preset with a plurality of input ports for inputting functional data codes by a user terminal;
establishing a mapping relation between a plurality of input ports and a plurality of storage units of a remote controller terminal, wherein each input port is associated with one storage unit, and a pre-read key code is stored in each storage unit;
after receiving the functional data code, the input port extracts the functional data code in the input port when receiving a modification instruction from the user terminal, and modifies the key code in the associated storage unit according to the mapping relation;
and compiling the key code when receiving a compiling instruction from the user terminal based on the modified key code to obtain an executable code matched with the functional data code.
By adopting the technical scheme, the data codes corresponding to all functions of the television or the set-top box can be obtained by reading the functions of the television or the set-top box through a manual decoder, the functions of all keys of the remote controller are further read to obtain key codes, the key codes are obtained, the obtained function data codes are input through an input port of a code matching model, the input port is mapped to a storage unit of the remote control terminal, namely to a key code storage position of each key of the remote controller, the original key codes of the keys of the remote controller can be modified into the key codes with the same code protocol relation as that of the television or the set-top box, namely the same code format, and finally the key codes with the same code protocol are compiled to obtain the executable codes adapting to the functions of the television or the set-top box, therefore, in the process of remote controller code development, a developer can obtain the functional data codes through the decoder, then generates a mapping relation with the remote controller through the code matching model and modifies the targeted modified key codes, namely, the modified key data codes, further obtains the key data codes of all keys on the remote controller, wherein the key data codes have the same protocol as that of a television or a set top box code, and finally generates executable codes.
In a preferred example of the present application: the method comprises the following steps of creating a code matching model, wherein the code matching model is preset with a plurality of input ports for inputting functional data codes by a user terminal, and the steps comprise:
identifying the function types of the plurality of function data codes, generating a plurality of types of data, and associating the type data with the corresponding function data codes;
creating input ports based on the type data, each input port being associated with one type of data;
a code matching model is created based on a number of input ports associated with type data.
By adopting the technical scheme, each input port is associated with one type of data, so that the mapping relation of codes is unique, and the modification of key codes is more accurate and reliable; meanwhile, the input port of the code matching model can be created in a self-defined mode, namely different input ports are set according to the function type of the function data code, so that the code matching model can be suitable for televisions or set top boxes with different functions, and the application range of the code modification mode of the remote control system is expanded.
In a preferred example of the present application: before the step of establishing the mapping relation between the input ports and the storage units of the remote control terminal, the following steps are executed:
acquiring a plurality of key codes of a remote controller terminal;
creating a plurality of storage units based on the code types of the key codes, wherein each storage unit is used for storing the key codes of one code type;
the step of establishing mapping relation between the input ports and the storage units of the remote controller terminal comprises the following steps:
and establishing a mapping relation between the input port with the type data consistent with the code type and the storage unit based on the type data and the code type.
By adopting the technical scheme, before the mapping relation between the input port and the storage position is established, the key codes and the types of the key codes of each key of the remote controller are obtained, the key codes are further independently stored, the storage unit such as a folder, a database and the like establishes the mapping relation between the input port and the storage unit with the same type data and the same code type, namely the mapping relation between the codes which realize the same function but have different code formats is established, so that the key codes corresponding to the function can be automatically found out later, the codes are modified in a targeted manner, and the matching of the functions is realized.
In a preferred example of the present application: after the step of establishing the mapping relationship between the input ports and the storage units of the remote control terminal, the method comprises the following steps:
sending the input ports to a user terminal;
when an input request instruction sent by a user terminal is received, acquiring type data selected by the user terminal from the input request instruction;
and when receiving the functional data code input by the user terminal, filling the functional data code into the input port associated with the selected type of data.
By adopting the technical scheme, the user terminal sends an input request instruction to request to input the functional data code to the input port of the code matching model, and the request instruction comprises the type data selected by the user terminal, so that the type of the functional data code to be input by the user terminal can be known.
In a preferred example of the present application: when receiving a modification instruction from a user terminal, extracting the functional data code in the input port, and modifying the key code in the associated storage unit according to the mapping relationship, including:
when receiving a modification instruction from a user terminal, extracting a functional data code in the input port; generating a simulation code matched with the logic relation of the functional data code;
acquiring type data of an input port and identifying a storage unit with a mapping relation;
and sending the simulation code to the identified storage unit, and replacing the simulation code to the corresponding position in the key code.
By adopting the technical scheme, the modification instruction is sent by the user terminal, when the modification instruction is received, the matched analog code is obtained by decoding the functional data code, the analog code is actually a code string with the same code format and protocol as the functional data code, the analog code is searched for the key code of the remote controller through a preset mapping relation, and the analog code is replaced to the corresponding position of the key code, wherein the corresponding positions are the key code and the user code, so that the code format of the remote controller is the same as the functional data code, and further the functional adaptation of the key code of the new remote controller and the television or the set top box can be realized.
In a preferred example of the present application: after the step of sending the plurality of input ports to the user terminal, the following steps are performed:
when receiving a functional data code input by a user terminal, sending the functional data code to a code matching model;
the code matching model identifies the type data of the functional data codes;
identifying input ports of the same type based on the type data;
and filling the identified input port with a functional data code.
By adopting the technical scheme, when the input ports are sent to the user terminal for display of developers, the developers can directly input single or more functional data codes, the code matching model can automatically identify the type data of the received functional data codes, the input ports can be identified and found out based on the type data, and the input ports corresponding to the functional data codes can be automatically filled with the functional data codes, so that the user terminal can conveniently input the functional data codes in batches, the time for performing type matching on the functional data codes is reduced, and the efficiency of modifying the key codes is improved.
The second objective of the present invention is achieved by the following technical solutions:
a code modification system for a remote control system, comprising:
the data code acquisition module is used for identifying and reading functions of the television or the set top box, obtaining a plurality of functional data codes and sending the functional data codes to the user terminal;
the model creating module is used for creating a code matching model, and the code matching model is preset with a plurality of input ports for inputting the functional data codes by the user terminal;
the mapping establishing module is used for establishing mapping relation between the input ports and the storage units of the remote controller terminal, each input port is associated with one storage unit, and the storage units are stored with pre-read key codes;
the modification module is used for extracting the functional data codes in the input port when receiving a modification instruction from the user terminal after the input port receives the functional data codes and modifying the key codes in the associated storage unit according to the mapping relation;
and the compiling module is used for compiling the key codes based on the modified key codes when a compiling instruction from the user terminal is received, so as to obtain executable codes matched with the functional data codes.
By adopting the technical scheme, the data codes corresponding to all functions of the television or the set-top box can be obtained by reading the functions of the television or the set-top box through a manual decoder, the obtained functional data codes are input through an input port of a code matching model, the input port is mapped to a storage unit of a remote control terminal, namely to a key code storage position of each key of a remote controller, the original key codes of the keys of the remote controller can be modified into the key codes with the same code protocol relation as the television or the set-top box, namely the same code format, and finally the key codes with the same code protocol are compiled to obtain the executable codes adapting to the functions of the television or the set-top box, therefore, developers can obtain the functional data codes through the decoder in the process of developing the codes of the remote controller, and generating a mapping relation with the remote controller through the code matching model and modifying the targeted modified key codes, namely modifying the key data codes, further obtaining the key data codes of all keys on the remote controller, wherein the key data codes have the same code protocol with a television or a set top box, and finally generating executable codes.
Optionally, the model creating module includes:
the type identification submodule is used for identifying the function types of the plurality of function data codes, generating a plurality of types of data and associating the types of data with the corresponding function data codes;
the port creation submodule is used for creating input ports based on the type data, and each input port is associated with one type of data;
a model creation sub-module for creating a code matching model based on a number of input ports associated with the type data.
The third purpose of the present application is achieved by the following technical solutions:
a computer device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, said processor implementing the steps of the code modification method of a remote control system as described above when executing said computer program.
The fourth purpose of the present application is achieved by the following technical solutions:
a computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the code modification method of a remote control system as described above.
In summary, the present application includes at least one of the following beneficial technical effects:
1. the developer can obtain the functional data codes through the decoder, then generates a mapping relation with the remote controller through the code matching model and modifies the targeted modified key codes, namely the modified key data codes, and finally generates executable codes, and the developer does not need to contact the analysis and the decoding of a code layer, so that the development difficulty is reduced, the time for analyzing and decoding new remote controller codes is reduced, and the working efficiency is improved;
2. each input port is associated with one type of data, so that the mapping relation of codes is unique, and the modification of key codes is more accurate and reliable; meanwhile, the input port of the code matching model can be created in a self-defined way, namely different input ports are set according to the function type of the function data code, so that the code matching model can be suitable for televisions or set top boxes with different functions, and the application range of a code modification mode of a remote control system is expanded;
3. based on the type data, when the functional data code is received, the functional data code is input into the input port associated with the type data input by the user terminal, so that the operation is convenient and fast, the modification difficulty of the key code is further reduced, and the development of the remote controller code is facilitated;
4. based on the type data, when the functional data code is received, the functional data code is input into the input port associated with the type data input by the user terminal, the operation is convenient, the modification difficulty of the key code is further reduced, and the development of the remote controller code is facilitated.
Drawings
FIG. 1 is a flow chart of an implementation of an embodiment of a code modification method of a remote control system according to the present application;
FIG. 2 is a flow chart of another implementation of an embodiment of a code modification method of a remote control system according to the present application;
FIG. 3 is a flow chart of another implementation of an embodiment of a code modification method of a remote control system according to the present application;
FIG. 4 is a flow chart of another implementation of an embodiment of a code modification method of a remote control system according to the present application;
FIG. 5 is a flow chart of another implementation of an embodiment of a code modification method of a remote control system according to the present application;
FIG. 6 is an interface diagram of the code matching model of the present application displayed on a user terminal;
FIG. 7 is a schematic diagram of a computer device of the present application.
Description of reference numerals: 1. and (6) inputting the port.
Detailed Description
The present application is described in further detail below with reference to figures 1-7.
In an embodiment, as shown in fig. 1, the present application discloses a code modification method for a remote control system, which specifically includes the following steps:
s10: identifying and reading the functions of the television or the set top box to obtain a plurality of functional data codes and sending the functional data codes to a user terminal;
in this embodiment, the reading of the functional data code of the television or the set-top box is performed manually by using a decoder, and the functional data code refers to a data code for realizing each function of the television or the set-top box, such as a channel switching function and a power on/off function of the set-top box.
The user terminal is a PC terminal or a mobile terminal for the developer to operate.
Specifically, a decoder is adopted to manually identify and read various functions of a television or a set top box to obtain function data codes corresponding to the various functions; furthermore, the obtained functional data codes are all sent to an upper computer, and then the functional data codes are sent to the user terminal by the upper computer.
S20: creating a code matching model, wherein the code matching model is preset with a plurality of input ports for inputting functional data codes by a user terminal;
in this embodiment, the code matching model is a model which is trained for multiple times, interacts with the upper computer to receive the function data codes, and generates a mapping relationship with the lower computer to modify the remote control key codes, and the input port is a data input port of the code matching model and is used for filling the function data codes.
Specifically, a code matching model with a plurality of input ports is created, and the code matching model interacts with an upper computer and receives functional data codes to fill the input ports.
S30: establishing a mapping relation between a plurality of input ports and a plurality of storage units of a remote controller terminal, wherein each input port is associated with one storage unit, and a pre-read key code is stored in each storage unit;
in this embodiment, the remote control terminal includes a lower computer and a key function system of the remote control, wherein the lower computer includes a storage unit for storing a key code and some function option indication bits of each key of the remote control, and the storage unit is a path location for storing the code, such as a folder. The key codes are key data codes, namely data codes of all functions of the keys, and are obtained by manually reading through a decoder, wherein the key codes comprise key codes of the keys and user codes.
Specifically, a mapping relationship is established between each input port and a storage unit of the remote control terminal, that is, the lower computer can identify the input port sending the data code and find the position of the folder having the mapping relationship with the input port, so that the transmission and modification of the data code can be further realized.
S40: after receiving the functional data code, the input port extracts the functional data code in the input port when receiving a modification instruction from the user terminal, and modifies the key code in the associated storage unit according to the mapping relation;
in this embodiment, the modification instruction is a control instruction sent by the user terminal for starting a function of modifying the key code; the modification of the key code consists in a modification of the key code in order to adapt the key code to the code format of the television set or set-top box.
Furthermore, the user terminal needs to send a user code modification instruction, the user code modification instruction is used for modifying the user code section of the key code, the user codes of the keys of the same remote controller are consistent, and the user codes of the remote controllers of different models are different, so as to prevent the set top box from being controlled by mistake.
Specifically, after the input port receives the function data codes filled in by the user terminal, when a modification instruction sent by the user terminal is received, the function data codes filled in the input port are extracted, and based on the mapping relationship, the lower computer can find the storage unit mapped by the input port and modify the corresponding key codes based on the function data codes.
And S50, compiling the key code when receiving a compiling instruction from the user terminal based on the modified key code to obtain an executable code matched with the function data code.
In this embodiment, the modified key codes mean that the key codes of the remote controller have been adapted to the code format and logical relationship of the television or set-top box. The executable code is a code capable of controlling a function corresponding to a television or a set-top box, and the compiling instruction is a start control instruction for starting a compiler, for example, a start compiler.
Specifically, based on the modified key codes of the remote controller, when a compiling instruction for starting a compiler to compile the key codes is received from the user terminal, the compiler compiles the key codes and obtains executable codes of the remote controller capable of controlling the television or the set-top box.
In one embodiment, referring to fig. 2, step S20 includes the steps of:
s21: identifying the function types of the plurality of function data codes, generating a plurality of types of data, and associating the type data with the corresponding function data codes;
s22: creating input ports based on the type data, each input port being associated with one type of data;
s23: a code matching model is created based on a number of input ports associated with type data.
In this embodiment, the function type refers to a type to which a function realized by the function data code belongs, for example, the function of controlling the set top box to turn on is one type, the function of controlling the set top box to turn on the volume of the television is another type, and the function type can be marked by using a number or characters. The input port is associated with the type data, which means that the input port is only used for filling in the function data code associated with the type data.
Specifically, when the code matching model is created, the functions of the television or the set top box corresponding to the developed remote controller are firstly identified to obtain a plurality of types of data, and the types of data are associated with the function data codes, so that the associated function data codes can be conveniently obtained according to the types of data.
Furthermore, an input port is created based on the type data, namely the number of the input ports is self-defined according to the type of the type data, and the type data and the input ports are set in a correlation mode, so that the user terminal can conveniently fill the functional data codes into the correct input ports according to the function types.
In one embodiment, before step S30, the following steps are performed:
s301: acquiring a plurality of key codes of a remote controller terminal;
s302: creating a plurality of storage units based on the code types of the key codes, wherein each storage unit is used for storing the key codes of one code type;
step S30 includes:
s31: and establishing a mapping relation between the input port with the type data consistent with the code type and the storage unit based on the type data and the code type.
In this embodiment, the code types are classified based on different functions of the keys, such as functions of turning on, turning off, increasing or decreasing the volume, and the like. The type data corresponds to the code type, for example, both the type data and the code type are functions for increasing the volume.
Specifically, key codes of a plurality of different function keys of the remote control terminal are firstly sent to the upper computer and then acquired from the upper computer, a storage unit is created based on the type of the acquired key codes, and each storage unit stores the key codes of one code type.
Further, the mapping relation is established by associating the input ports and the storage units with the same type data and code type, so that the key codes of the corresponding functions are modified according to the functions of the television or the set top box in a targeted manner.
In one embodiment, referring to fig. 3, after step S30, the following steps are performed:
s32: sending the input ports to a user terminal;
s33: when an input request instruction sent by a user terminal is received, acquiring type data selected by the user terminal from the input request instruction;
s34: and when receiving the functional data code input by the user terminal, filling the functional data code into the input port associated with the selected type of data.
In this embodiment, the input request instruction refers to an instruction for filling a functional data code in an input port of a request sent by a user terminal, for example, a developer can obtain type data selected by the user terminal by clicking a certain input port through the user terminal, and further display a text box and a prompt cursor for the user terminal to input the functional data code.
Specifically, the input ports are all displayed on the user terminal, and the input ports are associated with type data, that is, the user terminal can know the type of the functional data code to be input by the user terminal by clicking the input ports, for example, a developer of the user terminal clicks the input port for increasing the volume.
And further displaying a text box for inputting the functional data codes by the user terminal, and filling the functional data codes into the input port after receiving the functional data codes input by the user terminal, namely completing the matching of the functional data codes corresponding to the television or the set-top box with the corresponding positions of the input code matching model, so that the subsequent data codes are mapped and the operation of a user terminal developer is facilitated.
Further after step S32, the user terminal needs to input a user code modification instruction for replacing the user code of the remote controller.
In one embodiment, referring to fig. 4, step S40 includes:
s41: when receiving a modification instruction from a user terminal, extracting a functional data code in the input port; generating a simulation code matched with the logic relation of the functional data code;
s42: acquiring type data of an input port and identifying a storage unit with a mapping relation;
s43: and sending the simulation code to the identified storage unit, and replacing the simulation code to the corresponding position in the key code.
In this embodiment, the modification instruction can generate the simulation code, and control the lower computer to find the storage unit mapped by the input port, and control the lower computer to replace the corresponding position of the key code in the storage unit with the generated simulation code; the analog code is a code segment with the same code format (protocol) as the functional data code, and the analog code is replaced into the key code of the information remote controller to be developed, so that the code protocol of the key code of the new remote controller is consistent with the functional data code, and the function adaptation of the new remote controller and a television or a set top box is completed. The corresponding position of the key code refers to the key code position of the binary key code; the user code input is replaced to the user code segment of the key code.
Specifically, a developer controls generation of the simulation codes by clicking a code generation option of the user terminal, further controls the lower computer to find the storage unit mapped by the input port, controls the lower computer to replace the simulation codes with the key codes of the storage unit, and realizes modification of the key codes so that the code format and the logic relationship of the key codes can be consistent with the function data codes, thereby further realizing function adaptation of a new remote controller and a television or a set top box.
In one embodiment, referring to fig. 5, after step S32, the following steps are performed:
S33A: when receiving a functional data code input by a user terminal, sending the functional data code to a code matching model;
S34A: the code matching model identifies the type data of the functional data codes;
S35A: identifying input ports of the same type based on the type data;
S36A: and filling the identified input port with a functional data code.
In this embodiment, the user terminal can input one or more functional data codes at a time, specifically, a plurality of text boxes for inputting the functional data codes are provided for the user terminal, or the number of the input functional data codes is automatically identified according to the number of digits of the functional data codes, and the code matching model can automatically screen and fill in input ports with the same type data according to the type data of the received functional data codes, so that the workload of developers for filling in the functional data codes is reduced, and the functional data codes are more convenient to fill in the code matching model.
Specifically, a developer inputs the functional data codes to the code matching model in batch through the user terminal, the code matching model identifies type data of each input functional data code, the input ports of the same type are screened based on different type data, and the functional type data are filled into the input ports of the corresponding type in a one-to-one correspondence manner.
In one embodiment, a developer wants to match a new A-type remote controller with a B-type set top box in a key function mode, the decoder is adopted to manually read each function data code of the B-type set top box, then the key code of the A-type remote controller is read, corresponding type data are identified based on the function data codes, the function data codes are sent to an upper computer, taking the function data codes of the on-off function as an example, the developer fills the on-off function of the B-type set top box with the type data which are also input ports of the on-off function, further inputs a user code, clicks to generate an analog code, further searches a storage unit having a mapping relation with the input ports through a lower computer, replaces the analog code to the key code position of the key code in the storage unit, and replaces the user code to the user code position of the key code. And when all the key codes are replaced, compiling by adopting a compiler to obtain executable codes, namely completing the function adaptation of the A-type remote controller and the B-type set top box.
In an embodiment, referring to fig. 6, an interface display diagram of a code matching model displayed on a user terminal is shown, where K1 to K46 are input ports 1, i.e., pins of a chip AD12-2, a user inputs a functional data code into K1 to K46 of corresponding type data, performs format selection through a format text box at the upper left corner, i.e., selects a code format (protocol), and then fills a user code in the user code text box for replacement, and a storage unit path can be found by click generation. Thereby modifying the key code.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In one embodiment, there is provided a code modification system of a remote control system, the code modification system of the remote control system corresponding to the code modification method of the remote control system in the above-described embodiment, the code modification system of the remote control system including:
the data code acquisition module is used for identifying and reading functions of the television or the set top box, obtaining a plurality of functional data codes and sending the functional data codes to the user terminal;
the model creating module is used for creating a code matching model, and the code matching model is preset with a plurality of input ports for inputting the functional data codes by the user terminal;
the mapping establishing module is used for establishing mapping relation between the input ports and the storage units of the remote controller terminal, each input port is associated with one storage unit, and the storage units are stored with pre-read key codes;
the modification module is used for extracting the functional data codes in the input port when receiving a modification instruction from the user terminal after the input port receives the functional data codes and modifying the key codes in the associated storage unit according to the mapping relation;
and the compiling module is used for compiling the key codes based on the modified key codes when a compiling instruction from the user terminal is received, so as to obtain executable codes matched with the functional data codes.
Optionally, the model creating module includes:
the type identification submodule is used for identifying the function types of the plurality of function data codes, generating a plurality of types of data and associating the types of data with the corresponding function data codes;
the port creation submodule is used for creating input ports based on the type data, and each input port is associated with one type of data;
a model creation sub-module for creating a code matching model based on a number of input ports associated with the type data.
Optionally, the method further includes:
the key code acquisition module is used for acquiring a plurality of key codes of the remote controller terminal;
the storage unit creating module is used for creating a plurality of storage units based on the code types of the key codes, and each storage unit is used for storing the key codes of one code type;
optionally, the mapping establishing module includes:
and the type matching submodule is used for establishing a mapping relation between the input port with the type data consistent with the code type and the storage unit based on the type data and the code type.
Optionally, the method further includes:
the port sending module is used for sending the input ports to the user terminal;
the input request module is used for acquiring the type data selected by the user terminal from the input request instruction when receiving the input request instruction sent by the user terminal;
and the association filling module is used for filling the functional data codes into the input ports associated with the selected type of data when the functional data codes input by the user terminal are received.
Optionally, the modifying module includes:
the analog code submodule is used for extracting the functional data code in the input port when receiving a modification instruction from the user terminal; generating a simulation code matched with the logic relation of the functional data code;
the storage unit identification submodule is used for acquiring the type data of the input port and identifying the storage unit with the mapping relation;
and the code replacing submodule is used for sending the simulation code to the identified storage unit and replacing the simulation code to the corresponding position in the key code.
Optionally, the method further includes:
the batch data code sending module is used for sending the functional data code to the code matching model when receiving the functional data code input by the user terminal;
the type data identification module is used for identifying the type data of the functional data codes by the code matching model;
the input port identification module is used for identifying input ports of the same type based on the type data;
and the identification filling module is used for filling the functional data codes into the identified input ports.
For the specific definition of the code modification system of a remote control system, reference may be made to the above definition of the code modification method of a remote control system, which is not described herein again. The modules in the code modification system of the remote control system can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the function data codes, the code matching model and the key codes. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a code modification method of a remote control system.
In one embodiment, a computer device is provided that includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing a code modification method for a remote control system when executing the computer program.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements a code modification method of a remote control system.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A code modification method of a remote control system, comprising the steps of:
identifying and reading the functions of the television or the set top box to obtain a plurality of functional data codes and sending the functional data codes to a user terminal;
creating a code matching model, wherein the code matching model is preset with a plurality of input ports for inputting functional data codes by a user terminal;
establishing a mapping relation between a plurality of input ports and a plurality of storage units of a remote controller terminal, wherein each input port is associated with one storage unit, and a pre-read key code is stored in each storage unit;
after receiving the functional data code, the input port extracts the functional data code in the input port when receiving a modification instruction from the user terminal, and modifies the key code in the associated storage unit according to the mapping relation;
and compiling the key code when receiving a compiling instruction from the user terminal based on the modified key code to obtain an executable code matched with the functional data code.
2. A code modification method of a remote control system according to claim 1, characterized in that: the method comprises the following steps of creating a code matching model, wherein the code matching model is preset with a plurality of input ports for inputting functional data codes by a user terminal, and the steps comprise:
identifying the function types of the plurality of function data codes, generating a plurality of types of data, and associating the type data with the corresponding function data codes;
creating input ports based on the type data, each input port being associated with one type of data;
a code matching model is created based on a number of input ports associated with type data.
3. A code modification method of a remote control system according to claim 2, characterized in that: before the step of establishing the mapping relation between the input ports and the storage units of the remote control terminal, the following steps are executed:
acquiring a plurality of key codes of a remote controller terminal;
creating a plurality of storage units based on the code types of the key codes, wherein each storage unit is used for storing the key codes of one code type;
the step of establishing mapping relation between the input ports and the storage units of the remote controller terminal comprises the following steps:
and establishing a mapping relation between the input port with the type data consistent with the code type and the storage unit based on the type data and the code type.
4. A code modification method of a remote control system according to claim 2, characterized in that: after the step of establishing the mapping relationship between the input ports and the storage units of the remote control terminal, the method comprises the following steps:
sending the input ports to a user terminal;
when an input request instruction sent by a user terminal is received, acquiring type data selected by the user terminal from the input request instruction;
and when receiving the functional data code input by the user terminal, filling the functional data code into the input port associated with the selected type of data.
5. A code modification method of a remote control system according to claim 2, characterized in that: when receiving a modification instruction from a user terminal, extracting the functional data code in the input port, and modifying the key code in the associated storage unit according to the mapping relationship, including:
when receiving a modification instruction from a user terminal, extracting a functional data code in the input port; generating a simulation code matched with the logic relation of the functional data code;
acquiring type data of an input port and identifying a storage unit with a mapping relation;
and sending the simulation code to the identified storage unit, and replacing the simulation code to the corresponding position in the key code.
6. A code modification method of a remote control system according to claim 2, characterized in that: after the step of sending the plurality of input ports to the user terminal, the following steps are performed:
when receiving a functional data code input by a user terminal, sending the functional data code to a code matching model;
the code matching model identifies the type data of the functional data codes;
identifying input ports of the same type based on the type data;
and filling the identified input port with a functional data code.
7. A code modification system for a remote control system, comprising:
the data code acquisition module is used for identifying and reading functions of the television or the set top box, obtaining a plurality of functional data codes and sending the functional data codes to the user terminal;
the model creating module is used for creating a code matching model, and the code matching model is preset with a plurality of input ports for inputting the functional data codes by the user terminal;
the mapping establishing module is used for establishing mapping relation between the input ports and the storage units of the remote controller terminal, each input port is associated with one storage unit, and the storage units are stored with pre-read key codes;
the modification module is used for extracting the functional data codes in the input port when receiving a modification instruction from the user terminal after the input port receives the functional data codes and modifying the key codes in the associated storage unit according to the mapping relation;
and the compiling module is used for compiling the key codes based on the modified key codes when a compiling instruction from the user terminal is received, so as to obtain executable codes matched with the functional data codes.
8. A code modification system for a remote control system as claimed in claim 7, wherein: the model creation module includes:
the type identification submodule is used for identifying the function types of the plurality of function data codes, generating a plurality of types of data and associating the types of data with the corresponding function data codes;
the port creation submodule is used for creating input ports based on the type data, and each input port is associated with one type of data;
a model creation sub-module for creating a code matching model based on a number of input ports associated with the type data.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of a code modification method of a remote control system according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of a method for code modification of a remote control system according to any one of claims 1 to 6.
CN202210579609.3A 2022-05-26 2022-05-26 Code modification method, system, equipment and storage medium of remote control system Active CN114895954B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210579609.3A CN114895954B (en) 2022-05-26 2022-05-26 Code modification method, system, equipment and storage medium of remote control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210579609.3A CN114895954B (en) 2022-05-26 2022-05-26 Code modification method, system, equipment and storage medium of remote control system

Publications (2)

Publication Number Publication Date
CN114895954A true CN114895954A (en) 2022-08-12
CN114895954B CN114895954B (en) 2024-02-13

Family

ID=82726605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210579609.3A Active CN114895954B (en) 2022-05-26 2022-05-26 Code modification method, system, equipment and storage medium of remote control system

Country Status (1)

Country Link
CN (1) CN114895954B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115789880A (en) * 2022-11-18 2023-03-14 四川虹美智能科技有限公司 Remote controller key setting method, device and equipment based on big data
CN116822440A (en) * 2023-06-30 2023-09-29 上海合见工业软件集团有限公司 Pin batch distribution method and system
CN115789880B (en) * 2022-11-18 2024-04-26 四川虹美智能科技有限公司 Remote controller key setting method, device and equipment based on big data

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0678382A (en) * 1992-08-25 1994-03-18 Rohm Co Ltd Code generator for remote controller
US20020080044A1 (en) * 2000-12-27 2002-06-27 Samsung Electronics Co., Ltd. Method for generating and transmitting/receiving input codes in universal input device and apparatus thereof
KR20030095019A (en) * 2002-06-11 2003-12-18 삼성전자주식회사 Universal remote controller of multiple units and design method
CN1779728A (en) * 2004-11-23 2006-05-31 厦门华侨电子企业有限公司 Studying remote control method and device for household electrical appliances
JP2008165420A (en) * 2006-12-27 2008-07-17 Toshiba Corp Reproduction device and reproduction method
US20090198770A1 (en) * 2008-02-04 2009-08-06 Universal Scientific Industrial Co., Ltd. System and method of updating codes in controller
CN101599016A (en) * 2009-07-06 2009-12-09 俞启茂 The generation method and the system thereof of code of remote control
CN201489517U (en) * 2009-07-06 2010-05-26 俞启茂 System for generating code of remote controller
CN103049997A (en) * 2011-10-11 2013-04-17 Lg电子株式会社 Remote controller and control method for multimedia device
KR20130039135A (en) * 2011-10-11 2013-04-19 엘지전자 주식회사 Remote controller and method for processing data in multimedia device
CN204360558U (en) * 2015-01-30 2015-05-27 江苏财经职业技术学院 A kind of universal remote control configuration-system based on OTG
CN104680770A (en) * 2013-11-29 2015-06-03 红板凳科技股份有限公司 Infrared remote controller capable of remotely updating control code
CN105187854A (en) * 2015-07-30 2015-12-23 深圳Tcl数字技术有限公司 Method and device for dynamically configuring remote control function data
CN106572375A (en) * 2015-10-08 2017-04-19 深圳市金锐显数码科技有限公司 TV remote control method and apparatus
US20180300189A1 (en) * 2017-04-18 2018-10-18 Sap Se Hybrid remote controller
CN111968360A (en) * 2020-08-27 2020-11-20 高斯贝尔数码科技股份有限公司 Electronic product remote control function customizing method and system
WO2022001039A1 (en) * 2020-06-30 2022-01-06 惠州视维新技术有限公司 Method for updating key value in remote controller, remote controller, and computer-readable storage medium

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0678382A (en) * 1992-08-25 1994-03-18 Rohm Co Ltd Code generator for remote controller
US20020080044A1 (en) * 2000-12-27 2002-06-27 Samsung Electronics Co., Ltd. Method for generating and transmitting/receiving input codes in universal input device and apparatus thereof
KR20030095019A (en) * 2002-06-11 2003-12-18 삼성전자주식회사 Universal remote controller of multiple units and design method
CN1779728A (en) * 2004-11-23 2006-05-31 厦门华侨电子企业有限公司 Studying remote control method and device for household electrical appliances
JP2008165420A (en) * 2006-12-27 2008-07-17 Toshiba Corp Reproduction device and reproduction method
US20090198770A1 (en) * 2008-02-04 2009-08-06 Universal Scientific Industrial Co., Ltd. System and method of updating codes in controller
CN101599016A (en) * 2009-07-06 2009-12-09 俞启茂 The generation method and the system thereof of code of remote control
CN201489517U (en) * 2009-07-06 2010-05-26 俞启茂 System for generating code of remote controller
CN103049997A (en) * 2011-10-11 2013-04-17 Lg电子株式会社 Remote controller and control method for multimedia device
KR20130039135A (en) * 2011-10-11 2013-04-19 엘지전자 주식회사 Remote controller and method for processing data in multimedia device
CN104680770A (en) * 2013-11-29 2015-06-03 红板凳科技股份有限公司 Infrared remote controller capable of remotely updating control code
CN204360558U (en) * 2015-01-30 2015-05-27 江苏财经职业技术学院 A kind of universal remote control configuration-system based on OTG
CN105187854A (en) * 2015-07-30 2015-12-23 深圳Tcl数字技术有限公司 Method and device for dynamically configuring remote control function data
CN106572375A (en) * 2015-10-08 2017-04-19 深圳市金锐显数码科技有限公司 TV remote control method and apparatus
US20180300189A1 (en) * 2017-04-18 2018-10-18 Sap Se Hybrid remote controller
WO2022001039A1 (en) * 2020-06-30 2022-01-06 惠州视维新技术有限公司 Method for updating key value in remote controller, remote controller, and computer-readable storage medium
CN111968360A (en) * 2020-08-27 2020-11-20 高斯贝尔数码科技股份有限公司 Electronic product remote control function customizing method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115789880A (en) * 2022-11-18 2023-03-14 四川虹美智能科技有限公司 Remote controller key setting method, device and equipment based on big data
CN115789880B (en) * 2022-11-18 2024-04-26 四川虹美智能科技有限公司 Remote controller key setting method, device and equipment based on big data
CN116822440A (en) * 2023-06-30 2023-09-29 上海合见工业软件集团有限公司 Pin batch distribution method and system
CN116822440B (en) * 2023-06-30 2024-03-22 上海合见工业软件集团有限公司 Pin batch distribution method and system

Also Published As

Publication number Publication date
CN114895954B (en) 2024-02-13

Similar Documents

Publication Publication Date Title
WO2021036618A1 (en) Cloud test configuration method and apparatus, computer device, and storage medium
CN108829477B (en) Interface jump method, device, computer equipment and storage medium
US9632754B2 (en) Auto generation and linkage of source code to test cases
CN112765023B (en) Test case generation method and device
CN114895954B (en) Code modification method, system, equipment and storage medium of remote control system
CN105335132A (en) Method, apparatus and system for user-defined application function
CN111857803A (en) Page updating method, device, server and storage medium
CN112685311A (en) Test script automatic generation method and device, computer equipment and storage medium
CN112527286A (en) Service code generation method and device, computer equipment and storage medium
CN110705215B (en) MIPI configuration file encoding method, MIPI configuration file encoding device and MIPI configuration file display device
US20160252974A1 (en) Communicating with an unsupported input device
CN109918082B (en) Compiling system and method for software development
US20060080636A1 (en) Method of building intelligent platform management interface firmware architecture
CN106020918B (en) Television software compiling method and system
CN111857782B (en) Interface updating method and device, computer equipment and storage medium
US20170262292A1 (en) Method of operating embedded system and control chip thereof
CN114840190A (en) Code generation method and device, computer equipment and storage medium
CN115048085B (en) Method, system, equipment and storage medium for generating codes of infrared remote controller
CN108170429B (en) Method and device for realizing Internet of things plug-in and terminal
CN112346949A (en) AOP-based operation log recording method and system, electronic device and medium
CN107341002B (en) Memory access method
CN109542303A (en) Touch control device and its response method, device
CN112732291B (en) Product function development method and device, storage medium and electronic device
CN114035875B (en) Life cycle management method of intelligent screen
CN109200581B (en) Method and electronic device for controlling game role through python code

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant