Infrared remote control method, device, electronic device and readable storage medium

By integrating infrared signal transmitting modules into the headphones and using voice recognition technology, the problem of inconvenience in use of infrared remote control in specific scenarios is solved, and the voice remote control of headphones without manual operation is realized, improving the simplicity of infrared remote control.

CN115100842BActive Publication Date: 2025-01-14GEER TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210742497.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-28
Publication Date
2025-01-14
Estimated Expiration
2042-06-28

AI Technical Summary

Technical Problem

The existing infrared remote control technology is inconvenient to use in specific scenarios. For example, when there is no remote control near the user or when both hands are occupied, it is difficult to effectively control the target device.

Method used

Integrated infrared signal transmitting module in the headset, key control information is obtained through voice recognition, corresponding infrared signals are generated and transmitted to remotely control the target device, and infrared remote control is realized without manual operation using voice information.

Benefits of technology

It improves the simplicity of infrared remote control, overcomes the inconvenience of users to use remote control in specific scenarios, and realizes the voice remote control function of headphones as intermediaries.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115100842B_ABST
    Figure CN115100842B_ABST
Patent Text Reader

Abstract

The present application discloses an infrared remote control method, device, electronic device and readable storage medium, which are applied to earphones, wherein the earphones are provided with an infrared signal transmitting module, and the infrared remote control method comprises: if the user's voice information is collected, then detecting whether there is key control information in the voice information; if so, obtaining the infrared coding format and the corresponding key infrared code value corresponding to the key control information; according to the infrared coding format and the key infrared code value, controlling the infrared signal transmitting module to transmit the corresponding infrared signal to remotely control the target controlled device corresponding to the key control information. The present application solves the technical problem of low simplicity of infrared remote control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of earphone technology, and in particular to an infrared remote control method, device, electronic device and readable storage medium. Background Art

[0002] Currently, when performing infrared remote control, the user usually presses a button on the remote control, and the remote control will then send out a specific infrared signal to control the target device. However, in some specific scenarios, such as when there is no remote control nearby or the user's hands are occupied by other things, it is inconvenient for the user to use the remote control to control the target device. Summary of the invention

[0003] The main purpose of the present application is to provide an infrared remote control method, device, electronic device and readable storage medium, aiming to solve the technical problem of low simplicity of infrared remote control in the prior art.

[0004] To achieve the above object, the present application provides an infrared remote control method, which is applied to a headset, wherein the headset is provided with an infrared signal transmitting module, and the infrared remote control method comprises:

[0005] If the user's voice information is collected, detecting whether there is key control information in the voice information;

[0006] If yes, then obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value;

[0007] According to the infrared coding format and the key infrared code value, the infrared signal transmitting module is controlled to transmit a corresponding infrared signal to remotely control a target controlled device corresponding to the key control information.

[0008] Optionally, the step of obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value includes:

[0009] Querying whether the infrared coding format corresponding to the key control information and the corresponding key infrared code value are stored in the local database of the headset;

[0010] If yes, extracting the infrared coding format corresponding to the key control information and the corresponding key infrared code value from the local database;

[0011] If not, query the preset server for the infrared coding format corresponding to the key control information and the corresponding key infrared code value.

[0012] Optionally, the button control information includes a target controlled device name and target button information, and the step of querying whether the infrared coding format corresponding to the button control information and the corresponding button infrared code value are stored in the local database of the headset includes:

[0013] Acquire pairing information between the headset and a target controlled device corresponding to the key control information;

[0014] Determine, according to the pairing information, an identification name corresponding to the name of the target controlled device;

[0015] According to the identification name and the target button information, the infrared coding format and the button infrared code value are queried in the local database of the headset.

[0016] Optionally, after the step of querying the preset server for the infrared coding format corresponding to the key control information and the corresponding key infrared code value, the infrared remote control method further includes:

[0017] The key control information, the infrared coding format and the key infrared code value are correspondingly saved in the local database of the headset.

[0018] Optionally, before the step of obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value, the infrared remote control method further includes:

[0019] Determining whether the headset and the target controlled device corresponding to the key control information are paired;

[0020] If the headset and the target controlled device have been paired, the following steps are performed: obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value;

[0021] If the headset and the target controlled device are not paired, querying the server whether the headset supports remote control of the target controlled device;

[0022] If the headset supports remote control of the target controlled device, the step of obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value is performed.

[0023] Optionally, before the step of obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value, the infrared remote control method further includes:

[0024] Detecting whether the target controlled device corresponding to the key control information is a Bluetooth connection device of the headset;

[0025] If yes, detecting the relative distance between the target controlled device and the headset;

[0026] If the relative distance is greater than the preset relative distance threshold, the steps are performed: obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value;

[0027] If the relative distance is not greater than a preset relative distance threshold, the target controlled device is remotely controlled via a Bluetooth connection according to the key control information.

[0028] Optionally, the infrared signal transmitting module includes a signal modulation circuit and a signal transmitting unit.

[0029] The step of controlling the infrared signal transmitting module to transmit a corresponding infrared signal according to the infrared coding format and the key infrared code value comprises:

[0030] According to the infrared coding format and the key infrared code value, controlling the modulation circuit to generate a corresponding modulation signal;

[0031] According to the modulation signal, the signal transmitting unit is controlled to transmit a corresponding infrared signal.

[0032] To achieve the above object, the present application further provides an infrared remote control device, which is applied to headphones. The headphones are provided with an infrared signal transmitting module. The infrared remote control device includes:

[0033] An information detection module, for detecting whether there is key control information in the voice information if the user's voice information is collected;

[0034] An information acquisition module, used for acquiring the infrared coding format corresponding to the key control information and the corresponding key infrared code value;

[0035] The remote control module is used to control the infrared signal transmitting module to transmit the corresponding infrared signal according to the infrared coding format and the key infrared code value, so as to remotely control the target controlled device corresponding to the key control information.

[0036] Optionally, the information acquisition module is further used to:

[0037] Querying whether the infrared coding format corresponding to the key control information and the corresponding key infrared code value are stored in the local database of the headset;

[0038] If yes, extracting the infrared coding format corresponding to the key control information and the corresponding key infrared code value from the local database;

[0039] If not, query the preset server for the infrared coding format corresponding to the key control information and the corresponding key infrared code value.

[0040] Optionally, the key control information includes a target controlled device name and target key information, and the information acquisition module is further used to:

[0041] Acquire pairing information between the headset and a target controlled device corresponding to the key control information;

[0042] Determine, according to the pairing information, an identification name corresponding to the name of the target controlled device;

[0043] According to the identification name and the target button information, the infrared coding format and the button infrared code value are queried in the local database of the headset.

[0044] Optionally, the infrared control device is also used for:

[0045] The key control information, the infrared coding format and the key infrared code value are correspondingly saved in the local database of the headset.

[0046] Optionally, the infrared control device is also used for:

[0047] Determining whether the headset and the target controlled device corresponding to the key control information are paired;

[0048] If the headset and the target controlled device have been paired, the following steps are performed: obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value;

[0049] If the headset and the target controlled device are not paired, querying the server whether the headset supports remote control of the target controlled device;

[0050] If the headset supports remote control of the target controlled device, the step of obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value is performed.

[0051] Optionally, the infrared control device is also used for:

[0052] Detecting whether the target controlled device corresponding to the key control information is a Bluetooth connection device of the headset;

[0053] If yes, detecting the relative distance between the target controlled device and the headset;

[0054] If the relative distance is greater than the preset relative distance threshold, the steps are performed: obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value;

[0055] If the relative distance is not greater than a preset relative distance threshold, the target controlled device is remotely controlled via a Bluetooth connection according to the key control information.

[0056] Optionally, the infrared signal transmitting module includes a signal modulation circuit and a signal transmitting unit, and the remote control module is further used for:

