CN112447039A - Method and device for adapting remote controller and computer readable storage medium - Google Patents

Method and device for adapting remote controller and computer readable storage medium Download PDF

Info

Publication number
CN112447039A
CN112447039A CN201910763211.3A CN201910763211A CN112447039A CN 112447039 A CN112447039 A CN 112447039A CN 201910763211 A CN201910763211 A CN 201910763211A CN 112447039 A CN112447039 A CN 112447039A
Authority
CN
China
Prior art keywords
mapping relation
physical key
value information
relation table
key value
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
CN201910763211.3A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201910763211.3A priority Critical patent/CN112447039A/en
Priority to PCT/CN2020/101058 priority patent/WO2021031737A1/en
Publication of CN112447039A publication Critical patent/CN112447039A/en
Pending legal-status Critical Current

Links

Images

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

Landscapes

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

Abstract

The embodiment of the invention provides a method and a device for adapting a remote controller and a computer readable storage medium, which are used for receiving physical key value information sent by infrared remote control equipment, determining the mapping relation between the physical key value information and corresponding function key value information to form a mapping relation table, inquiring the mapping relation table, and converting the received target physical key information into corresponding function keys to be executed, thereby solving the problem that the remote controller cannot be adapted and used by other remote controllers when the remote controller is lost or damaged in the prior art.

Description

