CN111583617B - Method and device for configuring remote controller, electronic equipment and readable storage medium - Google Patents

Method and device for configuring remote controller, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111583617B
CN111583617B CN202010362654.4A CN202010362654A CN111583617B CN 111583617 B CN111583617 B CN 111583617B CN 202010362654 A CN202010362654 A CN 202010362654A CN 111583617 B CN111583617 B CN 111583617B
Authority
CN
China
Prior art keywords
remote control
control code
optimal
recommended
remote controller
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
CN202010362654.4A
Other languages
Chinese (zh)
Other versions
CN111583617A (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.)
Hangzhou Tuya Information Technology Co Ltd
Original Assignee
Hangzhou Tuya Information 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 Hangzhou Tuya Information Technology Co Ltd filed Critical Hangzhou Tuya Information Technology Co Ltd
Priority to CN202010362654.4A priority Critical patent/CN111583617B/en
Publication of CN111583617A publication Critical patent/CN111583617A/en
Application granted granted Critical
Publication of CN111583617B publication Critical patent/CN111583617B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2209/00Arrangements in telecontrol or telemetry systems
    • H04Q2209/40Arrangements in telecontrol or telemetry systems using a wireless architecture

Abstract

The application discloses a remote controller configuration method, which comprises the steps of determining a key with the highest priority in a priority list as an optimal key, and selecting a recommended remote control code of the optimal key according to a remote control code table; when the recommended remote control code can control the device to be controlled to execute the action corresponding to the optimal key, judging whether the ID of the remote controller corresponding to the recommended remote control code is unique; if not, deleting the non-recommended remote control codes of the optimal keys in the remote control code table, deleting the optimal keys in the priority list, and then re-determining the optimal keys and the recommended remote control codes thereof for further screening. The method and the device achieve the purpose of reducing the ID range of the remote controller, so that a user does not need to search the ID of the remote controller corresponding to the electric appliance to be controlled when the mobile terminal application program is used for configuration, and the configuration speed of the remote controller is improved. The application also provides a device, electronic equipment and readable storage medium for remote controller configuration, and the device, the electronic equipment and the readable storage medium have the beneficial effects.

Description