[0057] According to the infrared coding format and the key infrared code value, controlling the modulation circuit to generate a corresponding modulation signal;

[0058] According to the modulation signal, the signal transmitting unit is controlled to transmit a corresponding infrared signal.

[0059] The present application also provides an electronic device, which is a physical device, and includes: a memory, a processor, and a program of the infrared remote control method stored in the memory and executable on the processor. When the program of the infrared remote control method is executed by the processor, the steps of the infrared remote control method as described above can be implemented.

[0060] The present application also provides a computer-readable storage medium, on which is stored a program for implementing the infrared remote control method. When the program of the infrared remote control method is executed by a processor, the steps of the infrared remote control method as described above are implemented.

[0061] The present application also provides a computer program product, including a computer program, which implements the steps of the infrared remote control method as described above when executed by a processor.

[0062] The present application provides an infrared remote control method, device, electronic device and readable storage medium. Compared with the technical means in the prior art that users perform infrared remote control by pressing the buttons of a remote control, the present application sets an infrared signal transmitting module on the headset. If the user's voice information is collected, it detects whether there is key control information in the voice information; if so, the infrared coding format and the corresponding key infrared code value corresponding to the key control information are obtained; according to the infrared coding format and the key infrared code value, the infrared signal transmitting module is controlled to transmit the corresponding infrared signal to remotely control the target controlled device corresponding to the key control information. The purpose of using headphones as an intermediary to perform infrared remote control by voice is achieved without the need for manual operation by the user, so the technical defect that the user's use of the remote control to remotely control the target device is inconvenient in some specific scenarios, such as when there is no remote control near the user or the user's hands are occupied by other things, is overcome, and the simplicity of infrared remote control is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0064] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0065] Figure 1 This is a flow chart of the first embodiment of the infrared remote control method of the present application;

[0066] Figure 2 This is a flow chart of the second embodiment of the infrared remote control method of the present application;

[0067] Figure 3 Schematic diagram of the device structure of the hardware operating environment involved in the infrared remote control method in the embodiment of the present application.

[0068] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0069] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of this application.

[0070] Embodiment 1

[0071] The present application embodiment provides an infrared remote control method, which is applied to a headset, wherein the headset is provided with an infrared signal transmitting module. Figure 1 In the first embodiment of the infrared remote control method of the present application, the infrared remote control method includes:

[0072] Step S10, if the user's voice information is collected, then detecting whether there is key control information in the voice information;

[0073] Step S20: If yes, then obtain the infrared coding format corresponding to the key control information and the corresponding key infrared code value;

[0074] Step S30, according to the infrared coding format and the key infrared code value, controlling the infrared signal transmitting module to transmit a corresponding infrared signal to remotely control a target controlled device corresponding to the key control information.

[0075] In this embodiment, it should be noted that the earphones may be TWS earphones, which are provided with a microphone and an infrared signal transmitting module, and the button control information is voice information with real semantics for controlling the target controlled device, for example, the voice may be “press and hold the OK button on XX brand YY model TV” etc.

[0076] As an example, step S10 to step S30 include: if the user's voice information is collected through a microphone, voice recognition is performed on the voice information to obtain a voice recognition result, and based on the voice recognition result, it is determined whether there is key control information in the voice information, wherein the key control information includes target controlled device information and target key information; if there is key control information in the voice information, the infrared coding format corresponding to the target controlled device information and the key infrared code value corresponding to the key information are determined; based on the infrared coding format and the key infrared code value, the infrared signal transmitting module is controlled to transmit a corresponding infrared signal to remotely control the target controlled device corresponding to the key control information.

[0077] Wherein, before the step of obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value, the infrared remote control method further includes:

[0078] Step A10, determining whether the headset and the target controlled device corresponding to the key control information have been paired;

[0079] Step A20, if the headset and the target controlled device have been paired, then execute the steps of: obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value;

[0080] Step A30: if the headset and the target controlled device are not paired, query the server whether the headset supports remote control of the target controlled device;