Method and device for adapting remote controller and computer readable storage medium
Technical Field
The present invention relates to the field of mobile communications, and in particular, to a method and apparatus for adapting a remote controller, and a computer-readable storage medium.
Background
At present, infrared remote controllers are generally arranged on set-top boxes and televisions. And the infrared remote controller transmits the coded key information to receiving equipment such as a set top box or a television by using an infrared light emitting diode and taking infrared light as a carrier. Correspondingly, the set-top box or the television is provided with an infrared receiver which can decode the received infrared light signal to recover a string of coded information by matching with the corresponding drive. The set-top box or the television executes corresponding operation actions according to the coding information, thereby realizing the response to the key of the user.
With the increase of various devices in the home, the number of corresponding infrared remote controllers is also increasing. Although most infrared remote controllers use the same coding protocol, the remote controllers of different devices cannot be used universally due to different coding key values of all keys. Therefore, when the remote controller of the user is lost or damaged, other remote controllers cannot be used, and the user can operate and use the remote controller by purchasing the same remote controller again.
Disclosure of Invention
The embodiment of the invention provides a method and a device for adapting a remote controller and a computer readable storage medium, aiming at solving the problem that the remote controller can not be adapted and used by other remote controllers when being lost or damaged in the prior art.
In order to achieve the above object, an embodiment of the present invention provides a method for adapting a remote controller, including:
receiving physical key value information sent by infrared remote control equipment;
determining the mapping relation between the physical key value information and the corresponding function key value information to form a mapping relation table;
and inquiring the mapping relation table, and converting the received target physical key information into a corresponding function key for execution.
Optionally, the forming a mapping relation table includes: and storing the mapping relation table in sequence.
Optionally, the querying the mapping relationship table, and the converting the received target physical key information into a corresponding function key to execute includes:
sequentially inquiring the stored mapping relation tables from back to front according to the storage sequence;
after the physical key value information consistent with the target physical key information exists in the mapping relation table;
and converting the received target physical key information into a corresponding function key for execution according to the mapping relation of the determined mapping relation table.
Optionally, the querying the mapping relationship table, and converting the received target physical key information into a corresponding function key for execution further includes:
and when the physical key value information consistent with the target physical key information exists in the mapping relation table, continuously querying the next mapping relation table.
Optionally, before the receiving the physical key value information sent by the infrared remote control device, the method further includes:
and receiving a key adaptation request sent by the infrared remote control equipment, and entering an adaptation mode.
Another method for adapting a remote controller provided by an embodiment of the present invention includes: sending physical key value information to a user terminal, wherein the physical key value information is used for determining the mapping relation between the physical key value information and corresponding function key value information to form a mapping relation table;
and sending target physical key value information to a user terminal, wherein the target physical key value information is used for the user terminal to inquire the mapping relation table and convert the received target physical key information into a corresponding function key for execution.
Optionally, a key adaptation request is sent to the user terminal, so that the user terminal enters a key adaptation mode.
In order to achieve the above object, an embodiment of the present invention provides an apparatus for adapting a remote controller, including:
the receiving module is used for receiving the physical key value information sent by the infrared remote control equipment;
the storage module is used for determining the mapping relation between the physical key value information and the corresponding function key value information to form a mapping relation table;
and the triggering module is used for converting the received target physical key information into a corresponding function key for execution.
Optionally, the saving module is further configured to: and storing the mapping relation table in sequence.
Optionally, the system further comprises a loading module, configured to query all mapping relationship tables in sequence;
and converting the received physical key information into a corresponding function key for execution according to the mapping relation of the determined mapping relation table.
Optionally, the triggering module includes: sequentially inquiring all mapping relation tables from back to front according to a storage sequence;
after the physical key value information consistent with the target physical key information exists in the mapping relation table;
and converting the received target physical key information into a corresponding function key for execution according to the mapping relation of the determined mapping relation table.
Optionally, the triggering module further includes: and when the physical key value information consistent with the target physical key information exists in the mapping relation table, continuously querying the next mapping relation table.
An embodiment of the present invention further provides a computer-readable storage medium, on which a remote control driver is stored, and the remote control driver, when executed by a processor, implements any of the above method steps for adapting a remote controller.
The scheme of the invention at least comprises the following beneficial effects:
the technical scheme provided by the embodiment of the invention solves the problem that the remote controller cannot be adapted and used through other remote controllers when being lost or damaged in the existing scheme, can dynamically adapt to other remote controller key values in the using process, improves the utilization rate of idle remote controllers, and brings great convenience to users.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a flowchart illustrating a method for adapting a remote controller according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of another method for adapting a remote controller according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an apparatus for adapting a remote controller according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Fig. 1 is a flowchart illustrating a method for adapting a remote controller according to an embodiment of the present invention. As shown in fig. 1, includes:
s101: receiving physical key value information sent by infrared remote control equipment;
s102: determining the mapping relation between the physical key value information and the corresponding function key value information to form a mapping relation table;
specifically, a corresponding relationship between the physical key value and the software key value is saved in a configuration file mode, and a mapping relationship table is formed.
S103: and inquiring the mapping relation table, and converting the received target physical key information into a corresponding function key for execution.
Wherein, also include storing the mapping relation table according to the order;
specifically, the newly saved key mapping relationship is placed at the top of the mapping.
Sequentially inquiring the stored mapping relation tables from back to front according to the storage sequence;
after the physical key value information consistent with the target physical key information exists in the mapping relation table;
and converting the received target physical key information into a corresponding function key for execution according to the mapping relation of the determined mapping relation table.
When the physical key value information consistent with the target physical key information exists in the mapping relation table, continuing to query the next mapping relation table;
further, when the adaptation is completed, the adaptation mode is exited.
The method comprises the steps of receiving a key adaptation request sent by infrared remote control equipment, and entering an adaptation mode;
furthermore, an adaptation triggering condition can be set, and when the condition is judged to be reached, a key adaptation process is started, and a pairing display interface is loaded.
Fig. 2 is a flowchart illustrating another method for adapting a remote controller according to an embodiment of the present invention. As shown in fig. 2, includes:
s201: sending physical key value information to a user terminal, wherein the physical key value information is used for determining the mapping relation between the physical key value information and corresponding function key value information to form a mapping relation table;
s202: and sending target physical key value information to a user terminal, wherein the target physical key value information is used for the user terminal to inquire the mapping relation table and convert the received target physical key information into a corresponding function key for execution.
The method comprises the steps of sending a key adaptation request to a user terminal so that the user terminal enters a key adaptation mode.
Fig. 3 is a schematic diagram of an apparatus for adapting a remote controller according to an embodiment of the present invention. As shown in fig. 3, includes:
s301: the receiving module is used for receiving the physical key value information sent by the infrared remote control equipment;
s302: the storage module is used for determining the mapping relation between the physical key value information and the corresponding function key value information to form a mapping relation table;
s303: a trigger module for converting the received target physical key information into corresponding functions
And (5) key pressing execution.
Wherein the saving module is further configured to: and storing the mapping relation table in sequence.
The system comprises a loading module, a mapping relation table generation module and a mapping relation table generation module, wherein the loading module is used for sequentially inquiring all mapping relation tables;
and converting the received physical key information into a corresponding function key for execution according to the mapping relation of the determined mapping relation table.
Wherein the trigger module comprises:
sequentially inquiring all mapping relation tables from back to front according to a storage sequence;
after the physical key value information consistent with the target physical key information exists in the mapping relation table;
and converting the received target physical key information into a corresponding function key for execution according to the mapping relation of the determined mapping relation table.
Wherein the trigger module further comprises: and when the physical key value information consistent with the target physical key information exists in the mapping relation table, continuously querying the next mapping relation table.
An embodiment of the present invention further provides a computer-readable storage medium, wherein a remote control driver is stored on the computer-readable storage medium, and when being executed by a processor, the remote control driver implements the method steps for adapting a remote controller according to any one of the above items.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.