Method and device for configuring remote controller, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of remote control, and in particular, to a method and an apparatus for configuring a remote controller, an electronic device, and a readable storage medium.
Background
With the rapid development of wireless communication technology and mobile terminal technology, intelligent remote control provides richer and diversified application experience for people, and simply and conveniently controls various electrical appliances to become a living mode pursued by people.
Under the traditional condition, each electric appliance is provided with a remote controller, the number of the remote controllers is increased along with the increase of the number of the electric appliances, so that the corresponding remote controller needs to be found out firstly when a certain electric appliance needs to be controlled each time, great inconvenience is brought to life of people, and based on the remote controller, all manufacturers release a universal remote controller-mobile end application program at present, and the corresponding remote controllers can be configured and generated to control the electric appliances only by selecting corresponding remote controller IDs through the mobile end application program.
However, since the home appliances are in a plurality of types and there may be a plurality of remote controllers (different models) under the same brand, when the mobile application program is configured, a user needs to search for a remote controller ID corresponding to an appliance to be controlled from a large number of remote controller IDs, which causes the speed of remote controller configuration to be too low, and greatly affects user experience.
Therefore, how to increase the speed of remote controller configuration is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a method, a device, an electronic device and a readable storage medium for remote controller configuration, which are used for improving the speed of remote controller configuration.
In order to solve the above technical problem, the present application provides a method for configuring a remote controller, including:
acquiring a remote control code table and a priority list of keys, wherein the remote control code table stores a first corresponding relation between the keys and remote control codes and a second corresponding relation between the remote control codes and remote controller IDs;
determining the key with the highest priority in the priority list as an optimal key, and selecting a recommended remote control code of the optimal key according to the remote control code table;
when the recommended remote control code can control a device to be controlled to execute the action corresponding to the optimal key, judging whether the ID of the remote controller corresponding to the recommended remote control code is unique;
if not, deleting the non-recommended remote control codes of the optimal keys in the remote control code table, deleting the optimal keys in the priority list, returning to execute the steps of determining the keys with the highest priority in the priority list as the optimal keys and selecting the recommended remote control codes of the optimal keys according to the remote control code table;
and if so, configuring according to the remote controller ID to obtain the remote controller of the device to be controlled.
Optionally, selecting the recommended remote control code of the optimal key according to the remote control code table includes:
sorting the remote control codes of the optimal keys in the remote control code table according to the mode that the number of the corresponding remote controller IDs is reduced from large to small;
and determining the remote control code of the optimal key row in the remote control code table as the recommended remote control code.
Optionally, when the recommended remote control code cannot control the device to be controlled to execute the action corresponding to the optimal key, the method further includes:
deleting the recommended remote control codes of the optimal keys in the remote control code table;
judging whether the remote control code table has the remote control code of the optimal key;
if yes, returning to the step of executing the recommended remote control code for selecting the optimal key according to the remote control code table;
if not, deleting the optimal key in the priority list, returning to execute the steps of determining the key with the highest priority in the priority list as the optimal key and selecting the recommended remote control code of the optimal key according to the remote control code table.
Optionally, when the key does not exist in the priority list, the method further includes:
and outputting prompt information of the remote controller which cannot configure the device to be controlled.
Optionally, the obtaining of the remote control code table and the priority list of the keys includes:
acquiring a third corresponding relation among all the keys, the remote control codes and the remote controller IDs;
storing the remote controller IDs with the same remote control codes together to obtain a second corresponding relation between the remote control codes and the remote controller IDs;
storing the same remote control codes of all the keys together to obtain a first corresponding relation between the keys and the remote control codes;
and determining the remote control coding table according to the first corresponding relation and the second corresponding relation.
Optionally, the method further includes:
and storing the remote controller IDs of which the difference value of each bit of the remote control code is smaller than a threshold value together, and correspondingly modifying the second corresponding relation between the remote control code and the remote controller ID.
Optionally, the method further includes:
receiving a corresponding relation modification command;
and executing the corresponding relation modification command to modify the first corresponding relation and/or the second corresponding relation in the remote control coding table.
The present application further provides a device configured for a remote controller, the device comprising:
the remote control system comprises an acquisition module, a remote control coding module and a remote controller ID, wherein the acquisition module is used for acquiring a remote control coding table and a priority list of keys, and the remote control coding table stores a first corresponding relation between the keys and remote control codes and a second corresponding relation between the remote control codes and remote controller IDs;
the determining module is used for determining the key with the highest priority in the priority list as an optimal key and selecting the recommended remote control code of the optimal key according to the remote control code table;
the first judgment module is used for judging whether the ID of the remote controller corresponding to the recommended remote control code is unique or not when the recommended remote control code can control the device to be controlled to execute the action corresponding to the optimal key;
a first deleting module, configured to delete the non-recommended remote control code of the optimal key in the remote control code table when the remote controller ID corresponding to the recommended remote control code is unique, delete the optimal key in the priority list, return to performing the step of determining the key with the highest priority in the priority list as the optimal key, and select the recommended remote control code of the optimal key according to the remote control code table;
and the configuration module is used for configuring the remote controller of the device to be controlled according to the ID of the remote controller when the ID of the remote controller corresponding to the recommended remote control code is not unique.
The present application also provides an electronic device, including:
a memory for storing a computer program;
a processor for implementing the steps of the method of remote control configuration as claimed in any one of the above when executing said computer program.
The present application also provides a readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of remote control configuration according to any of the above-mentioned claims.
The method for configuring the remote controller provided by the application comprises the following steps: acquiring a remote control code table and a priority list of keys, wherein the remote control code table stores a first corresponding relation between the keys and remote control codes and a second corresponding relation between the remote control codes and remote controller IDs; determining the key with the highest priority in the priority list as an optimal key, and selecting a recommended remote control code of the optimal key according to a remote control code table; when the recommended remote control code can control the device to be controlled to execute the action corresponding to the optimal key, judging whether the ID of the remote controller corresponding to the recommended remote control code is unique; if not, deleting the non-recommended remote control codes of the optimal keys in the remote control code table, deleting the optimal keys in the priority list, returning to execute the steps of determining the keys with the highest priority in the priority list as the optimal keys and selecting the recommended remote control codes of the optimal keys according to the remote control code table; and if so, configuring according to the ID of the remote controller to obtain the remote controller of the device to be controlled.
According to the technical scheme provided by the application, when the recommended remote control code can control the device to be controlled to execute the action corresponding to the optimal key, whether the ID of the remote controller corresponding to the recommended remote control code is unique is judged; if not, deleting the non-recommended remote control codes of the optimal keys in the remote control code table, deleting the optimal keys in the priority list, then re-determining the optimal keys and the recommended remote control codes thereof for further screening, achieving the purpose of reducing the ID range of the remote controller, enabling a user not to search the ID of the remote controller corresponding to the electric appliance to be controlled by himself when using the mobile terminal application program configuration, greatly improving the configuration speed of the remote controller, and further improving the user experience. The application also provides a device, an electronic device and a readable storage medium configured by the remote controller, which have the beneficial effects and are not repeated herein.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for configuring a remote controller according to an embodiment of the present disclosure;
fig. 2 is a flowchart of another method for configuring a remote controller according to an embodiment of the present application;
FIG. 3 is a flow chart of an actual representation of S101 in the method for remote controller configuration provided in FIG. 1;
fig. 4 is a block diagram of a device configured as a remote controller according to an embodiment of the present application;
FIG. 5 is a block diagram of an apparatus in another remote control configuration provided by an embodiment of the present application;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The core of the application is to provide a method and a device for remote controller configuration, an electronic device and a readable storage medium, which are used for improving the speed of remote controller configuration.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Based on the fact that household appliances are numerous in types, multiple remote controllers (different in type) may exist under the same brand, when mobile terminal application program configuration is used, a user needs to search for a remote controller ID corresponding to an appliance to be controlled from a large number of remote controller IDs, the speed of remote controller configuration is too low, and user experience is greatly influenced; the present application therefore provides a method for remote control configuration to solve the above problems.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for configuring a remote controller according to an embodiment of the present disclosure.
The method specifically comprises the following steps:
s101: acquiring a remote control coding table and a priority list of keys;
the remote control code table mentioned here stores a first corresponding relationship between the key and the remote control code, and a second corresponding relationship between the remote control code and the remote controller ID;
optionally, in a specific embodiment, the first corresponding relationship between the key and the remote control code may be one to many, and the second corresponding relationship between the remote control code and the remote controller ID may also be one to many;
in a remote control system, when a key of a remote controller is pressed, the remote controller generates and transmits a corresponding remote control code, a receiver of a device to be controlled receives the remote control code and then decodes the remote control code, and finally a driving circuit drives an execution circuit to realize operation control of various instructions, wherein the remote control code is a code of various control actions corresponding to the key of the remote controller;
optionally, in a specific embodiment, the obtaining manner of the remote control coding table and the priority list may specifically be a priority list for receiving a remote control coding table and a key input by a user, or may be downloading at a designated position for connecting to a server, and the obtaining manner of the remote control coding table and the priority list is not specifically limited in the present application;
the priority list of the keys mentioned here stores the priority of each key, and for example, for a tv remote controller, the keys and the priority order of the keys may be defined as: switches, menus, confirmations, channels +, channels-, volume +, volume-, numeric key 0, etc.;
optionally, when a change command of the priority list of the key is received, the change command may be executed to perform corresponding modification on the priority list.
S102: determining the key with the highest priority in the priority list as an optimal key, and selecting a recommended remote control code of the optimal key according to a remote control code table;
in this step, the purpose of determining the optimal keys is to determine the remote control codes capable of controlling the device to be controlled according to the priority order of the keys, i.e. whether the keys with high priority can be used for screening the IDs of the remote controllers is firstly determined, so as to achieve the purpose of reducing the search range of the IDs of the remote controllers;
the purpose of selecting the recommended remote control codes is to classify the remote control codes, and then the remote controller IDs are screened according to whether the recommended remote control codes can control the device to be controlled, so that the purpose of reducing the search range of the remote controller IDs can be achieved;
preferably, the remote control code with the largest number of remote controller IDs corresponding to the optimal key in the remote control code table may be used as the recommended remote control code to improve the screening efficiency of the remote controller IDs, that is, the recommended remote control code for selecting the optimal key according to the remote control code table may specifically be:
sequencing the remote control codes of the optimal keys in the remote control code table according to the mode that the number of the corresponding remote controller IDs is reduced from large to small;
and determining the remote control code with the optimal key row at the first position in the remote control code table as the recommended remote control code.
Optionally, the remote control codes of the optimal keys in the remote control code table may also be sorted from small to large according to the number of corresponding remote controller IDs, and the remote control code with the optimal key arranged at the last bit in the remote control code table is determined as the recommended remote control code.
Further, when the recommended remote control code cannot control the device to be controlled to execute the action corresponding to the optimal key, the steps shown in fig. 2 may also be executed, please refer to fig. 2, where fig. 2 is a flowchart of another method for configuring a remote controller provided in an embodiment of the present application, and specifically includes the following steps:
s201: when the recommended remote control code cannot control the device to be controlled to execute the action corresponding to the optimal key, deleting the recommended remote control code of the optimal key in the remote control code table;
s202: judging whether the remote control code table has the remote control code of the optimal key;
if yes, returning to execute the step S102; if not, go to step S203;
when the remote control code of the optimal key exists in the remote control code table, the fact that the optimal key also has the residual corresponding remote control codes after the recommended remote control code of the optimal key in the remote control code table is deleted is proved, namely the residual corresponding remote control codes can also have the remote control codes capable of controlling the device to be controlled to execute the corresponding action of the optimal key, and at the moment, the step returns to execute S102, so that the purpose of reducing the searching range of the ID of the remote controller is achieved;
when the remote control code of the optimal key does not exist in the remote control code table, the fact that the corresponding remote control code does not exist in the optimal key at the moment is proved, namely the remote control code capable of controlling the device to be controlled to execute the corresponding action of the optimal key does not exist, S203 is executed, the optimal key in the priority list is deleted, then the step S102 is executed, the new optimal key is determined again, and the purpose of reducing the search range of the ID of the remote controller is achieved;
optionally, in order to improve the matching precision of the remote controller, when the remote control code table does not have the remote control code of the optimal key, it may also be directly determined that the remote controller ID capable of completely controlling the device to be controlled does not exist, and at this time, prompt information of the remote controller incapable of configuring the device to be controlled is output.
S203: deleting the optimal keys in the priority list;
the process returns to step S102.
Optionally, when no key exists in the priority list, it is proved that no remote controller ID capable of completely controlling the device to be controlled exists, and at this time, prompt information of a remote controller incapable of configuring the device to be controlled may be output;
based on the above embodiment, when the recommended remote control code cannot control the device to be controlled to execute the action corresponding to the optimal key, it is proved that the recommended remote control code cannot control the device to be controlled, so that the recommended remote control code of the optimal key in the remote control code table is deleted to further narrow the search range of the remote controller ID.
S103: when the recommended remote control code can control the device to be controlled to execute the action corresponding to the optimal key, judging whether the ID of the remote controller corresponding to the recommended remote control code is unique;
if not, the step S104 is executed; if yes, the process proceeds to step S105.
S104: deleting the non-recommended remote control codes of the optimal keys in the remote control code table, and deleting the optimal keys in the priority list;
when the remote controller IDs corresponding to the recommended remote control codes are not unique, the fact that the remote controller IDs capable of controlling the device to be controlled to execute the actions corresponding to the optimal keys is indicated, at this time, the non-recommended remote control codes of the optimal keys in the remote control code table are deleted, so that only the recommended remote control codes and the remote controller IDs corresponding to the recommended remote control codes are left in the remote control code table, then the optimal keys in the priority list are deleted, and finally the step S102 is returned to execute to re-determine the optimal keys and the recommended remote control codes, the purpose of rejecting the non-recommended remote control codes of the optimal keys incapable of controlling the device to be controlled to execute the corresponding operations is achieved, and the search range of the remote controller IDs is narrowed.
S105: and configuring according to the ID of the remote controller to obtain the remote controller of the device to be controlled.
And when the ID of the remote controller corresponding to the recommended remote control code is unique, the fact that only one remote controller capable of controlling the device to be controlled to execute the action corresponding to the optimal key is indicated, and the ID is determined to be the optimal remote controller ID.
Based on the technical scheme, the method for configuring the remote controller provided by the application judges whether the ID of the remote controller corresponding to the recommended remote control code is unique or not when the recommended remote control code can control the device to be controlled to execute the action corresponding to the optimal key; if not, deleting the non-recommended remote control codes of the optimal keys in the remote control code table, deleting the optimal keys in the priority list, then re-determining the optimal keys and the recommended remote control codes thereof for further screening, achieving the purpose of reducing the ID range of the remote controller, enabling a user not to search the ID of the remote controller corresponding to the electric appliance to be controlled by himself when using the mobile terminal application program configuration, greatly improving the configuration speed of the remote controller, and further improving the user experience.
With respect to step S101 of the previous embodiment, the obtaining of the remote control code table and the priority list of the keys described herein can be realized by executing the steps shown in fig. 3, and the following description is made with reference to fig. 3.
Referring to fig. 3, fig. 3 is a flowchart illustrating an actual representation manner of S101 in the method for configuring a remote controller provided in fig. 1.
The method specifically comprises the following steps:
s301: acquiring a third corresponding relation among all keys, remote control codes and remote controller IDs;
s302: storing the remote controller IDs with the same remote control codes together to obtain a second corresponding relation between the remote control codes and the remote controller IDs;
s303: storing the remote control codes with the same key to obtain a first corresponding relation between the key and the remote control codes;
s304: and determining a remote control coding table according to the first corresponding relation and the second corresponding relation.
In one embodiment, the keys, the remote control codes and the remote controller ID are input into the remote controller configuration device as a group of data, the remote controller configuration device stores all the remote controller IDs with the same remote control codes together to obtain a second corresponding relation between the remote control codes and the remote controller ID, stores all the remote control codes with the same keys together to obtain a first corresponding relation between the keys and the remote control codes, and finally determines the remote control code table according to the first corresponding relation and the second corresponding relation.
Optionally, based on the particularity of the remote control codes, the remote control codes with the same function may not have the same value, so the present application may further perform the following steps:
and storing the remote controller IDs of which the difference value of each bit of the remote control code is smaller than the threshold value together, and correspondingly modifying the second corresponding relation between the remote control code and the remote controller ID.
For example, the remote control code of the power-on key of a certain type of remote controller is 9300455055011005501200 … 58000, the remote control code of the type of remote controller in the library is 940045005001050500105058760, the time code error of each position of the two types of remote controllers is within 5%, and the two types of remote controllers have the same function according to experience, so that the remote controller IDs of the two types of remote controllers are stored together, and the second corresponding relation between the remote control codes and the remote controller IDs is correspondingly modified.
Optionally, the application may further modify the first corresponding relationship and/or the second corresponding relationship in the remote control encoding table by executing the corresponding relationship modification command, that is, the following steps may also be executed:
receiving a corresponding relation modification command;
and executing the corresponding relation modification command to modify the first corresponding relation and/or the second corresponding relation in the remote control coding table.
Referring to fig. 4, fig. 4 is a structural diagram of a device configured by a remote controller according to an embodiment of the present disclosure.
The apparatus may include:
an obtaining module 100, configured to obtain a remote control code table and a priority list of keys, where the remote control code table stores a first corresponding relationship between a key and a remote control code, and a second corresponding relationship between a remote control code and a remote controller ID;
the determining module 200 is configured to determine a key with the highest priority in the priority list as an optimal key, and select a recommended remote control code of the optimal key according to the remote control code table;
the first judging module 300 is configured to judge whether the remote controller ID corresponding to the recommended remote control code is unique when the recommended remote control code can control the device to be controlled to execute the action corresponding to the optimal key;
a first deleting module 400, configured to delete the non-recommended remote control code of the optimal key in the remote control code table when the remote controller ID corresponding to the recommended remote control code is unique, delete the optimal key in the priority list, return to performing the step of determining the key with the highest priority in the priority list as the optimal key, and select the recommended remote control code of the optimal key according to the remote control code table;
the configuration module 500 is configured to obtain the remote controller of the device to be controlled according to the remote controller ID when the remote controller ID corresponding to the recommended remote control code is not unique.
Referring to fig. 5, fig. 5 is a structural diagram of an apparatus configured with another remote controller according to an embodiment of the present application.
The determining module 200 may include:
the sorting submodule is used for sorting the remote control codes of the optimal keys in the remote control code table according to the mode that the number of the corresponding remote controller IDs is reduced from high to low;
and the first determining submodule is used for determining the remote control code with the optimal key arranged at the first position in the remote control code table as the recommended remote control code.
The apparatus may further include:
the second deleting module is used for deleting the recommended remote control code of the optimal key in the remote control code table when the recommended remote control code cannot control the device to be controlled to execute the action corresponding to the optimal key;
the second judgment module is used for judging whether the remote control code of the optimal key exists in the remote control code table;
the first returning module is used for returning to the determining module 200 to execute the step of selecting the recommended remote control code of the optimal key according to the remote control code table when the remote control code of the optimal key exists in the remote control code table;
and a third deleting module, configured to delete the optimal key in the priority list when the remote control code of the optimal key does not exist in the remote control code table, and return to the determining module 200 to perform the steps of determining the key with the highest priority in the priority list as the optimal key, and selecting the recommended remote control code of the optimal key according to the remote control code table.
And the output module is used for outputting prompt information of the remote controller which cannot configure the device to be controlled when the keys do not exist in the priority list.
The acquisition module 100 may include:
the acquisition submodule is used for acquiring a third corresponding relation among all keys, remote control codes and remote controller IDs;
the first storage submodule is used for storing the remote controller IDs with the same remote control codes together to obtain a second corresponding relation between the remote control codes and the remote controller IDs;
the second storage submodule is used for storing the remote control codes which are the same with all the keys together to obtain a first corresponding relation between the keys and the remote control codes;
and the second determining submodule is used for determining the remote control coding table according to the first corresponding relation and the second corresponding relation.
The obtaining module 100 may further include:
and the modification submodule is used for storing the remote controller IDs of which the difference value of each bit of the remote control code is smaller than the threshold together and correspondingly modifying the second corresponding relation between the remote control code and the remote controller ID.
The obtaining module 100 may further include:
the receiving submodule is used for receiving a corresponding relation modification command;
and the execution sub-module is used for executing the corresponding relation modification command to modify the first corresponding relation and/or the second corresponding relation in the remote control coding table.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
Referring to fig. 6, fig. 6 is a structural diagram of an electronic device according to an embodiment of the present disclosure.
The electronic device 600 may vary greatly due to different configurations or capabilities, and may include one or more processors (CPUs) 622 (e.g., one or more processors) and memory 632, one or more storage media 630 (e.g., one or more mass storage devices) storing applications 642 or data 644. Memory 632 and storage medium 630 may be, among other things, transient or persistent storage. The program stored in the storage medium 630 may include one or more modules (not shown), each of which may include a sequence of instructions operating on the device. Further, the processor 622 may be configured to communicate with the storage medium 630 and execute a series of instruction operations in the storage medium 630 on the electronic device 600.
The electronic device 600 may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input-output interfaces 658, and/or one or more operating devices 641, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so forth.
The steps in the method of remote controller configuration described above in fig. 1 to 3 are implemented by the electronic device based on the structure shown in fig. 6.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, device and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a function calling device, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The method, the apparatus, the electronic device and the readable storage medium for configuring the remote controller provided by the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (9)

