CN115048085B - Method, system, equipment and storage medium for generating codes of infrared remote controller - Google Patents

Method, system, equipment and storage medium for generating codes of infrared remote controller Download PDF

Info

Publication number
CN115048085B
CN115048085B CN202210592803.5A CN202210592803A CN115048085B CN 115048085 B CN115048085 B CN 115048085B CN 202210592803 A CN202210592803 A CN 202210592803A CN 115048085 B CN115048085 B CN 115048085B
Authority
CN
China
Prior art keywords
code
function
codes
bottom layer
user terminal
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.)
Active
Application number
CN202210592803.5A
Other languages
Chinese (zh)
Other versions
CN115048085A (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 CN202210592803.5A priority Critical patent/CN115048085B/en
Publication of CN115048085A publication Critical patent/CN115048085A/en
Application granted granted Critical
Publication of CN115048085B publication Critical patent/CN115048085B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/313Logic programming, e.g. PROLOG programming language
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/56Remote control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared

Abstract

The application relates to a method, a system, equipment and a storage medium for generating codes of an infrared remote controller, which comprise the following steps: creating a program library, and pre-storing a plurality of bottom layer function codes in the program library, wherein the bottom layer function codes are used for forming executable codes of a remote controller; the method comprises the steps of obtaining code value data and format of any function operated by an air conditioner, decoding the code value data and format, obtaining a logic protocol and a code transmitting format of the remote controller corresponding to the function, and transmitting the logic protocol and the code transmitting format to a user terminal; when receiving a program library calling request sent by a user terminal, transmitting the program library and a plurality of stored bottom layer function codes to the user terminal; based on the bottom layer function codes screened by the user terminal according to the logic protocol and the code sending format, the executable code for controlling the air conditioner to operate the function mode is formed.

Description

Method, system, equipment and storage medium for generating codes of infrared remote controller
Technical Field
The present disclosure relates to the field of infrared remote control technologies, and in particular, to a method, a system, an apparatus, and a storage medium for generating codes of an infrared remote controller.
Background
In the development process of the remote controller of the air conditioner, in order to enable the new remote controller to achieve the purpose of controlling all functional modes of the air conditioner, a developer needs to acquire code value data and formats obtained by running of the air conditioner, analyze logic protocols of the remote controller according to the code value data and formats, further write executable codes of the remote controller capable of controlling all functions of the air conditioner according to the logic protocols, but in the development process, the developer needs to have a certain code programming work bottom, the technical threshold of the development process is higher, meanwhile, the time for coding each remote controller key is longer, and the development efficiency of the remote controller is lower, so improvement is needed.
Disclosure of Invention
In order to facilitate the development operation of the remote controller and improve the development working efficiency of the remote controller, the application provides an infrared remote controller code generation method, an infrared remote controller code generation system, an infrared remote controller code generation device and a storage medium.
The first object of the present invention is achieved by the following technical solutions:
a method for generating codes of an infrared remote controller comprises the following steps:
creating a program library, and pre-storing a plurality of bottom layer function codes in the program library, wherein the bottom layer function codes are used for forming executable codes of a remote controller;
the method comprises the steps of obtaining code value data and format of any function operated by an air conditioner, decoding the code value data and format, obtaining a logic protocol and a code transmitting format of the remote controller corresponding to the function, and transmitting the logic protocol and the code transmitting format to a user terminal;
when receiving a program library calling request sent by a user terminal, transmitting the program library and a plurality of stored bottom layer function codes to the user terminal;
and combining the bottom layer function codes screened by the user terminal according to the logic protocol and the code sending format into executable codes for controlling the air conditioner to operate the function mode.
By adopting the technical scheme, when a developer develops a new remote controller key function, code value data and formats corresponding to the functions are obtained by running each function of the air conditioner, the logic protocol and the code transmitting format of each function of the remote controller can be obtained after decoding the code value data and the code transmitting format, the logic protocols and the code transmitting formats of different functions of the air conditioner are different, when a user terminal obtains the logic protocols and the code transmitting formats corresponding to certain code value data and formats, the developer can select bottom function codes corresponding to the logic protocols and the code transmitting formats from a program library of the user terminal, and as the bottom function codes are basic codes which are written and stored in advance and can realize the principle level of the air conditioner running function, the developer can select bottom function codes identical to the logic protocols and the code transmitting formats from the program library according to the characteristics shown by the logic protocols and the code transmitting formats, and finally can execute codes through combination, and finally executable codes corresponding to all remote controller keys are obtained.
Therefore, a developer does not need a deep programming work, the generation operation of the executable code can be completed through the identification of a simple code format, so that the operation of remote controller development is easier to start, meanwhile, the time spent on programming is saved, and the working efficiency of remote controller development can be improved.
In a preferred example, the present application: the method comprises the steps of creating a program library, pre-storing a plurality of bottom layer function codes in the program library, and executing the following steps after the steps of forming executable codes of a remote controller by the bottom layer function codes:
creating a function identifier based on the function realized by the bottom layer function code, and binding the function identifier with the bottom layer function code;
and classifying and storing a plurality of bottom layer function codes in a program library based on the classification rule of the function identifier.
By adopting the technical scheme, because the functions of the air conditioner are different, different logic protocols and code sending formats can be obtained, therefore, the bottom layer function codes are classified and stored through the corresponding function identifiers, the developer can conveniently select the required bottom layer function codes from the program library, the bottom layer function code bound by each function identifier is one or more than one, for example, a certain function identifier is wind speed regulation, and the bound bottom layer function codes comprise four bottom layer function codes of first gear, second gear, third gear, automatic and the like.
In a preferred example, the present application: the step of combining the bottom layer function codes screened based on the user terminal according to the logic protocol and the code sending format into the executable codes for controlling the air conditioner to operate the function mode comprises the following steps:
when a selection instruction from a user terminal is received, marking the selected bottom layer function codes based on the selection instruction, and sequentially sending the marked bottom layer function codes to a code combination model;
the code combination model integrates and outputs executable codes to the user terminal based on the sequence of the received bottom layer function codes;
after the step of combining into an executable code for controlling the air conditioner to operate the functional mode, the following steps are performed:
when a modification instruction from the user terminal is received, the arrangement order of a plurality of underlying function codes constituting the executable code is adjusted and/or the underlying function codes are replaced based on the modification instruction.
By adopting the technical scheme, when a developer of the user terminal combines the executable codes, the developer can integrate and output the executable codes by sending the bottom functional codes to the code combination model according to the sequence, namely, the generation of the executable codes can be realized through simple sequencing combination, the operation of the developer is simple and convenient, and the development efficiency is improved.
In a preferred example, the present application: the step of adjusting the arrangement order of the plurality of bottom function codes constituting the executable code and/or replacing the bottom function codes based on the modification instruction when the modification instruction from the user terminal is received: comprising the following steps:
when a modification instruction from a user terminal is received, a modification list is generated based on the modification instruction, and a plurality of bottom layer function codes are recorded in the modification list according to the sequence of the modification list, wherein the bottom layer function codes are recorded in the sequence of the executable codes;
transmitting the modification list to the user terminal;
when a dragging instruction from a user terminal is received, adjusting and modifying the arrangement sequence of a plurality of bottom layer function codes in the list based on the dragging instruction;
when receiving a new addition or deletion instruction from the user terminal, filling the marked bottom function code into a modification list based on the new addition instruction, and deleting the marked bottom function code from the modification list based on the deletion instruction;
when the modification confirmation information from the user terminal is received, a new executable code is generated and transmitted to the user terminal.
By adopting the technical scheme, the modification list is generated and sent to the user terminal, when the developer of the user terminal has missed selection and wrong selection of the bottom layer function codes, the arrangement sequence of the bottom layer function codes can be dragged through the modification list, the sequential exchange or the supplementary deletion of the bottom layer logic can be simply and conveniently completed, the development convenience of the developer for the remote controller is further improved, the user terminal only needs to automatically operate the modification of the bottom layer function codes at the displayed interface, the operation complexity is reduced, and the remote controller development is more convenient.
In a preferred example, the present application: after the step of sending the program library and the stored plurality of bottom layer function codes to the user terminal when receiving the program library call request sent by the user terminal, the following steps are executed:
identifying a logic protocol and a function type corresponding to a code sending format;
and matching corresponding function identifiers in the program library based on the function types, and sending the bottom function codes associated with the function identifiers to the user terminal.
By adopting the technical scheme, when the user terminal receives the logic protocol and the code transmitting format, the function types corresponding to the logic protocol and the code transmitting format are identified, namely the functions corresponding to the operation of the air conditioner are identified, and because the bottom function codes in the program library are also divided based on the function identification for controlling the operation of the air conditioner, the bottom function codes of the same functions corresponding to the logic protocol and the code transmitting format can be screened out by acquiring the function types and matching the function identification in the program library, and the time for screening the bottom function codes by a developer can be reduced by transmitting the bottom function codes screened out by the lock to the user terminal.
In a preferred example, the present application: the method comprises the steps of creating a program library, pre-storing a plurality of bottom layer function codes in the program library, and executing the following steps after the steps of forming executable codes of a remote controller by the bottom layer function codes:
extracting code values for distinguishing different bottom layer function codes in the same function identifier according to a preset extraction rule, and taking the code values as identification data;
after the step of sending the program library and the stored plurality of bottom layer function codes to the user terminal when receiving the program library call request sent by the user terminal, the following steps are executed:
identifying and extracting code values used for distinguishing different modes in the same function of the air conditioner in a logic protocol and code sending format as key data;
and matching the key data with the identification data, and sending a matching result to the user terminal.
By adopting the technical scheme, the code values which are distinguished from each other among all bottom layer function codes in the same function identifier are obtained and used as identification data, for example, the code values which are distinguished from each other among first gear, second gear and third gear are represented in the wind speed adjusting function, after a certain logic protocol and a code transmitting format are received, the code values which are distinguished from different modes in the same function in the logic protocol and the code transmitting format are identified and extracted, for example, the code values which adjust the wind speed to the third gear are obtained in the logic protocol and the code transmitting format which realize the wind speed adjusting of an air conditioner, the key data are used as key data, the key data are matched with a plurality of identification data, the matched bottom layer function codes can be matched to a user terminal, namely, the function of automatically searching the corresponding bottom layer function codes according to the logic protocol and the code transmitting format is realized, the time for searching the bottom layer function codes by a developer is saved, and the remote controller is more convenient to develop.
The second object of the present invention is achieved by the following technical solutions:
an infrared remote control code generation system comprising:
the program library creating module is used for creating a program library, and pre-storing a plurality of bottom layer function codes in the program library, wherein the bottom layer function codes are used for forming executable codes of the remote controller;
the decoding module is used for acquiring and decoding code value data and format of any function operated by the air conditioner, obtaining a logic protocol and a code transmitting format of the remote controller corresponding to the function, and transmitting the logic protocol and the code transmitting format to the user terminal;
the calling module is used for sending the program library and a plurality of stored bottom layer function codes to the user terminal when receiving a program library calling request sent by the user terminal;
and the code combination module is used for combining the bottom layer function codes screened by the user terminal according to the logic protocol and the code sending format into executable codes for controlling the air conditioner to operate the function mode.
By adopting the technical scheme, when a developer develops a new remote controller key function, code value data and formats corresponding to the functions are obtained by running each function of the air conditioner, the logic protocol and the code transmitting format of each function of the remote controller can be obtained after decoding the code value data and the code transmitting format, the logic protocols and the code transmitting formats of different functions of the air conditioner are different, when a user terminal obtains the logic protocols and the code transmitting formats corresponding to certain code value data and formats, the developer can select bottom function codes corresponding to the logic protocols and the code transmitting formats from a program library of the user terminal, and as the bottom function codes are basic codes which are written and stored in advance and can realize the principle level of the air conditioner running function, the developer can select bottom function codes identical to the logic protocols and the code transmitting formats from the program library according to the characteristics shown by the logic protocols and the code transmitting formats, and finally can execute codes through combination, and finally executable codes corresponding to all remote controller keys are obtained.
Therefore, a developer does not need a deep programming work, the generation operation of the executable code can be completed through the identification of a simple code format, so that the operation of remote controller development is easier to start, meanwhile, the time spent on programming is saved, and the working efficiency of remote controller development can be improved.
Optionally, the method further comprises:
the identifier binding module is used for creating a function identifier based on the function realized by the bottom layer function code and binding the function identifier with the bottom layer function code;
and the classification storage module is used for classifying and storing a plurality of bottom layer function codes into a program library based on the classification rule of the function identifier.
The third object 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 the memory and executable on the processor, the processor implementing the steps of the above-mentioned method of generating an infrared remote control code when the computer program is executed.
The fourth object of the present application is achieved by the following technical solutions:
a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the above-described infrared remote control code generation method.
In summary, the present application includes at least one of the following beneficial technical effects:
1. the developer can complete the generation operation of the executable code through the identification of a simple code format without a deep programming work, so that the operation of remote controller development is easier to start, the time spent on programming is saved, and the working efficiency of remote controller development can be improved;
2. when a developer of the user terminal combines the executable codes, the developer only needs to send the bottom functional codes to the code combination model according to the sequence, and then the executable codes can be integrated and output, namely, the generation of the executable codes can be realized through simple sequencing combination, the developer is easy and convenient to operate, and the development efficiency is improved;
3. through generating the modification list and sending the modification list to the user terminal, when a developer of the user terminal has missed selection and misplaced selection of the bottom layer function codes, the sequence exchange or supplementary deletion of the bottom layer logic can be simply and conveniently completed through the modification list, the development convenience of the developer on the remote controller is further improved, the user terminal can automatically operate the modification of the bottom layer function codes only on a displayed interface, the operation complexity is reduced, and the remote controller development is more convenient.
4. The key data and the plurality of identification data are matched, so that the corresponding three-gear bottom layer function codes can be matched, and the matched bottom layer function codes are sent to the user terminal, namely, the function of automatically searching the corresponding bottom layer function codes according to the logic protocol and the code sending format is realized, and the time for searching the bottom layer function codes by a developer is saved.
Drawings
FIG. 1 is a flowchart of an implementation of an embodiment of a method for generating codes for an infrared remote control according to the present application;
FIG. 2 is a flowchart of another implementation of an embodiment of an infrared remote control code generation method of the present application;
FIG. 3 is a flowchart of another implementation of an embodiment of an infrared remote control code generation method of the present application;
FIG. 4 is a flowchart of another implementation of an embodiment of an infrared remote control code generation method of the present application;
fig. 5 is a functional block diagram of a computer device of the present application.
Detailed Description
The present application is described in further detail below in conjunction with figures 1-5.
In an embodiment, as shown in fig. 1, the application discloses a method for generating codes of an infrared remote controller, which specifically includes the following steps:
s10: creating a program library, and pre-storing a plurality of bottom layer function codes in the program library, wherein the bottom layer function codes are used for forming executable codes of a remote controller;
in this embodiment, the program library is a database created in advance and used for storing a bottom layer function code, and for a developer to call the bottom layer function code through the user terminal, where the bottom layer function code is used to form an executable code for controlling the air conditioner to operate various functions, and the bottom layer function code is actually a bottom layer program stored in a packaged manner, and is a functional basic code that is theoretical relative to the executable code; different bottom layer function codes can control the air conditioner to operate different functions after forming the executable codes, and can adjust different parameters and modes of the same function of the air conditioner, for example, different bottom layer function codes can adjust the wind speed and the temperature of the air conditioner, and can also adjust the gear of the wind speed in the wind speed adjusting function.
The executable code is code capable of realizing a function of controlling the air conditioner to operate.
Specifically, a program library is created, and a plurality of bottom layer function codes capable of forming executable codes of a remote controller are prestored in the program library;
s20: the method comprises the steps of obtaining code value data and format of any function operated by an air conditioner, decoding the code value data and format, obtaining a logic protocol and a code transmitting format of the remote controller corresponding to the function, and transmitting the logic protocol and the code transmitting format to a user terminal;
in this embodiment, after decoding the code value data and the code format of the air conditioner, the logic protocol and the code format of the remote controller serving as the signal transmitting end are obtained, where the logic protocol is code value logic, that is, the rule of codes, the logic protocols and the code formats of different brands of air conditioners are different, and the code format is the code format. Further, the logic protocols and the code formats for adjusting different functions of the air conditioner or adjusting different parameter solutions of the same function are not identical.
The user terminal refers to a PC end or a mobile terminal for a developer to operate.
The program library stores the bottom function codes corresponding to different brands of air conditioners, and further the logic protocols and the code sending formats of the bottom function codes of the air conditioners of the same brand are not identical.
Specifically, different functions of the air conditioner are controlled to operate through the IC chip, and are sent to an upper computer to be decoded automatically through a decoder, so that a logic protocol and a code sending format of a remote controller corresponding to any function of the air conditioner are obtained. And the logic protocol and the code sending format are sent to the user terminal, namely the interface displayed on the PC end.
S30: when receiving a program library calling request sent by a user terminal, transmitting the program library and a plurality of stored bottom layer function codes to the user terminal;
in this embodiment, the calling request is, for example, a developer of the user terminal, by clicking a request button of the PC-side interface to issue a library calling request, where the library is displayed in the user terminal in a window form, and the bottom function codes in the library are displayed in an arrangement in the window.
Specifically, when a program library call request sent by the user terminal is received, the program library is displayed in the user terminal in a window form, and all bottom layer function codes stored in the program library are arranged and displayed in the window.
S40: and combining the bottom layer function codes screened by the user terminal according to the logic protocol and the code sending format into executable codes for controlling the air conditioner to operate the function mode.
In this embodiment, the selected bottom function codes are arranged in order to form executable codes for realizing the control of the air conditioning function, for example, in the air conditioning air speed adjusting function, the bottom function codes of the corresponding first gear, second gear, third gear and automatic adjusting gear are arranged in order when the air speed adjusting button of the remote controller is pressed to correspond to the first gear, the second gear is pressed again, the third gear is pressed again, and the automatic adjusting gear is switched again.
Specifically, based on the received logic protocol and the code sending format, one or more bottom layer function codes with the same logic protocol and code sending format are selected from the program library based on the user terminal, so as to form an executable code for controlling the air conditioner to operate a certain function.
The executable codes are further burnt to a circuit board chip of the remote controller, and after the acquisition and burning of the executable codes corresponding to all functions of the air conditioner are completed, the remote controller can control the corresponding functions of the air conditioner by pressing a certain function button.
In one embodiment, after step S10, the following steps are performed:
s11: creating a function identifier based on the function realized by the bottom layer function code, and binding the function identifier with the bottom layer function code;
s12: and classifying and storing a plurality of bottom layer function codes in a program library based on the classification rule of the function identifier.
In this embodiment, the function identifier corresponds to a function that can be implemented by the underlying code, and the function identifier is, for example, a wind speed adjusting function, a switching function, a timing function, a temperature adjusting function, and the like.
Specifically, function identifiers are created based on functions which can be realized by the bottom function codes, all the bottom function codes with the same function identifier are stored in a centralized mode, and the bottom function codes with different function identifiers distinguish storage paths.
In one embodiment, referring to fig. 2, step S50 includes:
s51: when a selection instruction from a user terminal is received, marking the selected bottom layer function codes based on the selection instruction, and sequentially sending the marked bottom layer function codes to a code combination model;
s52: the code combination model integrates and outputs executable codes to the user terminal based on the sequence of the received bottom layer function codes;
referring to fig. 2, after step S50, the following steps are performed:
s53: when a modification instruction from the user terminal is received, the arrangement order of a plurality of underlying function codes constituting the executable code is adjusted and/or the underlying function codes are replaced based on the modification instruction.
In this embodiment, a selection instruction, for example, a developer of the user terminal clicks the bottom function code, the bottom function code is automatically sent to the code combination model, the code combination model temporarily stores the bottom function code based on the received sequence, and automatically combines the bottom function code into an executable code according to the input sequence of the bottom function code, and outputs the executable code to the user terminal, wherein the bottom function code and the sequence input to the code combination model are displayed on the user terminal.
The modification instruction is a control instruction for modifying the underlying function code input to the code combination model.
Specifically, when a developer of the user terminal clicks the bottom function code to be selected, the bottom function code is input into the code combination model, the code combination model temporarily stores the bottom function code according to the receiving sequence, and when the user terminal finishes inputting, the code combination model combines the received bottom function code in an instruction or automatic mode to obtain an executable code, and the executable code is sent to the user terminal.
Further, when a modification instruction of the user terminal is received, the order of the received codes in the code combination model is adjusted based on the modification instruction, or the codes in the code combination model are deleted or added.
In one embodiment, referring to fig. 3, step S53 includes:
s531: when a modification instruction from a user terminal is received, a modification list is generated based on the modification instruction, and a plurality of bottom layer function codes are recorded in the modification list according to the sequence of the modification list, wherein the bottom layer function codes are recorded in the sequence of the executable codes;
s532: transmitting the modification list to the user terminal;
s533: when a dragging instruction from a user terminal is received, adjusting and modifying the arrangement sequence of a plurality of bottom layer function codes in the list based on the dragging instruction;
s534: when receiving a new addition or deletion instruction from the user terminal, filling the marked bottom function code into a modification list based on the new addition instruction, and deleting the marked bottom function code from the modification list based on the deletion instruction;
s535: when the modification confirmation information from the user terminal is received, a new executable code is generated and transmitted to the user terminal.
In this embodiment, the modification list displays the bottom function codes according to the sequence of the bottom function codes received by the code combination model, and the dragging instruction, for example, a developer clicks a certain bottom function code on the modification list and drags the bottom function code by long pressing, so that the sequence of the bottom function codes on the modification list can be adjusted. The new instruction is to directly click the bottom function code in the program library to automatically add to the modification list, and the deletion instruction is to select a deletion option to delete the bottom function code to be deleted by the right mouse button motor.
Specifically, when receiving a modification instruction sent by a developer of the user terminal through a PC terminal interface click, sending a modification list to the user terminal, displaying bottom function codes arranged in sequence in the modification list, moving the selected bottom function codes to a required position when the user terminal passes through the sent dragging instruction, deleting the deletion object selected by the user terminal when receiving a deletion instruction sent by the user terminal, and directly selecting the bottom function code to be newly added in a program library when the user terminal needs to newly add the bottom function code.
In one embodiment, after step S40, the following steps are performed:
s41: identifying a logic protocol and a function type corresponding to a code sending format;
s42: and matching corresponding function identifiers in the program library based on the function types, and sending the bottom function codes associated with the function identifiers to the user terminal.
In this embodiment, the function type refers to a type of controlling an air conditioning function corresponding to the logical protocol and the code format, for example, the function type is a temperature adjustment function.
Specifically, when the user terminal receives the decoded logic protocol and the decoded code format, the type of the air conditioner function corresponding to the logic protocol and the decoded code format is identified, the function type and the function identifier bound by the bottom function code are subjected to similarity matching identification, and the bottom function code with similar or identical type can be screened and obtained and displayed on the user terminal. And the range of the bottom layer function codes required by the screening of the developer is further reduced, and the bottom layer function codes are more convenient to find.
In one embodiment, referring to fig. 4, after step S10, the following steps are performed:
s13: extracting code values for distinguishing different bottom layer function codes in the same function identifier according to a preset extraction rule, and taking the code values as identification data;
referring to fig. 4, after step S40, the following steps are performed:
s43: identifying and extracting code values used for distinguishing different modes in the same function of the air conditioner in a logic protocol and code sending format as key data;
s44: and matching the key data with the identification data, and sending a matching result to the user terminal.
In this embodiment, the extraction rule is used to extract code values for distinguishing different bottom layer function codes, for example, among all bottom layer function codes of the wind speed adjusting function, code values for distinguishing first gear, second gear, third gear and automatic gear adjustment are selected as identification data, and key data is identification data, for example, in a logic protocol and a code transmission format for realizing wind speed adjustment of an air conditioner, the logic protocol and the code transmission format for adjusting the wind speed from second gear to third gear are identified, and the code values capable of representing the second gear to third gear are used as key data.
Specifically, according to a preset rule, the identification data for distinguishing different bottom layer function codes in the same function identifier is extracted, and when a logic protocol and a code sending format are received, the bottom layer function codes for realizing the same function are sent to the user terminal based on the matching of the function identifier and the function type.
Further, based on the screened bottom layer function codes capable of realizing the same function, according to the matching of the identification data and the key data, the bottom layer function codes capable of forming accurate required executable codes can be sent to the user terminal, for example, the bottom layer function codes screened based on the function type and the function identification comprise bottom layer function codes of a first gear, a second gear, a third gear and an automatic gear of wind speed regulation, and further, based on the matching of the identification data and the key data, the bottom layer function codes corresponding to the second gear to the third gear of the user terminal can be screened out accurately.
In an embodiment, the IC chip controls the air conditioner to perform operation in different wind speed modes, obtains code value data and format when the wind level is switched, sends the code value data and format to the upper computer for automatic decoding, obtains a logic protocol and a code transmitting format of the remote controller, firstly obtains a corresponding logic protocol and code transmitting format when the first level of the remote controller is converted into the second level, finds a corresponding bottom layer function code from the program library based on the logic protocol and the code transmitting format, inputs the bottom layer function code into the code combination model, clicks the combination to generate an executable code for controlling the wind speed to be converted into the second level from the first level. Then, the corresponding logic protocol and the code sending format are received when the second gear is converted into the third gear, the corresponding bottom function code input code combination model is searched again, and after the bottom function codes converted into the second gear are arranged, executable codes are generated by clicking. And then the air conditioner is burnt to a remote controller circuit board chip, when the primary air speed adjusting button is pressed, the air speed of the air conditioner is changed from first gear to second gear, and when the air speed adjusting button is pressed again, the air speed of the air conditioner is changed from second gear to third gear.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
In an embodiment, an infrared remote controller code generating system is provided, and the infrared remote controller code generating system corresponds to the infrared remote controller code generating method in the embodiment one by one. The infrared remote control code generation system includes:
the program library creating module is used for creating a program library, and pre-storing a plurality of bottom layer function codes in the program library, wherein the bottom layer function codes are used for forming executable codes of the remote controller;
the decoding module is used for acquiring and decoding code value data and format of any function operated by the air conditioner, obtaining a logic protocol and a code transmitting format of the remote controller corresponding to the function, and transmitting the logic protocol and the code transmitting format to the user terminal;
the calling module is used for sending the program library and a plurality of stored bottom layer function codes to the user terminal when receiving a program library calling request sent by the user terminal;
and the code combination module is used for combining the bottom layer function codes screened by the user terminal according to the logic protocol and the code sending format into executable codes for controlling the air conditioner to operate the function mode.
Optionally, the method further comprises:
the identifier binding module is used for creating a function identifier based on the function realized by the bottom layer function code and binding the function identifier with the bottom layer function code;
and the classification storage module is used for classifying and storing a plurality of bottom layer function codes into a program library based on the classification rule of the function identifier.
Optionally, the code combining module includes:
the selecting instruction sub-module is used for marking the selected bottom layer function codes based on the selecting instruction and sequentially sending the marked bottom layer function codes to the code combination model when receiving the selecting instruction from the user terminal;
the integrated sub-module is used for integrating and outputting executable codes to the user terminal based on the sequence of the received bottom layer function codes by the code combination model;
the infrared remote control code generation system further includes:
and the modification module is used for adjusting the arrangement sequence of a plurality of bottom layer function codes forming the executable code and/or replacing the bottom layer function codes based on the modification instruction when the modification instruction from the user terminal is received.
Optionally, the modification module includes:
the modification list sub-module is used for generating a modification list based on the modification instruction when receiving the modification instruction from the user terminal, wherein the modification list is recorded with a plurality of bottom layer function codes which form the executable codes in sequence according to the arrangement sequence;
a list sending sub-module, configured to send the modified list to the user terminal;
the dragging sub-module is used for adjusting and modifying the arrangement sequence of a plurality of bottom layer function codes in the list based on the dragging instruction when the dragging instruction from the user terminal is received;
the new adding and deleting sub-module is used for filling the marked bottom function codes into the modification list based on the new adding instruction when receiving the new adding or deleting instruction from the user terminal and deleting the marked bottom function codes from the modification list based on the deleting instruction;
and the modification confirmation sub-module is used for generating a new executable code and sending the new executable code to the user terminal when receiving the modification confirmation information from the user terminal.
Optionally, the method further comprises:
the function identification module is used for identifying the logic protocol and the function type corresponding to the code sending format;
and the function matching module is used for matching the corresponding function identifier in the program library based on the function type and sending the bottom function code associated with the function identifier to the user terminal.
Optionally, the method further comprises:
the extraction and identification module is used for extracting code values used for distinguishing different bottom layer function codes in the same function identifier according to a preset extraction rule and taking the code values as identification data;
the key data module is used for identifying and extracting code values used for distinguishing different modes in the same function of the air conditioner in a logic protocol and a code sending format as key data;
and the data matching module is used for matching the key data with the identification data and sending a matching result to the user terminal.
For specific limitations on the infrared remote control code generation system, reference may be made to the above limitation on the infrared remote control code generation method, and no further description is given here. The above-described respective modules in the infrared remote control code generation system may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above 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. 5. 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 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing code value data and formats, program libraries and underlying function codes, function identifiers, function types, logic protocols and code sending formats, and executable 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 an infrared remote control code generation method.
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 method of generating infrared remote control code when executing the computer program.
In one embodiment, a computer readable storage medium having a computer program stored thereon, the computer program when executed by a processor implementing a method of generating an infrared remote control code is provided.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (6)

1. The method for generating the code of the infrared remote controller is characterized by comprising the following steps:
creating a program library, and pre-storing a plurality of bottom layer function codes in the program library, wherein the bottom layer function codes are used for forming executable codes of a remote controller;
the method comprises the steps of obtaining code value data and format of any function operated by an air conditioner, decoding the code value data and format, obtaining a logic protocol and a code transmitting format of the remote controller corresponding to the function, and transmitting the logic protocol and the code transmitting format to a user terminal;
when receiving a program library calling request sent by a user terminal, transmitting the program library and a plurality of stored bottom layer function codes to the user terminal;
based on the bottom layer function codes screened by the user terminal according to the logic protocol and the code sending format, the bottom layer function codes are combined into executable codes for controlling the running function mode of the air conditioner;
the method comprises the steps of creating a program library, pre-storing a plurality of bottom layer function codes in the program library, and executing the following steps after the steps of forming executable codes of a remote controller by the bottom layer function codes:
creating a function identifier based on the function realized by the bottom layer function code, and binding the function identifier with the bottom layer function code;
based on the classification rule of the function identifier, classifying and storing a plurality of bottom layer function codes in a program library;
after the step of sending the program library and the stored plurality of bottom layer function codes to the user terminal when receiving the program library call request sent by the user terminal, the following steps are executed:
identifying a logic protocol and a function type corresponding to a code sending format;
matching corresponding function identifiers in a program library based on the function types, and sending bottom function codes associated with the function identifiers to a user terminal;
the method comprises the steps of creating a program library, pre-storing a plurality of bottom layer function codes in the program library, and executing the following steps after the steps of forming executable codes of a remote controller by the bottom layer function codes:
extracting code values for distinguishing different bottom layer function codes in the same function identifier according to a preset extraction rule, and taking the code values as identification data;
after the step of sending the program library and the stored plurality of bottom layer function codes to the user terminal when receiving the program library call request sent by the user terminal, the following steps are executed:
identifying and extracting code values used for distinguishing different modes in the same function of the air conditioner in a logic protocol and code sending format as key data;
and matching the key data with the identification data, and sending a matching result to the user terminal.
2. The method for generating the code of the infrared remote controller according to claim 1, wherein: the step of combining the bottom layer function codes screened based on the user terminal according to the logic protocol and the code sending format into the executable codes for controlling the air conditioner operation function mode comprises the following steps:
when a selection instruction from a user terminal is received, marking the selected bottom layer function codes based on the selection instruction, and sequentially sending the marked bottom layer function codes to a code combination model;
the code combination model integrates and outputs executable codes to the user terminal based on the sequence of the received bottom layer function codes;
after the step of combining into executable codes for controlling the air conditioner to operate the functional mode, the following steps are performed:
when a modification instruction from the user terminal is received, the arrangement order of a plurality of underlying function codes constituting the executable code is adjusted and/or the underlying function codes are replaced based on the modification instruction.
3. The method for generating the code of the infrared remote controller according to claim 2, wherein: the step of adjusting the arrangement order of the plurality of bottom function codes constituting the executable code and/or replacing the bottom function codes based on the modification instruction when the modification instruction from the user terminal is received: comprising the following steps:
when a modification instruction from a user terminal is received, a modification list is generated based on the modification instruction, and a plurality of bottom layer function codes are recorded in the modification list according to the sequence of the modification list, wherein the bottom layer function codes are recorded in the sequence of the executable codes;
transmitting the modification list to the user terminal;
when a dragging instruction from a user terminal is received, adjusting and modifying the arrangement sequence of a plurality of bottom layer function codes in the list based on the dragging instruction;
when receiving a new addition or deletion instruction from the user terminal, filling the marked bottom function code into a modification list based on the new addition instruction, and deleting the marked bottom function code from the modification list based on the deletion instruction;
when the modification confirmation information from the user terminal is received, a new executable code is generated and transmitted to the user terminal.
4. An infrared remote control code generation system, comprising:
the program library creating module is used for creating a program library, and pre-storing a plurality of bottom layer function codes in the program library, wherein the bottom layer function codes are used for forming executable codes of the remote controller;
the decoding module is used for acquiring and decoding code value data and format of any function operated by the air conditioner, obtaining a logic protocol and a code transmitting format of the remote controller corresponding to the function, and transmitting the logic protocol and the code transmitting format to the user terminal;
the calling module is used for sending the program library and a plurality of stored bottom layer function codes to the user terminal when receiving a program library calling request sent by the user terminal;
the code combination module is used for combining the bottom layer function codes screened by the user terminal according to the logic protocol and the code sending format into executable codes for controlling the running function mode of the air conditioner;
the identifier binding module is used for creating a function identifier based on the function realized by the bottom layer function code and binding the function identifier with the bottom layer function code;
the classification storage module is used for classifying and storing a plurality of bottom layer function codes into a program library based on classification rules of the function identifiers;
the function identification module is used for identifying the logic protocol and the function type corresponding to the code sending format;
the function matching module is used for matching corresponding function identifiers in the program library based on the function types and sending bottom function codes associated with the function identifiers to the user terminal;
the extraction and identification module is used for extracting code values used for distinguishing different bottom layer function codes in the same function identifier according to a preset extraction rule and taking the code values as identification data;
the key data module is used for identifying and extracting code values used for distinguishing different modes in the same function of the air conditioner in a logic protocol and a code sending format as key data;
and the data matching module is used for matching the key data with the identification data and sending a matching result to the user terminal.
5. 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 the method for generating an infrared remote control code according to any one of claims 1 to 3 when the computer program is executed by the processor.
6. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the infrared remote control code generation method of any one of claims 1 to 3.
CN202210592803.5A 2022-05-28 2022-05-28 Method, system, equipment and storage medium for generating codes of infrared remote controller Active CN115048085B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210592803.5A CN115048085B (en) 2022-05-28 2022-05-28 Method, system, equipment and storage medium for generating codes of infrared remote controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210592803.5A CN115048085B (en) 2022-05-28 2022-05-28 Method, system, equipment and storage medium for generating codes of infrared remote controller

Publications (2)

Publication Number Publication Date
CN115048085A CN115048085A (en) 2022-09-13
CN115048085B true CN115048085B (en) 2024-03-26

Family

ID=83159787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210592803.5A Active CN115048085B (en) 2022-05-28 2022-05-28 Method, system, equipment and storage medium for generating codes of infrared remote controller

Country Status (1)

Country Link
CN (1) CN115048085B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009129327A (en) * 2007-11-27 2009-06-11 Fuji Electric Holdings Co Ltd Program development support device, method, and program
CN101599016A (en) * 2009-07-06 2009-12-09 俞启茂 The generation method and the system thereof of code of remote control
CN102915631A (en) * 2012-10-10 2013-02-06 中颖电子股份有限公司 Development system of remote controller chip
CN104966396A (en) * 2015-07-16 2015-10-07 四川长虹电子部品有限公司 Learning method for remote control codes of air conditioner based on cloud platform
CN105959190A (en) * 2016-06-20 2016-09-21 深圳市欧瑞博电子有限公司 Scenario control method of intelligent infrared device, and system thereof
CN108022592A (en) * 2018-01-17 2018-05-11 深圳市沃特沃德股份有限公司 Voice remote control method and device
CN111462471A (en) * 2020-04-20 2020-07-28 江苏群达智能科技有限公司 Universal air conditioner remote controller and remote control code matching method thereof
CN111918109A (en) * 2020-08-06 2020-11-10 Tcl海外电子(惠州)有限公司 Television control method, television, remote controller, television system and storage medium
CN113587376A (en) * 2021-06-11 2021-11-02 南方电网综合能源股份有限公司 One-key code matching method and system for intelligent controller of air conditioner
CN113781760A (en) * 2021-08-17 2021-12-10 深圳智控佳科技有限公司 Bluetooth remote control method, device, system and medium based on two-dimension code
CN114385998A (en) * 2022-01-14 2022-04-22 北京金山云网络技术有限公司 Function use permission processing method and device and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2003206091A1 (en) * 2002-03-29 2003-10-13 Koninklijke Philips Electronics N.V. Programmable remote control and method for programming a programmable remote control, a readable memory and a program
US9922545B2 (en) * 2015-07-09 2018-03-20 Peel Technologies, Inc. Performing queries to determine command codesets for electronic devices

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009129327A (en) * 2007-11-27 2009-06-11 Fuji Electric Holdings Co Ltd Program development support device, method, and program
CN101599016A (en) * 2009-07-06 2009-12-09 俞启茂 The generation method and the system thereof of code of remote control
CN102915631A (en) * 2012-10-10 2013-02-06 中颖电子股份有限公司 Development system of remote controller chip
CN104966396A (en) * 2015-07-16 2015-10-07 四川长虹电子部品有限公司 Learning method for remote control codes of air conditioner based on cloud platform
CN105959190A (en) * 2016-06-20 2016-09-21 深圳市欧瑞博电子有限公司 Scenario control method of intelligent infrared device, and system thereof
CN108022592A (en) * 2018-01-17 2018-05-11 深圳市沃特沃德股份有限公司 Voice remote control method and device
CN111462471A (en) * 2020-04-20 2020-07-28 江苏群达智能科技有限公司 Universal air conditioner remote controller and remote control code matching method thereof
CN111918109A (en) * 2020-08-06 2020-11-10 Tcl海外电子(惠州)有限公司 Television control method, television, remote controller, television system and storage medium
CN113587376A (en) * 2021-06-11 2021-11-02 南方电网综合能源股份有限公司 One-key code matching method and system for intelligent controller of air conditioner
CN113781760A (en) * 2021-08-17 2021-12-10 深圳智控佳科技有限公司 Bluetooth remote control method, device, system and medium based on two-dimension code
CN114385998A (en) * 2022-01-14 2022-04-22 北京金山云网络技术有限公司 Function use permission processing method and device and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于单片机的智能红外遥控开关;胥加林 等;机械制造与自动化(04);全文 *
机顶盒遥控器选型基础;周春宏;有线电视技术;20080620(第06期);第133-136页 *

Also Published As

Publication number Publication date
CN115048085A (en) 2022-09-13

Similar Documents

Publication Publication Date Title
US9632754B2 (en) Auto generation and linkage of source code to test cases
JP2526692B2 (en) Programmable controller programming method
CN111263024A (en) Host device, image reading device, and information processing method of information processing device
CN115048085B (en) Method, system, equipment and storage medium for generating codes of infrared remote controller
CN108717350B (en) Terminal device and flash memory chip operation result display method based on terminal device
CN113434134B (en) Component processing method and device, electronic equipment and storage medium
CN111552503B (en) Project file processing method and device, computer equipment and storage medium
CN114895954B (en) Code modification method, system, equipment and storage medium of remote control system
CN112527286A (en) Service code generation method and device, computer equipment and storage medium
CN112711536A (en) Automatic dial testing method and system, and computer readable storage medium
CN112417907A (en) Tool management and control system, method and computer readable storage medium
CN112825033A (en) Interface code generation method, device, equipment and storage medium
CN113377346B (en) Integrated environment building method and device, electronic equipment and storage medium
CN106020918B (en) Television software compiling method and system
EP2228734A1 (en) Portable electronic device and access control method in portable electronic device
CN106713666A (en) Recognition display method and device of verification information
CN113010434A (en) System and method for realizing lightweight application point burying
CN112817816A (en) Embedded point processing method and device, computer equipment and storage medium
US20230171571A1 (en) Computer-readable recording medium, method, and system
CN112099797A (en) Industrial control screen based function setting method and device and industrial control screen
CN112732291B (en) Product function development method and device, storage medium and electronic device
WO2023189527A1 (en) Information editing program, information editing method, and information editing system
CN115495057B (en) Method and system for realizing windows and HDFS communication
CN114968221B (en) Front-end-based low-code arranging system and method
CN114546861B (en) GUI (graphical user interface) automatic testing method for video monitoring platform

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