Claims (13)

1. A method of adapting a remote control, comprising:
receiving physical key value information sent by infrared remote control equipment;
determining the mapping relation between the physical key value information and the corresponding function key value information to form a mapping relation table;
and inquiring the mapping relation table, and converting the received target physical key information into a corresponding function key for execution.
2. The method of claim 1, wherein said forming a mapping table further comprises:
and storing the mapping relation table in sequence.
3. The method of claim 2, wherein the querying the mapping relationship table to convert the received target physical key information into a corresponding function key execution comprises:
sequentially inquiring the stored mapping relation tables from back to front according to the storage sequence;
after the physical key value information consistent with the target physical key information exists in the mapping relation table;
and converting the received target physical key information into a corresponding function key for execution according to the mapping relation of the determined mapping relation table.
4. The method of claim 2, wherein said querying the mapping table to convert the received target physical key information into a corresponding function key execution further comprises:
and when the physical key value information consistent with the target physical key information exists in the mapping relation table, continuously querying the next mapping relation table.
5. The method of claim 1, wherein before the receiving the physical key information sent by the infrared remote control device, further comprising:
and receiving a key adaptation request sent by the infrared remote control equipment, and entering an adaptation mode.
6. A method of adapting a remote control, comprising:
sending physical key value information to a user terminal, wherein the physical key value information is used for determining the mapping relation between the physical key value information and corresponding function key value information to form a mapping relation table;
and sending target physical key value information to a user terminal, wherein the target physical key value information is used for the user terminal to inquire the mapping relation table and convert the received target physical key information into a corresponding function key for execution.
7. The method of claim 6, further comprising:
and sending a key adaptation request to the user terminal so that the user terminal enters a key adaptation mode.
8. An apparatus for adapting a remote control, comprising:
the receiving module is used for receiving the physical key value information sent by the infrared remote control equipment;
the storage module is used for determining the mapping relation between the physical key value information and the corresponding function key value information to form a mapping relation table;
and the triggering module is used for converting the received target physical key information into a corresponding function key for execution.
9. The apparatus of claim 8, wherein the save module is further to:
and storing the mapping relation table in sequence.
10. The apparatus of claim 9, further comprising a load module,
the mapping relation table is used for sequentially inquiring all mapping relation tables;
and converting the received physical key information into a corresponding function key for execution according to the mapping relation of the determined mapping relation table.
11. The apparatus of claim 10, wherein the triggering module comprises:
sequentially inquiring all mapping relation tables from back to front according to a storage sequence;
after the physical key value information consistent with the target physical key information exists in the mapping relation table;
and converting the received target physical key information into a corresponding function key for execution according to the mapping relation of the determined mapping relation table.
12. The apparatus of claim 11, wherein the trigger module further comprises: and when the physical key value information consistent with the target physical key information exists in the mapping relation table, continuously querying the next mapping relation table.
13. A computer-readable storage medium, characterized in that a remote control driver is stored on the computer-readable storage medium, which when executed by a processor implements the method steps of adapting a remote control according to any one of claims 1 to 5 or 6 to 7.
CN201910763211.3A 2019-08-16 2019-08-16 Method and device for adapting remote controller and computer readable storage medium Pending CN112447039A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910763211.3A CN112447039A (en) 2019-08-16 2019-08-16 Method and device for adapting remote controller and computer readable storage medium
PCT/CN2020/101058 WO2021031737A1 (en) 2019-08-16 2020-07-09 Method and apparatus for adapting remote controller, and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910763211.3A CN112447039A (en) 2019-08-16 2019-08-16 Method and device for adapting remote controller and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112447039A true CN112447039A (en) 2021-03-05