[0081] Step A40: If the headset supports remote control of the target controlled device, the following steps are executed: obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value.

[0082] In this embodiment, it should be noted that the button control information includes target controlled device information and target button information; the server stores preset controlled device information corresponding to all controlled devices that the headset supports remote control, wherein the controlled device information can be any one or a combination of multiple of the device name, device model and device code.

[0083] As an example, step A10 to step A40 include: detecting whether the target controlled device information is stored in the local database of the headset; if the target controlled device information is stored in the local database of the headset, determining that the headset and the target controlled device corresponding to the button control information are paired, and executing the step of obtaining the infrared coding format and the corresponding button infrared code value corresponding to the button control information; if the target controlled device information is not stored in the local database of the headset, determining that the headset and the target controlled device corresponding to the button control information are not paired, encapsulating the target controlled device information as a first query request and sending it to the server, querying the server whether the headset supports remote control of the target controlled device; if the headset supports remote control of the target controlled device, executing the step of obtaining the infrared coding format and the corresponding button infrared code value corresponding to the button control information; if the headset does not support remote control of the target controlled device, providing feedback to the user that the headset does not support remote control of the target controlled device, for example, feedback can be provided through voice broadcast.

[0084] Wherein, before the step of obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value, the infrared remote control method further includes:

[0085] Step B10, detecting whether the target controlled device corresponding to the key control information is a Bluetooth connection device of the headset;

[0086] Step B20: If yes, detecting the relative distance between the target controlled device and the headset;

[0087] Step B30, if the relative distance is greater than the preset relative distance threshold, then executing the steps: obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value;

[0088] Step B40: If the relative distance is not greater than the preset relative distance threshold, remotely control the target controlled device through a Bluetooth connection according to the key control information.

[0089] In this embodiment, it should be noted that infrared signals are easily blocked by objects, which will affect the accuracy of infrared remote control. Although Bluetooth control will not be affected by objects, the Bluetooth signal will weaken as the distance increases, which will affect the accuracy of Bluetooth control.

[0090] As an example, the button control information includes target controlled device information and target button information, and steps B10 to B40 include: detecting whether the target controlled device corresponding to the target controlled device information is a Bluetooth connection device of the headset; if the target controlled device is a Bluetooth connection device of the headset, detecting the relative distance between the target controlled device and the headset; if the relative distance is greater than a preset relative distance threshold, determining that the Bluetooth signal is weak, and then executing the step: obtaining the infrared coding format corresponding to the button control information and the corresponding button infrared code value to remotely control the target controlled device via an infrared signal; if the relative distance is not greater than the preset relative distance threshold, determining that the Bluetooth signal is strong, and then remotely controlling the target controlled device via a Bluetooth connection based on the button control information.

[0091] As an example, the headset is further provided with a vibration detection module, and after the step of detecting whether the target controlled device corresponding to the key control information is a Bluetooth connection device of the headset, it also includes:

[0092] If a vibration signal is collected by the vibration measurement module, it is determined whether the vibration signal is a tooth occlusion vibration signal emitted by the user wearing the headset. If the vibration signal is a tooth occlusion vibration signal emitted by the user wearing the headset, it is determined that there is an obstruction between the headset and the target controlled device, so that the target controlled device is remotely controlled through the Bluetooth connection according to the key control information; if the vibration signal is not a tooth occlusion vibration signal emitted by the user wearing the headset, it is determined that there is no obstruction between the headset and the target controlled device, so as to execute the step: obtaining the infrared encoding format corresponding to the key control information and the corresponding key infrared code value. The embodiment of the present application realizes detecting whether the user has the intention to autonomously switch the remote control target controlled device by detecting whether the user has a tooth occlusion vibration signal, thereby indirectly judging whether there is an obstruction between the headset and the target controlled device, so as to choose whether to select the Bluetooth control method or the infrared control method to remotely control the target controlled device, thereby avoiding the accuracy of the remote control of the target controlled device being affected by the existence of the obstruction, so as to improve the accuracy of the remote control of the target controlled device.

