CN106920384A - The method and apparatus that intelligent electronic device is adapted to remote control - Google Patents

The method and apparatus that intelligent electronic device is adapted to remote control Download PDF

Info

Publication number
CN106920384A
CN106920384A CN201510992377.4A CN201510992377A CN106920384A CN 106920384 A CN106920384 A CN 106920384A CN 201510992377 A CN201510992377 A CN 201510992377A CN 106920384 A CN106920384 A CN 106920384A
Authority
CN
China
Prior art keywords
remote control
remote controller
mapping file
interface
key
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.)
Pending
Application number
CN201510992377.4A
Other languages
Chinese (zh)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510992377.4A priority Critical patent/CN106920384A/en
Publication of CN106920384A publication Critical patent/CN106920384A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C2201/00Transmission systems of control signals via wireless link
    • G08C2201/20Binding and programming of remote control devices
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C2201/00Transmission systems of control signals via wireless link
    • G08C2201/70Device selection

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)

Abstract

本申请提出一种智能电子设备适配遥控器的方法和装置,该智能电子设备适配红外遥控器的方法包括:在智能电子设备上启动应用程序,并展示所述应用程序的界面,所述界面中包括待适配的按键;选中所述界面中待适配的按键,获取与选中的按键对应的遥控码,所述遥控码是解析遥控器信号获取的,所述遥控器信号是用户通过按压遥控器上的按键产生的;根据选中的按键的功能及所述遥控码,生成遥控器映射文件,所述遥控器映射文件中记录遥控码与功能之间的映射关系。该方法能够实现智能电子设备被非标配的其他电子设备的遥控器控制。

The present application proposes a method and device for adapting an intelligent electronic device to a remote control. The method for adapting an intelligent electronic device to an infrared remote control includes: starting an application program on the intelligent electronic device, and displaying the interface of the application program. The interface includes keys to be adapted; select the keys to be adapted in the interface, and obtain the remote control code corresponding to the selected key, the remote control code is obtained by analyzing the remote control signal, and the remote control signal is obtained by the user through It is generated by pressing a button on the remote control; according to the function of the selected button and the remote control code, a remote control mapping file is generated, and the mapping relationship between the remote control code and the function is recorded in the remote control mapping file. The method can realize that the intelligent electronic device is controlled by remote controllers of other electronic devices that are not equipped as standard.

Description

Method and device for adapting intelligent electronic equipment to remote controller
Technical Field
The present application relates to the field of intelligent electronic devices, and in particular, to a method and an apparatus for adapting an intelligent electronic device to a remote controller.
Background
At present, household electrical appliances, such as televisions, air conditioners, television set-top boxes, DVD players and the like, are mostly controlled by using infrared remote controllers. In order to avoid mutual interference of remote control signals between electrical appliances and to maintain the exclusive supply of accessories, different household appliances are usually controlled by different infrared remote controllers.
With the increasing number and types of household electrical appliances, the number of remote controllers in a household is accumulated. In order to reduce the number of remote controllers, facilitate the use of users, avoid resource waste and the like, the intelligent electronic equipment needs to be controlled by the infrared remote controller which is not in standard configuration.
Disclosure of Invention
The present application is directed to solving, at least to some extent, one of the technical problems in the related art.
To this end, an object of the present application is to provide a method for adapting a remote controller to an intelligent electronic device, which can realize that the intelligent electronic device is controlled by the remote controller of a non-standard other electronic device.
Another object of the present application is to provide an apparatus for adapting a remote controller to an intelligent electronic device.
In order to achieve the above object, an embodiment of a first aspect of the present application provides a method for adapting a remote controller to an intelligent electronic device, including: starting an application program on intelligent electronic equipment, and displaying an interface of the application program, wherein the interface comprises a key to be adapted; selecting a key to be adapted in the interface, and acquiring a remote control code corresponding to the selected key, wherein the remote control code is acquired by analyzing a remote control signal, and the remote control signal is generated by pressing the key on a remote control by a user; and generating a remote controller mapping file according to the functions of the selected keys and the remote control codes, and recording the mapping relation between the remote control codes and the functions in the remote controller mapping file.
In the method for adapting a remote controller to an intelligent electronic device provided in the embodiment of the first aspect of the present application, an application program is started on the intelligent electronic device, and a remote controller mapping file for recording a mapping relationship between remote control codes and functions is generated through the application program and a remote controller signal generated by the remote controller, so that after receiving a remote controller signal generated by a non-standard remote controller, the intelligent electronic device executes corresponding functions according to the remote controller mapping file, thereby realizing that the intelligent electronic device can be controlled by the non-standard remote controller.
In order to achieve the above object, an apparatus for adapting a remote controller to an intelligent electronic device according to an embodiment of the second aspect of the present application includes: the starting module is used for starting an application program on the intelligent electronic equipment and displaying an interface of the application program, wherein the interface comprises a key to be adapted; the acquisition module is used for selecting the keys to be adapted in the interface and acquiring remote control codes corresponding to the selected keys, wherein the remote control codes are acquired by analyzing remote controller signals, and the remote controller signals are generated by pressing the keys on the remote controller by a user; and the generating module is used for generating a remote controller mapping file according to the functions of the selected keys and the remote control codes, and the remote controller mapping file records the mapping relation between the remote control codes and the functions.
According to the device for adapting the remote controller to the intelligent electronic equipment, provided by the embodiment of the second aspect of the application, the application program is started on the intelligent electronic equipment, and the remote controller mapping file for recording the mapping relation between the remote control codes and the functions is generated through the application program and the remote controller signals generated by the remote controller, so that the intelligent electronic equipment executes the corresponding functions according to the remote controller mapping file after receiving the remote controller signals generated by the non-standard remote controller, and the intelligent electronic equipment can be controlled by the non-standard remote controller.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic diagram of a remote control signal employing the NEC protocol in an embodiment of the present application;
FIG. 2 is a schematic diagram of logic levels 0 and 1 in a remote control signal employing the NEC protocol in an embodiment of the present application;
FIG. 3 is a diagram illustrating remote control signals using the RC-5 protocol in an embodiment of the present application;
FIG. 4 is a schematic diagram of logic levels 0 and 1 in a remote control signal using the RC-5 protocol in an embodiment of the present application;
fig. 5 is a flowchart illustrating a method for adapting a non-standard remote control by an intelligent electronic device according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an interface of an application program in an embodiment of the present application;
FIG. 7 is a schematic diagram of a remote controller to be adapted in an embodiment of the present application;
fig. 8 is a flowchart illustrating a method for adapting a non-standard remote control by an intelligent electronic device according to another embodiment of the present application;
fig. 9 is a schematic structural diagram of an apparatus for adapting a non-standard remote control to an intelligent electronic device according to another embodiment of the present application;
fig. 10 is a schematic structural diagram of an apparatus for adapting a non-standard remote control by an intelligent electronic device according to another embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar modules or modules having the same or similar functionality throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application. On the contrary, the embodiments of the application include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
For a better understanding of the present application, the remote control signal generated by the infrared remote control will be described first.
The commonly used transmission protocols of infrared remote controller signals include NEC, SHARP, PHILIPS RC-5, SONY, TOSIBA and the like, and the most used transmission protocol of domestic infrared remote controller signals is NEC codes. The infrared remote control signal may comprise one or more of the following signal codes: a guide code, a user system code, a user data inverse code and an end code. The main differences in the infrared remote control signal transmission protocols are the difference in the boot code and the difference in the signal code. Because of the wide variety of remote control signal transmission protocols, only two commonly used NEC/RC-5 protocols are described here, and other protocols are basically similar to the two remote control protocols and will not be described in detail.
The NEC code is shown in FIG. 1, where 9ms +4.5ms is the pilot code, Address low/high is the user system code, Command is the user data code,the user data is decoded. Fig. 2 shows that 2.25ms intervals between 2 high levels represent a logic 1, and 1.12ms intervals between 2 high levels represent a logic 0.
RC-5 code as shown in FIG. 3, 2 consecutive logic 1 are start codes (denoted by S1/S2); in the figure, a mark T is a control bit, 1 represents that the key is a new key value at this time, and 0 represents a repeated key; address (5 bits in total) is a user system code, and Command (6 bits in total) is a user data code. Fig. 4 shows that 889us is high before 889us is low after it, representing a logic 0, and the reverse order of high and low represents a logic 1.
The identification of the remote control signal transmission protocol is to judge through the time interval of the high and low level pulse signals of the remote control signal and identify a specific protocol. Taking the NEC/RC-5 protocol as an example, the MCU needs to obtain the start code/bootstrap code of the remote control signal, determine the general protocol type of the signal according to the start code/bootstrap code, and then identify the specific remote control protocol according to the signal characteristics of the logic level.
Fig. 5 is a flowchart illustrating a method for adapting a non-standard remote control by an intelligent electronic device according to an embodiment of the present application, where the method is specifically applicable to a situation where a matched remote control mapping file cannot be directly obtained from a server. The method comprises the following steps:
s51: starting an application program on the intelligent electronic equipment, and displaying an interface of the application program, wherein the interface comprises a key to be adapted.
The application program may be an application program that is configured in the intelligent electronic device in advance and is used for generating a remote controller mapping file.
When the remote controller mapping file needs to be generated, the application program may be started, and after the application program is started, an interface of the application program shown in fig. 6 may be displayed, where the interface includes a plurality of keys to be adapted, such as a power key 61.
S52: and selecting a key to be adapted in the interface, and acquiring a remote control code corresponding to the selected key, wherein the remote control code is acquired by analyzing a remote control signal, and the remote control signal is generated by pressing the key on the remote control by a user.
Wherein, the application program can automatically select a key for adaptation.
For example, the power key 61 may be initially adapted as a selected key, and after the power key 61 is adapted, the next key, such as a Menu (Menu) key, may be automatically skipped to perform the adaptation.
Of course, it is understood that the user may also manually select a key on the interface of the application program for adaptation.
When the application program adapts the keys, the remote control codes corresponding to the currently adapted keys can be obtained, so that the remote controller mapping file is generated according to the functions of the currently adapted keys and the corresponding remote control codes.
For example, an application program receives a notification message sent by a driver, wherein the notification message is sent after the driver analyzes the remote control code; and after receiving the notification message, the application program acquires the remote control code from the driver program.
Alternatively, the remote control may be a non-standard remote control of the intelligent electronic device.
Alternatively, the remote control signal may be generated by the user pressing a key on the non-standard remote control that has the same function as the selected key.
For example, the interface of the remote controller is shown in fig. 7. Taking the adaptive power key 61 as an example, when the power key 61 is adapted, a user can press the power key 71 on the remote controller to generate a remote controller signal, the driver can receive the remote controller signal and analyze the remote controller signal to obtain a remote control code, the driver can send a notification message to the application program after receiving the remote control code, and the application program can obtain a corresponding remote control code from the driver after receiving the notification message.
The remote controller can be specifically an infrared remote controller, and according to the difference of the transmission protocol adopted by the infrared remote controller, the remote control code can comprise: one or more of a user system code, a user data code, a boot code, etc.
After the application program acquires the remote control code corresponding to one key (e.g., the power key 61), the application program may automatically jump to the next key for adaptation, and repeat the above-mentioned process, for example, the user presses a key on the non-standard remote controller having the same function as the selected key, the driver analyzes the remote control signal to obtain the remote control code, and the application program acquires the remote control code from the driver until the adaptation is completed, for example, the adaptation of all the keys to be adapted in the interface shown in fig. 6 is completed, or an instruction generated by the user through the completion of the adaptation key or the cancellation of the adaptation key in the interface shown in fig. 6 is received.
In addition, the application program can process according to the standard remote control flow after receiving the remote control signal generated by the standard remote control.
S53: and generating a remote controller mapping file according to the function of the selected key and the remote control code.
The generation of the remote controller mapping file according to the selected key function and the remote control code can be specifically executed after the adaptation is completed.
The adaptation completion includes, for example:
completing the adaptation of all keys to be adapted in the interface; or,
receiving an instruction generated by pressing an adaptive key in the interface by a user; or,
and receiving an instruction generated by pressing the adaptation canceling key in the interface by the user.
The application program can pre-configure the corresponding relation between the keys and the functions in the interface, so that after one key is selected, the function corresponding to the selected key can be determined according to the pre-configured information.
The mapping relation between the remote control codes and the functions is recorded in the remote controller mapping file, so that after the intelligent electronic equipment receives the remote control signals and detects the remote control codes from the remote control signals, the corresponding functions can be determined according to the remote controller mapping file, and the corresponding functions are executed. The functions include, for example: turning on and off the machine, turning up or turning down the volume and the like.
The mapping relationship between the remote control code and the function is shown in table 1, for example.
TABLE 1
In table 1, the function is represented by a kernel key (key), and the user data code represents a remote control code corresponding to the function. () For example, the key value of key is 116 corresponding to the user data code "0 af 5", and the corresponding function is a switching power supply.
In addition, the remote controller mapping file may also include other remote control codes, such as user system codes.
On the other hand, when the remote controller mapping file matched with the remote controller exists at the server, the remote controller mapping file is downloaded from the server according to the manufacturer and the model of the remote controller. For example, a mobile phone assistant is used to select and download the matched remote controller mapping file from the server according to the manufacturer of the remote controller and the specific remote controller model.
In some embodiments, referring to fig. 8, after obtaining the remote controller mapping file, for example, generating the remote controller mapping file by using the above procedure, or downloading the remote controller mapping file from the server according to the manufacturer and model of the remote controller when the remote controller mapping file matching the remote controller exists at the server (S54), the method further includes:
s55: and writing the remote controller mapping file into a file node of a preset file system of the kernel so that the kernel can control according to the remote controller mapping file and the received remote controller signal generated by the remote controller.
The default file system is, for example, a sysfs file system of a Linux kernel system, and the sysfs file system is a device management system in the Linux system. The user space can read or write to a file node of the sysfs file system.
After the remote controller mapping file is written into the file node of the sysfs file system, the driver in the Linux kernel can perform corresponding control according to the remote controller mapping file, for example, when the driver receives a remote controller signal and resolves that the remote control code is 0af5, the driver can execute the function that the key value of kernel is 116, thereby realizing the control of the intelligent electronic device.
In addition, the intelligent electronic equipment can also store a remote controller mapping file corresponding to the standard remote controller, and after receiving the remote controller signal, a driver in the kernel of the intelligent electronic equipment can determine whether the remote controller signal comes from the standard remote controller or the non-standard remote controller by analyzing the remote control code, and then control the remote controller according to the corresponding remote controller mapping file.
In addition, when the intelligent electronic equipment needs to be adapted to another non-standard remote controller, the process can be executed again to realize the adaptation with a new remote controller, so that the intelligent electronic equipment can be adapted to various remote controllers.
In this embodiment, the application program is started on the intelligent electronic device, and the remote controller mapping file for recording the mapping relationship between the remote control codes and the functions is generated through the application program and the remote controller signals generated by the remote controller, so that the intelligent electronic device executes the corresponding functions according to the remote controller mapping file after receiving the remote controller signals generated by the non-standard remote controller, and the intelligent electronic device can be controlled by the non-standard remote controller. Furthermore, the embodiment generates the remote controller mapping file through the application program, so that the hardware cost does not need to be increased, and the cost is reduced. In this embodiment, through the non-standard remote controller of intelligent electronic equipment adaptation, can be when the standard configuration remote controller of intelligent electronic equipment is not good to use or loses, damage etc. can't use, can let intelligent electronic equipment normal use through the remote controller of the current other equipment standards of adaptation again, perhaps, select the remote controller that the user used commonly and used to carry out the adaptation, can realize resource reuse, reduce use cost, improve the user and experience the use of intelligent equipment, and can reach energy saving and emission reduction's purpose.
Fig. 9 is a schematic structural diagram of an apparatus for adapting a non-standard remote control to an intelligent electronic device according to another embodiment of the present application, where the apparatus may be specifically located in the intelligent electronic device. The apparatus 90 comprises: a starting module 91, an obtaining module 92 and a generating module 93.
The starting module 91 is configured to start an application program on the intelligent electronic device and display an interface of the application program, where the interface includes a key to be adapted.
The application program may be an application program that is configured in the intelligent electronic device in advance and is used for generating a remote controller mapping file.
When the remote controller mapping file needs to be generated, the application program may be started, and after the application program is started, an interface of the application program shown in fig. 6 may be displayed, where the interface includes a plurality of keys to be adapted, such as a power key 61.
The obtaining module 92 is configured to select a key to be adapted in the interface, and obtain a remote control code corresponding to the selected key, where the remote control code is obtained by analyzing a remote control signal, and the remote control signal is generated by a user pressing the key on the remote control.
Optionally, the obtaining module 92 is configured to select a key to be adapted in the interface, and includes:
an application program automatically selects a key; or,
and receiving a key selected by a user.
Wherein, the application program can automatically select a key for adaptation.
For example, the power key 61 may be initially adapted as a selected key, and after the power key 61 is adapted, the next key, such as a Menu (Menu) key, may be automatically skipped to perform the adaptation.
Of course, it is understood that the user may also manually select a key on the interface of the application program for adaptation.
Optionally, the obtaining module 92 is configured to obtain a remote control code corresponding to the selected key, and includes:
receiving a notification message sent by a driver, wherein the notification message is sent after the driver analyzes the remote control code;
and acquiring the remote control code from the driver after receiving the notification message.
Alternatively, the remote control may be a non-standard remote control of the intelligent electronic device.
Alternatively, the remote control signal may be generated by the user pressing a key on the non-standard remote control that has the same function as the selected key.
For example, the interface of the remote controller is shown in fig. 7. Taking the adaptive power key 61 as an example, when the power key 61 is adapted, a user can press the power key 71 on the remote controller to generate a remote controller signal, the driver can receive the remote controller signal and analyze the remote controller signal to obtain a remote control code, the driver can send a notification message to the application program after receiving the remote control code, and the application program can obtain a corresponding remote control code from the driver after receiving the notification message.
The remote controller can be specifically an infrared remote controller, and according to the difference of the transmission protocol adopted by the infrared remote controller, the remote control code can comprise: one or more of a user system code, a user data code, a boot code, etc.
And a generating module 93, configured to generate a remote controller mapping file according to the function of the selected key and the remote control code, where a mapping relationship between the remote control code and the function is recorded in the remote controller mapping file.
The generation module is used for generating the remote controller mapping file according to the function of the selected key and the remote controller, and the generation can be specifically executed after the adaptation is completed.
The generation module is further configured to determine an adaptation completion, the determining the adaptation completion comprising:
completing the adaptation of all keys to be adapted in the interface; or,
receiving an instruction generated by pressing an adaptive key in the interface by a user; or,
and receiving an instruction generated by pressing the adaptation canceling key in the interface by the user.
The mapping relation between the remote control codes and the functions is recorded in the remote controller mapping file, so that after the intelligent electronic equipment receives the remote control signals and detects the remote control codes from the remote control signals, the corresponding functions can be determined according to the remote controller mapping file, and the corresponding functions are executed. The functions include, for example: turning on and off the machine, turning up or turning down the volume and the like.
The mapping relationship between the remote control code and the function is shown in table 1, for example.
In some embodiments, referring to fig. 10, the apparatus 90 further comprises:
and a downloading module 94, configured to, when a remote controller mapping file matching the remote controller exists at the server, download the remote controller mapping file from the server according to the manufacturer and the model of the remote controller.
For example, a mobile phone assistant is used to select and download the matched remote controller mapping file from the server according to the manufacturer of the remote controller and the specific remote controller model.
In some embodiments, referring to fig. 10, the apparatus 90 further comprises:
the writing module 95 is configured to write the remote controller mapping file into a file node of a preset file system of the kernel, so that the kernel performs control according to the remote controller mapping file and a received remote controller signal generated by the remote controller.
The default file system is, for example, a sysfs file system of a Linux kernel system, and the sysfs file system is a device management system in the Linux system. The user space can read or write to a file node of the sysfs file system.
After the remote controller mapping file is written into the file node of the sysfs file system, the driver in the Linux kernel can perform corresponding control according to the remote controller mapping file, for example, when the driver receives a remote controller signal and resolves that the remote control code is 0af5, the driver can execute the function (switching power supply) that the key value of kernel is 116, thereby realizing the control of the intelligent electronic device.
In addition, the intelligent electronic equipment can also store a remote controller mapping file corresponding to the standard remote controller, and after receiving the remote controller signal, a driver in the kernel of the intelligent electronic equipment can determine whether the remote controller signal comes from the standard remote controller or the non-standard remote controller by analyzing the remote control code, and then control the remote controller according to the corresponding remote controller mapping file.
In this embodiment, the application program is started on the intelligent electronic device, and the remote controller mapping file for recording the mapping relationship between the remote control codes and the functions is generated through the application program and the remote controller signals generated by the remote controller, so that the intelligent electronic device executes the corresponding functions according to the remote controller mapping file after receiving the remote controller signals generated by the non-standard remote controller, and the intelligent electronic device can be controlled by the non-standard remote controller. Furthermore, the embodiment generates the remote controller mapping file through the application program, so that the hardware cost does not need to be increased, and the cost is reduced. In this embodiment, through the non-standard remote controller of intelligent electronic equipment adaptation, can be when the standard configuration remote controller of intelligent electronic equipment is not good to use or loses, damage etc. can't use, can let intelligent electronic equipment normal use through the remote controller of the current other equipment standards of adaptation again, perhaps, select the remote controller that the user used commonly and used to carry out the adaptation, can realize resource reuse, reduce use cost, improve the user and experience the use of intelligent equipment, and can reach energy saving and emission reduction's purpose.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present application, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units 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 stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (10)