Family

ID=74659654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910763211.3A Pending CN112447039A (en) 2019-08-16 2019-08-16 Method and device for adapting remote controller and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN112447039A (en)
WO (1) WO2021031737A1 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6606050B2 (en) * 2001-01-14 2003-08-12 Cheng Han Technology Co., Ltd. Remote control device having classified channels
JP2004201090A (en) * 2002-12-19 2004-07-15 Funai Electric Co Ltd Receiver
CN100556092C (en) * 2006-12-19 2009-10-28 深圳Tcl新技术有限公司 A kind of method and system of self-defining press-key function of remote controller
CN103544830A (en) * 2012-07-11 2014-01-29 上海曜铂信息科技有限公司 Intelligent pairing method of infrared remote control device
CN104157129B (en) * 2014-08-28 2017-10-03 西安逸景电子科技有限公司 Infrared pattern acquisition methods, Cloud Server, infrared transponder and system
CN108257377A (en) * 2018-01-18 2018-07-06 四川长虹电器股份有限公司 A kind of method and system that remote controler is configured

Also Published As

Publication number Publication date
WO2021031737A1 (en) 2021-02-25

Similar Documents

Publication Publication Date Title
RU2604422C1 (en) Method and apparatus for transmitting infrared signal and remote control panel
CN112423238B (en) Electronic device, control terminal, storage medium, and device connection method
CN103914973A (en) Method and system for infrared learning by using cloud server
CN203325206U (en) Infrared remote-control learning and control device
US20190035396A1 (en) System and method for remote control of appliances by voice
US20180245813A1 (en) Air conditioner control method and device
CN102750812A (en) Method for matching reception device and remote controller, reception device and remote controller
CN104217560A (en) All-purpose remote controller module used for smartphone and operation method thereof
EP3190726B1 (en) Self-adaptive receiving method, device, and system for radio signal
CN112447039A (en) Method and device for adapting remote controller and computer readable storage medium
CN111833585A (en) Method, device and equipment for intelligent equipment to learn remote control function and storage medium
CN103209250A (en) Universal remote control system
CN110942612A (en) Remote controller control method, remote controller and remote controller system
CN103516775B (en) A kind of method and system realizing equipment room Fast synchronization
CN113395667B (en) Lamp control method and system based on mobile terminal
CN105513317A (en) Intelligent remote controller control method based on transparence computing
CN105654706A (en) All-purpose household appliance control device, system and household appliances control method
EP3435643A1 (en) A system and method for control of an appliance by voice
CN110149254B (en) Wireless switch control method, wireless switch and computer readable storage medium
CN104065441A (en) Device time calibration method and system
US11012155B1 (en) Systems for coexistence of infrared communications
CN103873648A (en) Universal remote control system
CN203193817U (en) Remote control system
CN103873647A (en) Universal remote control system
CN103391470A (en) Method and device for switching information sources automatically

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210305