[0093] The infrared signal transmitting module includes a signal modulation circuit and a signal transmitting unit.

[0094] The step of controlling the infrared signal transmitting module to transmit a corresponding infrared signal according to the infrared coding format and the key infrared code value comprises:

[0095] Step S31, controlling the modulation circuit to generate a corresponding modulation signal according to the infrared coding format and the key infrared code value;

[0096] Step S32: According to the modulation signal, control the signal transmitting unit to transmit a corresponding infrared signal.

[0097] As an example, step S31 to step S32 include: generating a remote control signal corresponding to the infrared coding format and the key infrared code value; generating a corresponding modulation signal by inputting the remote control signal into the modulation circuit; and controlling the signal transmitting unit to transmit a corresponding infrared signal by inputting the modulation signal into the signal transmitting unit. The signal transmitting unit may be an LED lamp.

[0098] The embodiment of the present application provides an infrared remote control method. Compared with the technical means in the prior art that the user performs infrared remote control by pressing a button on a remote control, the embodiment of the present application is provided with an infrared signal transmitting module on the headset. If the user's voice information is collected, it is detected whether there is key control information in the voice information; if so, the infrared coding format and the corresponding key infrared code value corresponding to the key control information are obtained; according to the infrared coding format and the key infrared code value, the infrared signal transmitting module is controlled to transmit the corresponding infrared signal to remotely control the target controlled device corresponding to the key control information. The purpose of using the headset as an intermediary to perform infrared remote control by voice is achieved without the need for manual operation by the user, so the technical defect that the user's method of using the remote control to remotely control the target device is relatively inconvenient in some specific scenarios, such as when there is no remote control near the user or the user's hands are occupied by other things, is overcome, and the simplicity of infrared remote control is improved.

[0099] Embodiment 2

[0100] Reference Figure 2 Based on the first embodiment of the present application, in another embodiment of the present application, the step of obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value includes:

[0101] Step S21, querying whether the local database of the headset stores the infrared coding format corresponding to the key control information and the corresponding key infrared code value;

[0102] Step S22: if yes, extract the infrared coding format corresponding to the key control information and the corresponding key infrared code value from the local database;

[0103] Step S23: if not, query the preset server for the infrared coding format corresponding to the key control information and the corresponding key infrared code value.

[0104] As an example, steps S21 to S23 include: taking the button control information as an index, querying whether the infrared coding format corresponding to the button control information and the corresponding button infrared code value are stored in the local database of the headset; if the infrared coding format corresponding to the button control information and the corresponding button infrared code value are stored in the local database of the headset, extracting the infrared coding format corresponding to the button control information and the corresponding button infrared code value from the local database; if the infrared coding format corresponding to the button control information and the corresponding button infrared code value are not stored in the local database of the headset, encapsulating the button control information into a second query request and sending it to the server, querying the server for the infrared coding format corresponding to the button control information and the corresponding button infrared code value, wherein the server stores the infrared coding formats and corresponding button infrared code values ​​corresponding to all controlled devices that support remote control by the headset.

[0105] The key control information includes the name of the target controlled device and the target key information, and the step of querying whether the infrared coding format corresponding to the key control information and the corresponding key infrared code value are stored in the local database of the headset includes:

[0106] Step S211, obtaining pairing information between the headset and a target controlled device corresponding to the key control information;

[0107] Step S212, determining an identification name corresponding to the name of the target controlled device according to the pairing information;

[0108] Step S213: query the infrared coding format and the infrared code value of the button in the local database of the headset according to the identification name and the target button information.

[0109] In this embodiment, it should be noted that the key control information includes target controlled device information and target key information, and the target controlled device information may be the name of the target controlled device, and the target controlled device name may be an alias of the target controlled device, such as "Xiao Ai", etc. The identification name is the standard name of the target controlled device, which is used as an index name corresponding to the infrared encoding format and the key infrared code value, for example, it may be "XX brand XX model air conditioner", etc.