1.一种智能电子设备适配遥控器的方法,其特征在于,包括:1. A method for an intelligent electronic device to adapt a remote controller, comprising: 在智能电子设备上启动应用程序,并展示所述应用程序的界面,所述界面中包括待适配的按键;Start the application program on the smart electronic device, and display the interface of the application program, the interface includes buttons to be adapted; 选中所述界面中待适配的按键,获取与选中的按键对应的遥控码,所述遥控码是解析遥控器信号获取的,所述遥控器信号是用户通过按压遥控器上的按键产生的;Select the key to be adapted in the interface, and obtain the remote control code corresponding to the selected key, the remote control code is obtained by analyzing the remote control signal, and the remote control signal is generated by the user pressing the key on the remote control; 根据选中的按键的功能及所述遥控码,生成遥控器映射文件,所述遥控器映射文件中记录遥控码与功能之间的映射关系。According to the function of the selected key and the remote control code, a remote control mapping file is generated, and the mapping relationship between the remote control code and the function is recorded in the remote control mapping file. 2.根据权利要求1所述的方法,其特征在于,所述获取与选中的按键对应的遥控码,包括:2. The method according to claim 1, wherein said obtaining the remote control code corresponding to the selected key comprises: 应用程序接收驱动程序发送的通知消息,所述通知消息是所述驱动程序解析得到所述遥控码后发送的;The application program receives the notification message sent by the driver, and the notification message is sent after the driver parses and obtains the remote control code; 应用程序在接收到所述通知消息后,从所述驱动程序获取所述遥控码。After receiving the notification message, the application obtains the remote control code from the driver. 3.根据权利要求1所述的方法,其特征在于,所述选中所述界面中待适配的按键,包括:3. The method according to claim 1, wherein the selecting the button to be adapted in the interface comprises: 应用程序自动选中一个按键;或者,接收用户选中的一个按键。The application automatically selects a key; or, receives a key selected by the user. 4.根据权利要求1所述的方法,其特征在于,在生成遥控器映射文件之前,所述方法还包括:4. The method according to claim 1, wherein, before generating the remote controller mapping file, the method further comprises: 完成所述界面中所有待适配的按键的适配;或者,Complete the adaptation of all the buttons to be adapted in the interface; or, 接收到用户按压所述界面内的完成适配按键产生的指令;或者,receiving an instruction generated by the user pressing the button to complete the adaptation in the interface; or, 接收到用户按压所述界面内的取消适配按键产生的指令。An instruction generated by the user pressing a cancel adaptation button in the interface is received. 5.根据权利要求1所述的方法,其特征在于,还包括:5. The method according to claim 1, further comprising: 在服务端存在与所述遥控器匹配的遥控器映射文件时,根据所述遥控器的厂商和型号从所述服务端下载所述遥控器映射文件。When there is a remote control mapping file matching the remote control at the server end, download the remote control mapping file from the server according to the manufacturer and model of the remote control. 6.根据权利要求1-5任一项所述的方法,其特征在于,还包括:6. The method according to any one of claims 1-5, further comprising: 将所述遥控器映射文件写入内核的预设文件系统的文件节点中,以便内核根据所述遥控器映射文件和接收的所述遥控器产生的遥控器信号进行控制。Writing the remote control mapping file into the file node of the default file system of the kernel, so that the kernel performs control according to the remote control mapping file and the received remote control signal generated by the remote control. 7.根据权利要求1-5任一项所述的方法,其特征在于,所述遥控器是红外遥控器。7. The method according to any one of claims 1-5, wherein the remote controller is an infrared remote controller. 8.一种智能电子设备适配遥控器的装置,其特征在于,包括:8. A device for adapting a remote control to an intelligent electronic device, characterized in that it comprises: 启动模块,用于在智能电子设备上启动应用程序,并展示所述应用程序的界面,所述界面中包括待适配的按键;The startup module is used to start the application program on the intelligent electronic device, and display the interface of the application program, and the interface includes buttons to be adapted; 获取模块,用于选中所述界面中待适配的按键,获取与选中的按键对应的遥控码,所述遥控码是解析遥控器信号获取的,所述遥控器信号是用户通过按压遥控器上的按键产生的;The obtaining module is used to select the button to be adapted in the interface, and obtain the remote control code corresponding to the selected button. The remote control code is obtained by analyzing the signal of the remote control. The remote control signal is obtained by the user pressing the button on the remote control. generated by the keystroke; 生成模块,用于根据选中的按键的功能及所述遥控码,生成遥控器映射文件,所述遥控器映射文件中记录遥控码与功能之间的映射关系。The generation module is used to generate a remote control mapping file according to the function of the selected key and the remote control code, and the remote control mapping file records the mapping relationship between the remote control code and the function. 9.根据权利要求8所述的装置,其特征在于,还包括:9. The device according to claim 8, further comprising: 下载模块,用于在服务端存在与所述遥控器匹配的遥控器映射文件时,根据所述遥控器的厂商和型号从所述服务端下载所述遥控器映射文件。The download module is configured to download the remote control mapping file from the server according to the manufacturer and model of the remote control when the remote control mapping file matching the remote control exists on the server. 10.根据权利要求8或9所述的装置,其特征在于,还包括:10. The device according to claim 8 or 9, further comprising: 写入模块,用于将所述遥控器映射文件写入内核的预设文件系统的文件节点中,以便内核根据所述遥控器映射文件和接收的所述遥控器产生的遥控器信号进行控制。The writing module is used to write the remote control mapping file into the file node of the preset file system of the kernel, so that the kernel performs control according to the remote control mapping file and the received remote control signal generated by the remote control.
CN201510992377.4A 2015-12-24 2015-12-24 The method and apparatus that intelligent electronic device is adapted to remote control Pending CN106920384A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510992377.4A CN106920384A (en) 2015-12-24 2015-12-24 The method and apparatus that intelligent electronic device is adapted to remote control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510992377.4A CN106920384A (en) 2015-12-24 2015-12-24 The method and apparatus that intelligent electronic device is adapted to remote control

Publications (1)

Publication Number Publication Date
CN106920384A true CN106920384A (en) 2017-07-04

Family

ID=59459785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510992377.4A Pending CN106920384A (en) 2015-12-24 2015-12-24 The method and apparatus that intelligent electronic device is adapted to remote control

Country Status (1)

Country Link
CN (1) CN106920384A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107529085A (en) * 2017-08-31 2017-12-29 四川长虹电器股份有限公司 The method of the remote control mode decoding of compatible multi-remote-controller
CN107885347A (en) * 2017-10-27 2018-04-06 深圳前海茂佳软件科技有限公司 It is remotely controlled driving method, device and computer-readable recording medium
CN108614494A (en) * 2018-06-14 2018-10-02 出门问问信息科技有限公司 A kind of control method of equipment, device, equipment and storage medium
CN111274251A (en) * 2020-03-05 2020-06-12 成都金麦客科技有限公司 APK internal remote control function distribution and interception method
CN112950917A (en) * 2021-02-09 2021-06-11 广东九联科技股份有限公司 Method and device for setting remote controller keys of android device and electronic device
CN115116178A (en) * 2022-06-24 2022-09-27 四川海力智能科技股份有限公司 Recharging method of intelligent meter
CN115499263A (en) * 2022-09-22 2022-12-20 四川长虹网络科技有限责任公司 Remote controller and using method thereof
CN119364078A (en) * 2024-10-30 2025-01-24 深圳市茁壮网络股份有限公司 A method for obtaining television infrared code value

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070121298A (en) * 2006-06-22 2007-12-27 주식회사 휴맥스 How to change the remote control program
CN101616278A (en) * 2008-06-25 2009-12-30 深圳华强三洋技术设计有限公司 Utilize the method for different remote control television set and control associate device
CN102025939A (en) * 2010-12-20 2011-04-20 四川长虹电器股份有限公司 Method of digital television set top box for supporting various types of remote controllers
CN102226564A (en) * 2011-06-03 2011-10-26 宁波奥克斯电气有限公司 The method of using the remote control of ordinary household appliances as the spare remote control of air conditioner
CN102368350A (en) * 2011-10-17 2012-03-07 杭州芯赛微电子有限公司 A device and method for realizing a universal infrared remote control based on a mobile phone
CN103473918A (en) * 2013-09-23 2013-12-25 深圳市同洲电子股份有限公司 Method and device for learning remote controller, and intelligent terminal
CN103617719A (en) * 2013-11-22 2014-03-05 先歌国际影音有限公司 Method and device for compatibility of remote control codes, and mainframe
CN103648009A (en) * 2013-12-17 2014-03-19 乐视致新电子科技(天津)有限公司 Android system based infrared remote control responding method and device and smart television
CN103686464A (en) * 2013-12-19 2014-03-26 小米科技有限责任公司 Method and device for controlling equipment and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070121298A (en) * 2006-06-22 2007-12-27 주식회사 휴맥스 How to change the remote control program
CN101616278A (en) * 2008-06-25 2009-12-30 深圳华强三洋技术设计有限公司 Utilize the method for different remote control television set and control associate device
CN102025939A (en) * 2010-12-20 2011-04-20 四川长虹电器股份有限公司 Method of digital television set top box for supporting various types of remote controllers
CN102226564A (en) * 2011-06-03 2011-10-26 宁波奥克斯电气有限公司 The method of using the remote control of ordinary household appliances as the spare remote control of air conditioner
CN102368350A (en) * 2011-10-17 2012-03-07 杭州芯赛微电子有限公司 A device and method for realizing a universal infrared remote control based on a mobile phone
CN103473918A (en) * 2013-09-23 2013-12-25 深圳市同洲电子股份有限公司 Method and device for learning remote controller, and intelligent terminal
CN103617719A (en) * 2013-11-22 2014-03-05 先歌国际影音有限公司 Method and device for compatibility of remote control codes, and mainframe
CN103648009A (en) * 2013-12-17 2014-03-19 乐视致新电子科技(天津)有限公司 Android system based infrared remote control responding method and device and smart television
CN103686464A (en) * 2013-12-19 2014-03-26 小米科技有限责任公司 Method and device for controlling equipment and electronic equipment

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107529085A (en) * 2017-08-31 2017-12-29 四川长虹电器股份有限公司 The method of the remote control mode decoding of compatible multi-remote-controller
CN107529085B (en) * 2017-08-31 2020-12-29 四川长虹电器股份有限公司 Remote control code decoding method compatible with multiple remote controllers
CN107885347A (en) * 2017-10-27 2018-04-06 深圳前海茂佳软件科技有限公司 It is remotely controlled driving method, device and computer-readable recording medium
CN107885347B (en) * 2017-10-27 2022-05-03 深圳前海茂佳软件科技有限公司 Remote control driving method, device and computer readable storage medium
CN108614494A (en) * 2018-06-14 2018-10-02 出门问问信息科技有限公司 A kind of control method of equipment, device, equipment and storage medium
CN111274251A (en) * 2020-03-05 2020-06-12 成都金麦客科技有限公司 APK internal remote control function distribution and interception method
CN112950917A (en) * 2021-02-09 2021-06-11 广东九联科技股份有限公司 Method and device for setting remote controller keys of android device and electronic device
CN112950917B (en) * 2021-02-09 2023-11-10 广东九联科技股份有限公司 Method and device for setting remote controller keys of android device and electronic device
CN115116178A (en) * 2022-06-24 2022-09-27 四川海力智能科技股份有限公司 Recharging method of intelligent meter
CN115499263A (en) * 2022-09-22 2022-12-20 四川长虹网络科技有限责任公司 Remote controller and using method thereof
CN119364078A (en) * 2024-10-30 2025-01-24 深圳市茁壮网络股份有限公司 A method for obtaining television infrared code value
CN119364078B (en) * 2024-10-30 2025-09-02 深圳市茁壮网络股份有限公司 A method for obtaining television infrared code value

Similar Documents

Publication Publication Date Title
CN112423238B (en) Electronic device, control terminal, storage medium and device connection method
RU2684506C2 (en) Method and device for device control
CN202907115U (en) Secondary remote control device, television and remote control system
EP2840455A1 (en) Method, apparatus and system for intelligently controlling device, and plug-and-play device
US20070018844A1 (en) Two way remote control
JP5902678B2 (en) Programming of general-purpose remote control device
US20130043986A1 (en) Remote controller and remote control method using same having two control modes for controlling at least two different household electric appliances
CN203325206U (en) Infrared remote-control learning and control device
WO2013179769A1 (en) Electronic apparatus, electronic apparatus system, and electronic apparatus control method
CN104376711B (en) A kind of method and device of rapid configuration mobile terminal IR remote controller
CN103686464A (en) Method and device for controlling equipment and electronic equipment
CN104898930B (en) The setting method and system of intelligent terminal operative scenario
EP2401863B1 (en) Code set determination for a remote control
US20180146156A1 (en) Remote controller, display apparatus and controlling method thereof
KR102467519B1 (en) Display apparatus for setting universal remote controller, method thereof and system
CN101843110A (en) Electronic device, control signal conversion method, and control signal conversion program
TWI493512B (en) The universal remote control module used in smart phone and its operation method
JP5444455B2 (en) Wireless remote control signal transmitting device and wireless remote control signal receiving device
CN105357567A (en) Multi-channel playing system
CN105589591A (en) Remote control method and electronic device
JP5367127B2 (en) Learning type remote controller and its operation program
CN116389808A (en) Remote control method and apparatus for multiple devices
CN104427411A (en) Remote controller and control method thereof
JP2012023630A (en) Electrical apparatus
JP5150468B2 (en) Learning type remote control device, operation method thereof, operation program, and recording medium storing operation program

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170704

RJ01 Rejection of invention patent application after publication