1. A method of remote control configuration, comprising:
acquiring a remote control code table and a priority list of keys, wherein the remote control code table stores a first corresponding relation between the keys and remote control codes and a second corresponding relation between the remote control codes and remote controller IDs;
determining the key with the highest priority in the priority list as an optimal key, and selecting a recommended remote control code of the optimal key according to the remote control code table;
when the recommended remote control code can control a device to be controlled to execute the action corresponding to the optimal key, judging whether the ID of the remote controller corresponding to the recommended remote control code is unique;
if not, deleting the non-recommended remote control codes of the optimal keys in the remote control code table, deleting the optimal keys in the priority list, returning to execute the steps of determining the keys with the highest priority in the priority list as the optimal keys and selecting the recommended remote control codes of the optimal keys according to the remote control code table;
if so, configuring according to the remote controller ID to obtain the remote controller of the device to be controlled;
wherein, selecting the recommended remote control code of the optimal key according to the remote control code table comprises:
sorting the remote control codes of the optimal keys in the remote control code table according to the mode that the number of the corresponding remote controller IDs is reduced from large to small;
and determining the remote control code of the optimal key row in the remote control code table as the recommended remote control code.
2. The method of claim 1, wherein when the recommended remote control code cannot control the device to be controlled to perform the action corresponding to the optimal key, the method further comprises:
deleting the recommended remote control codes of the optimal keys in the remote control code table;
judging whether the remote control code table has the remote control code of the optimal key;
if yes, returning to the step of executing the recommended remote control code for selecting the optimal key according to the remote control code table;
if not, deleting the optimal key in the priority list, returning to execute the steps of determining the key with the highest priority in the priority list as the optimal key and selecting the recommended remote control code of the optimal key according to the remote control code table.
3. The method of claim 2, wherein when the key is not present in the priority list, further comprising:
and outputting prompt information of the remote controller which cannot configure the device to be controlled.
4. The method according to any one of claims 1-3, wherein said obtaining a priority list of remote control code tables and keys comprises:
acquiring a third corresponding relation among all the keys, the remote control codes and the remote controller IDs;
storing the remote controller IDs with the same remote control codes together to obtain a second corresponding relation between the remote control codes and the remote controller IDs;
storing the same remote control codes of all the keys together to obtain a first corresponding relation between the keys and the remote control codes;
and determining the remote control coding table according to the first corresponding relation and the second corresponding relation.
5. The method of claim 4, further comprising:
and storing the remote controller IDs of which the difference value of each bit of the remote control code is smaller than a threshold value together, and correspondingly modifying the second corresponding relation between the remote control code and the remote controller ID.
6. The method of claim 4, further comprising:
receiving a corresponding relation modification command;
and executing the corresponding relation modification command to modify the first corresponding relation and/or the second corresponding relation in the remote control coding table.
7. An apparatus configured for a remote control, comprising:
the remote control system comprises an acquisition module, a remote control coding module and a remote controller ID, wherein the acquisition module is used for acquiring a remote control coding table and a priority list of keys, and the remote control coding table stores a first corresponding relation between the keys and remote control codes and a second corresponding relation between the remote control codes and remote controller IDs;
the determining module is used for determining the key with the highest priority in the priority list as an optimal key and selecting the recommended remote control code of the optimal key according to the remote control code table;
the first judgment module is used for judging whether the ID of the remote controller corresponding to the recommended remote control code is unique or not when the recommended remote control code can control the device to be controlled to execute the action corresponding to the optimal key;
a first deleting module, configured to delete the non-recommended remote control code of the optimal key in the remote control code table and delete the optimal key in the priority list when the remote controller ID corresponding to the recommended remote control code is not unique, return to execute the step of determining the key with the highest priority in the priority list as the optimal key, and select the recommended remote control code of the optimal key according to the remote control code table;
the configuration module is used for configuring the remote controller of the device to be controlled according to the ID of the remote controller when the ID of the remote controller corresponding to the recommended remote control code is unique;
wherein the determining module comprises:
the sorting submodule is used for sorting the remote control codes of the optimal keys in the remote control code table according to the mode that the number of the corresponding remote controller IDs is reduced from high to low;
and the first determining submodule is used for determining the remote control code of the optimal key row in the remote control code table as the recommended remote control code.
8. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method of remote control configuration according to any of claims 1 to 6 when executing said computer program.
9. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of remote control configuration according to any one of claims 1 to 6.
CN202010362654.4A 2020-04-30 2020-04-30 Method and device for configuring remote controller, electronic equipment and readable storage medium Active CN111583617B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010362654.4A CN111583617B (en) 2020-04-30 2020-04-30 Method and device for configuring remote controller, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010362654.4A CN111583617B (en) 2020-04-30 2020-04-30 Method and device for configuring remote controller, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111583617A CN111583617A (en) 2020-08-25
CN111583617B true CN111583617B (en) 2021-12-17