[0110] Steps S211 to S213 include: obtaining pairing information between the headset and the target controlled device corresponding to the button control information; querying the identification name corresponding to the target controlled device name according to the correspondence between the device alias and the device identification name in the pairing information; using the identification name and the target button information as indexes, querying the infrared coding format and the button infrared code value in the local database of the headset.

[0111] Wherein, after the step of querying the preset server for the infrared coding format corresponding to the key control information and the corresponding key infrared code value, the infrared remote control method further includes:

[0112] Step C10, the key control information, the infrared coding format and the key infrared code value are correspondingly saved in the local database of the headset.

[0113] As an example, by using the button control information as the key of a key-value pair, and using the infrared coding format and the button infrared code value as the values ​​in the key-value pair, the button control information, the infrared coding format and the button infrared code value are saved in the local database of the headset in the form of a key-value pair.

[0114] An embodiment of the present application discloses a method for obtaining an infrared coding format and a button infrared code value, that is, querying whether the local database of the headset has stored the infrared coding format and the corresponding button infrared code value corresponding to the button control information; if so, extracting the infrared coding format and the corresponding button infrared code value corresponding to the button control information from the local database; if not, querying the infrared coding format and the corresponding button infrared code value corresponding to the button control information from a preset server, that is, the infrared coding format and the corresponding button infrared code value obtained by the headset in the embodiment of the present application are stored in the local database of the headset, and when needed, the corresponding infrared coding format and the corresponding button infrared code value can be directly called from the local database without remotely calling from the server, thereby saving the remote calling process, reducing the response time of the infrared remote control, and improving the response speed of the infrared remote control.

[0115] Embodiment 3

[0116] The present application also provides an infrared remote control device, which is applied to headphones. The headphones are provided with an infrared signal transmitting module. The infrared remote control device includes:

[0117] An information detection module, for detecting whether there is key control information in the voice information if the user's voice information is collected;

[0118] An information acquisition module, used for acquiring the infrared coding format corresponding to the key control information and the corresponding key infrared code value;

[0119] The remote control module is used to control the infrared signal transmitting module to transmit the corresponding infrared signal according to the infrared coding format and the key infrared code value, so as to remotely control the target controlled device corresponding to the key control information.

[0120] Optionally, the information acquisition module is further used to:

[0121] Querying whether the infrared coding format corresponding to the key control information and the corresponding key infrared code value are stored in the local database of the headset;

[0122] If yes, extracting the infrared coding format corresponding to the key control information and the corresponding key infrared code value from the local database;

[0123] If not, query the preset server for the infrared coding format corresponding to the key control information and the corresponding key infrared code value.

[0124] Optionally, the key control information includes a target controlled device name and target key information, and the information acquisition module is further used to:

[0125] Acquire pairing information between the headset and a target controlled device corresponding to the key control information;

[0126] Determine, according to the pairing information, an identification name corresponding to the name of the target controlled device;

[0127] According to the identification name and the target button information, the infrared coding format and the button infrared code value are queried in the local database of the headset.

[0128] Optionally, the infrared control device is also used for:

[0129] The key control information, the infrared coding format and the key infrared code value are correspondingly saved in the local database of the headset.

[0130] Optionally, the infrared control device is also used for:

[0131] Determining whether the headset and the target controlled device corresponding to the key control information are paired;

[0132] If the headset and the target controlled device have been paired, the following steps are performed: obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value;

[0133] If the headset and the target controlled device are not paired, querying the server whether the headset supports remote control of the target controlled device;

[0134] If the headset supports remote control of the target controlled device, the step of obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value is performed.

[0135] Optionally, the infrared control device is also used for:

[0136] Detecting whether the target controlled device corresponding to the key control information is a Bluetooth connection device of the headset;

[0137] If yes, detecting the relative distance between the target controlled device and the headset;

[0138] If the relative distance is greater than the preset relative distance threshold, the steps are performed: obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value;

