WO2017166066A1 - Infrared remote control method, terminal and apparatus - Google Patents

Infrared remote control method, terminal and apparatus Download PDF

Info

Publication number
WO2017166066A1
WO2017166066A1 PCT/CN2016/077700 CN2016077700W WO2017166066A1 WO 2017166066 A1 WO2017166066 A1 WO 2017166066A1 CN 2016077700 W CN2016077700 W CN 2016077700W WO 2017166066 A1 WO2017166066 A1 WO 2017166066A1
Authority
WO
WIPO (PCT)
Prior art keywords
remote control
operation instruction
instruction
terminal
infrared
Prior art date
Application number
PCT/CN2016/077700
Other languages
French (fr)
Chinese (zh)
Inventor
钟光华
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201680080779.XA priority Critical patent/CN108604404A/en
Priority to PCT/CN2016/077700 priority patent/WO2017166066A1/en
Publication of WO2017166066A1 publication Critical patent/WO2017166066A1/en

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

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to an infrared remote control method, terminal, and device.
  • a smart phone by binding a smart phone with a smart device, can control the bound smart device through the infrared remote control function on the smart phone.
  • the user controls the smart device through the smart phone, the user needs to unlock first, and open the application that provides the remote control function, and enter the remote control interface of the application to perform the remote control operation.
  • the whole process is complicated, time-consuming, and capable of More expensive.
  • the present disclosure provides an infrared remote control method and apparatus.
  • an infrared remote control method which is applied to a terminal, when the terminal is in a black screen state, or the bright screen is not unlocked, or the display interface of the terminal is another interface other than the remote control application operation interface, the method includes :
  • the processor of the terminal may be an application processor or a microprocessor.
  • the application processor can remain in a sleep state when the terminal is in a black screen state or a bright screen unlocked state, and the microprocessor remains as a coprocessor, thereby reducing power consumption of the terminal.
  • the microprocessor is electrically connected to the infrared transmitting module, and the specific connection manner includes any one of the following: connecting through a general-purpose input/output GPIO, or a serial peripheral interface SPI, or a serial interface RS-232, or passing The infrared output modulation and demodulation chip is connected and the like.
  • the preset correspondence relationship refers to a mapping relationship between the remote control code and the preset operation instruction, and when the preset correspondence includes more than two mapping relationships, different remote control codes correspond to different preset operation instructions.
  • the instruction type of the preset operation instruction may include three types of motion instructions, touch instructions, and voice instructions, and each of the preset operation instructions may include one or more operation instructions.
  • the preset correspondence includes at least a mapping relationship between the two operation instructions and the at least two remote control codes, and the at least two remote control codes correspond to at least two The remotely controlled device.
  • the preset correspondence includes at least a mapping relationship between two operation instructions and at least two remote control codes
  • the at least two remote control codes correspond to at least two remotely controlled devices, that is, the preset
  • the correspondence relationship may include a mapping relationship between the operation command corresponding to the remote control device and the remote control code, that is, the terminal may remotely control a plurality of different smart devices, thereby increasing the range and flexibility of controlling the remotely controlled device. Sex.
  • the operation instruction is at least one of the following instruction types: a motion instruction, Touch commands, voice commands.
  • the method before the obtaining the input operation instruction, the method also includes:
  • the terminal starts to start detecting an input operation instruction.
  • the remote start command can be triggered by the terminal detecting the corresponding motion parameter, and
  • the triggering can be performed by the user, and the user can trigger by physical buttons, touch gestures, voice commands, etc., and the physical buttons, touch gestures, and voice commands can be set in advance, or can be customized by the user.
  • the infrared signal is transmitted according to the first remote control code After that, it also includes:
  • the terminal is controlled to stop detecting the input operation instruction.
  • the remote control closing command is similar to the remote control opening command, and may be triggered by the terminal detecting the corresponding motion parameter, or may be triggered by the user.
  • the absolute value of the emission angle of the infrared transmitting module is greater than 9 degrees That is, the emission angle of the infrared emission module is greater than 9 degrees, or less than -9 degrees; that is, the emission angle of the infrared emission tube is greater than 9 degrees or less than -9 degrees, for example, the absolute value of the emission angle may be For 15 degrees, or 30 degrees, etc., by increasing the emission angle of the infrared transmitting tube, the terminal can remotely control the remotely controlled device at any angle for convenient operation.
  • a terminal in a second aspect, includes a sensor, a processor, and an infrared transmitting module, and the terminal is in a black screen state, or the bright screen is not unlocked, or the display interface of the terminal is a remote control application operating interface.
  • the processor remains on;
  • a sensor configured to detect an input operation instruction, and send the operation instruction to the processor
  • a processor configured to determine, according to the operation instruction and a preset correspondence, a first remote control code corresponding to the operation instruction, where the preset correspondence includes at least the operation instruction and the first remote control code Mapping relations;
  • the processor is further configured to: modulate an infrared modulation signal corresponding to the first remote control code according to the first remote control code, and send the infrared modulation signal to the infrared emission module;
  • the infrared transmitting module is configured to emit an infrared signal according to the infrared modulation signal sent by the processor to control the remotely controlled device that receives the infrared signal.
  • the sensor and the processor may be two devices that are independently configured, and may be integrated into the same integrated circuit chip. As a whole, the embodiment of the present invention does not limit this.
  • the preset correspondence includes at least a mapping relationship between the two operation instructions and the at least two remote control codes, and the at least two remote control codes correspond to at least two The remotely controlled device.
  • the at least two remote control codes correspond to at least two remotely controlled devices, that is, the preset correspondence may be At the same time, the mapping relationship between the operation command corresponding to the remote control device and the remote control code is included, that is, the terminal can remotely control a plurality of different smart devices, thereby increasing the scope and flexibility of controlling the remotely controlled device.
  • the operation instruction is at least one of the following instruction types: a motion instruction, Touch commands, voice commands.
  • the sensor is further configured to detect an input remote start command, and send a wake-up command to the processor according to the remote start command;
  • the processor is further configured to change from the sleep state to the awake state according to the wake-up instruction, where the awake state refers to the processor being capable of receiving the operation instruction sent by the sensor, and determining, according to the operation instruction and the preset correspondence relationship, The state of the first remote control code corresponding to the operation instruction; the sleep state refers to a state in which the processor stops receiving the operation instruction sent by the sensor.
  • the processor Before the processor wakes up, the processor remains in a sleep state and cannot receive an operation instruction sent by the sensor.
  • the state machine in the sensor sends an interrupt signal to the processor, so that The processor transitions from a sleep state to an awake state and performs corresponding operations.
  • the remote control opening command may be triggered by the sensor detecting the corresponding motion parameter, or triggered by detecting a corresponding touch gesture, a voice instruction, etc., the touch gesture and the voice instruction may be set in advance, or may be customized by the user, etc. .
  • the user can also trigger by using a physical button.
  • the user can trigger by clicking or double-clicking the volume key, the lock screen key, etc.
  • the physical button can be set in advance, or can be customized by the user, etc., through physical Avoid accidental operation when the button is triggered The wrong remote control is performed on the remote control device.
  • the sensor is further configured to detect an input remote control off command, and send a sleep instruction to the processor according to the remote control off command;
  • the processor is further configured to change from the awake state to the sleep state according to the sleep instruction, where the awake state is that the processor is capable of receiving the operation instruction sent by the sensor, and determining, according to the operation instruction and the preset correspondence relationship,
  • the state of the first remote control code corresponding to the operation command; the sleep state refers to a state in which the processor stops receiving the operation command sent by the sensor.
  • the remote control off command is similar to the above-mentioned remote control open command, and may be triggered by the sensor to detect the corresponding motion parameter, or may be triggered by the user through a physical button or the like, which is not described herein again.
  • the absolute value of the emission angle of the infrared transmitting module is greater than 9 degrees That is, the emission angle of the infrared emission tube is greater than 9 degrees or less than -9 degrees.
  • the absolute value of the emission angle may be 15 degrees, or 30 degrees, etc., by increasing the emission angle of the infrared emission tube.
  • the terminal can remotely control the remotely controlled device at any angle for convenient operation.
  • the processor is a microprocessor, where the micro The processor is electrically connected to the infrared transmitting module;
  • the terminal further includes an application processor
  • the microprocessor When the terminal is in a black screen state or a bright screen unlocked state, the microprocessor remains in an on state, and the application processor is in a sleep state.
  • the microprocessor and the infrared transmitting module are electrically connected, and the specific connection manner includes any one of the following: connecting through a general-purpose input/output GPIO, or connecting a serial peripheral interface SPI, or connecting a serial interface RS-232, Or the invention is not limited by the embodiment of the present invention.
  • an infrared remote control device is provided, the device being in a black screen state, or a bright screen unlocked state, or the display interface of the device is a remote control application operating interface In his interface, the device includes:
  • a detecting unit configured to detect the input operation instruction, and send the operation instruction to the determining unit
  • a determining unit configured to determine, according to the operation instruction and a preset correspondence, a first remote control code corresponding to the operation instruction, where the preset correspondence includes at least the operation instruction and the first remote control code Mapping relations;
  • a modulating unit configured to modulate an infrared modulation signal corresponding to the first remote control code according to the first remote control code, and send the infrared modulation signal to the transmitting unit;
  • a transmitting unit configured to transmit an infrared signal according to the infrared modulation signal sent by the modulation unit, to control the remotely controlled device that receives the infrared signal.
  • the preset correspondence includes at least a mapping relationship between the two operation instructions and the at least two remote control codes, and the at least two remote control codes are at least Corresponds to two remotely controlled devices.
  • the operation instruction is at least one of the following instruction types: a motion instruction, Touch commands, voice commands.
  • the method further includes:
  • the detecting unit is further configured to detect an input remote start command, and send a wake-up command to the determining unit according to the remote open command;
  • the determining unit is further configured to change from a sleep state to an awake state according to the wake-up instruction, where
  • the awake state is that the determining unit is capable of receiving the operation instruction sent by the detecting unit, and determining a state of the first remote control code corresponding to the operation instruction according to the operation instruction and a preset correspondence relationship. ;
  • the sleep state refers to a state in which the determining unit stops receiving the operation instruction sent by the detecting unit.
  • the detecting unit is further configured to detect an input remote control closing instruction, and send a sleep instruction to the determining unit according to the remote closing command;
  • the determining unit is further configured to change from an awake state to a sleep state according to the sleep instruction, where
  • the awake state is that the determining unit is capable of receiving the operation instruction sent by the detecting unit, and determining a state of the first remote control code corresponding to the operation instruction according to the operation instruction and a preset correspondence relationship. ;
  • the sleep state refers to a state in which the determining unit stops receiving the operation instruction sent by the detecting unit.
  • the absolute value of the emission angle of the transmitting unit More than 9 degrees.
  • the infrared remote control method, the terminal and the device provided by the embodiment of the present invention determine the first remote control code corresponding to the operation instruction according to the operation instruction and the preset correspondence relationship by detecting the input operation instruction, and the preset
  • the mapping relationship includes at least a mapping relationship between the operation instruction and the first remote control code, and then transmitting an infrared signal according to the first remote control code, so that the terminal can be in a black screen state, an unlocked state, or an unlocked display interface.
  • the operation is convenient and simple, and the power consumption of the terminal when controlling the remotely controlled device is reduced.
  • FIG. 1 is a block diagram showing a partial structure of a terminal according to an embodiment of the present invention.
  • FIG. 2 is a block diagram showing the hardware structure of a terminal and a remotely controlled device according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of an infrared remote control method according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an operation instruction in a motion instruction according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an operation instruction in a touch instruction according to an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of an infrared driving circuit according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart diagram of another infrared remote control method according to an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart diagram of still another infrared remote control method according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of an infrared remote control device according to an embodiment of the present invention.
  • the infrared remote control method provided by the embodiment of the present invention may be executed by a terminal, which may be a mobile phone, a tablet computer, a notebook computer, an UMPC (Ultra-mobile Personal Computer), a netbook, a PDA (Personal Digital Assistant, personal digital). Assistant) and so on.
  • a terminal which may be a mobile phone, a tablet computer, a notebook computer, an UMPC (Ultra-mobile Personal Computer), a netbook, a PDA (Personal Digital Assistant, personal digital). Assistant) and so on.
  • the embodiment of the present invention is described by taking the terminal as a mobile phone as an example.
  • FIG. 1 is a block diagram showing a partial structure of a mobile phone related to various embodiments of the present invention.
  • FIG. 1 is merely illustrative and does not limit the structure of the mobile phone.
  • the handset may also include more or fewer components than shown in FIG. 1, or have a different configuration than that shown in FIG.
  • the terminal 10 includes a memory 101, a processing component 102, a sensor component 103, a multimedia component 104, a power component 105, an input/output interface 106, an infrared transmitting module 107, and the like.
  • the memory 101 can be used to store data, software programs, and modules; and mainly includes a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.)
  • the storage data area can store data (such as audio data, image data, phone book, etc.) created according to the use of the terminal 10.
  • the memory 101 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • Processing component 102 is the control center of terminal 10, connecting various portions of the entire terminal using various interfaces and lines, by running or executing software programs and/or modules stored in memory 101, and recalling data stored in memory 101,
  • the terminal 10 is integrally monitored by performing various functions and processing data of the terminal 10, which may be a processor.
  • the processor may include one or more processing units; preferably, the processor may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, etc., and modulates
  • the demodulation processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor.
  • the processing component 102 can also include a microprocessor that can execute a portion of the instructions in place of the processor or have some of the functions of the processor.
  • the microprocessor can be integrated into the processor or can be set up separately.
  • the microprocessor can be a sensor control center SensorHub, or a microcontroller MCU or the like.
  • Sensor assembly 103 includes one or more sensors for providing terminal 10 with various aspects of status assessment.
  • the sensor component 103 can include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor or a temperature sensor, etc., through the sensor component 103, the acceleration/deceleration, orientation, opening/closing state of the terminal 10, and relative positioning of the components can be detected. Or the temperature change of the terminal 10 or the like.
  • sensor assembly 103 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the multimedia component 104 provides a screen for providing an output interface between the terminal 10 and the user.
  • the screen may be a liquid crystal display or a touch panel.
  • the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel.
  • the touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 104 also includes a front camera and/or a rear camera. When the terminal 10 is in an operation mode such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data.
  • Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the power supply assembly 105 is used to provide power to various components of the terminal 10, which may include a power management system, one or more power supplies, and other components associated with the terminal 10 generating, managing, and distributing power.
  • Input ⁇ output interface 106 is a processing component 102 and a peripheral interface Interfaces are provided between modules.
  • peripheral interface modules can be keyboards, mice, and the like.
  • the infrared transmitting module 107 is configured to receive a triggering instruction of the processing component 102, that is, a trigger instruction of a processor or other processing unit having a processing function, such as a trigger instruction of a microprocessor, etc., and the infrared transmitting module 107 can be based on different triggers received.
  • the command emits different infrared signals, and the infrared emitting module 107 can be composed of an infrared transmitting tube and an infrared driving circuit, wherein the emission angle of the infrared transmitting module 107 to emit the infrared signal depends on the emission angle of the infrared transmitting tube used.
  • the terminal 10 may further include an audio component and a communication component, etc.
  • the audio component includes a microphone
  • the communication component includes a wireless (Wireless Fidelity) module, a Bluetooth module, etc., and the embodiment of the present invention is no longer used herein. Narration.
  • FIG. 2 it is a hardware structure diagram of a terminal and a remotely controlled device.
  • the terminal includes a processor, a memory, a touch screen, a motion sensor, a voice recognizer, and an infrared transmitting module, and the infrared emitting module may include an infrared driving circuit and an infrared transmitting tube.
  • the touch screen, the motion sensor or the voice recognizer reports the detected information to the processor.
  • the processor can also detect the touch screen, the motion sensor or the voice recognizer in real time.
  • the processor can also query and acquire data from the memory, for example, the acquired data is a remote control code, etc., the processor can modulate the corresponding infrared modulation signal according to the remote control code, and send the infrared modulation signal to the infrared emission module to The infrared transmitting module is configured to emit an infrared signal according to the infrared modulation signal.
  • the remote control device includes an infrared receiving module, a demodulator, a controller, a display, and the like, wherein the infrared receiving module is configured to receive an infrared signal, and the demodulator can demodulate the infrared signal to obtain corresponding control information, and the control The remote control device can be correspondingly controlled according to the control information, and correspondingly displayed through the display.
  • FIG. 2 is merely illustrative, and it does not limit the structure of the central terminal and the remote control device.
  • the terminal and the remotely controlled device may also include more or fewer components than those shown in FIG. 2, or have a different configuration than that shown in FIG. 2.
  • FIG. 3 is a schematic flowchart of an infrared remote control method according to an embodiment of the present invention. The method is applied to a terminal, the terminal is in a black screen state, or the bright screen is not unlocked, or the display interface of the terminal is a remote control application operation interface. Other interfaces, see Figure 3, include the following steps.
  • Step 201 Detect an input operation instruction.
  • the terminal When the terminal is in a black screen state, or the bright screen is not unlocked, or the display interface of the terminal is an interface other than the remote control application operation interface, the terminal may detect an input operation instruction, and the operation instruction may be triggered by the user.
  • the user can trigger the operation instruction by rotating the terminal, or touching the touch screen of the terminal, or issuing a voice, etc., that is, the operation instruction is at least one of the following instruction types: a motion instruction, a touch instruction,
  • the voice command may be another type of the command in the actual application, which is not limited by the embodiment of the present invention.
  • the display interface of the terminal is an interface other than the remote control application operation interface, and the interface of the terminal may be an unlocked menu display interface, a display interface of a game application, or a mode setting interface, and the like.
  • this interface is not an operation interface for remote control applications. That is, the user can trigger the corresponding operation instruction under the above display interface without opening the remote control application and finding the corresponding remote control button, thereby simplifying the operation when the remote control device is controlled, and does not affect the operation.
  • the user's current use of the terminal is not an operation interface for remote control applications.
  • the processor of the terminal may directly detect the input operation instruction to obtain a corresponding operation instruction, for example, the operation instruction may be a touch instruction, a motion instruction, or a voice instruction.
  • the processor of the terminal can also obtain the corresponding operation instruction by receiving the reported operation instruction.
  • the processor of the terminal can receive the operation instruction reported by the touch screen corresponding to the touch instruction, and the motion sensor corresponding to the motion instruction.
  • the operation command that is reported, or the operation command that is reported by the voice recognizer corresponding to the voice command is not limited in this embodiment of the present invention.
  • the processor of the terminal when the terminal is in a black screen state, or the bright screen is not unlocked, or the display interface of the terminal is an interface other than the remote control application operation interface, the processor of the terminal It is always in the running state, that is, the processor of the terminal can detect the input operation instruction in any of the above states or display interfaces.
  • the processor can be an application processor or a microprocessor.
  • the application processor can remain in a sleep state when the terminal is in a black screen state or a bright screen unlocked state, and the microprocessor remains as a coprocessor, thereby reducing power consumption of the terminal.
  • the microprocessor is electrically connected to the infrared transmitting module, and the specific connection manner includes any one of the following: connecting through a general-purpose input/output GPIO, or connecting through a serial peripheral interface SPI
  • the embodiment of the present invention does not limit the connection, or the serial interface RS-232 is connected, or the infrared output modulation and demodulation chip is connected.
  • the microprocessor when the processor is a microprocessor, the microprocessor may be a sensor center SensorHub with a software programming function, a single-chip MCU, a digital signal processing chip DSP, or a programmable logic device, etc., the microprocessor may The timer function is used to generate an accurate carrier signal, and the microprocessor is inexpensive and consumes less power.
  • the microprocessor may be a microprocessor MSP430 developed by Texas Instruments, LPC18A1, or STM32L151RB developed by NXP Semiconductors, etc., which is not limited in this embodiment of the present invention.
  • Step 202 Determine, according to the operation instruction and the preset correspondence, the first remote control code corresponding to the operation instruction, where the preset correspondence includes at least a mapping relationship between the operation instruction and the first remote control code.
  • the preset correspondence includes at least a mapping relationship between the operation instruction and the first remote control code, that is, the preset correspondence may include only a mapping relationship between the operation instruction and the first remote control code, and may also include The other preset operation instructions are included, and the remote control code corresponding to each preset operation instruction is different, and the preset operation instructions corresponding to any two remote control codes are different.
  • the preset correspondence relationship refers to a mapping relationship between the remote control code and the preset operation instruction, and when the preset correspondence includes more than two mapping relationships, different remote control codes correspond to different presets.
  • the operation instruction, the instruction type of the preset operation instruction may include three types of the motion instruction, the touch instruction, and the voice instruction, and each of the preset operation instructions may include one or more operation instructions.
  • the preset correspondence may include only a mapping relationship between a preset operation instruction of the instruction type and the remote control instruction, or may include only a preset operation instruction of any two instruction types and the remote control code respectively.
  • the mapping relationship can also include the mapping relationship between the preset operation instructions of the three instruction types and the remote control code.
  • the instruction type of the preset operation instruction is a motion instruction
  • the remotely controlled device is a smart TV
  • the mapping relationship between the remote control code and the preset operation instruction may be as shown in Table 1 below.
  • the correspondence between the remote control code shown in Table 1 and the preset operation command of the motion instruction is merely exemplary, and when the remotely controlled device is a smart TV, the remote control code and the preset operation command are used.
  • the mapping relationship between them may be the same as that of the above Table 1, or may be different from the above Table 1, and the above Table 1 does not constitute an embodiment of the present invention.
  • the motion instruction may include at least one of the following operation instructions: vertical right rotation, vertical left rotation, vertical upward rotation, vertical downward rotation, horizontal right rotation, horizontal left rotation, continuous m times up and down, continuous n or so shaking, clockwise rotation i*360 degrees or counterclockwise rotation i*360 degrees, where m, n and i are integers greater than or equal to 1.
  • the processor can detect the motion command through the acceleration sensor and the gyroscope of the terminal, or a six-axis gyroscope.
  • the mapping relationship between the remote control code and the preset operation instruction may be as shown in Table 2 below.
  • Remote control code Preset operation command Increase volume Swipe left Decrease the volume Swipe right Switch to the previous channel Slide up Switch to the next channel Swipe down
  • mapping relationship between the remote control code shown in Table 2 and the preset operation command of the touch command is merely exemplary, and when the remotely controlled device is a smart TV, the remote control code and the preset operation command are used.
  • the mapping relationship between them may be the same as that of Table 2 above, or may be different from Table 2 above, and the above Table 2 does not constitute an embodiment of the present invention.
  • the touch instruction may include at least one of the following operation instructions: sliding to the right, sliding to the left, sliding up, sliding down, clockwise arc sliding, counterclockwise arc sliding, and sliding to the right and long pressing Swipe left, then press, slide up, then press, slide down, press long, slide clockwise, then press, slide counterclockwise, press long, clockwise, slide counterclockwise , arbitrary polygon sliding, continuous k clicks, any numeric sliding or any letter sliding, etc., where k is an integer greater than or equal to 1.
  • the voice form corresponding to the voice command is defined as: the English abbreviation of the device name + the remote control code, then the user issues
  • the preset operation command of the voice command may be: TV remote control code, and the correspondence between the remote control code and the preset operation command may be as shown in Table 3 below.
  • mapping relationship between the remote control code shown in Table 3 and the preset operation command of the voice command is merely exemplary, and the above Table 3 is not configured for the embodiment of the present invention.
  • the voice definition form corresponding to the voice instruction is: the English abbreviation of the device name + the remote control instruction is only exemplary, and the specific operation instruction corresponding to the voice instruction may be used by the user.
  • the voice form of the preset operation command in the voice command corresponding to the different remote control codes may be the same or different, which is not limited by the embodiment of the present invention.
  • the preset correspondence may include any one of the above Table 1, Table 2, and Table 3, or may include any two of them, or include the above Table 1. Table 2 and Table 3.
  • the remotely controlled device can be not only a smart TV, but also a smart refrigerator, a smart air conditioner, a smart camera, a smart speaker, a DVD, a set top box, and the like, and the remote control code is an operation option with the remotely controlled device.
  • the remote control code is an operation option with the remotely controlled device.
  • Corresponding remote control coding is not specifically limited in this embodiment of the present invention.
  • the preset correspondence includes at least a mapping relationship between two operation instructions and at least two remote control codes
  • the at least two remote control codes correspond to at least two remotely controlled devices, that is, the preset
  • the correspondence relationship may include a mapping relationship between the operation command corresponding to the remote control device and the remote control code, that is, the terminal may remotely control a plurality of different smart devices, thereby increasing the range and flexibility of controlling the remotely controlled device. Sex.
  • the preset correspondence includes a mapping relationship between two operation instructions and two remote control codes, wherein the remote control code corresponding to the first operation instruction is an increase volume, and the increase volume is a remote control code corresponding to the smart TV.
  • the remote control code corresponding to the two operation instructions is to reduce the temperature, and the lowering temperature is the remote control code corresponding to the smart refrigerator, so that the user can control the smart TV or the smart refrigerator at the same time by triggering different operation instructions.
  • Step 203 Send an infrared signal according to the first remote control code to control the remotely controlled device that receives the infrared signal.
  • the processor of the terminal modulates the infrared modulation signal corresponding to the first remote control code according to the first remote control code, and sends the infrared modulation signal to the infrared transmission module, where the infrared transmission module transmits the infrared signal according to the infrared modulation signal sent by the processor.
  • the remotely controlled device that receives the infrared signal.
  • the infrared emitting module comprises an infrared transmitting tube and an infrared driving circuit
  • the infrared driving circuit can directly drive an N-channel or a P-channel FET by using GPIO, as shown in FIG. 6, directly driving the N-channel by GPIO.
  • the processor modulates the infrared modulation signal corresponding to the first remote control code according to the first remote control code, and transmits the infrared modulation signal to the infrared transmitting module, and the infrared transmitting driving circuit is based on the infrared sent by the processor.
  • Modulation letter The infrared driving tube IR LED emits an infrared signal.
  • the infrared driving circuit can also be other.
  • the infrared driving circuit can adopt a constant current source or the like, and the embodiment of the present invention does not limited.
  • the absolute value of the emission angle of the infrared transmitting tube included in the infrared transmitting module may be greater than 9 degrees in the prior art, that is, the emitting angle of the infrared transmitting tube is greater than 9 degrees or less than -9 degrees, for example,
  • the absolute value of the emission angle can be 15 degrees, or 30 degrees, etc.
  • the first remote control code may include a carrier frequency corresponding to the modulated infrared signal, data to be transmitted, and the like.
  • the carrier frequency may be 20 kHz-60 kHz
  • the processor may be driven by the infrared according to the data to be sent.
  • the circuit modulates the carrier signal corresponding to the carrier frequency, so that the data to be transmitted is carried in the carrier signal, and the duty ratio of the signal corresponding to the carrier signal carrying the data to be transmitted and the carrier signal not carrying the data to be transmitted Different, where the duty ratio refers to the ratio of the time occupied by the high level in the total cycle time.
  • the method further includes:
  • Step 204a Detect an input remote start command, and start an operation command for the terminal to start detecting input according to the remote start command.
  • the remote start command may be triggered by the terminal detecting the corresponding motion parameter, or triggered by the user, and the user may trigger through a physical button, a touch gesture, or a voice command, the physical button, the touch gesture, and the voice.
  • the instructions may be set in advance, or may be customized by the user, etc., which is not limited by the embodiment of the present invention.
  • the first state parameter is a first feature value corresponding to the acceleration and the angle when the terminal is picked up.
  • the first feature value includes a plurality of feature values corresponding to the acceleration when the terminal is picked up, and a plurality of feature values corresponding to the angle, and the first feature value can be obtained by multiple tests, that is, the first feature value refers to During the process of being picked up, the acceleration and angle of the terminal have representative parameter values during the transformation process.
  • the first feature value may be set in advance, and the embodiment of the present invention is The plurality of feature values corresponding to the acceleration when the terminal is picked up and the number of feature values of the plurality of feature values corresponding to the angle are not limited.
  • the processor can detect a parameter change of the sensor included in the terminal.
  • the processor can obtain a parameter change of the acceleration and the angle of the terminal by detecting.
  • the parameter conversion of the acceleration and the angle of the terminal is consistent with the first feature value when the terminal is picked up, it may be determined that the terminal is picked up, so that the terminal may start the operation of detecting the input according to the remote start command. Instructions to facilitate user control of the remotely controlled device.
  • the method further includes:
  • Step 205a detecting the input remote control closing command, and controlling the terminal to stop detecting the input operation command according to the remote control closing command.
  • the remote control off command is similar to the remote start command in the above step 204a, and may be triggered by the terminal to detect the corresponding motion parameter, or may be triggered by the user, which is not described herein again.
  • the processor detects that the motion parameter of the terminal meets the second state parameter, controlling the terminal to stop detecting the input according to the remote control off command.
  • the operation command, the second state parameter is a second characteristic value corresponding to the acceleration and the angle when the terminal is lowered.
  • the second feature value includes a plurality of feature values corresponding to the acceleration when the terminal is lowered, and a plurality of feature values corresponding to the angle, and the second feature value can be obtained by multiple tests, that is, the second feature value refers to the feature value.
  • the acceleration and angle of the terminal have representative parameter values during the transformation process.
  • the second feature value may be set in advance, and the number of feature values of the plurality of feature values corresponding to the acceleration and the angle corresponding to the angle when the terminal is picked up is not limited.
  • the method further includes:
  • Step 204b Perform voiceprint recognition on the voice of the target user to obtain a voiceprint feature of the target user.
  • the voiceprint recognition may be performed on the voice of the target user, so that the voiceprint feature of the target user is obtained, and the number of the target users may be one or multiple.
  • voiceprint recognition reference may be made to related technologies, and the embodiments of the present invention are not described herein.
  • the processor determines, according to the operation instruction and the preset correspondence, the first remote control code corresponding to the operation instruction, specifically: when the voiceprint feature of the input voice command and the voiceprint feature of the target user When they are consistent, the first remote control code corresponding to the operation instruction is determined according to the operation instruction and the preset correspondence.
  • step 204b and the steps 201-203 have no sequence, that is, when the type of the operation instruction is a voice instruction, the user can perform the voiceprint of the target user before remotely controlling the remotely controlled device through the terminal. Identification, the voiceprint recognition of the target user can also be performed in the process of remote control, and the voiceprint recognition of the target user can be performed after the remote control is completed, so as to facilitate the next use.
  • the method provided by the embodiment of the present invention can simplify the operation;
  • the processor is micro-processed, it not only simplifies the operation, but also reduces the power consumption of the terminal and saves power.
  • the infrared transmitting module may also be replaced by a wifi module and a bluetooth module, that is, the terminal detects an input operation instruction, according to the detected operation instruction, from a preset operation instruction and In the mapping relationship between the remote control codes, the remote control code corresponding to the operation instruction is obtained, and the remote control code corresponding to the operation instruction is transmitted to the remote control device through the wifi module or the bluetooth module, and the remote control device receives the After the remote control code corresponding to the operation command, the corresponding control operation can be directly performed based on the remote control code.
  • the preset mapping relationship may include at least a mapping relationship between the operation command and the remote control code, when at least two operation instructions are included and at least When two remote control codes are used, the at least two remote control codes may be remote control codes of at least two remotely controlled devices, that is, between the preset operation commands and the remote control codes in the remote control method corresponding to the wifi module and the Bluetooth module.
  • the mapping relationship is similar to the foregoing corresponding relationship based on the presets in the infrared transmitting module, and details are not described herein again.
  • the embodiment of the invention provides an infrared remote control method, which is applied to a terminal, and the terminal is in a black screen.
  • the status, or the unlit state of the bright screen, or the display interface of the terminal is an interface other than the remote control application operation interface, and the operation instruction is detected according to the operation instruction and the preset correspondence relationship, and the operation instruction is determined according to the operation instruction and the preset correspondence relationship.
  • the preset correspondence includes at least a mapping relationship between the operation instruction and the first remote control code, and then transmitting an infrared signal according to the first remote control code, so that the terminal is in a black screen state or not unlocked
  • the status or the unlocked display interface controls the remotely controlled device, which is convenient and simple to operate, and does not affect the user's use of the current application, and also reduces the terminal's control operation on the remotely controlled device. Power consumption.
  • FIG. 9 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal includes a sensor 301, a processor 302, and an infrared transmitting module 303.
  • the sensor 301 is configured to detect an input operation instruction, and send the operation instruction to the processor 302 of the terminal;
  • the senor When the sensor detects an input operation command, the sensor may refer to a touch screen, a motion sensor, or a voice recognizer of the terminal. Of course, in practical applications, other devices of the terminal may also be detected, and the present invention is implemented. This example does not limit this
  • the operation instruction when detecting the input operation instruction, the operation instruction may be triggered by the user, and the user may trigger the operation instruction by rotating the terminal, or touching the touch screen of the terminal, or issuing a voice, etc., that is, the
  • the operation instruction is at least one of the following instruction types: a motion instruction, a touch instruction, a voice instruction, and of course, in an actual application, the operation instruction may also be another instruction type, which is not limited by the embodiment of the present invention.
  • the terminal when the sensor detects the input operation instruction, the terminal may be in a black screen state or a bright screen unlocked state, or the display interface of the terminal is a remote interface application interface other than the remote control application interface.
  • the interface of the terminal may be an unlocked menu display interface, or a display interface of a game application, or a mode setting interface, etc., but the interface is not an operation interface of a remote control application. That is, the user can trigger the corresponding operation instruction under the above display interface without opening the remote control application and finding the corresponding remote control button, thereby simplifying the operation when the remote control device is controlled, and does not affect the operation.
  • the user's current use of the terminal is
  • the processor 302 is configured to determine, according to the operation instruction and the preset correspondence, a first remote control code corresponding to the operation instruction, where the preset correspondence includes at least the operation a mapping relationship between the instruction and the first remote control code;
  • the preset correspondence includes at least a mapping relationship between the operation instruction and the first remote control code, that is, the preset correspondence may include only a mapping relationship between the operation instruction and the first remote control code, and may also include The other preset operation instructions are included, and the remote control code corresponding to each preset operation instruction is different, and the preset operation instructions corresponding to any two remote control codes are different.
  • the preset correspondence relationship refers to a mapping relationship between the remote control code and the preset operation instruction, and when the preset correspondence includes more than two mapping relationships, different remote control codes correspond to different presets.
  • the operation instruction, the instruction type of the preset operation instruction may include three types of the motion instruction, the touch instruction, and the voice instruction, and each of the preset operation instructions may include one or more operation instructions.
  • the preset correspondence may include only a mapping relationship between a preset operation instruction of the instruction type and the remote control instruction, or may include only a preset operation instruction of any two instruction types and the remote control code respectively.
  • the mapping relationship can also include the mapping relationship between the preset operation instructions of the three instruction types and the remote control code.
  • the processor 302 is further configured to: modulate an infrared modulation signal corresponding to the first remote control code according to the first remote control code, and send the infrared modulation signal to the infrared emission module;
  • the infrared transmitting module 303 is configured to transmit an infrared signal according to the infrared modulation signal sent by the processor to control the remotely controlled device that receives the infrared signal.
  • the senor 301 and the processor 302 may be two devices that are independently configured, and may be integrated into the same integrated circuit chip. As a whole, the embodiment of the present invention does not limit this.
  • the preset correspondence includes at least a mapping relationship between the two operation instructions and the at least two remote control codes, and the at least two remote control codes correspond to at least two of the remotely controlled devices.
  • the at least two remote control codes correspond to at least two remotely controlled devices, that is, the preset correspondence may be At the same time, the mapping relationship between the operation command corresponding to the remote control device and the remote control code is included, that is, the terminal can remotely control a plurality of different smart devices, thereby increasing the scope and flexibility of controlling the remotely controlled device.
  • the preset correspondence includes a mapping relationship between two operation instructions and two remote control codes, wherein the remote control code corresponding to the first operation instruction increases the volume, and the added volume is The remote control code corresponding to the smart TV, the remote control code corresponding to the second operation instruction is to lower the temperature, and the lowering temperature is the remote control code corresponding to the smart refrigerator, so that the user can trigger different operation instructions and simultaneously respond to the smart TV or the smart refrigerator. control.
  • the operation instruction is at least one of the following instruction types: a motion instruction, a touch instruction, and a voice instruction.
  • the motion instruction may include at least one of the following operation instructions: vertical right rotation, vertical left rotation, vertical upward rotation, vertical downward rotation, horizontal Rotate to the right, rotate horizontally to the left, sway up and down m times, sway up and down n times, rotate i*360 degrees clockwise, or rotate i*360 degrees counterclockwise, where m, n, and i are integers greater than or equal to 1.
  • the processor can detect the motion command through the acceleration sensor and the gyroscope of the terminal, or a six-axis gyroscope.
  • the touch instruction may include at least one of the following operation instructions: sliding to the right, sliding to the left, sliding up, sliding down, clockwise arc sliding, counterclockwise arc Slide the line, slide it to the right, press it long, slide it to the left, press it long, slide it up, press it long, slide it down, press it long, slide it clockwise, then press it long, turn it counterclockwise, then press it long.
  • the senor 301 is further configured to detect an input remote start command, and send a wake command to the processor 302 according to the remote start command;
  • the processor 302 is further configured to change from the sleep state to the awake state according to the wake-up instruction, wherein the awake state refers to the processor 302 being capable of receiving an operation instruction sent by the sensor 301, and according to the operation instruction and the preset correspondence relationship
  • the state of the first remote control code corresponding to the operation command is determined;
  • the sleep state refers to a state in which the processor 302 stops receiving the operation command sent by the sensor 301.
  • the processor Before the processor wakes up, the processor remains in a sleep state and cannot receive an operation instruction sent by the sensor.
  • the state machine in the sensor sends an interrupt signal to the processor, so that The processor transitions from a sleep state to an awake state and performs corresponding operations.
  • the remote control opening command may be triggered by the sensor detecting the corresponding motion parameter, or triggered by detecting a corresponding touch gesture, a voice instruction, etc., the touch gesture and the voice instruction may be set in advance, or may be customized by the user, etc. This embodiment of the present invention does not limit this.
  • the user can also trigger by using a physical button.
  • the user can trigger by clicking or double-clicking the volume key, the lock screen key, etc.
  • the physical button can be set in advance, or can be customized by the user, etc., through physical
  • the button is triggered, it is possible to avoid erroneous remote control of the remotely controlled device due to an erroneous operation.
  • the sensor detects the corresponding motion parameter for triggering
  • sending a wake-up instruction to the processor according to the remote start command so that the processor wakes up according to the The instruction changes from the sleep state to the awake state, and determines a state of the first remote control code corresponding to the operation instruction according to the detected operation instruction and the preset correspondence, wherein the first state parameter is an acceleration when the terminal is picked up
  • the first feature value corresponding to the angle is an acceleration when the terminal is picked up.
  • the first feature value includes a plurality of feature values corresponding to the acceleration when the terminal is picked up, and a plurality of feature values corresponding to the angle, and the first feature value can be obtained by multiple tests, that is, the first feature value refers to During the process of being picked up, the acceleration and angle of the terminal have representative parameter values during the transformation process.
  • the first feature value may be set in advance, and the embodiment of the present invention does not limit the plurality of feature values corresponding to the acceleration when the terminal is picked up and the number of feature values of the plurality of feature values corresponding to the angle.
  • the senor can detect a parameter change of each sensor included in the terminal, for example, when the sensor passes the detection of the acceleration sensor and the gyroscope, or is a six-axis gyroscope, the parameter conversion of the acceleration and the angle of the terminal can be obtained.
  • the parameter change of the acceleration and the angle of the terminal is consistent with the first characteristic value when the terminal is picked up, it can be determined that the terminal is picked up, so that the wake-up instruction can be sent to the processor according to the remote start command, so that The processor changes from a sleep state to an awake state to facilitate the user to control the remotely controlled device.
  • the senor 301 is further configured to detect an input remote control off command, and send a sleep command to the processor 302 according to the remote control off command;
  • the processor 302 is further configured to change from the awake state to the sleep state according to the sleep instruction, where the awake state refers to the processor 302 being capable of receiving an operation instruction sent by the sensor 301, and The state of the first remote control code corresponding to the operation instruction is determined according to the corresponding correspondence between the operation instruction and the preset; the sleep state refers to a state in which the processor 302 stops receiving the operation instruction sent by the sensor 301.
  • the remote control off command is similar to the above-mentioned remote control open command, and may be triggered by the sensor to detect the corresponding motion parameter, or may be triggered by the user through a physical button or the like, which is not described herein again.
  • the remote control off command is triggered by the sensor detecting the corresponding motion parameter
  • the sensor detects that the motion parameter of the terminal meets the second state parameter
  • sending a sleep instruction to the processor according to the remote control off command And causing the processor to change from the awake state to the sleep state according to the sleep instruction, and determining a state of the first remote control code corresponding to the operation instruction according to the operation instruction and the preset correspondence relationship, where the second state parameter is an acceleration when the terminal is lowered a second eigenvalue corresponding to the angle.
  • the second feature value includes a plurality of feature values corresponding to the acceleration when the terminal is lowered, and a plurality of feature values corresponding to the angle, and the second feature value can be obtained by multiple tests, that is, the second feature value refers to the feature value.
  • the acceleration and angle of the terminal have representative parameter values during the transformation process.
  • the second feature value may be set in advance, and the number of feature values of the plurality of feature values corresponding to the acceleration and the angle corresponding to the angle when the terminal is picked up is not limited.
  • the processor 302 is further configured to perform voiceprint recognition on the voice of the target user to obtain a voiceprint feature of the target user.
  • the remotely controlled device When the remotely controlled device is controlled by a voice command, in order to prevent any person from being able to control the remotely controlled device through a voice command, the problem of misoperation is easily caused, and the voiceprint of the target user's voice can be recognized. Thereby, the voiceprint feature of the target user is obtained, and the number of the target users may be one or multiple.
  • voiceprint recognition reference may be made to related technologies, and the embodiments of the present invention are not described herein.
  • the absolute value of the emission angle of the infrared emission module is greater than 9 degrees, that is, the emission angle of the infrared emission tube is greater than 9 degrees or less than -9 degrees.
  • the absolute value of the emission angle may be 15 degrees. Or 30 degrees, etc., by increasing the emission angle of the infrared transmitting tube, the terminal can remotely control the remotely controlled device at any angle for convenient operation.
  • the processor 302 is The microprocessor 3011, wherein the microprocessor 3011 is electrically connected to the infrared transmitting module 303; the terminal further includes an application processor 3012;
  • the microprocessor 3011 When the terminal is in a black screen state or a bright screen unlocked state, the microprocessor 3011 remains in an on state, and the application processor 3012 is in a sleep state.
  • the microprocessor and the infrared transmitting module are electrically connected, and the specific connection manner includes any one of the following: connecting through a general-purpose input/output GPIO, or connecting a serial peripheral interface SPI, or connecting a serial interface RS-232, Or the invention is not limited by the embodiment of the present invention.
  • the microprocessor when the processor is a microprocessor, the microprocessor may be a sensor center SensorHub with a software programming function, a single-chip MCU, a digital signal processing chip DSP, or a programmable logic device, etc., the microprocessor may The timer function is used to generate an accurate carrier signal, and the microprocessor is inexpensive and consumes less power.
  • the microprocessor may be a microprocessor MSP430 developed by Texas Instruments, LPC18A1, or STM32L151RB developed by NXP Semiconductors, etc., which is not limited in this embodiment of the present invention.
  • the infrared transmitting module can also be replaced by a wifi module and a bluetooth module, that is, the sensor detects an input operation instruction and sends it to the processor, and the processor according to the operation instruction a mapping relationship between the preset operation command and the remote control code, acquiring a remote control code corresponding to the operation instruction, and transmitting the remote control code corresponding to the operation instruction to the remote control device through the wifi module or the Bluetooth module, being remotely controlled After receiving the remote control code corresponding to the operation instruction, the device may directly perform a corresponding control operation based on the remote control code.
  • the preset mapping relationship may include at least a mapping relationship between the operation command and the remote control code, when at least two operation instructions are included and at least When two remote control codes are used, the at least two remote control codes may be remote control codes of at least two remotely controlled devices, that is, between the preset operation commands and the remote control codes in the remote control method corresponding to the wifi module and the Bluetooth module.
  • the mapping relationship is similar to the foregoing corresponding relationship based on the presets in the infrared transmitting module, and details are not described herein again.
  • An embodiment of the present invention provides a terminal, where the terminal includes a sensor, a processor, and an infrared transmitting module, where the sensor is configured to detect an input operation instruction, and send the operation instruction to the processor.
  • a processor configured to determine, according to the operation instruction and a preset correspondence, a first remote control code corresponding to the operation instruction, where the preset correspondence includes at least the operation instruction and the first remote control code Mapping the relationship, and modulating the infrared modulation signal corresponding to the first remote control code according to the first remote control code, and transmitting the infrared modulation signal to the infrared transmission module, where the infrared transmission module is configured to transmit the infrared signal according to the infrared modulation signal sent by the processor, so that When the terminal is in a black screen state, a bright screen state or any display interface, the remotely controlled device is controlled by a simple operation instruction, the operation is convenient and simple, and the power consumption of the terminal for controlling the remotely controlled device is reduced.
  • FIG. 11 is a schematic structural diagram of an infrared remote control device according to an embodiment of the present invention.
  • the device is in a black screen state, or a bright screen is not unlocked state, or the display interface of the device is a remote control application interface.
  • the device includes:
  • the detecting unit 401 is configured to detect the input operation instruction, and send the operation instruction to the determining unit 402;
  • the detecting unit 401 may detect the input operation instruction, and the operation instruction may be The user triggers, the user can trigger the operation instruction by rotating, touching, or issuing a voice, etc., that is, the operation instruction is at least one of the following instruction types: motion instruction, touch instruction, voice instruction, of course In an actual application, the operation instruction may also be other instruction types, which is not limited by the embodiment of the present invention.
  • the display interface of the device is other interfaces than the remote control application operation interface, and the interface of the device may be an unlocked menu display interface, a display interface of a game application, or a mode setting interface, and the like.
  • this interface is not an operation interface for remote control applications. That is, the user can trigger the corresponding operation instruction under the above display interface without opening the remote control application and finding the corresponding remote control button, thereby simplifying the operation when the remote control device is controlled, and does not affect the operation. The user's current use.
  • the detecting unit 401 can directly detect the input operation instruction to obtain a corresponding operation instruction, for example, the operation instruction can be a touch instruction, a motion instruction, or a voice instruction. Wait.
  • a determining unit 402 configured to determine, according to the operation instruction and a preset correspondence relationship, a first remote control code corresponding to the operation instruction, where the preset correspondence includes at least a mapping relationship between the operation instruction and the first remote control code;
  • the preset correspondence includes at least a mapping relationship between the operation instruction and the first remote control code, that is, the preset correspondence may include only a mapping relationship between the operation instruction and the first remote control code, and may also include The other preset operation instructions are included, and the remote control code corresponding to each preset operation instruction is different, and the preset operation instructions corresponding to any two remote control codes are different.
  • the preset correspondence relationship refers to a mapping relationship between the remote control code and the preset operation instruction, and when the preset correspondence includes more than two mapping relationships, different remote control codes correspond to different presets.
  • the operation instruction, the instruction type of the preset operation instruction may include three types of the motion instruction, the touch instruction, and the voice instruction, and each of the preset operation instructions may include one or more operation instructions.
  • the preset correspondence may include only a mapping relationship between a preset operation instruction of the instruction type and the remote control instruction, or may include only a preset operation instruction of any two instruction types and the remote control code respectively.
  • the mapping relationship can also include the mapping relationship between the preset operation instructions of the three instruction types and the remote control code.
  • the modulating unit 403 is configured to modulate the infrared modulation signal corresponding to the first remote control code according to the first remote control code, and send the infrared modulation signal to the transmitting unit 404;
  • the transmitting unit 404 is configured to transmit an infrared signal according to the infrared modulation signal sent by the modulation unit 403 to control the remotely controlled device that receives the infrared signal.
  • the preset correspondence includes at least a mapping relationship between the two operation instructions and the at least two remote control codes, and the at least two remote control codes correspond to at least two remotely controlled devices.
  • the at least two remote control codes correspond to at least two remotely controlled devices, that is, the preset correspondence may be At the same time, the mapping relationship between the operation command corresponding to the remote control device and the remote control code is included, that is, the device can remotely control a plurality of different smart devices, thereby increasing the scope and flexibility of controlling the remote control device.
  • the preset correspondence includes a mapping relationship between two operation instructions and two remote control codes, wherein the remote control code corresponding to the first operation instruction is an increase volume, and the increase volume is a remote control code corresponding to the smart TV.
  • the remote control code corresponding to the two operation instructions is to lower the temperature, and the lowering temperature is the remote control code corresponding to the smart refrigerator, so that the user can trigger different operations by triggering Give instructions and control the smart TV or smart refrigerator accordingly.
  • the operation instruction is at least one of the following instruction types: a motion instruction, a touch instruction, and a voice instruction.
  • the motion instruction may include at least one of the following operation instructions: vertical right rotation, vertical left rotation, vertical upward rotation, vertical downward rotation, horizontal Rotate to the right, rotate horizontally to the left, sway up and down m times, sway up and down n times, rotate i*360 degrees clockwise, or rotate i*360 degrees counterclockwise, where m, n, and i are integers greater than or equal to 1.
  • the processor can detect the motion command through the acceleration sensor and the gyroscope of the terminal, or a six-axis gyroscope.
  • the touch instruction may include at least one of the following operation instructions: sliding to the right, sliding to the left, sliding up, sliding down, clockwise arc sliding, counterclockwise arc Slide the line, slide it to the right, press it long, slide it to the left, press it long, slide it up, press it long, slide it down, press it long, slide it clockwise, then press it long, turn it counterclockwise, then press it long.
  • the detecting unit 401 is further configured to detect an input remote start command, and send a wake-up command to the determining unit 402 according to the remote open command;
  • the determining unit 402 is further configured to change from the sleep state to the awake state according to the remote control open command, wherein the awake state refers to the determining unit 402 being capable of receiving the operation instruction sent by the detecting unit 401, and according to the corresponding correspondence between the operation instruction and the preset, Determining a state of the first remote control code corresponding to the operation instruction; the sleep state is a state in which the determination unit 402 stops receiving the operation instruction transmitted by the detection unit 401.
  • the remote control opening instruction may be triggered by the detecting unit detecting the corresponding motion parameter, or triggered by detecting a corresponding touch gesture, a voice instruction, etc., the touch gesture and the voice instruction may be set in advance, or may be customized by the user.
  • the embodiment of the present invention does not limit this.
  • the user can also trigger by using a physical button.
  • the user can trigger by clicking or double-clicking the volume button, the lock screen button, etc.
  • the physical button can be set in advance, It can be customized by the user, etc.
  • the trigger is triggered by the physical button, it is possible to avoid erroneous remote control of the remotely controlled device due to an erroneous operation.
  • the detecting unit detects that the motion parameter is triggered, if the detecting unit detects that the motion parameter of the device meets the first state parameter, sending a wake-up command to the determining unit according to the remote control opening command, so that the determining unit Determining a state from the sleep state to the awake state according to the wake-up command, and determining a state of the first remote control code corresponding to the operation command according to the detected operation command and the preset correspondence, wherein the first state parameter is when the terminal is picked up The first characteristic value corresponding to the acceleration and the angle.
  • the first feature value includes a plurality of feature values corresponding to the acceleration when the device is picked up, and a plurality of feature values corresponding to the angle, and the first feature value can be obtained by multiple tests, that is, the first feature value refers to The acceleration and angle of the device during the process of being picked up have representative parameter values during the transformation process.
  • the first feature value may be set in advance, and the embodiment of the present invention does not limit the plurality of feature values corresponding to the acceleration when the device is picked up and the number of feature values of the plurality of feature values corresponding to the angle.
  • the detecting unit can detect a parameter change of the sensor included in the device.
  • the detecting unit can obtain the parameter conversion of the acceleration and the angle of the device by detecting the acceleration sensor and the gyroscope, or a six-axis gyroscope.
  • the determining unit changes from the sleep state to the awake state according to the wake-up instruction, and determines the state of the first remote control code corresponding to the operation instruction according to the operation instruction and the preset correspondence relationship, thereby facilitating the user to perform the control operation on the remotely controlled device.
  • the detecting unit 401 is further configured to detect the input remote control off command, and send the sleep command to the determining unit 402 according to the remote control off command;
  • the determining unit 402 is further configured to change from the awake state to the sleep state according to the sleep instruction, wherein the awake state refers to the determining unit 402 being capable of receiving the operation instruction sent by the detecting unit 401, and according to the operation instruction and the preset Corresponding relationship determines a state of the first remote control code corresponding to the operation instruction, and the sleep state refers to a state in which the determination unit 402 stops receiving the operation instruction sent by the detection unit.
  • the remote control closing command is similar to the above-mentioned remote control opening command, and may also be detected by the detecting unit
  • the corresponding motion parameters are detected to be triggered, and may be triggered by a user through a physical button or the like, which is not described herein again in the embodiment of the present invention.
  • the remote control off command is triggered by the detecting unit to detect the corresponding motion parameter
  • the detecting unit detects that the motion parameter of the device meets the second state parameter
  • sending a sleep command to the determining unit according to the remote control closing command So that the determining unit changes from the awake state to the sleep state according to the sleep instruction, and determines a state of the first remote control code corresponding to the operation instruction according to the operation instruction and the preset correspondence relationship, where the second state parameter is when the device is put down The second characteristic value corresponding to the acceleration and the angle.
  • the second feature value includes a plurality of feature values corresponding to the acceleration when the device is lowered, and a plurality of feature values corresponding to the angle, and the second feature value can be obtained by multiple tests, that is, the second feature value refers to the During the process of being placed down, the acceleration and angle of the device have representative parameter values during the change process.
  • the second feature value may be set in advance, and the number of feature values of the plurality of feature values corresponding to the acceleration and the angle corresponding to the angle when the device is picked up is not limited.
  • the apparatus may further include an identification unit configured to perform voiceprint recognition on the voice of the target user to obtain a voiceprint feature of the target user.
  • the remotely controlled device When the remotely controlled device is controlled by a voice command, in order to prevent any person from being able to control the remotely controlled device through a voice command, the problem of misoperation is easily caused, and the voiceprint of the target user's voice can be recognized. Thereby, the voiceprint feature of the target user is obtained, and the number of the target users may be one or multiple.
  • voiceprint recognition reference may be made to related technologies, and the embodiments of the present invention are not described herein.
  • the absolute value of the emission angle of the transmitting unit 404 is greater than 9 degrees, that is, the emission angle of the infrared transmitting tube is greater than 9 degrees or less than -9 degrees.
  • the absolute value of the emission angle may be 15 degrees. Or 30 degrees, etc., by increasing the emission angle of the infrared transmitting tube, the terminal can remotely control the remotely controlled device at any angle for convenient operation.
  • An embodiment of the present invention provides an infrared remote control device, which determines a first remote control code corresponding to the operation instruction by detecting an input operation instruction and according to the operation instruction and a preset correspondence relationship, wherein the preset Corresponding relationship at least includes a mapping relationship between the operation instruction and the first remote control code, and then, according to the first remote control code, modulating the infrared modulation signal corresponding to the first remote control code, and transmitting the infrared signal according to the infrared modulation signal, so that the device can be At When the black screen state, the bright screen state or the display interface of any non-remote control type application, the remotely controlled device is controlled by a simple operation instruction, the operation is convenient and simple, and the device is controlled to control the remotely controlled device. Power consumption.

Abstract

Provided in the present invention are an infrared remote control method, a terminal and an apparatus, which are applicable to the field of terminal technology, and are used for reducing the energy consumption and complexity of remotely controlling remotely controlled devices. When the terminal is in a blank screen state, or a lit screen locked state, or the display interface of the terminal is an interface besides the remote control class application operation interface, the method comprises: detecting the inputted operation instruction; determining, according to the operation instruction and preset corresponding relationship, a first remote control code corresponding to the operation instruction, the preset corresponding relationship at least comprising the mapping relationship between the operation instruction and the first remote control code; transmitting, according to the first remote control code, an infrared signal to control the remotely controlled device which receives the infrared signal.

Description

红外遥控方法、终端及装置Infrared remote control method, terminal and device 技术领域Technical field
本发明涉及终端技术领域,尤其涉及一种红外遥控方法、终端及装置。The present invention relates to the field of terminal technologies, and in particular, to an infrared remote control method, terminal, and device.
背景技术Background technique
随着终端技术的快速发展,出现了电视、空调、DVD和机顶盒等多种智能设备,这些智能设备都配有红外遥控器,以方便用户对这些智能设备进行控制,比如,用户在观看电视时,可以通过电视和机顶盒的红外遥控器协同对电视进行操作。然而,由于一些原因,有时候很难找到智能设备对应的红外遥控器,从而给用户的使用带来不便。With the rapid development of terminal technologies, there are a variety of smart devices such as TVs, air conditioners, DVDs, and set-top boxes. These smart devices are equipped with infrared remote controls to facilitate users to control these smart devices, for example, when users watch TV. The TV can be operated in cooperation with the infrared remote control of the TV and the set top box. However, for some reasons, it is sometimes difficult to find an infrared remote controller corresponding to the smart device, thereby causing inconvenience to the user.
目前,大多数移动终端都具有红外遥控的功能,比如,智能手机,用户通过将智能手机与智能设备进行绑定,就可以通过智能手机上的红外遥控功能,对绑定的智能设备进行控制。但是,当用户通过智能手机对智能设备进行控制时,需要先进行解锁,并打开提供遥控功能的应用程序,进入该应用程序的遥控界面才可以进行遥控操作,整个过程操作复杂、耗费时间且能耗较大。At present, most mobile terminals have the function of infrared remote control. For example, a smart phone, by binding a smart phone with a smart device, can control the bound smart device through the infrared remote control function on the smart phone. However, when the user controls the smart device through the smart phone, the user needs to unlock first, and open the application that provides the remote control function, and enter the remote control interface of the application to perform the remote control operation. The whole process is complicated, time-consuming, and capable of More expensive.
发明内容Summary of the invention
为克服相关技术中存在的问题,本公开提供一种红外遥控方法及装置。To overcome the problems in the related art, the present disclosure provides an infrared remote control method and apparatus.
第一方面,提供一种红外遥控方法,应用于终端,当终端处于黑屏状态、或者亮屏未解锁状态、或者终端的显示界面为遥控类应用操作界面之外的其他界面时,所述方法包括:In a first aspect, an infrared remote control method is provided, which is applied to a terminal, when the terminal is in a black screen state, or the bright screen is not unlocked, or the display interface of the terminal is another interface other than the remote control application operation interface, the method includes :
检测输入的操作指令;Detecting input operation instructions;
根据所述操作指令和预设的对应关系,确定与所述操作指令对应的第一遥控编码,其中,所述预设的对应关系至少包括所述操作指令与所述第一遥控编码间的映射关系;Determining, according to the operation instruction and the preset correspondence, a first remote control code corresponding to the operation instruction, where the preset correspondence includes at least a mapping between the operation instruction and the first remote control code relationship;
根据所述第一遥控编码发射红外信号,以控制接收所述红外信号的被 遥控设备。Transmitting an infrared signal according to the first remote control code to control receiving the infrared signal Remote control device.
其中,该终端的处理器可以为应用处理器,也可以为微处理器。当该处理器为微处理器时,应用处理器在终端处于黑屏状态或亮屏未解锁状态时,可以保持休眠状态,而微处理器作为协处理器保持开启状态,从而降低终端的功耗。微处理器与红外发射模块电性连接,具体连接方式包括以下任意一种:通过通用输入输出GPIO进行连接、或者串行外设接口SPI进行连接、或者串行接口RS-232进行连接、或者通过红外输出调制解调芯片进行连接等等。The processor of the terminal may be an application processor or a microprocessor. When the processor is a microprocessor, the application processor can remain in a sleep state when the terminal is in a black screen state or a bright screen unlocked state, and the microprocessor remains as a coprocessor, thereby reducing power consumption of the terminal. The microprocessor is electrically connected to the infrared transmitting module, and the specific connection manner includes any one of the following: connecting through a general-purpose input/output GPIO, or a serial peripheral interface SPI, or a serial interface RS-232, or passing The infrared output modulation and demodulation chip is connected and the like.
另外,预设的对应关系是指遥控编码与预设操作指令之间的映射关系,且当该预设的对应关系包括两个以上的映射关系时,不同的遥控编码对应不同的预设操作指令,该预设操作指令的指令类型可以包括运动指令、触摸指令和语音指令三种,且每一种的预设操作指令可以包括一个或者多个操作指令。In addition, the preset correspondence relationship refers to a mapping relationship between the remote control code and the preset operation instruction, and when the preset correspondence includes more than two mapping relationships, different remote control codes correspond to different preset operation instructions. The instruction type of the preset operation instruction may include three types of motion instructions, touch instructions, and voice instructions, and each of the preset operation instructions may include one or more operation instructions.
结合第一方面,在第一方面的第一种可能的实现方式中,预设的对应关系至少包括两个操作指令与至少两个遥控编码间的映射关系,且至少两个遥控编码至少对应两个所述被遥控设备。With reference to the first aspect, in a first possible implementation manner of the first aspect, the preset correspondence includes at least a mapping relationship between the two operation instructions and the at least two remote control codes, and the at least two remote control codes correspond to at least two The remotely controlled device.
进一步的,当该预设的对应关系至少包括两个操作指令与至少两个遥控编码间的映射关系时,该至少两个遥控编码至少对应两个被遥控设备,也即是,该预设的对应关系可以同时包括多个被遥控设备对应的操作指令与遥控编码之间的映射关系,即该终端可以对多个不同的智能设备进行遥控,从而可以增加对被遥控设备进行控制的范围和灵活性。Further, when the preset correspondence includes at least a mapping relationship between two operation instructions and at least two remote control codes, the at least two remote control codes correspond to at least two remotely controlled devices, that is, the preset The correspondence relationship may include a mapping relationship between the operation command corresponding to the remote control device and the remote control code, that is, the terminal may remotely control a plurality of different smart devices, thereby increasing the range and flexibility of controlling the remotely controlled device. Sex.
结合第一方面或者第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述操作指令为下述指令类型中的至少一个操作指令:运动指令、触摸指令、语音指令。In conjunction with the first aspect or the first possible implementation of the first aspect, in a second possible implementation manner of the first aspect, the operation instruction is at least one of the following instruction types: a motion instruction, Touch commands, voice commands.
结合第一方面至第一方面的第二种可能的实现方式中的任一种可能的实现方式,在第一方面的第三种可能的实现方式中,在获取输入的操作指令之前,所述方法还包括:With reference to any one of the possible implementations of the first aspect to the second possible implementation of the first aspect, in a third possible implementation of the first aspect, before the obtaining the input operation instruction, The method also includes:
检测输入的遥控开启指令;Detecting the input remote open command;
根据所述遥控开启指令,启动所述终端开始检测输入的操作指令。And according to the remote start command, the terminal starts to start detecting an input operation instruction.
其中,该遥控开启指令可以由终端检测相应的运动参数进行触发,也 可以由用户进行触发,且用户可以通过物理按键、或者触摸手势、或者语音指令等进行触发,该物理按键、触摸手势和语音指令可以事先进行设置,也可以由用户进行自定义等。Wherein, the remote start command can be triggered by the terminal detecting the corresponding motion parameter, and The triggering can be performed by the user, and the user can trigger by physical buttons, touch gestures, voice commands, etc., and the physical buttons, touch gestures, and voice commands can be set in advance, or can be customized by the user.
结合第一方面至第一方面的第三种可能的实现方式中任一种可能的实现方式,在第一方面的第四种可能的实现方式中,在根据所述第一遥控编码发射红外信号之后,还包括:With reference to any one of the possible implementations of the first aspect to the third possible implementation of the first aspect, in a fourth possible implementation of the first aspect, the infrared signal is transmitted according to the first remote control code After that, it also includes:
检测输入的遥控关闭指令;Detecting the input remote closing command;
根据所述遥控关闭指令,控制所述终端停止检测输入的操作指令。And according to the remote control closing instruction, the terminal is controlled to stop detecting the input operation instruction.
其中,该遥控关闭指令与上述遥控开启指令类似,也可以由终端检测相应的运动参数进行触发,也可以由用户进行触发。The remote control closing command is similar to the remote control opening command, and may be triggered by the terminal detecting the corresponding motion parameter, or may be triggered by the user.
结合第一方面至第一方面的第四种可能的实现方式中的任一种,在第一方面的第五种可能的实现方式中,所述红外发射模块的发射角度的绝对值大于9度,也即是,红外发射模块的发射角度大于9度,或者小于-9度;也即是,该红外发射管的发射角度大于9度或者小于-9度,比如,该发射角度的绝对值可以为15度,或者30度等,通过增大红外发射管的发射角度可以使该终端在任意角度都可以对被遥控的设备进行远距离的控制,以方便操作。With reference to any one of the first aspect to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the absolute value of the emission angle of the infrared transmitting module is greater than 9 degrees That is, the emission angle of the infrared emission module is greater than 9 degrees, or less than -9 degrees; that is, the emission angle of the infrared emission tube is greater than 9 degrees or less than -9 degrees, for example, the absolute value of the emission angle may be For 15 degrees, or 30 degrees, etc., by increasing the emission angle of the infrared transmitting tube, the terminal can remotely control the remotely controlled device at any angle for convenient operation.
第二方面,提供一种终端,述终端包括传感器、处理器、红外发射模块,当终端处于黑屏状态、或者亮屏未解锁状态、或者终端的显示界面为遥控类应用操作界面之外的其他界面时,处理器保持开启状态;In a second aspect, a terminal is provided, where the terminal includes a sensor, a processor, and an infrared transmitting module, and the terminal is in a black screen state, or the bright screen is not unlocked, or the display interface of the terminal is a remote control application operating interface. When the processor remains on;
传感器,用于检测输入的操作指令,并发送所述操作指令至处理器;a sensor, configured to detect an input operation instruction, and send the operation instruction to the processor;
处理器,用于根据所述操作指令和预设的对应关系,确定与所述操作指令对应的第一遥控编码,其中,预设的对应关系至少包括所述操作指令与第一遥控编码间的映射关系;a processor, configured to determine, according to the operation instruction and a preset correspondence, a first remote control code corresponding to the operation instruction, where the preset correspondence includes at least the operation instruction and the first remote control code Mapping relations;
处理器,还用于根据第一遥控编码调制第一遥控编码对应的红外调制信号,并发送红外调制信号至红外发射模块;The processor is further configured to: modulate an infrared modulation signal corresponding to the first remote control code according to the first remote control code, and send the infrared modulation signal to the infrared emission module;
红外发射模块,用于根据处理器发送的红外调制信号发射红外信号,以控制接收红外信号的被遥控设备。The infrared transmitting module is configured to emit an infrared signal according to the infrared modulation signal sent by the processor to control the remotely controlled device that receives the infrared signal.
其中,传感器和处理器可以是独立设定的两个器件,也可以集成在同一集成电路芯片中,作为一个整体,本发明实施例对此不作限定。 The sensor and the processor may be two devices that are independently configured, and may be integrated into the same integrated circuit chip. As a whole, the embodiment of the present invention does not limit this.
结合第二方面,在第二方面的第一种可能的实现方式中,预设的对应关系至少包括两个操作指令与至少两个遥控编码间的映射关系,且至少两个遥控编码至少对应两个所述被遥控设备。With reference to the second aspect, in a first possible implementation manner of the second aspect, the preset correspondence includes at least a mapping relationship between the two operation instructions and the at least two remote control codes, and the at least two remote control codes correspond to at least two The remotely controlled device.
当该预设的对应关系至少包括两个操作指令与至少两个遥控编码间的映射关系时,该至少两个遥控编码至少对应两个被遥控设备,也即是,该预设的对应关系可以同时包括多个被遥控设备对应的操作指令与遥控编码之间的映射关系,即该终端可以对多个不同的智能设备进行遥控,从而可以增加对被遥控设备进行控制的范围和灵活性。When the preset correspondence includes at least two mappings between the two operation instructions and the at least two remote control codes, the at least two remote control codes correspond to at least two remotely controlled devices, that is, the preset correspondence may be At the same time, the mapping relationship between the operation command corresponding to the remote control device and the remote control code is included, that is, the terminal can remotely control a plurality of different smart devices, thereby increasing the scope and flexibility of controlling the remotely controlled device.
结合第二方面或者第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述操作指令为下述指令类型中的至少一个操作指令:运动指令、触摸指令、语音指令。With reference to the second aspect, or the first possible implementation manner of the second aspect, in the second possible implementation manner of the second aspect, the operation instruction is at least one of the following instruction types: a motion instruction, Touch commands, voice commands.
结合第二方面至第二方面的第二种可能的实现方式中的任一种可能的实现方式,在第二方面的第三种可能的实现方式中,With reference to any one of the possible implementations of the second aspect to the second possible implementation of the second aspect, in a third possible implementation manner of the second aspect,
传感器,还用于检测输入的遥控开启指令,根据遥控开启指令发送唤醒指令至处理器;The sensor is further configured to detect an input remote start command, and send a wake-up command to the processor according to the remote start command;
处理器,还用于根据唤醒指令从休眠状态变为唤醒状态,其中,唤醒状态是指处理器能够接收传感器发送的所述操作指令,并根据所述操作指令和预设的对应关系,确定与所述操作指令对应的第一遥控编码的状态;休眠状态是指所述处理器停止接收所述传感器发送的所述操作指令的状态。The processor is further configured to change from the sleep state to the awake state according to the wake-up instruction, where the awake state refers to the processor being capable of receiving the operation instruction sent by the sensor, and determining, according to the operation instruction and the preset correspondence relationship, The state of the first remote control code corresponding to the operation instruction; the sleep state refers to a state in which the processor stops receiving the operation instruction sent by the sensor.
也即是,处理器在被唤醒之前,该处理器保持休眠状态,不能接收传感器发送的操作指令,当传感器检测到遥控开启指令后,传感器中的状态机会发送一个中断信号到处理器,以使该处理器从休眠状态转换为唤醒状态,进行相应的操作。That is, before the processor wakes up, the processor remains in a sleep state and cannot receive an operation instruction sent by the sensor. When the sensor detects the remote control on command, the state machine in the sensor sends an interrupt signal to the processor, so that The processor transitions from a sleep state to an awake state and performs corresponding operations.
其中,该遥控开启指令可以由传感器检测相应的运动参数进行触发,或者通过检测相应的触摸手势、语音指令等进行触发,该触摸手势和语音指令可以事先进行设置,也可以由用户进行自定义等。The remote control opening command may be triggered by the sensor detecting the corresponding motion parameter, or triggered by detecting a corresponding touch gesture, a voice instruction, etc., the touch gesture and the voice instruction may be set in advance, or may be customized by the user, etc. .
可选的,用户也可以通过物理按键进行触发,比如,用户可以通过点击或双击音量键、锁屏键等进行触发,该物理按键可以事先进行设置,也可以由用户进行自定义等,通过物理按键进行触发时可以避免因为误操作 而对被遥控设备进行错误的遥控。Optionally, the user can also trigger by using a physical button. For example, the user can trigger by clicking or double-clicking the volume key, the lock screen key, etc., the physical button can be set in advance, or can be customized by the user, etc., through physical Avoid accidental operation when the button is triggered The wrong remote control is performed on the remote control device.
结合第二方面至第二方面的第三种可能的实现方式中的任一种可能的实现方式,在第二方面的第四种可能的实现方式中,With reference to any one of the possible implementations of the second aspect to the third possible implementation of the second aspect, in a fourth possible implementation manner of the second aspect,
传感器,还用于检测输入的遥控关闭指令,根据遥控关闭指令发送休眠指令至处理器;The sensor is further configured to detect an input remote control off command, and send a sleep instruction to the processor according to the remote control off command;
处理器,还用于根据休眠指令从唤醒状态变为休眠状态,其中,唤醒状态是指处理器能够接收传感器发送的所述操作指令,并根据所述操作指令和预设的对应关系,确定与操作指令对应的第一遥控编码的状态;休眠状态是指所述处理器停止接收所述传感器发送的所述操作指令的状态。The processor is further configured to change from the awake state to the sleep state according to the sleep instruction, where the awake state is that the processor is capable of receiving the operation instruction sent by the sensor, and determining, according to the operation instruction and the preset correspondence relationship, The state of the first remote control code corresponding to the operation command; the sleep state refers to a state in which the processor stops receiving the operation command sent by the sensor.
其中,该遥控关闭指令与上述遥控开启指令类似,也可以由传感器检测相应的运动参数进行触发,也可以由用户通过物理按键等进行触发,本发明实施例在此不再赘述。The remote control off command is similar to the above-mentioned remote control open command, and may be triggered by the sensor to detect the corresponding motion parameter, or may be triggered by the user through a physical button or the like, which is not described herein again.
结合第二方面至第二方面的第四种可能的实现方式中的任一种,在第二方面的第五种可能的实现方式中,所述红外发射模块的发射角度的绝对值大于9度;也即是,该红外发射管的发射角度大于9度或者小于-9度,比如,该发射角度的绝对值可以为15度,或者30度等,通过增大红外发射管的发射角度可以使该终端在任意角度都可以对被遥控的设备进行远距离的控制,以方便操作。With reference to any one of the second aspect to the fourth possible implementation of the second aspect, in a fifth possible implementation manner of the second aspect, the absolute value of the emission angle of the infrared transmitting module is greater than 9 degrees That is, the emission angle of the infrared emission tube is greater than 9 degrees or less than -9 degrees. For example, the absolute value of the emission angle may be 15 degrees, or 30 degrees, etc., by increasing the emission angle of the infrared emission tube. The terminal can remotely control the remotely controlled device at any angle for convenient operation.
结合第二方面至第二方面的第五种可能的实现方式中的任一种,在第二方面的第六种可能的实现方式中,所述处理器为微处理器,其中,所述微处理器与所述红外发射模块电性连接;With reference to any one of the second aspect to the fifth possible implementation of the second aspect, in a sixth possible implementation manner of the second aspect, the processor is a microprocessor, where the micro The processor is electrically connected to the infrared transmitting module;
所述终端还包括应用处理器;The terminal further includes an application processor;
当所述终端处于黑屏状态或者亮屏未解锁状态时,微处理器保持开启状态,且所述应用处理器处于休眠状态。When the terminal is in a black screen state or a bright screen unlocked state, the microprocessor remains in an on state, and the application processor is in a sleep state.
其中,微处理器与红外发射模块电性连接,具体连接方式包括以下任意一种:通过通用输入输出GPIO进行连接、或者串行外设接口SPI进行连接、或者串行接口RS-232进行连接、或者通过红外输出调制解调芯片进行连接等等,本发明实施例对此不作限定。The microprocessor and the infrared transmitting module are electrically connected, and the specific connection manner includes any one of the following: connecting through a general-purpose input/output GPIO, or connecting a serial peripheral interface SPI, or connecting a serial interface RS-232, Or the invention is not limited by the embodiment of the present invention.
第三方面,提供一种红外遥控装置,所述装置处于黑屏状态、或者亮屏未解锁状态、或者所述装置的显示界面为遥控类应用操作界面之外的其 他界面,所述装置包括:In a third aspect, an infrared remote control device is provided, the device being in a black screen state, or a bright screen unlocked state, or the display interface of the device is a remote control application operating interface In his interface, the device includes:
检测单元,用于检测输入的操作指令,并发送所述操作指令至确定单元;a detecting unit, configured to detect the input operation instruction, and send the operation instruction to the determining unit;
确定单元,用于根据所述操作指令和预设的对应关系,确定与所述操作指令对应的第一遥控编码,其中,预设的对应关系至少包括所述操作指令与第一遥控编码间的映射关系;a determining unit, configured to determine, according to the operation instruction and a preset correspondence, a first remote control code corresponding to the operation instruction, where the preset correspondence includes at least the operation instruction and the first remote control code Mapping relations;
调制单元,用于根据第一遥控编码调制第一遥控编码对应的红外调制信号,并发送红外调制信号至发射单元;a modulating unit, configured to modulate an infrared modulation signal corresponding to the first remote control code according to the first remote control code, and send the infrared modulation signal to the transmitting unit;
发射单元,用于根据调制单元发送的红外调制信号发射红外信号,以控制接收红外信号的被遥控设备。And a transmitting unit, configured to transmit an infrared signal according to the infrared modulation signal sent by the modulation unit, to control the remotely controlled device that receives the infrared signal.
结合第三方面,在第三方面的第一种可能的实现方式中,预设的对应关系至少包括两个操作指令与至少两个遥控编码间的映射关系,且所述至少两个遥控编码至少对应两个被遥控设备。With reference to the third aspect, in a first possible implementation manner of the third aspect, the preset correspondence includes at least a mapping relationship between the two operation instructions and the at least two remote control codes, and the at least two remote control codes are at least Corresponds to two remotely controlled devices.
结合第三方面或者第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,所述操作指令为下述指令类型中的至少一个操作指令:运动指令、触摸指令、语音指令。With reference to the third aspect, or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the operation instruction is at least one of the following instruction types: a motion instruction, Touch commands, voice commands.
结合第三方面至第三方面的第二种可能的实现方式中的任一种可能的实现方式,在第三方面的第三种可能的实现方式中,还包括:With reference to the third possible implementation manner of the third aspect to the third possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the method further includes:
所述检测单元,还用于检测输入的遥控开启指令,根据所述遥控开启指令发送唤醒指令至所述确定单元;The detecting unit is further configured to detect an input remote start command, and send a wake-up command to the determining unit according to the remote open command;
所述确定单元,还用于根据所述唤醒指令从休眠状态变为唤醒状态,其中,The determining unit is further configured to change from a sleep state to an awake state according to the wake-up instruction, where
所述唤醒状态是指所述确定单元能够接收所述检测单元发送的所述操作指令,并根据所述操作指令和预设的对应关系,确定与所述操作指令对应的第一遥控编码的状态;The awake state is that the determining unit is capable of receiving the operation instruction sent by the detecting unit, and determining a state of the first remote control code corresponding to the operation instruction according to the operation instruction and a preset correspondence relationship. ;
所述休眠状态是指所述确定单元停止接收所述检测单元发送的所述操作指令的状态。The sleep state refers to a state in which the determining unit stops receiving the operation instruction sent by the detecting unit.
结合第三方面至第三方面的第三种可能的实现方式中的任一种可能的实现方式,在第三方面的第四种可能的实现方式中, With reference to any one of the possible implementations of the third aspect to the third possible implementation of the third aspect, in a fourth possible implementation manner of the third aspect,
所述检测单元,还用于检测输入的遥控关闭指令,根据所述遥控关闭指令发送休眠指令至所述确定单元;The detecting unit is further configured to detect an input remote control closing instruction, and send a sleep instruction to the determining unit according to the remote closing command;
所述确定单元,还用于根据所述休眠指令从唤醒状态变为休眠状态,其中,The determining unit is further configured to change from an awake state to a sleep state according to the sleep instruction, where
所述唤醒状态是指所述确定单元能够接收所述检测单元发送的所述操作指令,并根据所述操作指令和预设的对应关系,确定与所述操作指令对应的第一遥控编码的状态;The awake state is that the determining unit is capable of receiving the operation instruction sent by the detecting unit, and determining a state of the first remote control code corresponding to the operation instruction according to the operation instruction and a preset correspondence relationship. ;
所述休眠状态是指所述确定单元停止接收所述检测单元发送的所述操作指令的状态。The sleep state refers to a state in which the determining unit stops receiving the operation instruction sent by the detecting unit.
结合第三方面至第三方面的第四种可能的实现方式中的任一种可能的实现方式,在第三方面的第五种可能的实现方式中,所述发射单元的发射角度的绝对值大于9度。With reference to any one of the possible implementations of the third aspect to the fourth possible implementation of the third aspect, in a fifth possible implementation manner of the third aspect, the absolute value of the emission angle of the transmitting unit More than 9 degrees.
本发明实施例提供的一种红外遥控方法、终端及装置,通过检测输入的操作指令,根据该操作指令和预设的对应关系,确定与该操作指令对应的第一遥控编码,该预设的对应关系至少包括该操作指令与第一遥控编码间的映射关系,之后,根据第一遥控编码发射红外信号,从而可以在终端处于黑屏状态、或未解锁状态、或者解锁后的任一种显示界面下,对被遥控的设备进行控制操作,操作方便简单,且减小了终端对被遥控的设备进行控制操作时的功耗。The infrared remote control method, the terminal and the device provided by the embodiment of the present invention determine the first remote control code corresponding to the operation instruction according to the operation instruction and the preset correspondence relationship by detecting the input operation instruction, and the preset The mapping relationship includes at least a mapping relationship between the operation instruction and the first remote control code, and then transmitting an infrared signal according to the first remote control code, so that the terminal can be in a black screen state, an unlocked state, or an unlocked display interface. Under the control operation of the remotely controlled device, the operation is convenient and simple, and the power consumption of the terminal when controlling the remotely controlled device is reduced.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only some of the present invention. For the embodiments, those skilled in the art can obtain other drawings according to the drawings without any creative work.
图1为本发明实施例提供的一种终端的部分结构框图;1 is a block diagram showing a partial structure of a terminal according to an embodiment of the present invention;
图2为本发明实施例提供的一种终端与被遥控设备的硬件结构框图;2 is a block diagram showing the hardware structure of a terminal and a remotely controlled device according to an embodiment of the present invention;
图3为本发明实施例提供的一种红外遥控方法的流程示意图;3 is a schematic flowchart of an infrared remote control method according to an embodiment of the present invention;
图4为本发明实施例提供的一种运动指令中操作指令的示意图;4 is a schematic diagram of an operation instruction in a motion instruction according to an embodiment of the present invention;
图5为本发明实施例提供的一种触摸指令中操作指令的示意图;FIG. 5 is a schematic diagram of an operation instruction in a touch instruction according to an embodiment of the present disclosure;
图6为本发明实施例提供的一种红外驱动电路的结构示意图; FIG. 6 is a schematic structural diagram of an infrared driving circuit according to an embodiment of the present invention;
图7为本发明实施例提供的另一种红外遥控方法的流程示意图;FIG. 7 is a schematic flowchart diagram of another infrared remote control method according to an embodiment of the present invention;
图8为本发明实施例提供的又一种红外遥控方法的流程示意图;FIG. 8 is a schematic flowchart diagram of still another infrared remote control method according to an embodiment of the present invention;
图9为本发明实施例提供的一种终端的结构示意图;FIG. 9 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure;
图10为本发明实施例提供的另一种终端的结构示意图;FIG. 10 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure;
图11为本发明实施例提供的一种红外遥控装置的结构示意图。FIG. 11 is a schematic structural diagram of an infrared remote control device according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供的红外遥控方法可以由终端执行,该终端可以为手机、平板电脑、笔记本电脑、UMPC(Ultra-mobile Personal Computer,超级移动个人计算机)、上网本、PDA(Personal Digital Assistant,个人数字助理)等等。本发明实施例以该终端为手机为例进行说明,图1示出的是与本发明各实施例相关的手机的部分结构的框图。The infrared remote control method provided by the embodiment of the present invention may be executed by a terminal, which may be a mobile phone, a tablet computer, a notebook computer, an UMPC (Ultra-mobile Personal Computer), a netbook, a PDA (Personal Digital Assistant, personal digital). Assistant) and so on. The embodiment of the present invention is described by taking the terminal as a mobile phone as an example. FIG. 1 is a block diagram showing a partial structure of a mobile phone related to various embodiments of the present invention.
本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对手机的结构造成限定。例如,该手机还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。It will be understood by those skilled in the art that the structure shown in FIG. 1 is merely illustrative and does not limit the structure of the mobile phone. For example, the handset may also include more or fewer components than shown in FIG. 1, or have a different configuration than that shown in FIG.
如图1所示,该终端10包括:存储器101、处理组件102、传感器组件103、多媒体组件104、电源组件105、输入\输出接口106以及红外发射模块107等。As shown in FIG. 1, the terminal 10 includes a memory 101, a processing component 102, a sensor component 103, a multimedia component 104, a power component 105, an input/output interface 106, an infrared transmitting module 107, and the like.
下面结合图1对终端10的各个构成部件进行具体的介绍:The specific components of the terminal 10 will be specifically described below with reference to FIG. 1 :
存储器101可用于存储数据、软件程序以及模块;主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端10的使用所创建的数据(比如音频数据、图像数据、电话本等)等。此外,存储器101可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。 The memory 101 can be used to store data, software programs, and modules; and mainly includes a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.) The storage data area can store data (such as audio data, image data, phone book, etc.) created according to the use of the terminal 10. Further, the memory 101 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
处理组件102是终端10的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器101内的软件程序和/或模块,以及调用存储在存储器101内的数据,执行终端10的各种功能和处理数据,从而对终端进行整体监控,该处理组件102可以是处理器。可选的,处理器可包括一个或多个处理单元;优选的,处理器可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器中。当然,该处理组件102还可以包括微处理器,该微处理器可以代替处理器执行一部分指令或具有处理器的部分功能,当然,该微处理器可以集成到处理器中,也可以单独设立,该微处理器可以是传感器控制中心SensorHub,或者单片机MCU等等。 Processing component 102 is the control center of terminal 10, connecting various portions of the entire terminal using various interfaces and lines, by running or executing software programs and/or modules stored in memory 101, and recalling data stored in memory 101, The terminal 10 is integrally monitored by performing various functions and processing data of the terminal 10, which may be a processor. Optionally, the processor may include one or more processing units; preferably, the processor may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, etc., and modulates The demodulation processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor. Of course, the processing component 102 can also include a microprocessor that can execute a portion of the instructions in place of the processor or have some of the functions of the processor. Of course, the microprocessor can be integrated into the processor or can be set up separately. The microprocessor can be a sensor control center SensorHub, or a microcontroller MCU or the like.
传感器组件103包括一个或多个传感器,用于为终端10提供各个方面的状态评估。其中,传感器组件103可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器等,通过传感器组件103可以检测到终端10的加速/减速、方位、打开/关闭状态,组件的相对定位,或终端10的温度变化等。此外,传感器组件103还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。 Sensor assembly 103 includes one or more sensors for providing terminal 10 with various aspects of status assessment. Wherein, the sensor component 103 can include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor or a temperature sensor, etc., through the sensor component 103, the acceleration/deceleration, orientation, opening/closing state of the terminal 10, and relative positioning of the components can be detected. Or the temperature change of the terminal 10 or the like. In addition, sensor assembly 103 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
多媒体组件104在终端10和用户之间的提供一个输出接口的屏幕,比如,该屏幕可以为液晶显示屏、触摸面板。当屏幕为触摸面板时,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。此外,多媒体组件104还包括一个前置摄像头和/或后置摄像头。当终端10处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 104 provides a screen for providing an output interface between the terminal 10 and the user. For example, the screen may be a liquid crystal display or a touch panel. When the screen is a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation. In addition, the multimedia component 104 also includes a front camera and/or a rear camera. When the terminal 10 is in an operation mode such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
电源组件105用于为终端10的各个组件提供电源,电源组件105可以包括电源管理系统,一个或多个电源,及其他与终端10生成、管理和分配电力相关联的组件。输入\输出接口106为处理组件102和外围接口 模块之间提供接口,比如,外围接口模块可以键盘、鼠标等。The power supply assembly 105 is used to provide power to various components of the terminal 10, which may include a power management system, one or more power supplies, and other components associated with the terminal 10 generating, managing, and distributing power. Input\output interface 106 is a processing component 102 and a peripheral interface Interfaces are provided between modules. For example, peripheral interface modules can be keyboards, mice, and the like.
红外发射模块107用于接收处理组件102的触发指令,即处理器或具有处理功能的其他处理单元的触发指令,比如微处理器的触发指令等,该红外发射模块107可以基于接收的不同的触发指令发射出不同的红外信号,该红外发射模块107可以由红外发射管和红外驱动电路组成,其中红外发射模块107发射红外信号的发射角度取决于使用的红外发射管的发射角度。The infrared transmitting module 107 is configured to receive a triggering instruction of the processing component 102, that is, a trigger instruction of a processor or other processing unit having a processing function, such as a trigger instruction of a microprocessor, etc., and the infrared transmitting module 107 can be based on different triggers received. The command emits different infrared signals, and the infrared emitting module 107 can be composed of an infrared transmitting tube and an infrared driving circuit, wherein the emission angle of the infrared transmitting module 107 to emit the infrared signal depends on the emission angle of the infrared transmitting tube used.
尽管未示出,终端10还可以包括音频组件和通信组件等,比如,音频组件包括麦克风,通信组件包括WiFi(wireless fidelity,无线保真)模块、蓝牙模块等,本发明实施例在此不再赘述。Although not shown, the terminal 10 may further include an audio component and a communication component, etc., for example, the audio component includes a microphone, and the communication component includes a wireless (Wireless Fidelity) module, a Bluetooth module, etc., and the embodiment of the present invention is no longer used herein. Narration.
如图2所示,为一种终端与被遥控设备的硬件结构图。该终端包括处理器、存储器、触摸屏、运动传感器、语音识别器和红外发射模块,该红外发射模块可以包括红外驱动电路和红外发射管。其中,该触摸屏、运动传感器或语音识别器向处理器上报检测的信息,当然,该处理器也可以实时的对触摸屏、运动传感器或语音识别器等进行检测。此外,处理器还可以从存储器中查询并获取数据,比如,获取的数据为遥控编码等,处理器可以根据遥控编码调制对应的红外调制信号,并将该红外调制信号发送至红外发射模块,以使红外发射模块根据红外调制信号发射红外信号。被遥控设备包括红外接收模块、解调器、控制器和显示器等,其中,该红外接收模块用于接收红外信号,该解调器可以对红外信号进行解调,得到相应的控制信息,该控制器可以根据该控制信息对被遥控设备进行相应的控制,并通过显示器进行相应的显示。As shown in FIG. 2, it is a hardware structure diagram of a terminal and a remotely controlled device. The terminal includes a processor, a memory, a touch screen, a motion sensor, a voice recognizer, and an infrared transmitting module, and the infrared emitting module may include an infrared driving circuit and an infrared transmitting tube. The touch screen, the motion sensor or the voice recognizer reports the detected information to the processor. Of course, the processor can also detect the touch screen, the motion sensor or the voice recognizer in real time. In addition, the processor can also query and acquire data from the memory, for example, the acquired data is a remote control code, etc., the processor can modulate the corresponding infrared modulation signal according to the remote control code, and send the infrared modulation signal to the infrared emission module to The infrared transmitting module is configured to emit an infrared signal according to the infrared modulation signal. The remote control device includes an infrared receiving module, a demodulator, a controller, a display, and the like, wherein the infrared receiving module is configured to receive an infrared signal, and the demodulator can demodulate the infrared signal to obtain corresponding control information, and the control The remote control device can be correspondingly controlled according to the control information, and correspondingly displayed through the display.
本领域普通技术人员可以理解,图2所示的硬件结构仅为示意,其并不对中终端和被遥控设备的结构造成限定。该终端和被遥控设备还可包括比图2中所示更多或者更少的组件,或者具有与图2所示不同的配置。It will be understood by those skilled in the art that the hardware structure shown in FIG. 2 is merely illustrative, and it does not limit the structure of the central terminal and the remote control device. The terminal and the remotely controlled device may also include more or fewer components than those shown in FIG. 2, or have a different configuration than that shown in FIG. 2.
图3为本发明实施例提供的一种红外遥控方法的流程示意图,该方法应用于终端,该终端处于黑屏状态、或者亮屏未解锁状态、或者该终端的显示界面为遥控类应用操作界面之外的其他界面,参见图3,该方法包括以下几个步骤。 FIG. 3 is a schematic flowchart of an infrared remote control method according to an embodiment of the present invention. The method is applied to a terminal, the terminal is in a black screen state, or the bright screen is not unlocked, or the display interface of the terminal is a remote control application operation interface. Other interfaces, see Figure 3, include the following steps.
步骤201:检测输入的操作指令。Step 201: Detect an input operation instruction.
当该终端处于黑屏状态、或者亮屏未解锁状态、或者该终端的显示界面为遥控类应用操作界面之外的其他界面时,该终端可以检测输入的操作指令,该操作指令可以由用户触发,用户可以通过旋转该终端、或者触摸该终端的触摸屏、或者发出语音等操作来触发该操作指令,也即是,该操作指令为下述指令类型中的至少一个操作指令:运动指令、触摸指令、语音指令,当然,在实际应用中,该操作指令也可以为其他指令类型,本发明实施例对此不作限定。When the terminal is in a black screen state, or the bright screen is not unlocked, or the display interface of the terminal is an interface other than the remote control application operation interface, the terminal may detect an input operation instruction, and the operation instruction may be triggered by the user. The user can trigger the operation instruction by rotating the terminal, or touching the touch screen of the terminal, or issuing a voice, etc., that is, the operation instruction is at least one of the following instruction types: a motion instruction, a touch instruction, The voice command, of course, may be another type of the command in the actual application, which is not limited by the embodiment of the present invention.
其中,该终端的显示界面为遥控类应用操作界面之外的其他界面,是指该终端的界面可以为解锁后的菜单显示界面、或者游戏类应用的显示界面、或者模式设置界面等其他界面,但该界面不为遥控类应用的操作界面。也即是,用户无需打开遥控类应用,以及查找到对应的遥控按键,就可以在上述的显示界面下触发相应的操作指令,从而简化对被遥控设备进行控制时的操作,同时也不会影响用户当前对该终端的使用。The display interface of the terminal is an interface other than the remote control application operation interface, and the interface of the terminal may be an unlocked menu display interface, a display interface of a game application, or a mode setting interface, and the like. However, this interface is not an operation interface for remote control applications. That is, the user can trigger the corresponding operation instruction under the above display interface without opening the remote control application and finding the corresponding remote control button, thereby simplifying the operation when the remote control device is controlled, and does not affect the operation. The user's current use of the terminal.
另外,当该终端检测输入的操作指令时,该终端的处理器可以直接对输入的操作指令进行检测,以获取对应的操作指令,比如,该操作指令可以为触摸指令、运动指令或语音指令等;当然,该终端的处理器也可以通过接收上报的操作指令,获取对应的操作指令,比如,该终端的处理器可以接收与触摸指令对应的触摸屏上报的操作指令、与运动指令对应的运动传感器上报的操作指令、或者与语音指令对应的语音识别器上报的操作指令等,本发明实施例对此不作限定。In addition, when the terminal detects the input operation instruction, the processor of the terminal may directly detect the input operation instruction to obtain a corresponding operation instruction, for example, the operation instruction may be a touch instruction, a motion instruction, or a voice instruction. Of course, the processor of the terminal can also obtain the corresponding operation instruction by receiving the reported operation instruction. For example, the processor of the terminal can receive the operation instruction reported by the touch screen corresponding to the touch instruction, and the motion sensor corresponding to the motion instruction. The operation command that is reported, or the operation command that is reported by the voice recognizer corresponding to the voice command, is not limited in this embodiment of the present invention.
需要说明的是,在本发明实施例中,当该终端处于黑屏状态,或者亮屏未解锁状态,或者该终端的显示界面为遥控类应用操作界面之外的其他界面时,该终端的处理器一直处于运行状态,也即是,在上述任一状态或显示界面下该终端的处理器都可以检测输入的操作指令。It should be noted that, in the embodiment of the present invention, when the terminal is in a black screen state, or the bright screen is not unlocked, or the display interface of the terminal is an interface other than the remote control application operation interface, the processor of the terminal It is always in the running state, that is, the processor of the terminal can detect the input operation instruction in any of the above states or display interfaces.
另外,该处理器可以为应用处理器,也可以为微处理器。当该处理器为微处理器时,应用处理器在终端处于黑屏状态或亮屏未解锁状态时,可以保持休眠状态,而微处理器作为协处理器保持开启状态,从而降低终端的功耗。微处理器与红外发射模块电性连接,具体连接方式包括以下任意一种:通过通用输入输出GPIO进行连接、或者串行外设接口SPI进行连 接、或者串行接口RS-232进行连接、或者通过红外输出调制解调芯片进行连接等等,本发明实施例对此不作限定。In addition, the processor can be an application processor or a microprocessor. When the processor is a microprocessor, the application processor can remain in a sleep state when the terminal is in a black screen state or a bright screen unlocked state, and the microprocessor remains as a coprocessor, thereby reducing power consumption of the terminal. The microprocessor is electrically connected to the infrared transmitting module, and the specific connection manner includes any one of the following: connecting through a general-purpose input/output GPIO, or connecting through a serial peripheral interface SPI The embodiment of the present invention does not limit the connection, or the serial interface RS-232 is connected, or the infrared output modulation and demodulation chip is connected.
具体的,当该处理器为微处理器时,该微处理器可以是具有软件编程功能的传感器中心SensorHub、单片机MCU、数字信号处理芯片DSP、或者是可编程逻辑器件等,该微处理器可以利用定时器功能产生精确的载波信号,且该微处理器的价格便宜,功耗也比较小。比如,该微处理器可以为美国德州仪器开发的微处理器MSP430、恩智浦半导体公司开发的LPC18A1、或者STM32L151RB等等,本发明实施例对此不作限定。Specifically, when the processor is a microprocessor, the microprocessor may be a sensor center SensorHub with a software programming function, a single-chip MCU, a digital signal processing chip DSP, or a programmable logic device, etc., the microprocessor may The timer function is used to generate an accurate carrier signal, and the microprocessor is inexpensive and consumes less power. For example, the microprocessor may be a microprocessor MSP430 developed by Texas Instruments, LPC18A1, or STM32L151RB developed by NXP Semiconductors, etc., which is not limited in this embodiment of the present invention.
步骤202:根据该操作指令和预设的对应关系,确定与该操作指令对应的第一遥控编码,其中,该预设的对应关系至少包括该操作指令与第一遥控编码间的映射关系。Step 202: Determine, according to the operation instruction and the preset correspondence, the first remote control code corresponding to the operation instruction, where the preset correspondence includes at least a mapping relationship between the operation instruction and the first remote control code.
其中,预设的对应关系至少包括该操作指令与第一遥控编码间的映射关系,也即是,该预设的对应关系可以只包括该操作指令与第一遥控编码间的映射关系,还可以包括其他的预设操作指令,以及与每个预设操作指令对应的遥控编码,且任意两个遥控编码对应的预设操作指令不同。The preset correspondence includes at least a mapping relationship between the operation instruction and the first remote control code, that is, the preset correspondence may include only a mapping relationship between the operation instruction and the first remote control code, and may also include The other preset operation instructions are included, and the remote control code corresponding to each preset operation instruction is different, and the preset operation instructions corresponding to any two remote control codes are different.
也即是,预设的对应关系是指遥控编码与预设操作指令之间的映射关系,且当该预设的对应关系包括两个以上的映射关系时,不同的遥控编码对应不同的预设操作指令,该预设操作指令的指令类型可以包括上述的运动指令、触摸指令和语音指令三种,且每一种的预设操作指令可以包括一个或者多个操作指令。That is, the preset correspondence relationship refers to a mapping relationship between the remote control code and the preset operation instruction, and when the preset correspondence includes more than two mapping relationships, different remote control codes correspond to different presets. The operation instruction, the instruction type of the preset operation instruction may include three types of the motion instruction, the touch instruction, and the voice instruction, and each of the preset operation instructions may include one or more operation instructions.
另外,该预设的对应关系中可以只包括一种指令类型的预设操作指令与遥控指令之间的映射关系,也可以只包括任意两种指令类型的预设操作指令分别与遥控编码之间的映射关系,当然也可以同时包括三种指令类型的预设操作指令与遥控编码之间的映射关系。In addition, the preset correspondence may include only a mapping relationship between a preset operation instruction of the instruction type and the remote control instruction, or may include only a preset operation instruction of any two instruction types and the remote control code respectively. The mapping relationship, of course, can also include the mapping relationship between the preset operation instructions of the three instruction types and the remote control code.
下面对运动指令、触摸指令、语音指令这三种指令类型分别进行举例和阐述,具体如下所述。The following three types of motion commands, touch commands, and voice commands are respectively illustrated and described, as follows.
比如,若预设操作指令的指令类型为运动指令,且若被遥控的设备为智能电视时,该遥控编码与预设操作指令之间的映射关系可以如下表1所示。 For example, if the instruction type of the preset operation instruction is a motion instruction, and if the remotely controlled device is a smart TV, the mapping relationship between the remote control code and the preset operation instruction may be as shown in Table 1 below.
表1Table 1
遥控编码Remote control code 预设操作指令Preset operation command
增加音量Increase volume 竖直向左旋转Rotate vertically to the left
减小音量Decrease the volume 竖直向右旋转Rotate vertically to the right
切换上一频道Switch to the previous channel 竖直向上旋转Rotate vertically
切换下一频道Switch to the next channel 竖直向下旋转Rotate vertically downward
............ ............
需要说明的是,上述表1所示的遥控编码与运动指令的预设操作指令之间的对应关系仅为示例性的,且当被遥控的设备为智能电视时,遥控编码与预设操作指令之间的映射关系可以与上述表1相同,也可以与上述表1不同,上述表1并不对本发明实施例构成。It should be noted that the correspondence between the remote control code shown in Table 1 and the preset operation command of the motion instruction is merely exemplary, and when the remotely controlled device is a smart TV, the remote control code and the preset operation command are used. The mapping relationship between them may be the same as that of the above Table 1, or may be different from the above Table 1, and the above Table 1 does not constitute an embodiment of the present invention.
具体的,该运动指令可以包括以下操作指令中的至少一个:竖直向右旋转、竖直向左旋转、竖直向上旋转、竖直向下旋转、水平向右旋转、水平向左旋转、连续m次上下晃动、连续n次左右摇动、顺时针旋转i*360度或逆时针旋转i*360度,其中m、n和i为大于等于1的整数。Specifically, the motion instruction may include at least one of the following operation instructions: vertical right rotation, vertical left rotation, vertical upward rotation, vertical downward rotation, horizontal right rotation, horizontal left rotation, continuous m times up and down, continuous n or so shaking, clockwise rotation i*360 degrees or counterclockwise rotation i*360 degrees, where m, n and i are integers greater than or equal to 1.
其中,竖直向右旋转、竖直向左旋转、竖直向上旋转、竖直向下旋转、水平向右旋转、水平向左旋转、连续m次上下晃动、连续n次左右摇动、顺时针旋转i*360度和逆时针旋转i*360度的示意图分别如图4中的(a)-(j)所示。Among them, vertical right rotation, vertical left rotation, vertical upward rotation, vertical downward rotation, horizontal right rotation, horizontal left rotation, continuous m times up and down shaking, continuous n times left and right shaking, clockwise rotation The schematic diagrams of i*360 degrees and counterclockwise rotation of i*360 degrees are shown in (a)-(j) of Fig. 4, respectively.
需要说明的是,处理器在检测该运动指令时可以通过该终端的加速度传感器和陀螺仪,或者六轴陀螺仪等进行检测。It should be noted that the processor can detect the motion command through the acceleration sensor and the gyroscope of the terminal, or a six-axis gyroscope.
比如,若预设操作指令的类型为触摸指令,且若被遥控的设备为智能电视时,该遥控编码与预设操作指令之间的映射关系可以如下表2所示。For example, if the type of the preset operation instruction is a touch instruction, and if the remotely controlled device is a smart TV, the mapping relationship between the remote control code and the preset operation instruction may be as shown in Table 2 below.
表2Table 2
遥控编码Remote control code 预设操作指令Preset operation command
增加音量Increase volume 向左滑动Swipe left
减小音量Decrease the volume 向右滑动Swipe right
切换上一频道Switch to the previous channel 向上滑动Slide up
切换下一频道Switch to the next channel 向下滑动Swipe down
............ ............
需要说明的是,上述表2所示的遥控编码与触摸指令的预设操作指令之间的映射关系仅为示例性的,且当被遥控的设备为智能电视时,遥控编码与预设操作指令之间的映射关系可以与上述表2相同,也可以与上述表2不同,上述表2并不对本发明实施例构成。It should be noted that the mapping relationship between the remote control code shown in Table 2 and the preset operation command of the touch command is merely exemplary, and when the remotely controlled device is a smart TV, the remote control code and the preset operation command are used. The mapping relationship between them may be the same as that of Table 2 above, or may be different from Table 2 above, and the above Table 2 does not constitute an embodiment of the present invention.
具体的,该触摸指令可以包括以下操作指令中的至少一个:向右滑动、向左滑动、向上滑动、向下滑动、顺时针弧线滑动、逆时针弧线滑动,以及向右滑动后长按、向左滑动后长按、向上滑动后长按、向下滑动后长按、顺时针弧线滑动后长按、逆时针弧线滑动后长按、顺时针圆形滑动、逆时针圆形滑动、任意多边形滑动、连续k次点击、任意数字型滑动或任意字母型滑动等,其中k为大于等于1的整数。Specifically, the touch instruction may include at least one of the following operation instructions: sliding to the right, sliding to the left, sliding up, sliding down, clockwise arc sliding, counterclockwise arc sliding, and sliding to the right and long pressing Swipe left, then press, slide up, then press, slide down, press long, slide clockwise, then press, slide counterclockwise, press long, clockwise, slide counterclockwise , arbitrary polygon sliding, continuous k clicks, any numeric sliding or any letter sliding, etc., where k is an integer greater than or equal to 1.
其中,向右滑动、向左滑动、向上滑动、向下滑动、顺时针弧线滑动、逆时针弧线滑动、顺时针圆形滑动和逆时针圆形滑动的示意图分别如图5中的(1)-(8)所示。Among them, sliding to the right, sliding to the left, sliding upward, sliding downward, clockwise arc sliding, counterclockwise arc sliding, clockwise circular sliding and counterclockwise circular sliding are respectively shown in Figure 5 (1) )-(8).
比如,若预设操作指令的类型为语音指令,且被遥控的设备为智能电视时,为方便描述,将该语音指令对应的语音形式定义为:设备名称的英文简称+遥控编码,则用户发出的语音指令的预设操作指令可以为:TV遥控编码,则遥控编码与预设操作指令之间的对应关系可以如下表3所示。For example, if the type of the preset operation command is a voice command, and the remotely controlled device is a smart TV, for convenience of description, the voice form corresponding to the voice command is defined as: the English abbreviation of the device name + the remote control code, then the user issues The preset operation command of the voice command may be: TV remote control code, and the correspondence between the remote control code and the preset operation command may be as shown in Table 3 below.
表3table 3
遥控编码Remote control code 预设操作指令Preset operation command
增加音量Increase volume TV增加音量TV increases volume
减小音量Decrease the volume TV减小音量TV reduces the volume
切换上一频道Switch to the previous channel TV切换上一频道TV switch to the previous channel
切换下一频道Switch to the next channel TV切换下一频道TV switch next channel
............ ............
需要说明的是,上述表3所示的遥控编码与语音指令的预设操作指令之间的映射关系仅为示例性的,上述表3并不对本发明实施例构成。It should be noted that the mapping relationship between the remote control code shown in Table 3 and the preset operation command of the voice command is merely exemplary, and the above Table 3 is not configured for the embodiment of the present invention.
另外,该语音指令对应的语音定义形式为:设备名称的英文简称+遥控指令仅是示例性的,具体的该语音指令对应的预设操作指令可以由用户 自己定义,且不同的遥控编码对应的语音指令中预设操作指令的语音形式可以相同,也可以不同,本发明实施例对此不作限定。In addition, the voice definition form corresponding to the voice instruction is: the English abbreviation of the device name + the remote control instruction is only exemplary, and the specific operation instruction corresponding to the voice instruction may be used by the user. The voice form of the preset operation command in the voice command corresponding to the different remote control codes may be the same or different, which is not limited by the embodiment of the present invention.
再者,当被遥控的设备为智能电视时,预设的对应关系可以包括上述表1、表2和表3中的任意一个,或者可以包括其中的任意两个,或者同时包括上述表1、表2和表3。Furthermore, when the remotely controlled device is a smart TV, the preset correspondence may include any one of the above Table 1, Table 2, and Table 3, or may include any two of them, or include the above Table 1. Table 2 and Table 3.
需要说明的是,被遥控的设备不仅可以为智能电视、也可以为智能冰箱、智能空调、智能摄像头、智能音箱、DVD、机顶盒等智能设备,且遥控编码是与该被遥控的设备的操作选项相对应的遥控编码,本发明实施例对此不作具体限定。It should be noted that the remotely controlled device can be not only a smart TV, but also a smart refrigerator, a smart air conditioner, a smart camera, a smart speaker, a DVD, a set top box, and the like, and the remote control code is an operation option with the remotely controlled device. Corresponding remote control coding is not specifically limited in this embodiment of the present invention.
进一步的,当该预设的对应关系至少包括两个操作指令与至少两个遥控编码间的映射关系时,该至少两个遥控编码至少对应两个被遥控设备,也即是,该预设的对应关系可以同时包括多个被遥控设备对应的操作指令与遥控编码之间的映射关系,即该终端可以对多个不同的智能设备进行遥控,从而可以增加对被遥控设备进行控制的范围和灵活性。Further, when the preset correspondence includes at least a mapping relationship between two operation instructions and at least two remote control codes, the at least two remote control codes correspond to at least two remotely controlled devices, that is, the preset The correspondence relationship may include a mapping relationship between the operation command corresponding to the remote control device and the remote control code, that is, the terminal may remotely control a plurality of different smart devices, thereby increasing the range and flexibility of controlling the remotely controlled device. Sex.
比如,该预设的对应关系包括两个操作指令与两个遥控编码间的映射关系,其中,第一个操作指令对应的遥控编码为增加音量,该增加音量为智能电视对应的遥控编码,第二个操作指令对应的遥控编码为降低温度,该降低温度为智能冰箱对应的遥控编码,从而用户可以通过触发不同的操作指令,同时对智能电视或者智能冰箱进行相应的控制。For example, the preset correspondence includes a mapping relationship between two operation instructions and two remote control codes, wherein the remote control code corresponding to the first operation instruction is an increase volume, and the increase volume is a remote control code corresponding to the smart TV. The remote control code corresponding to the two operation instructions is to reduce the temperature, and the lowering temperature is the remote control code corresponding to the smart refrigerator, so that the user can control the smart TV or the smart refrigerator at the same time by triggering different operation instructions.
步骤203:根据第一遥控编码发射红外信号,以控制接收该红外信号的被遥控设备。Step 203: Send an infrared signal according to the first remote control code to control the remotely controlled device that receives the infrared signal.
具体的,该终端的处理器根据第一遥控编码调制第一遥控编码对应的红外调制信号,并发送该红外调制信号至红外发射模块,该红外发射模块根据处理器发送的红外调制信号发射红外信号,以控制接收红外信号的被遥控设备。Specifically, the processor of the terminal modulates the infrared modulation signal corresponding to the first remote control code according to the first remote control code, and sends the infrared modulation signal to the infrared transmission module, where the infrared transmission module transmits the infrared signal according to the infrared modulation signal sent by the processor. To control the remotely controlled device that receives the infrared signal.
其中,该红外发射模块包括红外发射管和红外驱动电路,该红外驱动电路可以采用GPIO直接驱动N沟道或P沟道的场效应管,如图6所示,以GPIO直接驱动N沟道的场效应管作为红外驱动电路为例,处理器根据第一遥控编码调制第一遥控编码对应的红外调制信号,并发送该红外调制信号至红外发射模块,该红外发射驱动电路根据处理器发送的红外调制信 号驱动红外发射管IR LED发射出红外信号,当然,在使用应用中,该红外驱动电路也可以为其他,比如,该红外驱动电路可以采用恒流源的方式等,本发明实施例对此不作限定。The infrared emitting module comprises an infrared transmitting tube and an infrared driving circuit, and the infrared driving circuit can directly drive an N-channel or a P-channel FET by using GPIO, as shown in FIG. 6, directly driving the N-channel by GPIO. Taking the FET as an example of the infrared driving circuit, the processor modulates the infrared modulation signal corresponding to the first remote control code according to the first remote control code, and transmits the infrared modulation signal to the infrared transmitting module, and the infrared transmitting driving circuit is based on the infrared sent by the processor. Modulation letter The infrared driving tube IR LED emits an infrared signal. Of course, in an application, the infrared driving circuit can also be other. For example, the infrared driving circuit can adopt a constant current source or the like, and the embodiment of the present invention does not limited.
另外,该红外发射模块包括的红外发射管的发射角度的绝对值可以大于现有技术中的9度,也即是,该红外发射管的发射角度大于9度或者小于-9度,比如,该发射角度的绝对值可以为15度,或者30度等,通过增大红外发射管的发射角度可以使该终端在任意角度都可以对被遥控的设备进行远距离的控制,以方便操作。In addition, the absolute value of the emission angle of the infrared transmitting tube included in the infrared transmitting module may be greater than 9 degrees in the prior art, that is, the emitting angle of the infrared transmitting tube is greater than 9 degrees or less than -9 degrees, for example, The absolute value of the emission angle can be 15 degrees, or 30 degrees, etc. By increasing the emission angle of the infrared emission tube, the terminal can remotely control the remotely controlled device at any angle for convenient operation.
再者,该第一遥控编码可以包括调制红外信号对应的载波频率、待发送的数据等等,比如,该载波频率可以为20kHz-60kHz,该处理器可以根据该待发送的数据,通过红外驱动电路对载波频率对应的载波信号进行调制,从而将待发送的数据携带在载波信号中,该携带待发送数据的载波信号与未携带待发送数据的载波信号相比,其信号对应的占空比不同,其中,占空比是指高电平所占的时间在总周期时间中所占的比率。Furthermore, the first remote control code may include a carrier frequency corresponding to the modulated infrared signal, data to be transmitted, and the like. For example, the carrier frequency may be 20 kHz-60 kHz, and the processor may be driven by the infrared according to the data to be sent. The circuit modulates the carrier signal corresponding to the carrier frequency, so that the data to be transmitted is carried in the carrier signal, and the duty ratio of the signal corresponding to the carrier signal carrying the data to be transmitted and the carrier signal not carrying the data to be transmitted Different, where the duty ratio refers to the ratio of the time occupied by the high level in the total cycle time.
进一步,参见图7,若该操作指令的类型为运动指令和/或触摸指令时,在步骤201之前,该方法还包括:Further, referring to FIG. 7, if the type of the operation instruction is a motion instruction and/or a touch instruction, before the step 201, the method further includes:
步骤204a:检测输入的遥控开启指令,以及根据该遥控开启指令,启动终端开始检测输入的操作指令。 Step 204a: Detect an input remote start command, and start an operation command for the terminal to start detecting input according to the remote start command.
其中,该遥控开启指令可以由终端检测相应的运动参数进行触发,也可以由用户进行触发,且用户可以通过物理按键、或者触摸手势、或者语音指令等进行触发,该物理按键、触摸手势和语音指令可以事先进行设置,也可以由用户进行自定义等,本发明实施例对此不作限定。The remote start command may be triggered by the terminal detecting the corresponding motion parameter, or triggered by the user, and the user may trigger through a physical button, a touch gesture, or a voice command, the physical button, the touch gesture, and the voice. The instructions may be set in advance, or may be customized by the user, etc., which is not limited by the embodiment of the present invention.
具体的,当该遥控开启指令由终端检测相应的运动参数进行触发时,若该处理器检测到该终端的运动参数符合第一状态参数,则根据该遥控开启指令,启动终端开始检测输入的操作指令,第一状态参数为终端被拿起时加速度和角度对应的第一特征值。Specifically, when the remote start command is triggered by the terminal detecting the corresponding motion parameter, if the processor detects that the motion parameter of the terminal meets the first state parameter, the terminal starts to detect the input operation according to the remote start command. The first state parameter is a first feature value corresponding to the acceleration and the angle when the terminal is picked up.
其中,第一特征值包括该终端被拿起时加速度对应的多个特征值以及角度对应的多个特征值,且该第一特征值可以通过多次试验得到,即该第一特征值是指该终端在被拿起的过程中,其加速度和角度在变换过程中具有代表性的多个参数值。该第一特征值可以事先设置,且本发明实施例对 该终端被拿起时加速度对应的多个特征值以及角度对应的多个特征值的特征值个数不作限定。The first feature value includes a plurality of feature values corresponding to the acceleration when the terminal is picked up, and a plurality of feature values corresponding to the angle, and the first feature value can be obtained by multiple tests, that is, the first feature value refers to During the process of being picked up, the acceleration and angle of the terminal have representative parameter values during the transformation process. The first feature value may be set in advance, and the embodiment of the present invention is The plurality of feature values corresponding to the acceleration when the terminal is picked up and the number of feature values of the plurality of feature values corresponding to the angle are not limited.
另外,处理器可以检测该终端包括的传感器的参数变化,比如,当该传感器为加速度传感器和陀螺仪,或者为六轴陀螺仪时,处理器通过检测可以得到该终端的加速度和角度的参数变换,当该终端的加速度和角度的参数变换与该终端被拿起时的第一特征值一致时,则可以确定该终端被拿起,因此可以根据该遥控开启指令,启动终端开始检测输入的操作指令,以方便用户对被遥控的设备进行控制操作。In addition, the processor can detect a parameter change of the sensor included in the terminal. For example, when the sensor is an acceleration sensor and a gyroscope, or is a six-axis gyroscope, the processor can obtain a parameter change of the acceleration and the angle of the terminal by detecting. When the parameter conversion of the acceleration and the angle of the terminal is consistent with the first feature value when the terminal is picked up, it may be determined that the terminal is picked up, so that the terminal may start the operation of detecting the input according to the remote start command. Instructions to facilitate user control of the remotely controlled device.
相应的,步骤203之后,该方法还包括:Correspondingly, after step 203, the method further includes:
步骤205a:检测输入的遥控关闭指令,以及根据该遥控关闭指令,控制终端停止检测输入的操作指令。 Step 205a: detecting the input remote control closing command, and controlling the terminal to stop detecting the input operation command according to the remote control closing command.
其中,该遥控关闭指令与上述步骤204a中的遥控开启指令类似,也可以由终端检测相应的运动参数进行触发,也可以由用户进行触发,本发明实施例在此不再赘述。The remote control off command is similar to the remote start command in the above step 204a, and may be triggered by the terminal to detect the corresponding motion parameter, or may be triggered by the user, which is not described herein again.
具体的,当该遥控关闭指令由终端检测相应的运动参数进行触发时,若该处理器检测到该终端的运动参数符合第二状态参数,则根据该遥控关闭指令,控制该终端停止检测输入的操作指令,第二状态参数为该终端被放下时加速度和角度对应的第二特征值。Specifically, when the remote control off command is triggered by the terminal detecting the corresponding motion parameter, if the processor detects that the motion parameter of the terminal meets the second state parameter, controlling the terminal to stop detecting the input according to the remote control off command. The operation command, the second state parameter is a second characteristic value corresponding to the acceleration and the angle when the terminal is lowered.
其中,第二特征值包括该终端被放下时加速度对应的多个特征值以及角度对应的多个特征值,且该第二特征值可以通过多次试验得到,即该第二特征值是指该终端在被放下的过程中,其加速度和角度在变换过程中具有代表性的多个参数值。该第二特征值可以事先设置,且本发明实施例对该终端被拿起时加速度对应的多个特征值以及角度对应的多个特征值的特征值个数不作限定。The second feature value includes a plurality of feature values corresponding to the acceleration when the terminal is lowered, and a plurality of feature values corresponding to the angle, and the second feature value can be obtained by multiple tests, that is, the second feature value refers to the feature value. In the process of being put down, the acceleration and angle of the terminal have representative parameter values during the transformation process. The second feature value may be set in advance, and the number of feature values of the plurality of feature values corresponding to the acceleration and the angle corresponding to the angle when the terminal is picked up is not limited.
进一步的,参见图8,若该操作指令的类型为语音指令,该方法还包括:Further, referring to FIG. 8, if the type of the operation instruction is a voice instruction, the method further includes:
步骤204b:对目标用户的语音进行声纹识别,得到该目标用户的声纹特征。 Step 204b: Perform voiceprint recognition on the voice of the target user to obtain a voiceprint feature of the target user.
当通过语音指令对被遥控的设备进行控制操作时,为了避免任何人都能通过语音指令对被遥控的设备进行控制操作,容易造成误操作的问题, 可以对目标用户的语音进行声纹识别,从而得到该目标用户的声纹特征,且该目标用户的数量可以是一个,也可以是多个。其中,具体的进行声纹识别的过程可以参考相关技术,本发明实施例在此不作阐述。When the remotely controlled device is controlled by a voice command, in order to prevent anyone from being able to control the remotely controlled device through voice commands, it is easy to cause a malfunction. The voiceprint recognition may be performed on the voice of the target user, so that the voiceprint feature of the target user is obtained, and the number of the target users may be one or multiple. For the specific process of voiceprint recognition, reference may be made to related technologies, and the embodiments of the present invention are not described herein.
相应的,步骤202中处理器根据该操作指令和预设的对应关系,确定与该操作指令对应的第一遥控编码,具体为:当输入的语音指令的声纹特征与目标用户的声纹特征一致时,则根据该操作指令和预设的对应关系,确定与该操作指令对应的第一遥控编码。Correspondingly, in step 202, the processor determines, according to the operation instruction and the preset correspondence, the first remote control code corresponding to the operation instruction, specifically: when the voiceprint feature of the input voice command and the voiceprint feature of the target user When they are consistent, the first remote control code corresponding to the operation instruction is determined according to the operation instruction and the preset correspondence.
需要说明的是,上述步骤204b与步骤201-203无先后顺序,也即是,当该操作指令的类型为语音指令时,用户可以在通过终端对被遥控设备进行遥控之前进行目标用户的声纹识别,也可以在遥控的过程中进行目标用户的声纹识别,还可以在遥控完成之后进行目标用户的声纹识别,以方便下一次的使用。It should be noted that the foregoing step 204b and the steps 201-203 have no sequence, that is, when the type of the operation instruction is a voice instruction, the user can perform the voiceprint of the target user before remotely controlling the remotely controlled device through the terminal. Identification, the voiceprint recognition of the target user can also be performed in the process of remote control, and the voiceprint recognition of the target user can be performed after the remote control is completed, so as to facilitate the next use.
在基于运动指令、触摸指令或语音指令对被遥控设备进行控制操作时,若该处理器为应用处理器,在对被遥控设备进行控制时,通过本发明实施例提供的方法可以简化操作;若该处理器为微处理时,不仅可以简化操作,同时也可以减少该终端的功耗,节省电量。When the control operation is performed on the remote control device based on the motion command, the touch command, or the voice command, if the processor is the application processor, when the remote device is controlled, the method provided by the embodiment of the present invention can simplify the operation; When the processor is micro-processed, it not only simplifies the operation, but also reduces the power consumption of the terminal and saves power.
进一步的,在本发明实施例中,该红外发射模块也可以替换为wifi模块和蓝牙模块,也即是,该终端检测输入的操作指令,根据检测的该操作指令,从预设的操作指令与遥控编码之间的映射关系中,获取与该操作指令对应的遥控编码,并通过wifi模块或者蓝牙模块将与该操作指令对应的该遥控编码传输至被遥控设备,被遥控设备在接收到与该操作指令对应的遥控编码之后,可以直接基于该遥控编码进行相应的控制操作。Further, in the embodiment of the present invention, the infrared transmitting module may also be replaced by a wifi module and a bluetooth module, that is, the terminal detects an input operation instruction, according to the detected operation instruction, from a preset operation instruction and In the mapping relationship between the remote control codes, the remote control code corresponding to the operation instruction is obtained, and the remote control code corresponding to the operation instruction is transmitted to the remote control device through the wifi module or the bluetooth module, and the remote control device receives the After the remote control code corresponding to the operation command, the corresponding control operation can be directly performed based on the remote control code.
需要说明的是,在基于wifi模块和蓝牙模块对被遥控设备进行控制操作时,预设的映射关系可以至少包括一个操作指令与遥控编码之间的映射关系,当包括至少两个操作指令与至少两个遥控编码时,该至少两个遥控编码可以为至少两个被遥控设备的遥控编码,也即是,与wifi模块和蓝牙模块对应的遥控方法中,预设的操作指令与遥控编码之间的映射关系与上述基于红外发射模块中阐述的预设的对应关系类似,本发明实施例在此不再赘述。It should be noted that when the control operation is performed on the remote control device based on the wifi module and the Bluetooth module, the preset mapping relationship may include at least a mapping relationship between the operation command and the remote control code, when at least two operation instructions are included and at least When two remote control codes are used, the at least two remote control codes may be remote control codes of at least two remotely controlled devices, that is, between the preset operation commands and the remote control codes in the remote control method corresponding to the wifi module and the Bluetooth module. The mapping relationship is similar to the foregoing corresponding relationship based on the presets in the infrared transmitting module, and details are not described herein again.
本发明实施例提供一种红外遥控方法,应用于终端,该终端处于黑屏 状态、或者亮屏未解锁状态、或者该终端的显示界面为遥控类应用操作界面之外的其他界面,通过检测输入的操作指令,根据该操作指令和预设的对应关系,确定与该操作指令对应的第一遥控编码,该预设的对应关系至少包括该操作指令与第一遥控编码间的映射关系,之后,根据第一遥控编码发射红外信号,从而可以在终端处于黑屏状态、或未解锁状态、或者解锁后的任一种显示界面下,对被遥控的设备进行控制操作,操作方便简单,且不影响用户对当前应用的使用,也减小了该终端对被遥控设备进行控制操作时的功耗。The embodiment of the invention provides an infrared remote control method, which is applied to a terminal, and the terminal is in a black screen. The status, or the unlit state of the bright screen, or the display interface of the terminal is an interface other than the remote control application operation interface, and the operation instruction is detected according to the operation instruction and the preset correspondence relationship, and the operation instruction is determined according to the operation instruction and the preset correspondence relationship. Corresponding first remote control code, the preset correspondence includes at least a mapping relationship between the operation instruction and the first remote control code, and then transmitting an infrared signal according to the first remote control code, so that the terminal is in a black screen state or not unlocked The status or the unlocked display interface controls the remotely controlled device, which is convenient and simple to operate, and does not affect the user's use of the current application, and also reduces the terminal's control operation on the remotely controlled device. Power consumption.
图9为本发明实施例提供的一种终端的结构示意与,参见图9,该终端包括传感器301、处理器302、红外发射模块303;其中,FIG. 9 is a schematic structural diagram of a terminal according to an embodiment of the present invention. Referring to FIG. 9, the terminal includes a sensor 301, a processor 302, and an infrared transmitting module 303.
传感器301,用于检测输入的操作指令,并发送所述操作指令至终端的处理器302;The sensor 301 is configured to detect an input operation instruction, and send the operation instruction to the processor 302 of the terminal;
其中,该传感器在检测输入的操作指令时,该传感器可以是指该终端的触摸屏、运动传感器、或者语音识别器等,当然,在实际应用中,还可以检测该终端的其他器件,本发明实施例对此不作限定When the sensor detects an input operation command, the sensor may refer to a touch screen, a motion sensor, or a voice recognizer of the terminal. Of course, in practical applications, other devices of the terminal may also be detected, and the present invention is implemented. This example does not limit this
另外,该传感器在检测输入的操作指令时,该操作指令可以由用户触发,用户可以通过旋转该终端、或者触摸该终端的触摸屏、或者发出语音等操作来触发该操作指令,也即是,该操作指令为下述指令类型中的至少一个操作指令:运动指令、触摸指令、语音指令,当然,在实际应用中,该操作指令也可以为其他指令类型,本发明实施例对此不作限定。In addition, when detecting the input operation instruction, the operation instruction may be triggered by the user, and the user may trigger the operation instruction by rotating the terminal, or touching the touch screen of the terminal, or issuing a voice, etc., that is, the The operation instruction is at least one of the following instruction types: a motion instruction, a touch instruction, a voice instruction, and of course, in an actual application, the operation instruction may also be another instruction type, which is not limited by the embodiment of the present invention.
需要说明的是,该传感器在检测输入的操作指令时,该终端可以处于黑屏状态、或者亮屏未解锁状态,或者该终端的显示界面为遥控类应用操作界面之外的其他界面,是指该终端的界面可以为解锁后的菜单显示界面、或者游戏类应用的显示界面、或者模式设置界面等其他界面,但该界面不为遥控类应用的操作界面。也即是,用户无需打开遥控类应用,以及查找到对应的遥控按键,就可以在上述的显示界面下触发相应的操作指令,从而简化对被遥控设备进行控制时的操作,同时也不会影响用户当前对该终端的使用。It should be noted that when the sensor detects the input operation instruction, the terminal may be in a black screen state or a bright screen unlocked state, or the display interface of the terminal is a remote interface application interface other than the remote control application interface. The interface of the terminal may be an unlocked menu display interface, or a display interface of a game application, or a mode setting interface, etc., but the interface is not an operation interface of a remote control application. That is, the user can trigger the corresponding operation instruction under the above display interface without opening the remote control application and finding the corresponding remote control button, thereby simplifying the operation when the remote control device is controlled, and does not affect the operation. The user's current use of the terminal.
处理器302,用于根据所述操作指令和预设的对应关系,确定与所述操作指令对应的第一遥控编码,其中,预设的对应关系至少包括所述操作 指令与第一遥控编码间的映射关系;The processor 302 is configured to determine, according to the operation instruction and the preset correspondence, a first remote control code corresponding to the operation instruction, where the preset correspondence includes at least the operation a mapping relationship between the instruction and the first remote control code;
其中,预设的对应关系至少包括该操作指令与第一遥控编码间的映射关系,也即是,该预设的对应关系可以只包括该操作指令与第一遥控编码间的映射关系,还可以包括其他的预设操作指令,以及与每个预设操作指令对应的遥控编码,且任意两个遥控编码对应的预设操作指令不同。The preset correspondence includes at least a mapping relationship between the operation instruction and the first remote control code, that is, the preset correspondence may include only a mapping relationship between the operation instruction and the first remote control code, and may also include The other preset operation instructions are included, and the remote control code corresponding to each preset operation instruction is different, and the preset operation instructions corresponding to any two remote control codes are different.
也即是,预设的对应关系是指遥控编码与预设操作指令之间的映射关系,且当该预设的对应关系包括两个以上的映射关系时,不同的遥控编码对应不同的预设操作指令,该预设操作指令的指令类型可以包括上述的运动指令、触摸指令和语音指令三种,且每一种的预设操作指令可以包括一个或者多个操作指令。That is, the preset correspondence relationship refers to a mapping relationship between the remote control code and the preset operation instruction, and when the preset correspondence includes more than two mapping relationships, different remote control codes correspond to different presets. The operation instruction, the instruction type of the preset operation instruction may include three types of the motion instruction, the touch instruction, and the voice instruction, and each of the preset operation instructions may include one or more operation instructions.
另外,该预设的对应关系中可以只包括一种指令类型的预设操作指令与遥控指令之间的映射关系,也可以只包括任意两种指令类型的预设操作指令分别与遥控编码之间的映射关系,当然也可以同时包括三种指令类型的预设操作指令与遥控编码之间的映射关系。In addition, the preset correspondence may include only a mapping relationship between a preset operation instruction of the instruction type and the remote control instruction, or may include only a preset operation instruction of any two instruction types and the remote control code respectively. The mapping relationship, of course, can also include the mapping relationship between the preset operation instructions of the three instruction types and the remote control code.
处理器302,还用于根据第一遥控编码调制第一遥控编码对应的红外调制信号,并发送红外调制信号至红外发射模块;The processor 302 is further configured to: modulate an infrared modulation signal corresponding to the first remote control code according to the first remote control code, and send the infrared modulation signal to the infrared emission module;
红外发射模块303,用于根据处理器发送的红外调制信号发射红外信号,以控制接收红外信号的被遥控设备。The infrared transmitting module 303 is configured to transmit an infrared signal according to the infrared modulation signal sent by the processor to control the remotely controlled device that receives the infrared signal.
需要说明的是,传感器301和处理器302可以是独立设定的两个器件,也可以集成在同一集成电路芯片中,作为一个整体,本发明实施例对此不作限定。It should be noted that the sensor 301 and the processor 302 may be two devices that are independently configured, and may be integrated into the same integrated circuit chip. As a whole, the embodiment of the present invention does not limit this.
可选的,预设的对应关系至少包括两个操作指令与至少两个遥控编码间的映射关系,且至少两个遥控编码至少对应两个所述被遥控设备。Optionally, the preset correspondence includes at least a mapping relationship between the two operation instructions and the at least two remote control codes, and the at least two remote control codes correspond to at least two of the remotely controlled devices.
当该预设的对应关系至少包括两个操作指令与至少两个遥控编码间的映射关系时,该至少两个遥控编码至少对应两个被遥控设备,也即是,该预设的对应关系可以同时包括多个被遥控设备对应的操作指令与遥控编码之间的映射关系,即该终端可以对多个不同的智能设备进行遥控,从而可以增加对被遥控设备进行控制的范围和灵活性。When the preset correspondence includes at least two mappings between the two operation instructions and the at least two remote control codes, the at least two remote control codes correspond to at least two remotely controlled devices, that is, the preset correspondence may be At the same time, the mapping relationship between the operation command corresponding to the remote control device and the remote control code is included, that is, the terminal can remotely control a plurality of different smart devices, thereby increasing the scope and flexibility of controlling the remotely controlled device.
比如,该预设的对应关系包括两个操作指令与两个遥控编码间的映射关系,其中,第一个操作指令对应的遥控编码为增加音量,该增加音量为 智能电视对应的遥控编码,第二个操作指令对应的遥控编码为降低温度,该降低温度为智能冰箱对应的遥控编码,从而用户可以通过触发不同的操作指令,同时对智能电视或者智能冰箱进行相应的控制。For example, the preset correspondence includes a mapping relationship between two operation instructions and two remote control codes, wherein the remote control code corresponding to the first operation instruction increases the volume, and the added volume is The remote control code corresponding to the smart TV, the remote control code corresponding to the second operation instruction is to lower the temperature, and the lowering temperature is the remote control code corresponding to the smart refrigerator, so that the user can trigger different operation instructions and simultaneously respond to the smart TV or the smart refrigerator. control.
可选的,所述操作指令为下述指令类型中的至少一个操作指令:运动指令、触摸指令、语音指令。Optionally, the operation instruction is at least one of the following instruction types: a motion instruction, a touch instruction, and a voice instruction.
其中,若该操作指令的指令类型为运动指令,该运动指令可以包括以下操作指令中的至少一个:竖直向右旋转、竖直向左旋转、竖直向上旋转、竖直向下旋转、水平向右旋转、水平向左旋转、连续m次上下晃动、连续n次左右摇动、顺时针旋转i*360度或逆时针旋转i*360度,其中m、n和i为大于等于1的整数。Wherein, if the instruction type of the operation instruction is a motion instruction, the motion instruction may include at least one of the following operation instructions: vertical right rotation, vertical left rotation, vertical upward rotation, vertical downward rotation, horizontal Rotate to the right, rotate horizontally to the left, sway up and down m times, sway up and down n times, rotate i*360 degrees clockwise, or rotate i*360 degrees counterclockwise, where m, n, and i are integers greater than or equal to 1.
需要说明的是,处理器在检测该运动指令时可以通过该终端的加速度传感器和陀螺仪,或者六轴陀螺仪等进行检测。It should be noted that the processor can detect the motion command through the acceleration sensor and the gyroscope of the terminal, or a six-axis gyroscope.
另外,若该操作指令的指令类型为触摸指令,该触摸指令可以包括以下操作指令中的至少一个:向右滑动、向左滑动、向上滑动、向下滑动、顺时针弧线滑动、逆时针弧线滑动,以及向右滑动后长按、向左滑动后长按、向上滑动后长按、向下滑动后长按、顺时针弧线滑动后长按、逆时针弧线滑动后长按、顺时针圆形滑动、逆时针圆形滑动、任意多边形滑动、连续k次点击、任意数字型滑动或任意字母型滑动等,其中k为大于等于1的整数。In addition, if the instruction type of the operation instruction is a touch instruction, the touch instruction may include at least one of the following operation instructions: sliding to the right, sliding to the left, sliding up, sliding down, clockwise arc sliding, counterclockwise arc Slide the line, slide it to the right, press it long, slide it to the left, press it long, slide it up, press it long, slide it down, press it long, slide it clockwise, then press it long, turn it counterclockwise, then press it long. Hour hand circular sliding, counterclockwise circular sliding, arbitrary polygon sliding, continuous k clicks, any digital sliding or any letter sliding, etc., where k is an integer greater than or equal to 1.
在本发明的另一实施例中,传感器301,还用于检测输入的遥控开启指令,根据遥控开启指令发送唤醒指令至处理器302;In another embodiment of the present invention, the sensor 301 is further configured to detect an input remote start command, and send a wake command to the processor 302 according to the remote start command;
相应的,处理器302还用于,根据唤醒指令从休眠状态变为唤醒状态,其中,唤醒状态是指处理器302能够接收传感器301发送的操作指令,并根据该操作指令和预设的对应关系,确定与该操作指令对应的第一遥控编码的状态;休眠状态是指处理器302停止接收传感器301发送的操作指令的状态。Correspondingly, the processor 302 is further configured to change from the sleep state to the awake state according to the wake-up instruction, wherein the awake state refers to the processor 302 being capable of receiving an operation instruction sent by the sensor 301, and according to the operation instruction and the preset correspondence relationship The state of the first remote control code corresponding to the operation command is determined; the sleep state refers to a state in which the processor 302 stops receiving the operation command sent by the sensor 301.
也即是,处理器在被唤醒之前,该处理器保持休眠状态,不能接收传感器发送的操作指令,当传感器检测到遥控开启指令后,传感器中的状态机会发送一个中断信号到处理器,以使该处理器从休眠状态转换为唤醒状态,进行相应的操作。 That is, before the processor wakes up, the processor remains in a sleep state and cannot receive an operation instruction sent by the sensor. When the sensor detects the remote control on command, the state machine in the sensor sends an interrupt signal to the processor, so that The processor transitions from a sleep state to an awake state and performs corresponding operations.
其中,该遥控开启指令可以由传感器检测相应的运动参数进行触发,或者通过检测相应的触摸手势、语音指令等进行触发,该触摸手势和语音指令可以事先进行设置,也可以由用户进行自定义等,本发明实施例对此不作限定。The remote control opening command may be triggered by the sensor detecting the corresponding motion parameter, or triggered by detecting a corresponding touch gesture, a voice instruction, etc., the touch gesture and the voice instruction may be set in advance, or may be customized by the user, etc. This embodiment of the present invention does not limit this.
可选的,用户也可以通过物理按键进行触发,比如,用户可以通过点击或双击音量键、锁屏键等进行触发,该物理按键可以事先进行设置,也可以由用户进行自定义等,通过物理按键进行触发时可以避免因为误操作而对被遥控设备进行错误的遥控。Optionally, the user can also trigger by using a physical button. For example, the user can trigger by clicking or double-clicking the volume key, the lock screen key, etc., the physical button can be set in advance, or can be customized by the user, etc., through physical When the button is triggered, it is possible to avoid erroneous remote control of the remotely controlled device due to an erroneous operation.
具体的,当该传感器检测相应的运动参数进行触发时,若该传感器检测到该终端的运动参数符合第一状态参数,则根据该遥控开启指令向处理器发送唤醒指令,以使处理器根据唤醒指令从休眠状态变为唤醒状态,并根据检测的操作指令和预设的对应关系,确定与该操作指令对应的第一遥控编码的状态,其中,第一状态参数为终端被拿起时加速度和角度对应的第一特征值。Specifically, when the sensor detects the corresponding motion parameter for triggering, if the sensor detects that the motion parameter of the terminal meets the first state parameter, sending a wake-up instruction to the processor according to the remote start command, so that the processor wakes up according to the The instruction changes from the sleep state to the awake state, and determines a state of the first remote control code corresponding to the operation instruction according to the detected operation instruction and the preset correspondence, wherein the first state parameter is an acceleration when the terminal is picked up The first feature value corresponding to the angle.
其中,第一特征值包括该终端被拿起时加速度对应的多个特征值以及角度对应的多个特征值,且该第一特征值可以通过多次试验得到,即该第一特征值是指该终端在被拿起的过程中,其加速度和角度在变换过程中具有代表性的多个参数值。该第一特征值可以事先设置,且本发明实施例对该终端被拿起时加速度对应的多个特征值以及角度对应的多个特征值的特征值个数不作限定。The first feature value includes a plurality of feature values corresponding to the acceleration when the terminal is picked up, and a plurality of feature values corresponding to the angle, and the first feature value can be obtained by multiple tests, that is, the first feature value refers to During the process of being picked up, the acceleration and angle of the terminal have representative parameter values during the transformation process. The first feature value may be set in advance, and the embodiment of the present invention does not limit the plurality of feature values corresponding to the acceleration when the terminal is picked up and the number of feature values of the plurality of feature values corresponding to the angle.
另外,传感器可以检测该终端包括的每个传感器的参数变化,比如,当该传感器通过检测加速度传感器和陀螺仪,或者为六轴陀螺仪时,可以得到该终端的加速度和角度的参数变换,当该终端的加速度和角度的参数变化与该终端被拿起时的第一特征值一致时,则可以确定该终端被拿起,因此可以根据该遥控开启指令,向处理器发送唤醒指令,以使处理器从休眠状态变为唤醒状态,以方便用户对被遥控的设备进行控制操作。In addition, the sensor can detect a parameter change of each sensor included in the terminal, for example, when the sensor passes the detection of the acceleration sensor and the gyroscope, or is a six-axis gyroscope, the parameter conversion of the acceleration and the angle of the terminal can be obtained. When the parameter change of the acceleration and the angle of the terminal is consistent with the first characteristic value when the terminal is picked up, it can be determined that the terminal is picked up, so that the wake-up instruction can be sent to the processor according to the remote start command, so that The processor changes from a sleep state to an awake state to facilitate the user to control the remotely controlled device.
进一步的,在本发明的另一实施例中,传感器301,还用于检测输入的遥控关闭指令,根据遥控关闭指令发送休眠指令至处理器302;Further, in another embodiment of the present invention, the sensor 301 is further configured to detect an input remote control off command, and send a sleep command to the processor 302 according to the remote control off command;
相应的,处理器302,还用于根据休眠指令从唤醒状态变为休眠状态,其中,唤醒状态是指处理器302能够接收传感器301发送的操作指令,并 根据该操作指令和预设的对应关系,确定与该操作指令对应的第一遥控编码的状态;休眠状态是指处理器302停止接收传感器301发送的操作指令的状态。Correspondingly, the processor 302 is further configured to change from the awake state to the sleep state according to the sleep instruction, where the awake state refers to the processor 302 being capable of receiving an operation instruction sent by the sensor 301, and The state of the first remote control code corresponding to the operation instruction is determined according to the corresponding correspondence between the operation instruction and the preset; the sleep state refers to a state in which the processor 302 stops receiving the operation instruction sent by the sensor 301.
其中,该遥控关闭指令与上述遥控开启指令类似,也可以由传感器检测相应的运动参数进行触发,也可以由用户通过物理按键等进行触发,本发明实施例在此不再赘述。The remote control off command is similar to the above-mentioned remote control open command, and may be triggered by the sensor to detect the corresponding motion parameter, or may be triggered by the user through a physical button or the like, which is not described herein again.
具体的,当该遥控关闭指令由传感器检测相应的运动参数进行触发时,若该传感器检测到该终端的运动参数符合第二状态参数,则根据该遥控关闭指令,发送休眠指令至处理器,以使处理器根据休眠指令从唤醒状态变为休眠状态,并根据操作指令和预设的对应关系,确定与该操作指令对应的第一遥控编码的状态,第二状态参数为该终端被放下时加速度和角度对应的第二特征值。Specifically, when the remote control off command is triggered by the sensor detecting the corresponding motion parameter, if the sensor detects that the motion parameter of the terminal meets the second state parameter, sending a sleep instruction to the processor according to the remote control off command, And causing the processor to change from the awake state to the sleep state according to the sleep instruction, and determining a state of the first remote control code corresponding to the operation instruction according to the operation instruction and the preset correspondence relationship, where the second state parameter is an acceleration when the terminal is lowered a second eigenvalue corresponding to the angle.
其中,第二特征值包括该终端被放下时加速度对应的多个特征值以及角度对应的多个特征值,且该第二特征值可以通过多次试验得到,即该第二特征值是指该终端在被放下的过程中,其加速度和角度在变换过程中具有代表性的多个参数值。该第二特征值可以事先设置,且本发明实施例对该终端被拿起时加速度对应的多个特征值以及角度对应的多个特征值的特征值个数不作限定。The second feature value includes a plurality of feature values corresponding to the acceleration when the terminal is lowered, and a plurality of feature values corresponding to the angle, and the second feature value can be obtained by multiple tests, that is, the second feature value refers to the feature value. In the process of being put down, the acceleration and angle of the terminal have representative parameter values during the transformation process. The second feature value may be set in advance, and the number of feature values of the plurality of feature values corresponding to the acceleration and the angle corresponding to the angle when the terminal is picked up is not limited.
进一步的,若该操作指令的类型为语音指令,该处理器302,还可以用于对目标用户的语音进行声纹识别,得到该目标用户的声纹特征。Further, if the type of the operation instruction is a voice instruction, the processor 302 is further configured to perform voiceprint recognition on the voice of the target user to obtain a voiceprint feature of the target user.
当通过语音指令对被遥控的设备进行控制操作时,为了避免任何人都能通过语音指令对被遥控的设备进行控制操作,容易造成误操作的问题,可以对目标用户的语音进行声纹识别,从而得到该目标用户的声纹特征,且该目标用户的数量可以是一个,也可以是多个。其中,具体的进行声纹识别的过程可以参考相关技术,本发明实施例在此不作阐述。When the remotely controlled device is controlled by a voice command, in order to prevent any person from being able to control the remotely controlled device through a voice command, the problem of misoperation is easily caused, and the voiceprint of the target user's voice can be recognized. Thereby, the voiceprint feature of the target user is obtained, and the number of the target users may be one or multiple. For the specific process of voiceprint recognition, reference may be made to related technologies, and the embodiments of the present invention are not described herein.
可选的,红外发射模块的发射角度的绝对值大于9度,也即是,该红外发射管的发射角度大于9度或者小于-9度,比如,该发射角度的绝对值可以为15度,或者30度等,通过增大红外发射管的发射角度可以使该终端在任意角度都可以对被遥控的设备进行远距离的控制,以方便操作。Optionally, the absolute value of the emission angle of the infrared emission module is greater than 9 degrees, that is, the emission angle of the infrared emission tube is greater than 9 degrees or less than -9 degrees. For example, the absolute value of the emission angle may be 15 degrees. Or 30 degrees, etc., by increasing the emission angle of the infrared transmitting tube, the terminal can remotely control the remotely controlled device at any angle for convenient operation.
进一步的,在本发明的另一实施例中,如图10所示,处理器302为 微处理器3011,其中,微处理器3011与红外发射模块303电性连接;终端还包括应用处理器3012;Further, in another embodiment of the present invention, as shown in FIG. 10, the processor 302 is The microprocessor 3011, wherein the microprocessor 3011 is electrically connected to the infrared transmitting module 303; the terminal further includes an application processor 3012;
当终端处于黑屏状态或者亮屏未解锁状态时,微处理器3011保持开启状态,且应用处理器3012处于休眠状态。When the terminal is in a black screen state or a bright screen unlocked state, the microprocessor 3011 remains in an on state, and the application processor 3012 is in a sleep state.
其中,微处理器与红外发射模块电性连接,具体连接方式包括以下任意一种:通过通用输入输出GPIO进行连接、或者串行外设接口SPI进行连接、或者串行接口RS-232进行连接、或者通过红外输出调制解调芯片进行连接等等,本发明实施例对此不作限定。The microprocessor and the infrared transmitting module are electrically connected, and the specific connection manner includes any one of the following: connecting through a general-purpose input/output GPIO, or connecting a serial peripheral interface SPI, or connecting a serial interface RS-232, Or the invention is not limited by the embodiment of the present invention.
具体的,当该处理器为微处理器时,该微处理器可以是具有软件编程功能的传感器中心SensorHub、单片机MCU、数字信号处理芯片DSP、或者是可编程逻辑器件等,该微处理器可以利用定时器功能产生精确的载波信号,且该微处理器的价格便宜,功耗也比较小。比如,该微处理器可以为美国德州仪器开发的微处理器MSP430、恩智浦半导体公司开发的LPC18A1、或者STM32L151RB等等,本发明实施例对此不作限定。Specifically, when the processor is a microprocessor, the microprocessor may be a sensor center SensorHub with a software programming function, a single-chip MCU, a digital signal processing chip DSP, or a programmable logic device, etc., the microprocessor may The timer function is used to generate an accurate carrier signal, and the microprocessor is inexpensive and consumes less power. For example, the microprocessor may be a microprocessor MSP430 developed by Texas Instruments, LPC18A1, or STM32L151RB developed by NXP Semiconductors, etc., which is not limited in this embodiment of the present invention.
进一步的,在本发明实施例中,该红外发射模块也可以替换为wifi模块和蓝牙模块,也即是,该传感器检测输入的操作指令,并发送至处理器,处理器根据该操作指令,从预设的操作指令与遥控编码之间的映射关系中,获取与该操作指令对应的遥控编码,并通过wifi模块或者蓝牙模块将与该操作指令对应的该遥控编码传输至被遥控设备,被遥控设备在接收到与该操作指令对应的遥控编码之后,可以直接基于该遥控编码进行相应的控制操作。Further, in the embodiment of the present invention, the infrared transmitting module can also be replaced by a wifi module and a bluetooth module, that is, the sensor detects an input operation instruction and sends it to the processor, and the processor according to the operation instruction a mapping relationship between the preset operation command and the remote control code, acquiring a remote control code corresponding to the operation instruction, and transmitting the remote control code corresponding to the operation instruction to the remote control device through the wifi module or the Bluetooth module, being remotely controlled After receiving the remote control code corresponding to the operation instruction, the device may directly perform a corresponding control operation based on the remote control code.
需要说明的是,在基于wifi模块和蓝牙模块对被遥控设备进行控制操作时,预设的映射关系可以至少包括一个操作指令与遥控编码之间的映射关系,当包括至少两个操作指令与至少两个遥控编码时,该至少两个遥控编码可以为至少两个被遥控设备的遥控编码,也即是,与wifi模块和蓝牙模块对应的遥控方法中,预设的操作指令与遥控编码之间的映射关系与上述基于红外发射模块中阐述的预设的对应关系类似,本发明实施例在此不再赘述。It should be noted that when the control operation is performed on the remote control device based on the wifi module and the Bluetooth module, the preset mapping relationship may include at least a mapping relationship between the operation command and the remote control code, when at least two operation instructions are included and at least When two remote control codes are used, the at least two remote control codes may be remote control codes of at least two remotely controlled devices, that is, between the preset operation commands and the remote control codes in the remote control method corresponding to the wifi module and the Bluetooth module. The mapping relationship is similar to the foregoing corresponding relationship based on the presets in the infrared transmitting module, and details are not described herein again.
本发明实施例提供一种终端,该终端包括传感器、处理器和红外发射模块,传感器用于检测输入的操作指令,并发送所述操作指令至处理器, 处理器,用于根据所述操作指令和预设的对应关系,确定与所述操作指令对应的第一遥控编码,其中,预设的对应关系至少包括所述操作指令与第一遥控编码间的映射关系,以及根据第一遥控编码调制第一遥控编码对应的红外调制信号,并发送红外调制信号至红外发射模块,红外发射模块用于根据处理器发送的红外调制信号发射红外信号,从而可以在该终端处于黑屏状态、亮屏状态或者任一显示界面时,通过简单的操作指令对被遥控的设备进行控制,操作方便简单,且减小了该终端对被遥控的设备进行控制操作的功耗。An embodiment of the present invention provides a terminal, where the terminal includes a sensor, a processor, and an infrared transmitting module, where the sensor is configured to detect an input operation instruction, and send the operation instruction to the processor. a processor, configured to determine, according to the operation instruction and a preset correspondence, a first remote control code corresponding to the operation instruction, where the preset correspondence includes at least the operation instruction and the first remote control code Mapping the relationship, and modulating the infrared modulation signal corresponding to the first remote control code according to the first remote control code, and transmitting the infrared modulation signal to the infrared transmission module, where the infrared transmission module is configured to transmit the infrared signal according to the infrared modulation signal sent by the processor, so that When the terminal is in a black screen state, a bright screen state or any display interface, the remotely controlled device is controlled by a simple operation instruction, the operation is convenient and simple, and the power consumption of the terminal for controlling the remotely controlled device is reduced. .
图11为本发明实施例提供的一种红外遥控装置的结构示意图,该装置处于黑屏状态、或者亮屏未解锁状态、或者所述装置的显示界面为遥控类应用操作界面之外的其他界面,所述装置包括:FIG. 11 is a schematic structural diagram of an infrared remote control device according to an embodiment of the present invention. The device is in a black screen state, or a bright screen is not unlocked state, or the display interface of the device is a remote control application interface. The device includes:
检测单元401,用于检测输入的操作指令,并发送所述操作指令至确定单元402;The detecting unit 401 is configured to detect the input operation instruction, and send the operation instruction to the determining unit 402;
其中,当该装置处于黑屏状态、或者亮屏未解锁状态、或者该装置的显示界面为遥控类应用操作界面之外的其他界面时,检测单元401可以检测输入的操作指令,该操作指令可以由用户触发,用户可以通过旋转、触摸、或者发出语音等操作来触发该操作指令,也即是,该操作指令为下述指令类型中的至少一个操作指令:运动指令、触摸指令、语音指令,当然,在实际应用中,该操作指令也可以为其他指令类型,本发明实施例对此不作限定。Wherein, when the device is in a black screen state, or the bright screen is not unlocked, or the display interface of the device is an interface other than the remote control application operation interface, the detecting unit 401 may detect the input operation instruction, and the operation instruction may be The user triggers, the user can trigger the operation instruction by rotating, touching, or issuing a voice, etc., that is, the operation instruction is at least one of the following instruction types: motion instruction, touch instruction, voice instruction, of course In an actual application, the operation instruction may also be other instruction types, which is not limited by the embodiment of the present invention.
其中,该装置的显示界面为遥控类应用操作界面之外的其他界面,是指该装置的界面可以为解锁后的菜单显示界面、或者游戏类应用的显示界面、或者模式设置界面等其他界面,但该界面不为遥控类应用的操作界面。也即是,用户无需打开遥控类应用,以及查找到对应的遥控按键,就可以在上述的显示界面下触发相应的操作指令,从而简化对被遥控设备进行控制时的操作,同时也不会影响用户当前的使用。The display interface of the device is other interfaces than the remote control application operation interface, and the interface of the device may be an unlocked menu display interface, a display interface of a game application, or a mode setting interface, and the like. However, this interface is not an operation interface for remote control applications. That is, the user can trigger the corresponding operation instruction under the above display interface without opening the remote control application and finding the corresponding remote control button, thereby simplifying the operation when the remote control device is controlled, and does not affect the operation. The user's current use.
另外,当该检测单元401检测输入的操作指令时,该检测单元401可以直接对输入的操作指令进行检测,以获取对应的操作指令,比如,该操作指令可以为触摸指令、运动指令或语音指令等。In addition, when the detecting unit 401 detects the input operation instruction, the detecting unit 401 can directly detect the input operation instruction to obtain a corresponding operation instruction, for example, the operation instruction can be a touch instruction, a motion instruction, or a voice instruction. Wait.
确定单元402,用于根据所述操作指令和预设的对应关系,确定与所 述操作指令对应的第一遥控编码,其中,预设的对应关系至少包括所述操作指令与第一遥控编码间的映射关系;a determining unit 402, configured to determine, according to the operation instruction and a preset correspondence relationship, a first remote control code corresponding to the operation instruction, where the preset correspondence includes at least a mapping relationship between the operation instruction and the first remote control code;
其中,预设的对应关系至少包括该操作指令与第一遥控编码间的映射关系,也即是,该预设的对应关系可以只包括该操作指令与第一遥控编码间的映射关系,还可以包括其他的预设操作指令,以及与每个预设操作指令对应的遥控编码,且任意两个遥控编码对应的预设操作指令不同。The preset correspondence includes at least a mapping relationship between the operation instruction and the first remote control code, that is, the preset correspondence may include only a mapping relationship between the operation instruction and the first remote control code, and may also include The other preset operation instructions are included, and the remote control code corresponding to each preset operation instruction is different, and the preset operation instructions corresponding to any two remote control codes are different.
也即是,预设的对应关系是指遥控编码与预设操作指令之间的映射关系,且当该预设的对应关系包括两个以上的映射关系时,不同的遥控编码对应不同的预设操作指令,该预设操作指令的指令类型可以包括上述的运动指令、触摸指令和语音指令三种,且每一种的预设操作指令可以包括一个或者多个操作指令。That is, the preset correspondence relationship refers to a mapping relationship between the remote control code and the preset operation instruction, and when the preset correspondence includes more than two mapping relationships, different remote control codes correspond to different presets. The operation instruction, the instruction type of the preset operation instruction may include three types of the motion instruction, the touch instruction, and the voice instruction, and each of the preset operation instructions may include one or more operation instructions.
另外,该预设的对应关系中可以只包括一种指令类型的预设操作指令与遥控指令之间的映射关系,也可以只包括任意两种指令类型的预设操作指令分别与遥控编码之间的映射关系,当然也可以同时包括三种指令类型的预设操作指令与遥控编码之间的映射关系。In addition, the preset correspondence may include only a mapping relationship between a preset operation instruction of the instruction type and the remote control instruction, or may include only a preset operation instruction of any two instruction types and the remote control code respectively. The mapping relationship, of course, can also include the mapping relationship between the preset operation instructions of the three instruction types and the remote control code.
调制单元403,用于根据第一遥控编码调制第一遥控编码对应的红外调制信号,并发送红外调制信号至发射单元404;The modulating unit 403 is configured to modulate the infrared modulation signal corresponding to the first remote control code according to the first remote control code, and send the infrared modulation signal to the transmitting unit 404;
发射单元404,用于根据调制单元403发送的红外调制信号发射红外信号,以控制接收所述红外信号的被遥控设备。The transmitting unit 404 is configured to transmit an infrared signal according to the infrared modulation signal sent by the modulation unit 403 to control the remotely controlled device that receives the infrared signal.
可选的,预设的对应关系至少包括两个操作指令与至少两个遥控编码间的映射关系,且至少两个遥控编码至少对应两个被遥控设备。Optionally, the preset correspondence includes at least a mapping relationship between the two operation instructions and the at least two remote control codes, and the at least two remote control codes correspond to at least two remotely controlled devices.
当该预设的对应关系至少包括两个操作指令与至少两个遥控编码间的映射关系时,该至少两个遥控编码至少对应两个被遥控设备,也即是,该预设的对应关系可以同时包括多个被遥控设备对应的操作指令与遥控编码之间的映射关系,即该装置可以对多个不同的智能设备进行遥控,从而可以增加对被遥控设备进行控制的范围和灵活性。When the preset correspondence includes at least two mappings between the two operation instructions and the at least two remote control codes, the at least two remote control codes correspond to at least two remotely controlled devices, that is, the preset correspondence may be At the same time, the mapping relationship between the operation command corresponding to the remote control device and the remote control code is included, that is, the device can remotely control a plurality of different smart devices, thereby increasing the scope and flexibility of controlling the remote control device.
比如,该预设的对应关系包括两个操作指令与两个遥控编码间的映射关系,其中,第一个操作指令对应的遥控编码为增加音量,该增加音量为智能电视对应的遥控编码,第二个操作指令对应的遥控编码为降低温度,该降低温度为智能冰箱对应的遥控编码,从而用户可以通过触发不同的操 作指令,同时对智能电视或者智能冰箱进行相应的控制。For example, the preset correspondence includes a mapping relationship between two operation instructions and two remote control codes, wherein the remote control code corresponding to the first operation instruction is an increase volume, and the increase volume is a remote control code corresponding to the smart TV. The remote control code corresponding to the two operation instructions is to lower the temperature, and the lowering temperature is the remote control code corresponding to the smart refrigerator, so that the user can trigger different operations by triggering Give instructions and control the smart TV or smart refrigerator accordingly.
可选的,所述操作指令为下述指令类型中的至少一个操作指令:运动指令、触摸指令、语音指令。Optionally, the operation instruction is at least one of the following instruction types: a motion instruction, a touch instruction, and a voice instruction.
其中,若该操作指令的指令类型为运动指令,该运动指令可以包括以下操作指令中的至少一个:竖直向右旋转、竖直向左旋转、竖直向上旋转、竖直向下旋转、水平向右旋转、水平向左旋转、连续m次上下晃动、连续n次左右摇动、顺时针旋转i*360度或逆时针旋转i*360度,其中m、n和i为大于等于1的整数。Wherein, if the instruction type of the operation instruction is a motion instruction, the motion instruction may include at least one of the following operation instructions: vertical right rotation, vertical left rotation, vertical upward rotation, vertical downward rotation, horizontal Rotate to the right, rotate horizontally to the left, sway up and down m times, sway up and down n times, rotate i*360 degrees clockwise, or rotate i*360 degrees counterclockwise, where m, n, and i are integers greater than or equal to 1.
需要说明的是,处理器在检测该运动指令时可以通过该终端的加速度传感器和陀螺仪,或者六轴陀螺仪等进行检测。It should be noted that the processor can detect the motion command through the acceleration sensor and the gyroscope of the terminal, or a six-axis gyroscope.
另外,若该操作指令的指令类型为触摸指令,该触摸指令可以包括以下操作指令中的至少一个:向右滑动、向左滑动、向上滑动、向下滑动、顺时针弧线滑动、逆时针弧线滑动,以及向右滑动后长按、向左滑动后长按、向上滑动后长按、向下滑动后长按、顺时针弧线滑动后长按、逆时针弧线滑动后长按、顺时针圆形滑动、逆时针圆形滑动、任意多边形滑动、连续k次点击、任意数字型滑动或任意字母型滑动等,其中k为大于等于1的整数。In addition, if the instruction type of the operation instruction is a touch instruction, the touch instruction may include at least one of the following operation instructions: sliding to the right, sliding to the left, sliding up, sliding down, clockwise arc sliding, counterclockwise arc Slide the line, slide it to the right, press it long, slide it to the left, press it long, slide it up, press it long, slide it down, press it long, slide it clockwise, then press it long, turn it counterclockwise, then press it long. Hour hand circular sliding, counterclockwise circular sliding, arbitrary polygon sliding, continuous k clicks, any digital sliding or any letter sliding, etc., where k is an integer greater than or equal to 1.
在本发明的另一实施例中,检测单元401,还用于检测输入的遥控开启指令,根据遥控开启指令发送唤醒指令至确定单元402;In another embodiment of the present invention, the detecting unit 401 is further configured to detect an input remote start command, and send a wake-up command to the determining unit 402 according to the remote open command;
确定单元402,还用于根据遥控开启指令从休眠状态变为唤醒状态,其中,唤醒状态是指确定单元402能够接收检测单元401发送的操作指令,并根据该操作指令和预设的对应关系,确定与该操作指令对应的第一遥控编码的状态;休眠状态是指确定单元402停止接收检测单元401发送的操作指令的状态。The determining unit 402 is further configured to change from the sleep state to the awake state according to the remote control open command, wherein the awake state refers to the determining unit 402 being capable of receiving the operation instruction sent by the detecting unit 401, and according to the corresponding correspondence between the operation instruction and the preset, Determining a state of the first remote control code corresponding to the operation instruction; the sleep state is a state in which the determination unit 402 stops receiving the operation instruction transmitted by the detection unit 401.
其中,该遥控开启指令可以由检测单元检测相应的运动参数进行触发,或者通过检测相应的触摸手势、语音指令等进行触发,该触摸手势和语音指令可以事先进行设置,也可以由用户进行自定义等,本发明实施例对此不作限定。The remote control opening instruction may be triggered by the detecting unit detecting the corresponding motion parameter, or triggered by detecting a corresponding touch gesture, a voice instruction, etc., the touch gesture and the voice instruction may be set in advance, or may be customized by the user. The embodiment of the present invention does not limit this.
可选的,用户也可以通过物理按键进行触发,比如,用户可以通过点击或双击音量键、锁屏键等进行触发,该物理按键可以事先进行设置,也 可以由用户进行自定义等,通过物理按键进行触发时可以避免因为误操作而对被遥控设备进行错误的遥控。Optionally, the user can also trigger by using a physical button. For example, the user can trigger by clicking or double-clicking the volume button, the lock screen button, etc., the physical button can be set in advance, It can be customized by the user, etc. When the trigger is triggered by the physical button, it is possible to avoid erroneous remote control of the remotely controlled device due to an erroneous operation.
具体的,当该检测单元检测相应的运动参数进行触发时,若该检测单元检测到该装置的运动参数符合第一状态参数,则根据该遥控开启指令向确定单元发送唤醒指令,以使确定单元根据唤醒指令从休眠状态变为唤醒状态,并根据检测的操作指令和预设的对应关系,确定与该操作指令对应的第一遥控编码的状态,其中,第一状态参数为终端被拿起时加速度和角度对应的第一特征值。Specifically, when the detecting unit detects that the motion parameter is triggered, if the detecting unit detects that the motion parameter of the device meets the first state parameter, sending a wake-up command to the determining unit according to the remote control opening command, so that the determining unit Determining a state from the sleep state to the awake state according to the wake-up command, and determining a state of the first remote control code corresponding to the operation command according to the detected operation command and the preset correspondence, wherein the first state parameter is when the terminal is picked up The first characteristic value corresponding to the acceleration and the angle.
其中,第一特征值包括该装置被拿起时加速度对应的多个特征值以及角度对应的多个特征值,且该第一特征值可以通过多次试验得到,即该第一特征值是指该装置在被拿起的过程中,其加速度和角度在变换过程中具有代表性的多个参数值。该第一特征值可以事先设置,且本发明实施例对该装置被拿起时加速度对应的多个特征值以及角度对应的多个特征值的特征值个数不作限定。The first feature value includes a plurality of feature values corresponding to the acceleration when the device is picked up, and a plurality of feature values corresponding to the angle, and the first feature value can be obtained by multiple tests, that is, the first feature value refers to The acceleration and angle of the device during the process of being picked up have representative parameter values during the transformation process. The first feature value may be set in advance, and the embodiment of the present invention does not limit the plurality of feature values corresponding to the acceleration when the device is picked up and the number of feature values of the plurality of feature values corresponding to the angle.
另外,检测单元可以检测该装置包括的传感器的参数变化,比如,该检测单元为通过检测加速度传感器和陀螺仪,或者为六轴陀螺仪等,可以得到该装置的加速度和角度的参数变换,当该装置的加速度和角度的参数变化与该装置被拿起时的第一特征值一致时,则可以确定该装置被拿起,因此可以根据该遥控开启指令,向确定单元发送唤醒指令,以使确定单元根据唤醒指令从休眠状态变为唤醒状态,并根据该操作指令和预设的对应关系,确定与该操作指令对应的第一遥控编码的状态,从而方便用户对被遥控的设备进行控制操作。In addition, the detecting unit can detect a parameter change of the sensor included in the device. For example, the detecting unit can obtain the parameter conversion of the acceleration and the angle of the device by detecting the acceleration sensor and the gyroscope, or a six-axis gyroscope. When the parameter change of the acceleration and the angle of the device coincides with the first characteristic value when the device is picked up, it can be determined that the device is picked up, so that the wake-up command can be sent to the determining unit according to the remote opening command, so that The determining unit changes from the sleep state to the awake state according to the wake-up instruction, and determines the state of the first remote control code corresponding to the operation instruction according to the operation instruction and the preset correspondence relationship, thereby facilitating the user to perform the control operation on the remotely controlled device. .
进一步的,在本发明的另一实施例中,检测单元401,还用于检测输入的遥控关闭指令,根据遥控关闭指令发送休眠指令至确定单元402;Further, in another embodiment of the present invention, the detecting unit 401 is further configured to detect the input remote control off command, and send the sleep command to the determining unit 402 according to the remote control off command;
相应的,确定单元402还用于,根据休眠指令从唤醒状态变为休眠状态,其中,唤醒状态是指确定单元402能够接收检测单元401发送的所述操作指令,并根据该操作指令和预设的对应关系,确定与该操作指令对应的第一遥控编码的状态,休眠状态是指确定单元402停止接收检测单元发送的操作指令的状态。Correspondingly, the determining unit 402 is further configured to change from the awake state to the sleep state according to the sleep instruction, wherein the awake state refers to the determining unit 402 being capable of receiving the operation instruction sent by the detecting unit 401, and according to the operation instruction and the preset Corresponding relationship determines a state of the first remote control code corresponding to the operation instruction, and the sleep state refers to a state in which the determination unit 402 stops receiving the operation instruction sent by the detection unit.
其中,该遥控关闭指令与上述遥控开启指令类似,也可以由检测单元 检测相应的运动参数进行触发,也可以由用户通过物理按键等进行触发,本发明实施例在此不再赘述。Wherein, the remote control closing command is similar to the above-mentioned remote control opening command, and may also be detected by the detecting unit The corresponding motion parameters are detected to be triggered, and may be triggered by a user through a physical button or the like, which is not described herein again in the embodiment of the present invention.
具体的,当该遥控关闭指令由检测单元检测相应的运动参数进行触发时,若检测单元检测到该装置的运动参数符合第二状态参数,则根据该遥控关闭指令,发送休眠指令至确定单元,以使确定单元根据休眠指令从唤醒状态变为休眠状态,并根据操作指令和预设的对应关系,确定与该操作指令对应的第一遥控编码的状态,第二状态参数为该装置被放下时加速度和角度对应的第二特征值。Specifically, when the remote control off command is triggered by the detecting unit to detect the corresponding motion parameter, if the detecting unit detects that the motion parameter of the device meets the second state parameter, sending a sleep command to the determining unit according to the remote control closing command, So that the determining unit changes from the awake state to the sleep state according to the sleep instruction, and determines a state of the first remote control code corresponding to the operation instruction according to the operation instruction and the preset correspondence relationship, where the second state parameter is when the device is put down The second characteristic value corresponding to the acceleration and the angle.
其中,第二特征值包括该装置被放下时加速度对应的多个特征值以及角度对应的多个特征值,且该第二特征值可以通过多次试验得到,即该第二特征值是指该装置在被放下的过程中,其加速度和角度在变化过程中具有代表性的多个参数值。该第二特征值可以事先设置,且本发明实施例对该装置被拿起时加速度对应的多个特征值以及角度对应的多个特征值的特征值个数不作限定。The second feature value includes a plurality of feature values corresponding to the acceleration when the device is lowered, and a plurality of feature values corresponding to the angle, and the second feature value can be obtained by multiple tests, that is, the second feature value refers to the During the process of being placed down, the acceleration and angle of the device have representative parameter values during the change process. The second feature value may be set in advance, and the number of feature values of the plurality of feature values corresponding to the acceleration and the angle corresponding to the angle when the device is picked up is not limited.
进一步的,若该操作指令的类型为语音指令,该装置还可以包括识别单元,用于对目标用户的语音进行声纹识别,得到该目标用户的声纹特征。Further, if the type of the operation instruction is a voice instruction, the apparatus may further include an identification unit configured to perform voiceprint recognition on the voice of the target user to obtain a voiceprint feature of the target user.
当通过语音指令对被遥控的设备进行控制操作时,为了避免任何人都能通过语音指令对被遥控的设备进行控制操作,容易造成误操作的问题,可以对目标用户的语音进行声纹识别,从而得到该目标用户的声纹特征,且该目标用户的数量可以是一个,也可以是多个。其中,具体的进行声纹识别的过程可以参考相关技术,本发明实施例在此不作阐述When the remotely controlled device is controlled by a voice command, in order to prevent any person from being able to control the remotely controlled device through a voice command, the problem of misoperation is easily caused, and the voiceprint of the target user's voice can be recognized. Thereby, the voiceprint feature of the target user is obtained, and the number of the target users may be one or multiple. For the specific process of voiceprint recognition, reference may be made to related technologies, and the embodiments of the present invention are not described herein.
可选的,发射单元404的发射角度的绝对值大于9度,也即是,该红外发射管的发射角度大于9度或者小于-9度,比如,该发射角度的绝对值可以为15度,或者30度等,通过增大红外发射管的发射角度可以使该终端在任意角度都可以对被遥控的设备进行远距离的控制,以方便操作。Optionally, the absolute value of the emission angle of the transmitting unit 404 is greater than 9 degrees, that is, the emission angle of the infrared transmitting tube is greater than 9 degrees or less than -9 degrees. For example, the absolute value of the emission angle may be 15 degrees. Or 30 degrees, etc., by increasing the emission angle of the infrared transmitting tube, the terminal can remotely control the remotely controlled device at any angle for convenient operation.
本发明实施例提供一种红外遥控装置,该装置通过检测输入的操作指令,以及根据所述操作指令和预设的对应关系,确定与所述操作指令对应的第一遥控编码,其中,预设的对应关系至少包括所述操作指令与第一遥控编码间的映射关系,之后,根据第一遥控编码调制第一遥控编码对应的红外调制信号,根据红外调制信号发射红外信号,从而可以在该装置处于 黑屏状态、亮屏状态或者任一非遥控类应用的显示界面时,通过简单的操作指令对被遥控的设备进行控制,操作方便简单,且减小了该装置对被遥控的设备进行控制操作的功耗。An embodiment of the present invention provides an infrared remote control device, which determines a first remote control code corresponding to the operation instruction by detecting an input operation instruction and according to the operation instruction and a preset correspondence relationship, wherein the preset Corresponding relationship at least includes a mapping relationship between the operation instruction and the first remote control code, and then, according to the first remote control code, modulating the infrared modulation signal corresponding to the first remote control code, and transmitting the infrared signal according to the infrared modulation signal, so that the device can be At When the black screen state, the bright screen state or the display interface of any non-remote control type application, the remotely controlled device is controlled by a simple operation instruction, the operation is convenient and simple, and the device is controlled to control the remotely controlled device. Power consumption.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not limited thereto; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (19)

  1. 一种红外遥控方法,其特征在于,所述方法应用于终端,当所述终端处于黑屏状态、或者亮屏未解锁状态、或者所述终端的显示界面为遥控类应用操作界面之外的其他界面时,所述方法包括:An infrared remote control method, wherein the method is applied to a terminal, when the terminal is in a black screen state, or a bright screen is not unlocked, or the display interface of the terminal is a remote control application interface The method includes:
    检测输入的操作指令;Detecting input operation instructions;
    根据所述操作指令和预设的对应关系,确定与所述操作指令对应的第一遥控编码,其中,所述预设的对应关系至少包括所述操作指令与所述第一遥控编码间的映射关系;Determining, according to the operation instruction and the preset correspondence, a first remote control code corresponding to the operation instruction, where the preset correspondence includes at least a mapping between the operation instruction and the first remote control code relationship;
    根据所述第一遥控编码发射红外信号,以控制接收所述红外信号的被遥控设备。Transmitting an infrared signal according to the first remote control code to control a remotely controlled device that receives the infrared signal.
  2. 根据权利要求1所述的方法,其特征在于,所述预设的对应关系至少包括两个操作指令与至少两个遥控编码间的映射关系,且所述至少两个遥控编码至少对应两个所述被遥控设备。The method according to claim 1, wherein the preset correspondence includes at least a mapping relationship between two operation instructions and at least two remote control codes, and the at least two remote control codes correspond to at least two Said remote control device.
  3. 根据权利要求1或2所述的方法,其特征在于,所述操作指令为下述指令类型中的至少一个操作指令:运动指令、触摸指令、语音指令。The method according to claim 1 or 2, wherein the operation instruction is at least one of the following instruction types: a motion instruction, a touch instruction, and a voice instruction.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,在所述检测输入的操作指令之前,所述方法还包括:The method according to any one of claims 1 to 3, wherein before the detecting the input operation instruction, the method further comprises:
    检测输入的遥控开启指令;Detecting the input remote open command;
    根据所述遥控开启指令,启动所述终端开始检测输入的操作指令。And according to the remote start command, the terminal starts to start detecting an input operation instruction.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,在所述根据所述第一遥控编码发射红外信号之后,还包括:The method according to any one of claims 1 to 4, further comprising: after the transmitting the infrared signal according to the first remote control code,
    检测输入的遥控关闭指令;Detecting the input remote closing command;
    根据所述遥控关闭指令,控制所述终端停止检测输入的操作指令。And according to the remote control closing instruction, the terminal is controlled to stop detecting the input operation instruction.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述红外发射模块的发射角度的绝对值大于9度。The method according to any one of claims 1 to 5, characterized in that the absolute value of the emission angle of the infrared emitting module is greater than 9 degrees.
  7. 一种终端,其特征在于,所述终端包括传感器、处理器、红外发射模块,当所述终端处于黑屏状态、或者亮屏未解锁状态、或者所述终端的显示界面为遥控类应用操作界面之外的其他界面时,所述处理器保持开启状态;A terminal, comprising: a sensor, a processor, an infrared transmitting module, when the terminal is in a black screen state, or a bright screen is not unlocked, or the display interface of the terminal is a remote control application operating interface The processor remains on when other interfaces are outside;
    所述传感器,用于检测输入的操作指令,并发送所述操作指令至所述 处理器;The sensor is configured to detect an input operation instruction, and send the operation instruction to the processor;
    所述处理器,用于根据所述操作指令和预设的对应关系,确定与所述操作指令对应的第一遥控编码,其中,所述预设的对应关系至少包括所述操作指令与所述第一遥控编码间的映射关系;The processor is configured to determine, according to the operation instruction and a preset correspondence, a first remote control code corresponding to the operation instruction, where the preset correspondence includes at least the operation instruction and the a mapping relationship between the first remote control codes;
    所述处理器,还用于根据所述第一遥控编码调制所述第一遥控编码对应的红外调制信号,并发送所述红外调制信号至所述红外发射模块;The processor is further configured to: modulate an infrared modulation signal corresponding to the first remote control code according to the first remote control code, and send the infrared modulation signal to the infrared emission module;
    所述红外发射模块,用于根据所述处理器发送的所述红外调制信号发射红外信号,以控制接收所述红外信号的被遥控设备。The infrared transmitting module is configured to transmit an infrared signal according to the infrared modulation signal sent by the processor to control a remotely controlled device that receives the infrared signal.
  8. 根据权利要求7所述的终端,其特征在于,所述预设的对应关系至少包括两个操作指令与至少两个遥控编码间的映射关系,且所述至少两个遥控编码至少对应两个所述被遥控设备。The terminal according to claim 7, wherein the preset correspondence includes at least a mapping relationship between two operation instructions and at least two remote control codes, and the at least two remote control codes correspond to at least two Said remote control device.
  9. 根据权利要求7或8所述的终端,其特征在于,所述操作指令为下述指令类型中的至少一个操作指令:运动指令、触摸指令、语音指令。The terminal according to claim 7 or 8, wherein the operation instruction is at least one of the following instruction types: a motion instruction, a touch instruction, and a voice instruction.
  10. 根据权利要求7-9任一项所述的终端,其特征在于,A terminal according to any one of claims 7-9, characterized in that
    所述传感器,还用于检测输入的遥控开启指令,根据所述遥控开启指令发送唤醒指令至所述处理器;The sensor is further configured to detect an input remote start command, and send a wake-up command to the processor according to the remote start command;
    所述处理器,还用于根据所述唤醒指令从休眠状态变为唤醒状态,其中,The processor is further configured to change from a sleep state to an awake state according to the wake-up instruction, where
    所述唤醒状态是指所述处理器能够接收所述传感器发送的所述操作指令,并根据所述操作指令和预设的对应关系,确定与所述操作指令对应的第一遥控编码的状态;The awake state is that the processor is capable of receiving the operation instruction sent by the sensor, and determining a state of the first remote control code corresponding to the operation instruction according to the operation instruction and a preset correspondence relationship;
    所述休眠状态是指所述处理器停止接收所述传感器发送的所述操作指令的状态。The sleep state refers to a state in which the processor stops receiving the operation instruction sent by the sensor.
  11. 根据权利要求7-10任一项所述的终端,其特征在于,A terminal according to any one of claims 7 to 10, characterized in that
    所述传感器,还用于检测输入的遥控关闭指令,根据所述遥控关闭指令发送休眠指令至所述处理器;The sensor is further configured to detect an input remote control off command, and send a sleep instruction to the processor according to the remote control off command;
    所述处理器,还用于根据所述休眠指令从唤醒状态变为休眠状态,其中,The processor is further configured to change from an awake state to a sleep state according to the sleep instruction, where
    所述唤醒状态是指所述处理器能够接收所述传感器发送的所述操作指令,并根据所述操作指令和预设的对应关系,确定与所述操作指令对应的 第一遥控编码的状态;The awake state is that the processor is capable of receiving the operation instruction sent by the sensor, and determining, according to the operation instruction and a preset correspondence, a corresponding to the operation instruction. The state of the first remote control code;
    所述休眠状态是指所述处理器停止接收所述传感器发送的所述操作指令的状态。The sleep state refers to a state in which the processor stops receiving the operation instruction sent by the sensor.
  12. 根据权利要求8-11任一项所述的终端,其特征在于,所述红外发射模块的发射角度的绝对值大于9度。The terminal according to any one of claims 8 to 11, characterized in that the absolute value of the emission angle of the infrared transmitting module is greater than 9 degrees.
  13. 根据权利要求7-12任一项所述的终端,其特征在于,所述处理器为微处理器,其中,所述微处理器与所述红外发射模块电性连接;The terminal according to any one of claims 7 to 12, wherein the processor is a microprocessor, wherein the microprocessor is electrically connected to the infrared transmitting module;
    所述终端还包括应用处理器;The terminal further includes an application processor;
    当所述终端处于黑屏状态或亮屏未解锁状态时,所述微处理器保持开启状态,且所述应用处理器处于休眠状态。When the terminal is in a black screen state or a bright screen unlocked state, the microprocessor remains in an on state, and the application processor is in a sleep state.
  14. 一种红外遥控装置,其特征在于,所述装置处于黑屏状态、或者亮屏未解锁状态、或者所述装置的显示界面为遥控类应用操作界面之外的其他界面,所述装置包括:An infrared remote control device, wherein the device is in a black screen state, or a bright screen is not unlocked state, or the display interface of the device is a remote control application interface, the device includes:
    检测单元,用于检测输入的操作指令,并发送所述操作指令至确定单元;a detecting unit, configured to detect the input operation instruction, and send the operation instruction to the determining unit;
    确定单元,用于根据所述操作指令和预设的对应关系,确定与所述操作指令对应的第一遥控编码,其中,所述预设的对应关系至少包括所述操作指令与所述第一遥控编码间的映射关系;a determining unit, configured to determine, according to the operation instruction and a preset correspondence, a first remote control code corresponding to the operation instruction, where the preset correspondence includes at least the operation instruction and the first The mapping relationship between remote control codes;
    调制单元,用于根据所述第一遥控编码调制所述第一遥控编码对应的红外调制信号,并发送所述红外调制信号至发射单元;a modulating unit, configured to modulate an infrared modulation signal corresponding to the first remote control code according to the first remote control code, and send the infrared modulation signal to a transmitting unit;
    发射单元,用于根据所述调制单元发送的所述红外调制信号发射红外信号,以控制接收所述红外信号的被遥控设备。And a transmitting unit, configured to transmit an infrared signal according to the infrared modulation signal sent by the modulation unit, to control a remotely controlled device that receives the infrared signal.
  15. 根据权利要求14所述的装置,其特征在于,所述预设的对应关系至少包括两个操作指令与至少两个遥控编码间的映射关系,且所述至少两个遥控编码至少对应两个所述被遥控设备。The device according to claim 14, wherein the preset correspondence includes at least a mapping relationship between two operation instructions and at least two remote control codes, and the at least two remote control codes correspond to at least two Said remote control device.
  16. 根据权利要求14或15所述的装置,其特征在于,所述操作指令为下述指令类型中的至少一个操作指令:运动指令、触摸指令、语音指令。The apparatus according to claim 14 or 15, wherein the operation instruction is at least one of the following instruction types: a motion instruction, a touch instruction, and a voice instruction.
  17. 根据权利要求14-16任一项所述的装置,其特征在于,Apparatus according to any one of claims 14-16, wherein
    所述检测单元,还用于检测输入的遥控开启指令,根据所述遥控开启 指令发送唤醒指令至所述确定单元;The detecting unit is further configured to detect an input remote start command, and start according to the remote control Sending a wake-up command to the determining unit;
    所述确定单元,还用于根据所述唤醒指令从休眠状态变为唤醒状态,其中,The determining unit is further configured to change from a sleep state to an awake state according to the wake-up instruction, where
    所述唤醒状态是指所述确定单元能够接收所述检测单元发送的所述操作指令,并根据所述操作指令和预设的对应关系,确定与所述操作指令对应的第一遥控编码的状态;The awake state is that the determining unit is capable of receiving the operation instruction sent by the detecting unit, and determining a state of the first remote control code corresponding to the operation instruction according to the operation instruction and a preset correspondence relationship. ;
    所述休眠状态是指所述确定单元停止接收所述检测单元发送的所述操作指令的状态。The sleep state refers to a state in which the determining unit stops receiving the operation instruction sent by the detecting unit.
  18. 根据权利要求14-17任一项所述的装置,其特征在于,Apparatus according to any one of claims 14-17, wherein
    所述检测单元,还用于检测输入的遥控关闭指令,根据所述遥控关闭指令发送休眠指令至所述确定单元;The detecting unit is further configured to detect an input remote control closing instruction, and send a sleep instruction to the determining unit according to the remote closing command;
    所述确定单元,还用于根据所述休眠指令从唤醒状态变为休眠状态,其中,The determining unit is further configured to change from an awake state to a sleep state according to the sleep instruction, where
    所述唤醒状态是指所述确定单元能够接收所述检测单元发送的所述操作指令,并根据所述操作指令和预设的对应关系,确定与所述操作指令对应的第一遥控编码的状态;The awake state is that the determining unit is capable of receiving the operation instruction sent by the detecting unit, and determining a state of the first remote control code corresponding to the operation instruction according to the operation instruction and a preset correspondence relationship. ;
    所述休眠状态是指所述确定单元停止接收所述检测单元发送的所述操作指令的状态。The sleep state refers to a state in which the determining unit stops receiving the operation instruction sent by the detecting unit.
  19. 根据权利要求14-18任一项所述的装置,其特征在于,所述发射单元的发射角度的绝对值大于9度。 Apparatus according to any one of claims 14-18, wherein the absolute value of the emission angle of the transmitting unit is greater than 9 degrees.
PCT/CN2016/077700 2016-03-29 2016-03-29 Infrared remote control method, terminal and apparatus WO2017166066A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201680080779.XA CN108604404A (en) 2016-03-29 2016-03-29 infrared remote control method, terminal and device
PCT/CN2016/077700 WO2017166066A1 (en) 2016-03-29 2016-03-29 Infrared remote control method, terminal and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/077700 WO2017166066A1 (en) 2016-03-29 2016-03-29 Infrared remote control method, terminal and apparatus

Publications (1)

Publication Number Publication Date
WO2017166066A1 true WO2017166066A1 (en) 2017-10-05

Family

ID=59963190

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/077700 WO2017166066A1 (en) 2016-03-29 2016-03-29 Infrared remote control method, terminal and apparatus

Country Status (2)

Country Link
CN (1) CN108604404A (en)
WO (1) WO2017166066A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107885347A (en) * 2017-10-27 2018-04-06 深圳前海茂佳软件科技有限公司 It is remotely controlled driving method, device and computer-readable recording medium
CN108230661A (en) * 2018-02-09 2018-06-29 广州视源电子科技股份有限公司 Infrared remote control system, method, infrared electronic white board and storage medium
CN108566634A (en) * 2018-03-30 2018-09-21 深圳市冠旭电子股份有限公司 Reduce method, apparatus and Baffle Box of Bluetooth that Baffle Box of Bluetooth continuously wakes up delay
CN110913057A (en) * 2018-09-14 2020-03-24 北京奇虎科技有限公司 Mobile phone unlocking method and device, computing equipment and computer storage medium
CN112154407A (en) * 2019-08-13 2020-12-29 深圳市大疆创新科技有限公司 Terminal control method, control terminal and movable platform
CN113259735A (en) * 2020-02-10 2021-08-13 深圳Tcl数字技术有限公司 Remote controller awakening method, remote controller and storage medium
CN113328764A (en) * 2021-06-04 2021-08-31 深圳诺博医疗科技有限公司 Intelligent empty box detection system and intelligent empty box detection method
CN108230661B (en) * 2018-02-09 2024-05-17 广州视源电子科技股份有限公司 Infrared remote control system, method, infrared electronic whiteboard and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111862567A (en) * 2020-07-20 2020-10-30 广东博殿堡电子科技有限公司 Control method and system for remote control through mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090096656A1 (en) * 2007-10-16 2009-04-16 Vern Smith Color-coding connectors for infra-red repeater
CN103035115A (en) * 2012-12-10 2013-04-10 Tcl通力电子(惠州)有限公司 System and method for controlling household equipment based on intelligent terminal gesture recognition
CN104134339A (en) * 2014-08-08 2014-11-05 广东欧珀移动通信有限公司 Speech remote-control method and device
CN204576787U (en) * 2015-05-14 2015-08-19 连宁 Wireless remote control terminal and wireless remote-control system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853568A (en) * 2010-04-13 2010-10-06 鸿富锦精密工业(深圳)有限公司 Gesture remote control device
CN103957319A (en) * 2014-04-29 2014-07-30 海信集团有限公司 Method for remotely controlling target equipment through user equipment and user equipment
KR101595957B1 (en) * 2014-06-12 2016-02-18 엘지전자 주식회사 Mobile terminal and controlling system
CN104639966A (en) * 2015-01-29 2015-05-20 小米科技有限责任公司 Method and device for remote control
CN105261201B (en) * 2015-10-15 2019-03-01 Oppo广东移动通信有限公司 A kind of remote control method and device and mobile terminal based on mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090096656A1 (en) * 2007-10-16 2009-04-16 Vern Smith Color-coding connectors for infra-red repeater
CN103035115A (en) * 2012-12-10 2013-04-10 Tcl通力电子(惠州)有限公司 System and method for controlling household equipment based on intelligent terminal gesture recognition
CN104134339A (en) * 2014-08-08 2014-11-05 广东欧珀移动通信有限公司 Speech remote-control method and device
CN204576787U (en) * 2015-05-14 2015-08-19 连宁 Wireless remote control terminal and wireless remote-control system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN108230661A (en) * 2018-02-09 2018-06-29 广州视源电子科技股份有限公司 Infrared remote control system, method, infrared electronic white board and storage medium
CN108230661B (en) * 2018-02-09 2024-05-17 广州视源电子科技股份有限公司 Infrared remote control system, method, infrared electronic whiteboard and storage medium
CN108566634A (en) * 2018-03-30 2018-09-21 深圳市冠旭电子股份有限公司 Reduce method, apparatus and Baffle Box of Bluetooth that Baffle Box of Bluetooth continuously wakes up delay
EP3547715A1 (en) * 2018-03-30 2019-10-02 Shenzhen Grandsun Electronic Co., Ltd. Method and apparatus for reducing continuous-wakeup delay of bluetooth loudspeaker, and bluetooth loudspeaker
CN108566634B (en) * 2018-03-30 2021-06-25 深圳市冠旭电子股份有限公司 Method and device for reducing continuous awakening delay of Bluetooth sound box and Bluetooth sound box
US11243595B2 (en) 2018-03-30 2022-02-08 Shenzhen Grandsun Electronic Co., Ltd. Method and apparatus for reducing continuous-wakeup delay of bluetooth loudspeaker, and bluetooth loudspeaker
CN110913057A (en) * 2018-09-14 2020-03-24 北京奇虎科技有限公司 Mobile phone unlocking method and device, computing equipment and computer storage medium
CN112154407A (en) * 2019-08-13 2020-12-29 深圳市大疆创新科技有限公司 Terminal control method, control terminal and movable platform
CN113259735A (en) * 2020-02-10 2021-08-13 深圳Tcl数字技术有限公司 Remote controller awakening method, remote controller and storage medium
CN113328764A (en) * 2021-06-04 2021-08-31 深圳诺博医疗科技有限公司 Intelligent empty box detection system and intelligent empty box detection method