Family

ID=72117093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010362654.4A Active CN111583617B (en) 2020-04-30 2020-04-30 Method and device for configuring remote controller, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111583617B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500494A (en) * 2013-09-27 2014-01-08 苏州市群达电子有限公司 Matching method of universal remote controller
CN103546832A (en) * 2013-10-17 2014-01-29 北京闪联云视信息技术有限公司 Matching method and matching system for household appliance remote control
CN103714689A (en) * 2013-12-20 2014-04-09 乐视致新电子科技(天津)有限公司 Key function setting method and key function setting device
US10032365B1 (en) * 2017-10-16 2018-07-24 Universal Electronics Inc. Apparatus, system and method for using a universal controlling device for displaying a graphical user element in a display device
CN109448356A (en) * 2019-01-04 2019-03-08 恬家(上海)信息科技有限公司 A kind of remote controler, smart machine and configuration method
CN109542934A (en) * 2018-10-10 2019-03-29 杭州古北电子科技有限公司 A kind of device model matching process, electronic equipment, the storage medium of universal remote control
CN110149252A (en) * 2018-02-11 2019-08-20 艾法科技股份有限公司 Universal remote control system and the full-automatic of device seek a yard method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101419748B (en) * 2008-11-19 2010-09-15 余翀 Universal remote control and distant control code searching method thereof
CN103544830A (en) * 2012-07-11 2014-01-29 上海曜铂信息科技有限公司 Intelligent pairing method of infrared remote control device
CN103914969A (en) * 2013-01-07 2014-07-09 凹凸电子(武汉)有限公司 Mobile terminal apparatus, and electrical equipment control method
CN103198633A (en) * 2013-02-28 2013-07-10 上海斐讯数据通信技术有限公司 Mobile terminal with multifunctional remote control system and multifunctional remote control method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500494A (en) * 2013-09-27 2014-01-08 苏州市群达电子有限公司 Matching method of universal remote controller
CN103546832A (en) * 2013-10-17 2014-01-29 北京闪联云视信息技术有限公司 Matching method and matching system for household appliance remote control
CN103714689A (en) * 2013-12-20 2014-04-09 乐视致新电子科技(天津)有限公司 Key function setting method and key function setting device
US10032365B1 (en) * 2017-10-16 2018-07-24 Universal Electronics Inc. Apparatus, system and method for using a universal controlling device for displaying a graphical user element in a display device
CN110149252A (en) * 2018-02-11 2019-08-20 艾法科技股份有限公司 Universal remote control system and the full-automatic of device seek a yard method
CN109542934A (en) * 2018-10-10 2019-03-29 杭州古北电子科技有限公司 A kind of device model matching process, electronic equipment, the storage medium of universal remote control
CN109448356A (en) * 2019-01-04 2019-03-08 恬家(上海)信息科技有限公司 A kind of remote controler, smart machine and configuration method

Also Published As

Publication number Publication date
CN111583617A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
CN110211364B (en) Test system, test method, electronic device and storage medium
US10284896B2 (en) Smart TV controlling method and smart TV thereof
CN110333840B (en) Recommendation method and device, electronic equipment and storage medium
CN105573778A (en) Method for starting application program and terminal
KR100342020B1 (en) Remote controlled computer system having identification number and management method of the same
CN104994437A (en) Menu switching method and user terminal
CN103501451A (en) Method and smart television with user-defined key function
CN104714805A (en) Method and device for controlling setting menu of application program
CN111583617B (en) Method and device for configuring remote controller, electronic equipment and readable storage medium
CN104023267A (en) One-key recovery method and one-key recovery system for television data
CN104571888A (en) Radio channel switching method and radio channel switching device in smart terminal
CN110968311B (en) Front-end page construction method and device and electronic equipment
CN105163338A (en) Grouping management method of playing devices and terminal
CN104834450A (en) Function starting method and terminal
CN105739694A (en) Wearable equipment, interaction method thereof and terminal
CN105072534A (en) Control method of wireless loudspeaker box system, and terminal
CN115348644A (en) Bluetooth multi-device network access method and device, electronic device and storage medium
CN114237458A (en) Method, device and storage medium for controlling UI in multidimensional mode independent of OSD position
CN104918301A (en) Method for adding equipment to MESH network and MESH network portal access device
CN104618815A (en) Playback control method, client terminal, player and system
CN105430464A (en) Method, system and device for controlling intelligent television
CN115134240B (en) Intelligent scene optimization method and device, storage medium and electrical equipment
WO2023206701A1 (en) Instruction execution device selection method and apparatus, and storage medium and electronic apparatus
CN105096978A (en) Naming management method for play device group and a terminal
CN110649935B (en) Multi-code system signal switching method

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