[0139] If the relative distance is not greater than a preset relative distance threshold, the target controlled device is remotely controlled via a Bluetooth connection according to the key control information.

[0140] Optionally, the infrared signal transmitting module includes a signal modulation circuit and a signal transmitting unit, and the remote control module is further used for:

[0141] According to the infrared coding format and the key infrared code value, controlling the modulation circuit to generate a corresponding modulation signal;

[0142] According to the modulation signal, the signal transmitting unit is controlled to transmit a corresponding infrared signal.

[0143] The infrared remote control device provided by the present application adopts the infrared remote control method in the above embodiment, and solves the technical problem of low simplicity of infrared remote control. Compared with the prior art, the beneficial effects of the infrared remote control device provided by the embodiment of the present application are the same as the beneficial effects of the infrared remote control method provided by the above embodiment, and other technical features in the infrared remote control device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0144] Embodiment 4

[0145] An embodiment of the present application provides an electronic device, which may be an earphone or a terminal device carrying an earphone, and the electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the infrared remote control method in the above-mentioned embodiment one.

[0146] Reference below Figure 3 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. The electronic device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0147] like Figure 3 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage device into a random access memory (RAM). In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0148] Typically, the following systems can be connected to the I / O interface: input devices including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices including, for example, a magnetic tape, a hard disk, etc.; and communication devices. The communication device can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.

[0149] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0150] The electronic device provided by the present application adopts the infrared remote control method in the above embodiment to solve the technical problem of low simplicity of infrared remote control. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present application are the same as the beneficial effects of the infrared remote control method provided by the above embodiment 1, and other technical features in the electronic device are the same as the features disclosed in the above embodiment method, which will not be described in detail here.

[0151] It should be understood that the various parts of the present disclosure can be implemented with hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0152] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0153] Embodiment 5

[0154] This embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the infrared remote control method in the above-mentioned embodiment 1.

[0155] The computer-readable storage medium provided in the embodiment of the present application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, a system or a device or used in combination with it. The program code contained on the computer-readable storage medium can be transmitted with any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0156] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0157] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by an electronic device, the electronic device: if the user's voice information is collected, detect whether there is key control information in the voice information; if so, obtain the infrared coding format and the corresponding key infrared code value corresponding to the key control information; according to the infrared coding format and the key infrared code value, control the infrared signal transmitting module to transmit the corresponding infrared signal to remotely control the target controlled device corresponding to the key control information.

[0158] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0159] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0160] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.

[0161] The computer-readable storage medium provided by the present application stores computer-readable program instructions for executing the above-mentioned infrared remote control method, which solves the technical problem of low simplicity of infrared remote control. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiment of the present application are the same as the beneficial effects of the infrared remote control method provided in the above-mentioned embodiment, and will not be described in detail here.

[0162] Embodiment 6

[0163] The present application also provides a computer program product, including a computer program, which implements the steps of the infrared remote control method as described above when executed by a processor.

[0164] The computer program product provided by the present application solves the technical problem of low simplicity of infrared remote control. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as the beneficial effects of the infrared remote control method provided by the above embodiment, which will not be repeated here.

[0165] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.

Claims

1. An infrared remote control method, characterized in that: Applied to earphones, the earphones are provided with an infrared signal transmitting module, and the infrared remote control method comprises: If the user's voice information is collected, then detecting whether there is key control information in the voice information, wherein the key control information is voice information with real semantics of controlling the target controlled device; If yes, then obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value; Wherein, before the step of obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value, the infrared remote control method further includes: Detecting whether the target controlled device corresponding to the key control information is a Bluetooth connection device of the headset; If yes, detecting the relative distance between the target controlled device and the headset; If the relative distance is greater than the preset relative distance threshold, the steps are performed: obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value; The step of obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value includes: Querying whether the infrared coding format corresponding to the key control information and the corresponding key infrared code value are stored in the local database of the headset; If yes, extracting the infrared coding format corresponding to the key control information and the corresponding key infrared code value from the local database; If not, query the preset server for the infrared coding format corresponding to the key control information and the corresponding key infrared code value; If the relative distance is not greater than a preset relative distance threshold, remotely controlling the target controlled device via a Bluetooth connection according to the key control information; According to the infrared coding format and the key infrared code value, the infrared signal transmitting module is controlled to transmit a corresponding infrared signal to remotely control a target controlled device corresponding to the key control information.

2. The infrared remote control method according to claim 1, characterized in that: The key control information includes a target controlled device name and target key information, and the step of querying whether the infrared coding format corresponding to the key control information and the corresponding key infrared code value are stored in the local database of the headset includes: Acquire pairing information between the headset and a target controlled device corresponding to the key control information; Determine, according to the pairing information, an identification name corresponding to the name of the target controlled device; According to the identification name and the target button information, the infrared coding format and the button infrared code value are queried in the local database of the headset.

3. The infrared remote control method according to claim 1, characterized in that: After the step of querying the preset server for the infrared coding format corresponding to the key control information and the corresponding key infrared code value, the infrared remote control method further includes: The key control information, the infrared coding format and the key infrared code value are correspondingly saved in the local database of the headset.

4. The infrared remote control method according to any one of claims 1 to 3, characterized in that: Before the step of obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value, the infrared remote control method further includes: Determining whether the headset and the target controlled device corresponding to the key control information are paired; If the headset and the target controlled device have been paired, the following steps are performed: obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value; If the headset and the target controlled device are not paired, querying the server whether the headset supports remote control of the target controlled device; If the headset supports remote control of the target controlled device, the step of obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value is performed.

5. The infrared remote control method according to any one of claims 1 to 3, characterized in that: The infrared signal transmitting module includes a signal modulation circuit and a signal transmitting unit. The step of controlling the infrared signal transmitting module to transmit a corresponding infrared signal according to the infrared coding format and the key infrared code value comprises: According to the infrared coding format and the key infrared code value, controlling the modulation circuit to generate a corresponding modulation signal; According to the modulation signal, the signal transmitting unit is controlled to transmit a corresponding infrared signal.

6. An infrared remote control device, characterized in that: Applied to earphones, the earphones are provided with an infrared signal transmitting module, and the infrared remote control device comprises: An information detection module, for detecting whether there is key control information in the voice information if the user's voice information is collected, wherein the key control information is voice information with real semantics of controlling the target controlled device; An information acquisition module, for, if yes, obtaining the infrared coding format and the corresponding infrared code value of the key control information, wherein the information acquisition module is specifically used to query whether the infrared coding format and the corresponding infrared code value of the key control information are stored in the local database of the headset; if yes, extracting the infrared coding format and the corresponding infrared code value of the key control information from the local database; if no, querying the infrared coding format and the corresponding infrared code value of the key control information from a preset server; A remote control module, used to control the infrared signal transmitting module to transmit a corresponding infrared signal according to the infrared coding format and the infrared code value of the key, so as to remotely control a target controlled device corresponding to the key control information; The infrared remote control device further comprises: detecting whether the target controlled device corresponding to the key control information is a Bluetooth connection device of the headset; If yes, detecting the relative distance between the target controlled device and the headset; If the relative distance is greater than the preset relative distance threshold, the steps are performed: obtaining the infrared coding format corresponding to the key control information and the corresponding key infrared code value; If the relative distance is not greater than a preset relative distance threshold, the target controlled device is remotely controlled via a Bluetooth connection according to the key control information.

7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the infrared remote control method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program for implementing the infrared remote control method, and the program for implementing the infrared remote control method is executed by a processor to implement the steps of the infrared remote control method as claimed in any one of claims 1 to 5.

Citation Information

Patent Citations

  • System and method for controlling multiple household appliances through speech and key

    CN110415700A

  • Notebook computer

    JP2007183836A

  • Remote control method and device

    WO2015154405A1