Also Published As

Publication number Publication date
CN108604404A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
WO2017166066A1 (en) Infrared remote control method, terminal and apparatus
US10796694B2 (en) Optimum control method based on multi-mode command of operation-voice, and electronic device to which same is applied
US11205427B2 (en) Method, apparatus, system, device for controlling intelligent device and storage medium
WO2017071093A1 (en) Electronic device control method and apparatus
CN104023434B (en) A kind of methods, devices and systems for opening intelligent lamp
US11862010B2 (en) Apparatus, system and method for using a universal controlling device for displaying a graphical user element in a display device
JP6522124B2 (en) Gesture control method, device and system
CN105049923A (en) Method and apparatus for waking up electronic device
CN107005611B (en) Attachment device and method for controlling electronic device
CN109901698B (en) Intelligent interaction method, wearable device, terminal and system
CN109308159B (en) Intelligent device control method, device and system, electronic device and storage medium
US10439838B2 (en) Control device, method of controlling the same, and integrated control system
CN103957319A (en) Method for remotely controlling target equipment through user equipment and user equipment
CN106603350A (en) Information display method and apparatus
US20130091369A1 (en) Power-saving input device and power-saving method for such input device
CN104299403A (en) Method and device for controlling household appliances
CN103150886A (en) User-customization multi-mode general remote controller
US9697727B2 (en) Remote control apparatus
CN104410900B (en) A kind of method and device for controlling the indicator light being installed on smart machine
TWI556664B (en) To achieve a wireless interaction between an electronic device and an initiator
RU2673464C1 (en) Method for recognition and control of household appliances via mobile phone and mobile phone for its implementation
JP2015207999A (en) Integrated system of infrared remote controller
CN203118212U (en) User customized universal multi-mode remote control unit
KR20100037254A (en) Apparatus and method for controlling home appliances based on gesture
TWI438647B (en) Remote controller based on gesture

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16895847

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16895847

Country of ref document: EP

Kind code of ref document: A1