CN109523774B - Device control method and electronic device - Google Patents

Device control method and electronic device Download PDF

Info

Publication number
CN109523774B
CN109523774B CN201811457826.5A CN201811457826A CN109523774B CN 109523774 B CN109523774 B CN 109523774B CN 201811457826 A CN201811457826 A CN 201811457826A CN 109523774 B CN109523774 B CN 109523774B
Authority
CN
China
Prior art keywords
chip
equipment
infrared
control instruction
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811457826.5A
Other languages
Chinese (zh)
Other versions
CN109523774A (en
Inventor
陈岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811457826.5A priority Critical patent/CN109523774B/en
Publication of CN109523774A publication Critical patent/CN109523774A/en
Application granted granted Critical
Publication of CN109523774B publication Critical patent/CN109523774B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared

Landscapes

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

Abstract

The application relates to a device control method and an electronic device. The method comprises the following steps: and acquiring a device control instruction through the second chip, wherein the device control instruction contains a device identifier, generating an infrared control signal through the second chip according to the device control instruction, and sending the infrared control signal to a device corresponding to the device identifier, wherein the power consumption of the first chip is higher than that of the second chip. The second chip with lower power consumption in the electronic equipment acquires the equipment control instruction, and the equipment can be controlled without installing an application program in the electronic equipment, so that the power consumption of the electronic equipment is reduced. Because the second chip can send the infrared control signal to the equipment corresponding to the equipment identification, a third-party infrared device is not needed, and the cost is saved.

Description

Device control method and electronic device
Technical Field
The present application relates to the field of communications technologies, and in particular, to an apparatus control method and an electronic apparatus.
Background
With the development of communication technology, most devices can be controlled by a short-distance infrared remote control. The electronic device may implement control of other devices by simulating an infrared remote controller, for example, an application program for controlling other devices may be installed in the electronic device. When other equipment needs to be controlled, the electronic equipment can simulate the infrared remote controller through the application program, and the control of the other equipment is realized by combining a third-party infrared device.
However, the conventional device control method has a problem that power consumption of the electronic device is excessively high.
Disclosure of Invention
The embodiment of the application provides a device control method and electronic equipment, which can reduce the power consumption of the electronic equipment.
The device control method is applied to electronic equipment, and the electronic equipment comprises a first chip and a second chip which are connected; the method comprises the following steps:
acquiring a device control instruction through the second chip, wherein the device control instruction contains a device identifier;
generating an infrared control signal according to the equipment control instruction through the second chip, and sending the infrared control signal to equipment corresponding to the equipment identifier;
wherein the power consumption of the first chip is higher than the power consumption of the second chip.
An electronic device comprises a first chip and a second chip, wherein the first chip is connected with the second chip, and the power consumption of the first chip is higher than that of the second chip;
the second chip is used for acquiring a device control instruction, generating an infrared signal according to the device control instruction, and controlling and sending the infrared signal to the device corresponding to the device identifier; wherein, the device control command contains a device identifier.
According to the equipment control method and the electronic equipment, the electronic equipment comprises the first chip and the second chip which are connected, the electronic equipment obtains an equipment control instruction through the second chip, the equipment control instruction contains an equipment identifier, the second chip generates an infrared control signal according to the equipment control instruction, and sends the infrared control signal to the equipment corresponding to the equipment identifier, wherein the power consumption of the first chip is higher than that of the second chip. The second chip with lower power consumption in the electronic equipment acquires the equipment control instruction, and the equipment can be controlled without installing an application program in the electronic equipment, so that the power consumption of the electronic equipment is reduced. Because the second chip can send the infrared control signal to the equipment corresponding to the equipment identification, a third-party infrared device is not needed, and the cost is saved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram showing an application environment of a device control method according to an embodiment;
FIG. 2 is a schematic diagram of a partial internal structure of an electronic apparatus according to an embodiment;
FIG. 3 is a diagram illustrating an internal structure of a second chip according to an embodiment;
FIG. 4 is a block diagram of a portion of the structure of a handset in one embodiment;
fig. 5 is a flowchart illustrating an apparatus control method according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first chip may be referred to as a second chip, and similarly, a second chip may be referred to as a first chip, without departing from the scope of the present application. The first chip and the second chip are both chips, but they are not the same chip.
The device control method provided by the embodiment of the application can be applied to the application environment shown in fig. 1. As shown in fig. 1, the application environment includes an electronic device 100 and a controlled device 102. Wherein, the electronic device 100 can communicate with the controlled device 102 through infrared signals. The electronic device 100 may transmit the infrared control signal to the controlled device 102, and after receiving the infrared control signal transmitted by the electronic device 100, the controlled device 102 may perform an operation corresponding to the infrared control signal. The electronic device 100 may include, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the controlled device 102 may be various infrared devices, such as an air conditioner, a refrigerator, a washing machine, a television, and the like.
Fig. 2 is a schematic diagram of a partial internal structure of an electronic device according to an embodiment. The electronic device 100 may include a first chip 110 and a second chip 120. The first chip 110 may be connected to the second chip 120 through a serial Peripheral interface spi (serial Peripheral interface), and the first chip 110 may also be connected to the second chip 120 through an Inter-integrated Circuit interface I2C (bidirectional two-wire synchronous serial interface). The power consumption of the first chip 110 is greater than the power consumption of the second chip 120. The second chip 120 may obtain a device control instruction, and specifically, the device control instruction obtained by the second chip 120 includes a device identifier. The second chip 120 may generate the infrared control information according to the device control instruction, and the second chip 120 may send the infrared control signal to the device corresponding to the device identifier.
In one embodiment, as shown in FIG. 3, the second chip 120 may include a microcontroller 122, a processor 124, a memory 126, and an infrared transceiver 128. The processor 124 may include a digital Signal processor (dsp) module, the infrared transceiver 128 may receive or transmit infrared signals, and the Memory 126 may be a Static Random-Access Memory (SRAM). The microcontroller 122 may be connected to the first chip, the processor 124, and the memory 126 through an interface, and the microcontroller 122 may communicate with the first chip through the interface, for example, when the second chip 120 is successfully turned on, the microcontroller 122 may send the turn-on success information to the first chip through the interface. The processor 124 is connected to the microcontroller 122 and the memory 126, respectively, and the processor 124 may generate an infrared control signal according to the device control instruction, and the infrared control signal generated by the processor 124 may be transmitted to the controlled device.
In one embodiment, when the first chip 110 detects the turn-on command, the first chip 110 may control the second chip 120 to turn on. The first chip 110 may obtain an operation instruction generated by triggering the touch display screen, and generate a device control instruction according to the operation instruction. The first chip 110 may send device control instructions to the microcontroller 122 in the second chip 120. After receiving the device control instruction, the microcontroller 122 may generate opening success information, the microcontroller 122 may send the opening success information to the first chip 110, and the first chip 110 may close its own function after receiving the opening success information. The device control instruction received by the microcontroller 122 and sent by the first chip 110 may include a device identifier, the microcontroller 122 in the second chip 120 may send the obtained device control instruction to the memory 126, and the memory 126 may store the device control instruction and the corresponding device identifier. Processor 124 may retrieve the device control instruction and the device identifier from memory 126, processor 124 may generate an infrared control signal according to the device control instruction, processor 124 may transmit the generated infrared control signal to infrared transceiver 128, and infrared transceiver 128 may transmit the infrared control signal to the controlled device corresponding to the device identifier. After receiving the infrared control signal sent by the infrared transceiver 128, the controlled device may execute a corresponding operation according to the infrared control signal, after executing the operation, the controlled device may send an infrared feedback signal to the infrared transceiver 128, the infrared transceiver 128 may convert the infrared feedback signal into a target signal that can be recognized by the first chip 110, and the microcontroller 122 may control the infrared transceiver 128 to send the target signal to the first chip 110.
In another embodiment, the microcontroller 122 in the second chip 120 may obtain an operation instruction generated by triggering the touch display screen, and generate a device control instruction according to the operation instruction, where the device control instruction includes a device identifier. The microcontroller 122 may send the device control instruction to the memory 126 for storage, the processor 124 may obtain the device control instruction and the device identifier from the memory 126, the processor 124 may generate an infrared control signal according to the device control instruction, the processor 124 may send the generated infrared control signal to the infrared transceiver 128, and the infrared transceiver 128 may send the infrared control signal to a controlled device corresponding to the device identifier. After receiving the infrared control signal sent by the infrared transceiver 128, the controlled device may execute a corresponding operation according to the infrared control signal, after executing the operation, the controlled device may send an infrared feedback signal to the infrared transceiver 128, the infrared transceiver 128 may convert the infrared feedback signal into a target signal that can be recognized by the first chip 110, and the microcontroller 122 may control the infrared transceiver 128 to send the target signal to the first chip 110.
In one embodiment, the infrared transceiver 128 in the second chip 120 may be configured to receive various infrared signals, the infrared transceiver 128 may convert the received infrared signals into target signals that can be recognized by the first chip 110, and the microcontroller 122 in the second chip 120 may control the infrared transceiver 128 to transmit the target signals to the first chip 110.
Fig. 4 is a block diagram of a partial structure of a mobile phone related to an electronic device provided in an embodiment of the present application. Referring to fig. 4, the handset includes: the first chip 110, the second chip 120, the display unit 130, the input unit 140, the memory 150, the audio circuit 160, the wireless fidelity (WiFi) module 170, the Radio Frequency (RF) circuit 180, and the power supply 190. Those skilled in the art will appreciate that the handset configuration shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The first chip 110 is a control center of the mobile phone, connects various parts of the whole mobile phone by using various interfaces and lines, and executes various functions and processes data of the mobile phone by running or executing software programs and/or modules stored in the memory 150 and calling data stored in the memory 150, thereby integrally monitoring the mobile phone. In one embodiment, first chip 110 may include one or more processing units. In one embodiment, the first chip 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like; the modem processor handles primarily wireless communications. It is to be understood that the modem processor described above may not be integrated into the first chip 110. The first chip 110 may obtain an operation instruction generated by triggering the touch display screen, the first chip 110 may generate a device control instruction according to the operation instruction, and the first chip 110 may send the generated device control instruction to the second chip 120. The first chip 110 may detect a turn-on command, where the turn-on command is used to turn on the second chip 120. The first chip 110 may detect whether each control in the touch display screen is touched, and when the first chip 110 detects a touch operation of a user on an opening control in the touch display screen, the first chip 110 may generate an opening instruction according to the touch operation. The first chip 110 may send the generated turn-on instruction to the second chip 120, that is, the first chip 110 may control the second chip 120 to turn on. The first chip 110 may receive the opening success information sent by the second chip 120, and the first chip 110 may close its own function according to the opening success information. The first chip 110 may receive a target signal sent by the second chip 120, where the target signal is obtained by converting the infrared feedback signal by the second chip 120, and the target signal may be a signal that can be identified by the first chip 110.
The power consumption of the second chip 120 is lower than that of the first chip 110. The second chip 120 may be connected to the first chip 110 through an interface or a wire, and specifically, the second chip 120 may be connected to the first chip 110 through an SPI interface or an I2C interface. The second chip 120 may obtain a device control instruction, where the device control instruction may include a device identifier, the device may be an infrared device, the device identifier is used to distinguish different devices, and the device identifier may be a serial number or a name of the device. For example, the device identification may be a refrigerator, an air conditioner, a television, the device identification may also be 001,002,003, and so on. The second chip 120 may generate an infrared control signal according to the device control instruction, and send the generated infrared control signal to the device corresponding to the device identifier. For example, the device name included in the device control instruction is an air conditioner, the infrared control signal generated by the second chip 120 according to the generated control instruction may be sent to the air conditioner, and the air conditioner may execute a corresponding operation after receiving the infrared control signal. The device control instruction acquired by the second chip 120 may be automatically generated by the second chip 120, the second chip 120 may acquire an operation instruction generated by triggering through a touch display screen, and the second chip 120 may generate the device control instruction according to the operation instruction; the device control instruction acquired by the second chip 120 may also be acquired from the first chip 110, the first chip 110 may acquire an operation instruction generated by triggering through a touch display screen, and generate a device control instruction according to the operation instruction, and the first chip 110 may send the generated device control instruction to the second chip 120. The second chip 120 may receive the infrared feedback signal sent by the device, the second chip 120 may convert the received infrared feedback signal into a target signal, and the second chip 120 may send the target signal to the first chip 110.
The display unit 130 may be used to display various controls, such as an open control, a close control, a prompt control, and the like. The display unit 130 may include a display panel 132, and the display panel 132 may be a touch display screen. In one embodiment, the Display panel 132 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, the touch panel 141 can cover the display panel 132, and when the touch panel 141 detects a touch operation on or near the touch panel 141, the touch operation is transmitted to the first chip 110 to determine the type of the touch event, and then the first chip 110 provides a corresponding visual output on the display panel 132 according to the type of the touch event. Although in fig. 4, the touch panel 141 and the display panel 132 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 141 and the display panel 132 may be integrated to implement the input and output functions of the mobile phone.
The input unit 140 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 600. Specifically, the input unit 140 may include a touch panel 141 and other input devices 142. The touch panel 141, which may also be referred to as a touch screen, may collect touch operations of a user (e.g., operations of the user on the touch panel 141 or near the touch panel 141 using any suitable object or accessory such as a finger or a stylus) thereon or nearby, and drive the corresponding connection device according to a preset program. In one embodiment, the touch panel 141 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, transmits the touch point coordinates to the first chip 110, and can receive and execute commands sent by the first chip 110. In addition, the touch panel 141 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 140 may include other input devices 142 in addition to the touch panel 141. In particular, the other input devices 142 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like.
The memory 150 may be used to store software programs and modules, and the first chip 110 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 150. The memory 150 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playing function, an application program for an image playing function, and the like), and the like; the data storage area may store data (such as audio data, an address book, etc.) created according to the use of the mobile phone, and the like. Further, the memory 150 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
Audio circuitry 160, speaker 161 and microphone 162 may provide an audio interface between the user and the handset. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, and the electrical signal is received by the audio circuit 160 and then converted into audio data, and then the audio data is output to the first chip 110 for processing, and then the audio data can be sent to another mobile phone through the RF circuit 180, or the audio data is output to the memory 150 for subsequent processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 170, and provides wireless broadband Internet access for the user. Although fig. 4 shows WiFi module 170, it is understood that it does not belong to an essential component of handset 100 and may be omitted as desired.
The RF circuit 180 may be used for receiving and transmitting signals during information transmission or communication, and may receive downlink information of the base station and then process the received downlink information to the first chip 110; the uplink data may also be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuit 180 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Messaging Service (SMS), and the like.
The mobile phone 100 further includes a power supply 190 (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the first chip 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In one embodiment, the handset 100 may also include a camera, a bluetooth module, and the like.
In one embodiment, a device control method is provided, which is exemplified by being applied to the electronic device described above, and as shown in fig. 5, the method includes the steps of:
step 502, obtaining a device control instruction through the second chip, where the device control instruction includes a device identifier.
The second chip may be an integrated circuit chip that may be used to process infrared signals in the electronic device, and the second chip may send and receive data through an interface on the chip. For example, the second chip may be connected to the first chip through the SPI interface or the I2C interface, and receive the data sent by the first chip.
The device control instruction may be generated by a user through a trigger operation of touching the display screen of the electronic device, and the device control instruction may be used to control the device to perform a corresponding operation. A touch display screen of the electronic device may display a plurality of touch-controllable controls, for example, the touch display screen may display an open control, a close control, a timing control, and the like. The user can touch different controls in the electronic device touch display screen to generate corresponding device control instructions, for example, if the user touches the control, the electronic device can generate a device control instruction for controlling the device to be started, if the user touches the timing control, the electronic device can generate a device control instruction for controlling the device to be timed.
The device identification may be used to distinguish between different devices, where the devices may be infrared devices, for example, the devices may be air conditioners, televisions, refrigerators, and the like. The device identification may be a number of the device or may be a name of the device. For example, the device identifier may be 001,002,003, and the device identifier may be an air conditioner, a television, a refrigerator, or the like.
The device control instruction may be generated by a user through a trigger operation of the touch display screen. A touch display screen of the electronic device may display a plurality of touch-controllable controls, for example, the touch display screen may display an open control, a close control, a timing control, and the like. The user can touch different controls in the electronic device touch display screen to generate corresponding device control instructions, for example, if the user touches the control, the electronic device can generate a device control instruction for controlling the device to be started, if the user touches the timing control, the electronic device can generate a device control instruction for controlling the device to be timed.
A second chip in the electronic device can detect the device control instruction, and the second chip can acquire the device control instruction. The device control instruction contains a device identifier, that is, the device control instruction obtained by the second chip may correspond to the device identifier because the device identifier exists in the device control instruction.
And step 504, generating an infrared control signal through the second chip according to the device control instruction, and sending the infrared control signal to the device corresponding to the device identifier.
The infrared control signal may be used to control the infrared device to perform a corresponding action. After receiving the device control instruction, the second chip can generate an infrared control signal according to the device control instruction. For example, the device control instruction received by the second chip is to turn on an air conditioner, and the second chip may generate an infrared control signal to turn on the air conditioner according to the device control instruction to turn on the air conditioner.
After the second chip generates the infrared control signal, the generated infrared control signal may be sent to the device corresponding to the device identifier. For example, the infrared control signal acquired by the second chip is an infrared control signal for turning on an air conditioner, and the second chip may send the infrared control signal for turning on the air conditioner to the air conditioner.
In this embodiment, the electronic device obtains a device control instruction through the second chip, where the device control instruction includes a device identifier, generates an infrared control signal according to the device control instruction through the second chip, and sends the infrared control signal to a device corresponding to the device identifier, where power consumption of the first chip is higher than power consumption of the second chip. The second chip with lower power consumption in the electronic equipment acquires the equipment control instruction, and the equipment can be controlled without installing an application program in the electronic equipment, so that the power consumption of the electronic equipment is reduced. Because the second chip can send the infrared control signal to the equipment corresponding to the equipment identification, a third-party infrared device is not needed, and the cost is saved.
In an embodiment, the provided device control method may further include a process of obtaining the device control instruction through the second chip, specifically including: acquiring an operation instruction generated by triggering through a touch display screen through a first chip, and generating a device control instruction according to the operation instruction; and acquiring the equipment control instruction sent by the first chip through the second chip.
The first chip may be a control center of the electronic device, and is used for controlling the operation and processing of the electronic device. For example, the first chip may be a central Processing unit (cpu). The first chip can be connected with the second chip through an SPI interface or an I2C interface, and the first chip can be connected with the touch display screen through an SPI interface or an I2C interface.
The first chip can detect whether the control in the touch display screen is triggered, and when the first chip detects that the control in the touch display screen is triggered, the first chip can acquire an operation instruction generated by triggering the control in the touch display screen. For example, when the first chip detects that a start control in the touch display screen is triggered, the first chip may acquire an operation instruction for triggering the start control. The first chip may further obtain an equipment identifier corresponding to the operation instruction, for example, the operation instruction obtained by the first chip is an operation instruction for triggering a start control, and the equipment identifier corresponding to the operation instruction for triggering the start control is an air conditioner. The first chip may generate the device control instruction according to the acquired operation instruction. After the first chip obtains the operation instruction, the first chip may further obtain an equipment identifier corresponding to the operation instruction, and the first chip may generate an equipment control instruction including the equipment identifier according to the obtained operation instruction.
After the first chip acquires the device control instruction, the first chip may send the acquired device control instruction to the second chip, that is, the electronic device may acquire the device control instruction sent by the first chip through the second chip.
In this embodiment, the electronic device obtains, through the first chip, an operation instruction generated by triggering through the touch display screen, generates a device control instruction according to the operation instruction, and obtains, through the second chip, the device control instruction sent by the first chip. The electronic equipment generates the equipment control instruction through the first chip and sends the generated equipment control instruction to the second chip through the first chip, and the first chip only needs to generate the equipment control instruction, so that the power consumption of the first chip in the electronic equipment is reduced.
In another embodiment, the provided device control method may further include a process of obtaining the device control instruction through the second chip, specifically including: and acquiring an operation instruction generated by triggering through the touch display screen through the second chip, and generating an equipment control instruction according to the operation instruction by the second chip.
The second chip can detect whether the control in the touch display screen is triggered, and when the second chip detects that the control in the touch display screen is triggered, the second chip can acquire an operation instruction generated by triggering the control in the touch display screen. For example, when the second chip detects that a start control in the touch display screen is triggered, the second chip may acquire an operation instruction for triggering the start control. The second chip may further obtain an equipment identifier corresponding to the operation instruction, for example, the operation instruction obtained by the second chip is an operation instruction for triggering a start control, and the equipment identifier corresponding to the operation instruction for triggering the start control is an air conditioner. The second chip may generate a device control instruction according to the acquired operation instruction. After the second chip obtains the operation instruction, the second chip may further obtain an equipment identifier corresponding to the operation instruction, and the second chip may generate an equipment control instruction including the equipment identifier according to the obtained operation instruction.
In this embodiment, the electronic device obtains an operation instruction generated by triggering the touch display screen through the second chip, and the second chip generates a device control instruction according to the operation instruction. The electronic equipment can obtain the equipment control instruction only through the second chip, and the power consumption of the electronic equipment can be reduced.
In an embodiment, the provided device control method may further include a process of turning off the first chip function, specifically including: when the first chip detects a starting instruction, the second chip is controlled to be started through the first chip; when the second chip is successfully started, the successful starting information is sent to the first chip; and the first chip closes the self function according to the opening success information.
The open instruction may be generated by a user by triggering the electronic device to touch a control in the display screen. The control in the touch display screen of the electronic device may be a control in system setting of the electronic device, for example, there may be an infrared chip opening control in the system setting of the electronic device, a user may perform touch operation on the infrared chip opening control in the system setting, and the electronic device may generate an opening instruction according to the touch operation of the user. The first chip can detect the opening instruction, and when the first chip detects the opening instruction, the first chip can control the second chip to be opened through the SPI interface or the I2C interface. After the second chip is successfully opened, the second chip can generate opening success information and send the generated opening success information to the first chip. After receiving the opening success information sent by the second chip, the first chip may close its own function.
In this embodiment, when the first chip detects the start instruction, the second chip is controlled to be started through the first chip, when the second chip is successfully started, the successful start information is sent to the first chip, and the first chip closes the function of the first chip according to the successful start information. After the first chip in the electronic equipment controls the second chip to be successfully started, the function of the first chip can be closed, and the power consumption of the electronic equipment is saved.
In another embodiment, after the second chip sends the infrared control signal to the device corresponding to the device identifier, a control completion signal may be sent to the first chip, and the first chip may start its own function according to the control completion signal sent by the second chip. That is, the first chip may be woken up by the control completion signal of the second chip.
In another embodiment, the provided device control method may further include a process of obtaining the device control instruction through the second chip, specifically including: when the first chip detects a starting instruction, the second chip is controlled to be started through the first chip; when the second chip is successfully started, the successful starting information is sent to the first chip; the first chip closes the self function according to the successful opening information, acquires an operation instruction generated by triggering through the touch display screen through the second chip, and the second chip generates a device control instruction according to the operation instruction.
The first chip can turn off the function of the first chip after controlling the second chip to be successfully turned on. The second chip can detect whether the first chip closes the self function or not, and when the second chip detects that the first chip closes the self function, the second chip can acquire an operation instruction generated by triggering through the touch display screen and generate an equipment control instruction according to the operation instruction.
In an embodiment, the provided device control method may further include a process of converting the infrared feedback signal by the second chip, specifically including: receiving an infrared feedback signal sent by equipment through a second chip; converting the infrared feedback signal into a target signal through a second chip, and sending the target signal to a first chip; the target signal is a signal which can be identified by the first chip.
The infrared feedback signal may be sent by the infrared device, and is used to indicate that the infrared device receives the infrared control signal sent by the second chip. The second chip may include an infrared transceiver, and the second chip may receive an infrared feedback signal sent by an infrared device through the infrared transceiver. After receiving the infrared feedback signal sent by the device, the second chip can convert the received infrared feedback signal. Specifically, the second chip may convert the received infrared feedback signal into a target signal.
The first chip may be a central processing unit having no function of recognizing the infrared signal, and the second chip may recognize the infrared signal. After the second chip receives the infrared feedback signal, the second chip can feed back to the first chip, because the first chip can not identify the infrared signal, the second chip can convert the received infrared feedback information into a target signal which can be identified by the first chip, and the second chip can send the target signal obtained by conversion to the first chip.
In this embodiment, the electronic device receives the infrared feedback signal sent by the device through the second chip, converts the infrared feedback signal into a target signal through the second chip, and sends the target signal to the first chip, where the target signal is a signal that can be identified by the first chip. After the electronic equipment receives the infrared feedback signal sent by the equipment through the second chip, the infrared feedback signal can be converted into a target signal which can be identified by the first chip, therefore, a third-party infrared device is not needed to process the infrared signal in the electronic equipment, the first chip can identify the information fed back by the equipment, the power consumption of the electronic equipment is reduced, and the cost is saved.
In one embodiment, a device control method is provided, and the specific steps for implementing the method are as follows:
firstly, the electronic device can acquire an operation instruction generated by triggering the touch display screen through the first chip, and generate a device control instruction according to the operation instruction. Then, the electronic device may obtain the device control instruction sent by the first chip through the second chip.
The process of the electronic device obtaining the device control instruction through the second chip may also be: when the first chip detects the opening instruction, the electronic device can control the second chip to open through the first chip. When the second chip is successfully opened, the second chip can send the opening success information to the first chip, and the first chip can close the functions of the first chip according to the opening success information. After the first chip closes the functions of the first chip, the electronic device can acquire an operation instruction generated by triggering through the touch display screen through the second chip, and the second chip generates a device control instruction according to the operation instruction.
And then, the electronic equipment can generate an infrared control signal through the second chip according to the equipment control instruction and send the infrared control signal to the equipment corresponding to the equipment identifier.
Secondly, the electronic device may receive the infrared feedback signal sent by the device through the second chip. The infrared feedback signal may be sent by the infrared device, and is used to indicate that the infrared device receives the infrared control signal sent by the second chip. The second chip may include an infrared transceiver, and the second chip may receive an infrared feedback signal sent by an infrared device through the infrared transceiver.
The electronic device can convert the infrared feedback signal into a target signal through the second chip and send the target signal to the first chip. The target signal is a signal which can be identified by the first chip.
It should be understood that, although the steps in the respective flowcharts described above are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in each of the flowcharts described above may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (6)

1. The equipment control method is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a first chip and a second chip which are connected; the method comprises the following steps:
when the first chip detects a starting instruction, the first chip controls a second chip to be started; when the second chip is successfully started, sending the successful starting information to the first chip; the first chip closes the self function according to the opening success information;
the second chip directly obtains an operation instruction generated by triggering of the touch display screen and directly generates an equipment control instruction according to the operation instruction; the equipment control instruction contains equipment identification;
generating an infrared control signal according to the equipment control instruction through the second chip, and sending the infrared control signal to equipment corresponding to the equipment identifier;
wherein the power consumption of the first chip is higher than the power consumption of the second chip;
according to the method, the second chip directly obtains the equipment control instruction, and the equipment is controlled without installing an application program in the electronic equipment.
2. The method of claim 1, further comprising:
receiving an infrared feedback signal sent by the equipment through the second chip;
converting the infrared feedback signal into a target signal through the second chip, and sending the target signal to the first chip; wherein the target signal is a signal that can be identified by the first chip.
3. An electronic device is characterized by comprising a first chip and a second chip, wherein the first chip is connected with the second chip, and the power consumption of the first chip is higher than that of the second chip;
the first chip is used for controlling the second chip to be started when a starting instruction is detected, and closing the function of the first chip according to the successful starting information after the second chip is started;
the second chip is used for sending the opening success information to the first chip when the opening is successful; the second chip directly obtains an operation instruction generated by triggering of the touch display screen and directly generates an equipment control instruction according to the operation instruction; wherein, the device control command contains a device identifier;
the second chip is further used for generating an infrared signal according to the equipment control instruction and controlling and sending the infrared signal to the equipment corresponding to the equipment identifier;
according to the electronic equipment, the second chip directly obtains the equipment control instruction, and the equipment is controlled without installing an application program in the electronic equipment.
4. The electronic device according to claim 3, wherein the first chip is configured to obtain an operation instruction generated by triggering a touch display screen, and generate the device control instruction according to the operation instruction;
the first chip is further configured to send the device control instruction to the second chip.
5. The electronic device of any of claims 3-4, wherein the second chip comprises:
the microcontroller is connected with the first chip through an interface and used for acquiring a device control instruction;
the processor is connected with the microcontroller and used for generating an infrared control signal according to a device control instruction;
the memory is connected with the processor and the microcontroller and is used for storing the equipment identification;
and the infrared transceiver is used for sending the infrared control signal to the equipment corresponding to the equipment identifier and receiving an infrared feedback signal sent by the equipment.
6. A computer storage medium on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 2.
CN201811457826.5A 2018-11-30 2018-11-30 Device control method and electronic device Active CN109523774B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811457826.5A CN109523774B (en) 2018-11-30 2018-11-30 Device control method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811457826.5A CN109523774B (en) 2018-11-30 2018-11-30 Device control method and electronic device

Publications (2)

Publication Number Publication Date
CN109523774A CN109523774A (en) 2019-03-26
CN109523774B true CN109523774B (en) 2021-02-02

Family

ID=65793981

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811457826.5A Active CN109523774B (en) 2018-11-30 2018-11-30 Device control method and electronic device

Country Status (1)

Country Link
CN (1) CN109523774B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817424A (en) * 2019-11-18 2021-05-18 Oppo广东移动通信有限公司 Method, device, storage medium and electronic equipment for realizing compass application
CN112988256B (en) * 2019-12-02 2022-03-25 Oppo广东移动通信有限公司 Application starting method and device, storage medium and electronic equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1808513A (en) * 2005-01-18 2006-07-26 乐金电子(中国)研究开发中心有限公司 Mobile telephone based remote controller for household electrical appliance
CN102215604A (en) * 2011-03-31 2011-10-12 杭州芯赛微电子有限公司 Method for realizing network download infrared remote control function by mobile phone
CN202551153U (en) * 2012-02-07 2012-11-21 陈硕 Mobile-phone-based home and automobile remote control system
CN103777788B (en) * 2012-10-22 2018-03-23 联想(北京)有限公司 A kind of control method and electronic equipment
CN103888838B (en) * 2012-12-19 2018-08-31 联想(北京)有限公司 A kind of data processing method, device and electronic equipment
CN104102863B (en) * 2014-07-24 2017-07-18 北京握奇智能科技有限公司 A kind of ID authentication device and the apparatus control method
CN204741485U (en) * 2015-07-09 2015-11-04 上海锐益信息技术有限公司 A infrared remote control system for cell -phone
CN206377502U (en) * 2016-12-27 2017-08-04 晶能光电(江西)有限公司 A kind of novel flash lamp and a kind of mobile terminal
CN106793044B (en) * 2017-02-28 2018-06-01 飞天诚信科技股份有限公司 It is a kind of to realize the method for bluetooth security equipment low-power consumption standby and bluetooth security equipment

Also Published As

Publication number Publication date
CN109523774A (en) 2019-03-26

Similar Documents

Publication Publication Date Title
CN108320744B (en) Voice processing method and device, electronic equipment and computer readable storage medium
WO2020156021A1 (en) Antenna control method and system, electronic device, and computer-readable storage medium
CN108462697B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN112911556A (en) Method for establishing classic Bluetooth connection between dual-mode Bluetooth devices and dual-mode Bluetooth device
WO2021114952A1 (en) Data processing method, terminal device, bluetooth device, and storage medium
JP2016504899A (en) Electronic device, battery protection method, facility, program, and recording medium
WO2018049886A1 (en) Hotspot establishment method and terminal device
CN109445917B (en) Application processing method and device, electronic equipment and computer readable storage medium
CN104407804A (en) Screen capturing method and screen capturing device as well as electronic device
CN108733337B (en) Screen display method and device, electronic equipment and computer readable storage medium
CN105138239A (en) Application operation method and device and terminal device
CN110928394A (en) Screen display method and electronic equipment
CN104217172A (en) Privacy content checking method and device
CN109523774B (en) Device control method and electronic device
CN110072013B (en) Terminal control method and device
CN106454975A (en) Hotspot network switching method and terminal equipment
CN106507357B (en) Access control method and terminal equipment
CN111478378B (en) Protection circuit, charging control device and method, and electronic device
CN112987907B (en) Control method and device of wearable device, electronic device and readable storage medium
CN107872791B (en) Access point connection method and device
CN106371896B (en) Virutal machine memory configuration method and device, mobile terminal
CN110874130B (en) Notification information processing method and electronic equipment
CN109511139B (en) WIFI control method and device, mobile device and computer-readable storage medium
CN112997507B (en) Audio system control method, device, terminal and computer readable storage medium
CN110891262A (en) Bluetooth pairing method, system and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant