CN109644331B - Electronic device and control method of electronic device - Google Patents

Electronic device and control method of electronic device Download PDF

Info

Publication number
CN109644331B
CN109644331B CN201780000435.8A CN201780000435A CN109644331B CN 109644331 B CN109644331 B CN 109644331B CN 201780000435 A CN201780000435 A CN 201780000435A CN 109644331 B CN109644331 B CN 109644331B
Authority
CN
China
Prior art keywords
power
low
consumption
preset signal
frequency clock
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
CN201780000435.8A
Other languages
Chinese (zh)
Other versions
CN109644331A (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.)
Shenzhen Goodix Technology Co Ltd
Original Assignee
Shenzhen Goodix Technology Co 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 Shenzhen Goodix Technology Co Ltd filed Critical Shenzhen Goodix Technology Co Ltd
Publication of CN109644331A publication Critical patent/CN109644331A/en
Application granted granted Critical
Publication of CN109644331B publication Critical patent/CN109644331B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

An electronic apparatus and a control method of the electronic apparatus. The electronic device includes: a first data selector (1), a plurality of high power devices, a low power timer (2) and a mode controller (3); the plurality of high power consumption devices comprise a microcontroller (4); a first output end of the first data selector (1) is connected to an input end of the microcontroller (4), a second output end of the first data selector is connected to an input end of the low-power-consumption timer (2), and a gating control end of the first data selector is connected to the mode controller (3); the low-power-consumption timer (2) is connected with a plurality of high-power-consumption devices in the plurality of high-power-consumption devices. By adopting the method, when the low-power-consumption switching command is detected, the plurality of high-power-consumption devices are closed, so that the power consumption is reduced, and the survival time of the slave equipment is prolonged.

Description

Electronic device and control method of electronic device
Technical Field
The present disclosure relates to the field of low power consumption technologies, and in particular, to an electronic device and a control method of the electronic device.
Background
Bluetooth low energy (BLE4.0 and above versions) has become the mainstream wireless scheme for low-cost and low-power consumption due to its extremely low power consumption (one button battery can be used for continuous operation for one to several years), and is widely applied to the fields of medical treatment, home furnishing, entertainment and the like.
The existing low-power-consumption Bluetooth system generally comprises a low-power-consumption Bluetooth master device and various low-power-consumption Bluetooth slave devices, wherein the low-power-consumption Bluetooth slave devices are small in size and cannot be configured with a large-capacity power supply battery, when the batteries of the individual low-power-consumption Bluetooth slave devices are exhausted, the normal operation of the system cannot be influenced due to more deployed Bluetooth devices, but when a certain number of Bluetooth devices are shut down, the whole low-power-consumption Bluetooth system is paralyzed or even crashed.
For example, a bluetooth low energy system may require 1 bluetooth low energy master device and 4 bluetooth low energy slave devices to operate simultaneously to maintain its high precision operation, and if there are 8 bluetooth low energy slave devices in the system, initially when the bluetooth low energy slave devices are down one by one, the whole network will not be affected. When the number of the normally working Bluetooth low energy slave devices is reduced to 4, if the Bluetooth low energy slave devices are down at the moment, the whole system may not work normally.
The inventor finds that the prior art has at least the following problems in the process of implementing the application: the low-power-consumption Bluetooth master device cannot master the conditions of all the low-power-consumption Bluetooth slave devices in the whole system, so that corresponding measures cannot be taken to ensure that the whole system works stably and effectively for a long time when the number of the low-power-consumption Bluetooth slave devices in the system reaches a critical value.
Disclosure of Invention
An object of some embodiments of the present application is to provide an electronic device and a control method of the electronic device, which are configured to turn off a plurality of high power consumption devices when a low power consumption switching command is detected, so as to reduce power consumption and prolong a survival time of a slave device.
One embodiment of the present application provides an electronic device, including: the device comprises a first data selector, a plurality of high-power-consumption devices, a low-power-consumption timer and a mode controller; the plurality of high-power consumption devices comprise microcontrollers; the first output end of the first data selector is connected with the input end of the microcontroller, the second output end of the first data selector is connected with the input end of the low-power-consumption timer, and the gating control end of the first data selector is connected with the mode controller; the low-power consumption timer is connected with a plurality of high-power consumption devices in the plurality of high-power consumption devices; the mode controller is used for controlling the first data selector to gate the second output end when a low-power-consumption switching command is detected, and the low-power-consumption timer is started and is used for closing the high-power-consumption devices and starting timing; the low-power consumption timer is also used for waking up the plurality of high-power consumption devices to send a preset signal when the preset period is reached; the low-power-consumption timer is also used for closing the plurality of high-power-consumption devices and restarting timing after the preset signal is sent.
Another embodiment of the present application provides a method for controlling an electronic device, the electronic device including a low power consumption timer and a plurality of high power consumption devices; the control method comprises the following steps: when a low-power-consumption switching command is detected, starting a low-power-consumption timer; the low-power consumption timer closes a plurality of high-power consumption devices and starts timing; when the preset period is timed, the low-power-consumption timer wakes up a plurality of high-power-consumption devices in the plurality of high-power-consumption devices to send preset signals; after the preset signal is sent, the low-power-consumption timer closes the plurality of high-power-consumption devices and starts timing again.
Compared with the prior art, the embodiment of the application can close a plurality of high-power-consumption devices when a low-power-consumption switching command is detected, so that the power consumption is reduced, and the survival time of the slave device is prolonged.
In addition, the mode controller is an electric quantity detection device, and the electric quantity detection device is used for judging that the low-power-consumption switching command is detected when the electronic equipment is detected to be in a low-power-quantity state; the preset signal is a warning signal representing low electric quantity. The embodiment specifically introduces the mode controller, provides a determination mode of a low-power-consumption switching command, and sends a warning signal representing low power consumption when the electronic device is in a low-power state, so that the main device can find the low power consumption in time to perform corresponding processing, and the stability of the system is maintained.
In addition, the electronic equipment also comprises a preset signal transmitter and a low-frequency clock generator, and the plurality of high-power consumption devices comprise high-frequency clock generators; the high-frequency clock generator and the low-frequency clock generator are respectively connected to the input end of the first data selector; the preset signal transmitter is connected to the second output end of the first data selector and connected to the low-power-consumption timer; when the first data selector gates the second output end, the high-frequency clock generator outputs a high-frequency clock signal to the preset signal transmitter, and the low-frequency clock generator outputs a low-frequency clock signal to the low-power-consumption timer; the preset signal transmitter is used for transmitting a preset signal under the time sequence control of the high-frequency clock signal and informing the low-power-consumption timer after the preset signal is transmitted. In this embodiment, a preset signal transmitter is additionally arranged, and the preset signal is transmitted by the preset signal transmitter, so that the turn-on of high-power-consumption devices is reduced, and the power consumption is further reduced.
In addition, the electronic device further comprises a second data selector; the first input end of the second data selector is connected with the output end of the microcontroller, the second input end of the second data selector is connected with the output end of the preset signal transmitter, and the gating control end of the second data selector is connected with the mode controller; and the mode controller controls the second data selector to gate the second input end when the low-power-consumption switching command is detected. In this embodiment, the second data selector and the first data selector switch synchronously, that is, when the electronic device is in a low power state, the second data selector only allows the preset signal transmitter to output the preset signal, so that the preset signal is prevented from being interfered by the microcontroller, and the stability of the signal is ensured.
In addition, the plurality of high-power consumption devices comprise a high-frequency clock generator and a microcontroller; the electronic device further comprises a low frequency clock generator; the high-frequency clock generator and the low-frequency clock generator are respectively connected to the input end of the first data selector; when the first data selector gates the second output end, the high-frequency clock generator outputs a high-frequency clock signal to the microcontroller, and the low-frequency clock generator outputs a low-frequency clock signal to the low-power-consumption timer; the microcontroller is used for sending a preset signal under the time sequence control of the high-frequency clock signal and informing the low-power-consumption timer after the preset signal is sent. In this embodiment, a scheme that can send the signal of predetermineeing without increasing other components and parts is provided, can send the signal of predetermineeing through microcontroller, be convenient for according to actual conditions nimble selection, practiced thrift certain hardware cost simultaneously.
In addition, the preset signal transmitter comprises a sequence generator and a radio frequency controller; the sequence generator and the radio frequency controller are respectively connected to the second output end of the first data selector, and the sequence generator is also connected to the radio frequency controller; the sequence generator is used for generating the preset signal, and the radio frequency controller is used for controlling the preset signal to be sent out. The embodiment provides a specific implementation manner of the preset signal transmitter.
In addition, the plurality of high power consumption devices comprise a power supply switching controller; the power supply switching controller is used for switching the electronic equipment from the auxiliary power supply to the main power supply for supplying power when being awakened; when the electronic equipment is turned off, the electronic equipment is switched from the main power supply to the auxiliary power supply for power supply. According to the embodiment, on the basis of ensuring the transmission of the preset signal, the power consumption is reduced as much as possible.
In addition, a plurality of high power consumption devices include transmitting antenna for wireless transmission of preset signals.
In addition, in the control method of the electronic device, the preset signal is a bluetooth signal; the length of the preset signal is less than the length of the broadcast signal set in the low-power-consumption Bluetooth protocol, and the preset period is greater than the broadcast interval set in the low-power-consumption Bluetooth protocol. In this embodiment, the preset signal in a proprietary form is set to reduce power consumption as much as possible, ensure that the device can maintain the existing working state for a longer time, and reduce direct mutual interference between the preset signal and other devices.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a block schematic diagram of an electronic device according to a first embodiment of the present application;
FIG. 2 is a block schematic diagram of an electronic device according to a second embodiment of the present application;
FIG. 3 is a block schematic diagram of an electronic device according to a third embodiment of the present application;
FIG. 4 is a block schematic diagram of an electronic device according to a fourth embodiment of the present application;
fig. 5 is a detailed flowchart of a control method of an electronic device according to a fifth embodiment of the present application;
FIG. 6 is a detailed flowchart of step 105 according to a fifth embodiment of the present application;
fig. 7 is a detailed flowchart of a control method of an electronic device according to a sixth embodiment of the present application;
fig. 8 is a detailed flowchart of a control method of an electronic device according to a seventh embodiment of the present application;
fig. 9 is a detailed flowchart of a control method of an electronic device according to an eighth embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, some embodiments of the present application will be described in 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.
The first embodiment of the present application relates to an electronic device, for example, a bluetooth low energy slave device, configured to connect with a bluetooth low energy master device, for example, a mobile phone, a tablet computer, and the like, where the bluetooth low energy slave device and the bluetooth low energy master device form a bluetooth low energy system. As shown in fig. 1, the electronic device includes a first data selector 1, a plurality of high power devices, a low power timer 2, and a mode controller 3; the microcontroller 4 is included in a number of high power consuming devices.
A first output end of the first data selector 1 is connected with an input end of the microcontroller 4, a second output end of the first data selector is connected with an input end of the low-power-consumption timer 2, and a gating control end of the first data selector is connected with the mode controller 3; the low power consumption timer 2 is connected to several of the plurality of high power consumption devices.
The mode controller 3 is used for controlling the first data selector 1 to gate the second output end when detecting a low-power-consumption switching command, the second end of the first data selector 1 is connected to the low-power-consumption timer 2, at this time, the low-power-consumption timer 2 is started, and the low-power-consumption timer 2 is used for closing a plurality of high-power-consumption devices and starting timing; the low-power-consumption timer 2 is also used for waking up the plurality of high-power-consumption devices when the preset period is reached in the timing process so as to send the preset signal, and the low-power-consumption timer 2 controls to close the plurality of high-power-consumption devices and restart the timing process after the preset signal is sent.
In this embodiment, when the electronic device only needs to transmit a small amount of information and the frequency requirement for transmitting information is very low, it may be determined that the low power consumption switching command is detected, the low power consumption timer 2 is started, the low power consumption timer 2 closes the plurality of high power consumption devices and starts timing, and when the timing reaches a preset period, the plurality of high power consumption devices are waken up to send a preset signal, which may be short data defined by a user.
In this embodiment, the high power consumption devices refer to devices with higher power consumption in unit time, the multiple high power consumption devices refer to all high power consumption devices in the electronic device for normal operation of the electronic device, and the multiple high power consumption devices include all high power consumption devices necessary for sending the preset signal.
Compared with the prior art, the embodiment provides the electronic device, and the electronic device can turn off a plurality of high-power-consumption devices when a low-power-consumption switching command is detected, so that the power consumption is reduced, and the survival time of the slave device is prolonged.
A second embodiment of the present application relates to an electronic device, and the present embodiment is a refinement of the first embodiment, and mainly includes: in this embodiment, the mode controller 3 is an electric quantity detection device.
In this embodiment, when the electric quantity detection device detects that the electronic device is in a low electric quantity state, it is determined that the low power consumption switching command is detected, the low power consumption timer 2 is started, the low power consumption timer 2 closes the plurality of high power consumption devices and starts timing, and when the timing reaches a preset period, the plurality of high power consumption devices are awakened to send a preset signal, where the preset signal is a warning signal representing low electric quantity.
The low power state may mean that the power is less than a preset power lower limit value and cannot work normally, and the device is down due to power exhaustion in a short time.
In practice, referring to fig. 2, the electronic device further includes a predetermined signal transmitter 5 and a low frequency clock generator 6, and the high power consumption devices include a high frequency clock generator 7.
The high-frequency clock generator 7 and the low-frequency clock generator 6 are respectively connected to the input end of the first data selector 1; the preset signal transmitter 5 is connected to the second output terminal of the first data selector 1 together with the low power consumption timer 2, and the preset signal transmitter 5 is further connected to the low power consumption timer 2.
In this embodiment, when the low power consumption switching command is not detected (the electronic device is in a normal power state), the first data selector 1 gates the first output end, the high-frequency clock generator 7 outputs a high-frequency clock signal to the microcontroller 4, and the low-frequency clock generator 6 outputs a low-frequency clock signal to the microcontroller 4, where the electronic device is in a normal operating state.
In this embodiment, when a low power consumption switching command (that the electronic device is in a low power state) is detected, the first data selector 1 gates the second output end, the high-frequency clock generator 7 outputs a high-frequency clock signal to the preset signal transmitter 5, the low-frequency clock generator 6 outputs a low-frequency clock signal to the low power consumption timer 2, the low power consumption timer 2 controls to close a plurality of high power consumption devices including the microcontroller 4 and start timing, and at this time, the electronic device enters an ultra-low power consumption operating mode. The preset signal transmitter 5 is configured to transmit a preset signal under the time sequence control of the high-frequency clock signal, notify the low-power-consumption timer 2 after the preset signal is transmitted, count again by the low-power-consumption timer 2, and when the preset period is reached, the preset signal transmitter 5 transmits the preset signal again. In this embodiment, a preset signal transmitter dedicated to transmitting a preset signal is added to reduce the turn-on of high power devices, thereby further reducing power consumption.
In this embodiment, the preset signal transmitter 5 may be a dedicated beacons transmission controller, and the transmitted preset signal may be a very short beacons data packet. When the electronic device is operating normally, the preset signal transmitter 5 is completely in the off state. When the electronic equipment is in a low-power state, the preset signal transmitter is awakened to transmit the preset signal at regular time.
Wherein the default signal is a very short beacons packet, comprising: the broadcast channel Preamble (form 50105010b) defined by the bluetooth low energy protocol, the Access Address (form 0x8E89BED6) defined by the bluetooth low energy protocol, and the transmission channel can be selected and transmitted according to any one of the broadcast channels ch37, ch38, and ch39 defined by the bluetooth low energy protocol, but is not limited thereto.
As an example, referring to fig. 2, the electronic device further comprises a second data selector 8; a first input end of the second data selector 9 is connected to an output end of the microcontroller 4, a second input end of the second data selector is connected to an output end of the preset signal transmitter 10, and a gating control end of the second data selector is connected to the mode controller 3; wherein, the mode controller 3 controls the second data selector 8 to gate the second input terminal when detecting the low power switching command. In this embodiment, the second data selector and the first data selector switch synchronously, that is, when a low power consumption switching command is detected, the second data selector only allows the preset signal transmitter to output the preset signal, so that the preset signal is prevented from being interfered by the microcontroller 4, and the stability of the signal is ensured.
In practice, referring to fig. 2, the high power devices further include a power switching controller 9; the power supply switching controller 9 is used for switching the electronic equipment from the auxiliary power supply to the main power supply when the electronic equipment is awakened; when the electronic equipment is turned off, the electronic equipment is switched from the main power supply to the auxiliary power supply for power supply. On the basis of ensuring the normal transmission of the preset signal, the power consumption is reduced as much as possible.
For example, referring to fig. 2, when the electronic device is a bluetooth low energy device, the plurality of high power devices further include a transmitting antenna 10 for wirelessly transmitting the predetermined signal.
In fact, this embodiment provides an ultra-low power consumption operating mode of an electronic device, where the electronic device may be a bluetooth low energy slave device, and the details are as follows:
1. when the mode controller 3 detects that the low-power-consumption bluetooth slave device cannot normally work due to too low electric quantity or only needs to send a small amount of data information, the first data selector 1 is controlled to gate the second output end, and at the moment, the microcontroller 4 is turned off (the microcontroller 4 also belongs to a high-power-consumption device in the electronic device).
2. The low power consumption timer 2 is started, and a plurality of high power consumption devices inside the electronic equipment are turned off and start to time. The plurality of high-power-consumption devices comprise a power supply switching controller 9, and the power supply switching controller 9 controls the low-power-consumption Bluetooth slave device to be switched from a main power supply to an auxiliary power supply for supplying power. At this time, only the low power consumption timer 2 is kept in operation. The internal high-power consumption devices for turning off the low-power consumption timer 2 include, for example, a high-frequency clock generator 7, a power supply switching controller 9, and a transmitting antenna 10.
3. When the low power consumption timer 2 reaches a preset period, waking up a plurality of high power consumption devices. The plurality of high-power-consumption devices comprise a power supply switching controller 9, and the power supply switching controller 9 controls the low-power-consumption Bluetooth slave device to be switched from an auxiliary power supply to a main power supply for supplying power. At this time, the preset signal transmitter 5 controls to transmit preset signal beacons data packets, and the preset signal is generally transmitted wirelessly through the transmitting antenna 10.
For example, the low power timer 2 wakes up several high power devices including the high frequency clock generator 7, the transmitting antenna 10.
4. And after the transmission is finished, the low-power-consumption timer 2 controls to close a plurality of high-power-consumption devices and restart timing, and only the low-power-consumption timer 2 is reserved.
5. Repeating the steps 3-4, and continuously sending out a preset signal.
In practice, at the bluetooth low energy master device, since the transmission mode and the transmission frequency of the beacons packet are compatible with those of existing bluetooth low energy devices, the analysis of the beacons packet can be completed without adding other additional hardware, and the position of the bluetooth low energy master device is calculated and obtained according to the RSSI (received signal strength indicator) of the receiving end. And prompting a user to manage according to the conditions of all slave devices in the current whole system.
Compared with the first embodiment, when the electronic device is in a low-power state, the embodiment sends the warning signal representing the low power, so that the main device can find the warning signal in time to facilitate corresponding processing, and the stability of the system is maintained.
The third embodiment of the present application relates to an electronic device, and is a refinement of the second embodiment, and the main refinement is that: the preset signal transmitter 5 is specifically described.
In this embodiment, referring to fig. 3, the preset signal transmitter 5 includes two sequence generators 501 and a radio frequency controller 502; the sequence generator 501 and the radio frequency controller 502 are respectively connected to the second output end of the first data selector 1, and the sequence generator 501 is further connected to the radio frequency controller 502; the sequence generator 501 is configured to generate a preset signal, and the rf controller 502 is configured to control the preset signal to be sent out. The two sequence generators 501 generate sequence preset signals and send the sequence preset signals to the buffer, preset signal data are generated through the buffer, the preset signal data are sent through the radio frequency controller 502, after the sending is completed, the radio frequency controller 502 informs the low-power-consumption timer 2 to close a plurality of high-power-consumption devices and start timing, and meanwhile, the radio frequency controller 502 is closed.
It should be noted that, in this embodiment, two sequence generators 501 are taken as an example, in practice, whether the sequence generators 501 operate may be configured in advance, so as to control and select one or two sequence generators 501 to operate, and if only one sequence generator 501 operates, the preset signal may also be sent, but is not limited thereto.
In practice, only one sequence generator 501 may be provided, and the preset signal generated by the sequence generator 501 may directly send the generated preset signal to the rf controller 502 without generating the preset signal data through the buffer, that is, the sequence generator 501 may directly connect with the rf controller 502 to send the preset signal.
Compared with the second embodiment, the present embodiment provides a specific implementation manner of the preset signal transmitter, and meets the actual design requirements.
A fourth embodiment of the present application relates to an electronic device, and is substantially the same as the second embodiment, and mainly differs therefrom in that: in this embodiment, a scheme that can send the preset signal without adding other components is provided.
In this embodiment, referring to fig. 4, the high power consumption devices include a high frequency clock generator 7 and a microcontroller 4; the electronic device further comprises a low frequency clock generator 6. The high frequency clock generator 7 and the low frequency clock generator 6 are connected to the input terminals of the first data selector 1, respectively.
In this embodiment, when the low power switching command is not detected, the first data selector 1 gates the first output terminal, the high frequency clock generator 7 outputs the high frequency clock signal to the microcontroller 4, and the low frequency clock controller 6 outputs the low frequency clock signal to the microcontroller 4, where the electronic device is in a normal operating state.
In this embodiment, when the low power consumption switching command is detected, and the first data selector 1 gates the second output terminal, the high-frequency clock generator 7 outputs a high-frequency clock signal to the microcontroller 4, the low-frequency clock generator 6 outputs a low-frequency clock signal to the low-power consumption timer 2, the low-power consumption timer 2 controls to close a plurality of high-power consumption devices and start timing, and at this time, the electronic device enters an ultra-low power consumption operating mode. The microcontroller 4 sends a preset signal under the time sequence control of the high-frequency clock signal, and informs the low-power-consumption timer 2 after the preset signal is sent, the low-power-consumption timer 2 counts time again, and when the preset period is reached, the microcontroller 4 sends the preset signal again.
Compared with the second embodiment, the embodiment provides a scheme that the preset signal can be sent without adding other components, the preset signal can be sent through the microcontroller, flexible selection according to actual conditions is facilitated, and meanwhile certain cost is saved.
A fifth embodiment of the present application relates to a method for controlling an electronic device, where the electronic device includes a first data selector, a low power consumption timer, a preset signal transmitter, a mode controller, and a plurality of high power consumption devices, where the plurality of high power consumption devices include a plurality of high power consumption devices, and the plurality of high power consumption devices include a high frequency clock generator. A detailed flowchart of the control method of the electronic device is shown in fig. 5.
Step 101, determining whether a low power consumption switching command is detected. If yes, go to step 102; if not, the process is ended directly.
Specifically, when the electronic device only needs to transmit a small amount of information and the frequency requirement for transmitting information is low, it may be determined that the low power switching command is detected, or the mode controller may be a power detection device that determines that the low power switching command is detected when the power detection device detects that the electronic device is in a low power state.
Step 102, a low power consumption timer is started.
Specifically, when it is determined that the low power consumption switching command is detected, a start instruction is received, and a low power consumption timer is started.
And step 103, the low-power-consumption timer closes the plurality of high-power-consumption devices and starts to time.
Specifically, after the low-power-consumption timer is started, the electronic device ends a normal working state, enters an ultra-low-power-consumption working mode, the low-power-consumption timer controls to close a plurality of high-power devices to reduce power consumption, so that the electronic device is maintained for a longer time, and then the low-power-consumption timer starts to time.
And step 104, judging whether to count to a preset period.
Specifically, whether a preset period is timed or not is judged, if yes, the step 105 is executed, and a plurality of high-power-consumption devices are awakened; if not, continuing to judge until reaching the preset period.
It should be noted that the preset period should be much longer than the normal broadcast period of the electronic device, so as to achieve low power consumption and inform the functions of other devices, generally in the order of seconds.
And 105, awakening a plurality of high-power-consumption devices in the plurality of high-power-consumption devices by the low-power-consumption timer to send a preset signal.
Specifically, when the electronic device only needs to transmit a small amount of information and the frequency requirement for transmitting the information is low, the preset signal transmitter transmits a preset signal (the preset signal may be short data customized by a user) when the low-power-consumption timer counts to a predetermined period. When the mode controller 3 is an electric quantity detection device, and the electric quantity detection device detects that the electronic equipment is in a low electric quantity state, in order to enable the electronic equipment to be timely discovered by the main equipment for processing, the slave equipment (the electronic equipment) needs to inform the main equipment at regular time, so that the stability of the system is maintained; that is, when the low power consumption timer counts the time to the predetermined period, the preset signal transmitter transmits a preset signal, and the preset signal is a warning signal representing low power. The sending of the preset signal requires the support of several high power consuming devices. Therefore, the low power timer needs to wake up several high power devices.
In practice, referring to fig. 6, in step 105, the low power consumption timer wakes up a plurality of high power consumption devices in the plurality of high power consumption devices to send the preset signal, which specifically includes:
in the substep 1051, after the low power consumption timer wakes up the plurality of high power consumption devices, the high frequency clock generator outputs a high frequency clock signal to the preset signal transmitter.
Specifically, the preset signal transmitter needs timing control of a high-frequency clock signal to send out the preset signal, and therefore, the plurality of high-power-consumption devices at least comprise a high-frequency clock generator; and waking up the high-frequency clock generator, and outputting a high-frequency clock signal to a preset signal transmitter by the high-frequency clock generator.
And a substep 1052, wherein the preset signal transmitter transmits the preset signal under timing control of the high frequency clock signal.
Specifically, the preset signal transmitter generates and transmits the preset signal when receiving the high-frequency clock signal.
And a substep 1053, wherein the preset signal transmitter notifies the low power consumption timer after the preset signal is transmitted.
Specifically, after the preset signal is sent, the preset signal transmitter generates a signal representing that the sending is finished to the low-power-consumption timer; and when the low-power-consumption timer receives the signal, the high-power-consumption devices are closed.
As an example, the predetermined signal may be a bluetooth signal. The length of the preset signal is less than the length of the broadcast signal set in the low-power-consumption Bluetooth protocol, and the preset period is greater than the broadcast interval set in the low-power-consumption Bluetooth protocol. In this embodiment, the preset signal in a proprietary form is set to reduce power consumption as much as possible, ensure that the device can maintain the existing working state for a longer time, and reduce direct mutual interference between the preset signal and other devices.
Wherein, the channel for transmitting the preset signal needs to be in the broadcast channel specified by the low power consumption Bluetooth protocol, so that the channel can be more easily scanned and discovered.
And step 106, turning off a plurality of high-power-consumption devices by the low-power-consumption timer, and restarting timing.
Specifically, after the preset signal is sent, the electronic device enters the ultra-low power consumption mode again, turns off the plurality of high power consumption devices, starts timing again, and enters step 104, determines whether the timing is up to the preset period, and sends the preset signal again when the timing is up to the preset period.
It should be noted that, in this embodiment, the low power consumption timer is started, the low power consumption timer controls to close the plurality of high power consumption devices, and the preset signal is sent by the preset signal transmitter only when the low power consumption timer counts a preset period, but the present invention is not limited to this.
It should be understood that the present embodiment is a method embodiment corresponding to the first embodiment and the second embodiment, and the present embodiment can be implemented in cooperation with the first embodiment and the second embodiment. The related technical details mentioned in the first embodiment and the second embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment and the second embodiment.
Compared with the prior art, the embodiment can close a plurality of high-power consumption devices when detecting that the electronic equipment is in a low-power state, so as to reduce power consumption, prolong the survival time of the slave equipment, and simultaneously send out a low-power warning signal according to a preset period, so that the master equipment can find out in time so as to perform corresponding processing, thereby maintaining the stability of the system.
The sixth embodiment of the present application relates to a control method of an electronic device, and the present embodiment is an improvement of the fifth embodiment, and mainly improves that: and immediately sending a preset signal when the low-power switching command is detected.
A specific flow of the control method of the electronic device of the present embodiment is shown in fig. 7.
Step 201 and step 202 correspond to step 101 and step 102 substantially identically, and step 205 to step 208 correspond to step 103 to step 106 substantially identically, which are not described herein again; the difference is that in this embodiment, step 203 and step 204 are added, and the following is specifically explained:
in step 203, the preset signal transmitter transmits a preset signal under the timing control of the high-frequency clock signal.
Specifically, when a low power switching command is detected, the high frequency clock generator outputs a high frequency clock signal to the preset signal transmitter, and the preset signal transmitter transmits a preset signal under the control of the high frequency clock signal.
And step 204, the preset signal transmitter notifies the low-power-consumption timer after the preset signal is transmitted.
Specifically, after the preset signal is sent, the preset signal sender needs to notify the low-power-consumption timer, so that the low-power-consumption timer can timely turn off the plurality of high-power-consumption devices. The low-power-consumption timer is started, the high-power-consumption devices are closed, timing is started, and the electronic equipment enters an ultra-low-power-consumption working mode.
Compared with the fourth embodiment, after the low power consumption timer is started and before the low power consumption timer closes the plurality of high power consumption devices and starts timing, the embodiment sends the transmission preset once, so that the master device can be informed in time.
A seventh embodiment of the present application relates to a method for controlling an electronic device, and the present embodiment is substantially the same as the fifth embodiment, and mainly differs in that: in this embodiment, a scheme that can send the preset signal without adding other components is provided.
In this embodiment, the plurality of high power consumption devices include a high frequency clock generator and a microcontroller. Fig. 8 shows a specific flow of the control method of the electronic device. Wherein, steps 301 to 304 correspond to steps 101 and 104 substantially the same, and step 306 corresponds to step 106 substantially the same, which are not described herein again; the difference lies in that:
in this embodiment, in step 305, the low power consumption timer wakes up a plurality of high power consumption devices in the plurality of high power consumption devices to send a preset signal, which specifically includes:
and in the substep 3051, after the low-power-consumption timer wakes up a plurality of high-power-consumption devices, the high-frequency clock generator outputs a high-frequency clock signal to the microcontroller.
Specifically, the high-power-consumption devices comprise a microcontroller, the microcontroller needs a high-frequency clock signal to control sending of a preset signal, at the moment, the high-frequency clock generator is awakened, and the high-frequency clock generator outputs the high-frequency clock signal to the microcontroller.
In sub-step 3052, the microcontroller sends a predetermined signal under timing control of the high frequency clock signal.
Specifically, the high frequency clock generator outputs a high frequency clock signal to the microcontroller, and the microcontroller sends a preset signal under the control of the high frequency clock signal.
And a substep 3053, wherein the microcontroller notifies the low-power-consumption timer after the preset signal is sent.
Specifically, after the microcontroller finishes sending the preset signal, the microcontroller needs to notify the low-power-consumption timer so that the microcontroller can timely turn off the plurality of high-power-consumption devices.
It should be noted that, in this embodiment, the low power consumption timer is started, the plurality of internal high power consumption devices are turned off, and when the low power consumption timer counts a preset period, the microcontroller is controlled to send a preset signal; in practice, the microcontroller may be controlled to send a preset signal immediately when the low power consumption timer is started, so as to notify the host device more timely.
Since the fourth embodiment corresponds to the present embodiment, the present embodiment can be implemented in cooperation with the fourth embodiment. The related technical details mentioned in the fourth embodiment are still valid in this embodiment, and the technical effects that can be achieved in the fourth embodiment can also be achieved in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the fourth embodiment.
Compared with the fifth embodiment, the embodiment provides a scheme that the preset signal can be sent without adding other components, the preset signal can be sent through the microcontroller, flexible selection according to actual conditions is facilitated, and meanwhile certain hardware cost is saved.
The eighth embodiment of the present application relates to a control method of an electronic device, and the present embodiment is an improvement of the fifth embodiment, and mainly improves that: a determination is added as to whether the electronic device is on-line or broadcasting.
A specific flow of the control method of the electronic device of the present embodiment is shown in fig. 9.
Step 401 corresponds to substantially the same step 101, and steps 404 to 408 correspond to substantially the same steps 102 to 106, which are not described herein again; the difference is that in this embodiment, step 402 and step 403 are added, and the following is specifically explained:
step 402, it is detected whether the electronic device is on-line or broadcasting. If yes, go to step 403; if not, go to step 404.
In particular, when a low power switching command is detected, the electronic device may affect the transmission of the preset signal if it is still on-line or broadcast.
Step 403, disconnecting the connection or stopping broadcasting.
Specifically, when it is detected that the electronic device is on-line or broadcasting, the on-line is cut off or the broadcasting is stopped.
It should be noted that disconnecting the connection means that the electronic device disconnects all devices currently connected to the electronic device.
Compared with the fifth embodiment, the present embodiment determines whether the electronic device is connected or broadcasting, so as to cut off the connection or stop broadcasting in time, so as to avoid affecting the transmission of the next preset signal.
Those skilled in the art can understand that all or part of the steps in the method of the foregoing embodiments may be implemented by a program to instruct related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the present application, and that various changes in form and details may be made therein without departing from the spirit and scope of the present application in practice.

Claims (15)

1. An electronic device, comprising: the device comprises a first data selector, a plurality of high-power-consumption devices, a low-power-consumption timer and a mode controller; the plurality of high power devices comprises a microcontroller;
the first output end of the first data selector is connected to the input end of the microcontroller, the second output end of the first data selector is connected to the input end of the low-power-consumption timer, and the gating control end of the first data selector is connected to the mode controller;
the low-power consumption timer is connected with a plurality of high-power consumption devices in the plurality of high-power consumption devices;
the mode controller is used for controlling the first data selector to gate the second output end when a low-power-consumption switching command is detected, and the low-power-consumption timer is started and is used for closing the plurality of high-power-consumption devices and starting timing;
the low-power-consumption timer is also used for waking up the plurality of high-power-consumption devices to send a preset signal when the preset period is reached; and the low-power-consumption timer is also used for closing the plurality of high-power-consumption devices and restarting timing after the preset signal is sent.
2. The electronic device of claim 1, wherein the mode controller is a power detection device configured to determine that the low power switching command is detected when the electronic device is detected to be in a low power state; the preset signal is a warning signal representing low electric quantity.
3. The electronic device of claim 1, wherein the electronic device further comprises a preset signal transmitter and a low-frequency clock generator, and the plurality of high-power-consumption devices comprise a high-frequency clock generator;
the high-frequency clock generator and the low-frequency clock generator are respectively connected to the input end of the first data selector;
the preset signal transmitter is connected to the second output end of the first data selector and connected to the low-power-consumption timer;
when the first data selector gates the second output end, the high-frequency clock generator outputs a high-frequency clock signal to the preset signal transmitter, and the low-frequency clock generator outputs a low-frequency clock signal to the low-power-consumption timer;
the preset signal transmitter is used for transmitting the preset signal under the time sequence control of the high-frequency clock signal and informing the low-power-consumption timer after the preset signal is transmitted.
4. The electronic device of claim 3, wherein the electronic device further comprises a second data selector;
the first input end of the second data selector is connected to the output end of the microcontroller, the second input end of the second data selector is connected to the output end of the preset signal transmitter, and the gating control end of the second data selector is connected to the mode controller;
wherein the mode controller controls the second data selector to gate the second input terminal when the low power consumption switching command is detected.
5. The electronic device of claim 1, wherein the number of high power devices includes a high frequency clock generator and the microcontroller; the electronic device further comprises a low frequency clock generator;
the high-frequency clock generator and the low-frequency clock generator are respectively connected to the input end of the first data selector;
when the first data selector gates the second output end, the high-frequency clock generator outputs a high-frequency clock signal to the microcontroller, and the low-frequency clock generator outputs a low-frequency clock signal to the low-power-consumption timer;
the microcontroller is used for sending the preset signal under the time sequence control of the high-frequency clock signal and informing the low-power-consumption timer after the preset signal is sent.
6. The electronic device of claim 3, wherein the preset signal transmitter comprises a sequencer and a radio frequency controller;
the sequence generator and the radio frequency controller are respectively connected to the second output end of the first data selector, and the sequence generator is also connected to the radio frequency controller;
the sequence generator is used for generating the preset signal, and the radio frequency controller is used for controlling the preset signal to be sent out.
7. The electronic device of claim 1, wherein the number of high power consuming devices comprises a power switching controller;
the power supply switching controller is used for switching the electronic equipment from the auxiliary power supply to the main power supply for supplying power when the electronic equipment is awakened; when the electronic equipment is turned off, the electronic equipment is switched from the main power supply to the auxiliary power supply for power supply.
8. The electronic device of claim 1, wherein the plurality of high power devices comprise a transmitting antenna for wirelessly transmitting the predetermined signal.
9. A control method of an electronic device, the electronic device comprising a low power consumption timer and a plurality of high power consumption devices; the control method comprises the following steps:
starting the low-power-consumption timer when a low-power-consumption switching command is detected;
the low-power-consumption timer closes the plurality of high-power-consumption devices and starts to time;
when the preset period is timed, the low-power-consumption timer wakes up a plurality of high-power-consumption devices in the plurality of high-power-consumption devices to send preset signals;
and after the preset signal is sent, the low-power-consumption timer closes the plurality of high-power-consumption devices and starts timing again.
10. The control method of claim 9, wherein the electronic device further comprises a preset signal transmitter, and the plurality of high power consumption devices comprise a high frequency clock generator;
the low-power consumption timer awakens a plurality of high-power consumption devices in the electronic equipment to send a preset signal, and the method specifically comprises the following steps:
after the low-power-consumption timer wakes up the plurality of high-power-consumption devices, the high-frequency clock generator outputs a high-frequency clock signal to the preset signal transmitter;
the preset signal transmitter transmits the preset signal under the time sequence control of the high-frequency clock signal;
and the preset signal transmitter informs the low-power-consumption timer after the preset signal is transmitted.
11. The control method according to claim 10, wherein after starting the low power consumption timer and before the low power consumption timer turns off the plurality of high power consumption devices and starts timing, further comprising:
the preset signal transmitter transmits the preset signal under the time sequence control of the high-frequency clock signal;
and the preset signal transmitter informs the low-power-consumption timer after the preset signal is transmitted.
12. The control method according to claim 9, wherein the plurality of high power devices comprise a high frequency clock generator and a microcontroller;
the low-power consumption timer awakens a plurality of high-power consumption devices in the electronic equipment to send a preset signal, and the method specifically comprises the following steps:
after the low-power consumption timer wakes up the high-power consumption devices, the high-frequency clock generator outputs a high-frequency clock signal to the microcontroller;
the microcontroller sends the preset signal under the time sequence control of the high-frequency clock signal;
and the microcontroller informs the low-power consumption timer after the preset signal is sent.
13. The control method according to any one of claims 9 to 12, wherein the detection of the low power consumption handover command is specifically: when the electronic equipment is detected to be in a low-power state, determining that the low-power switching command is detected;
the preset signal is a warning signal representing low electric quantity.
14. The control method of claim 13, wherein after detecting the low power switch command and before starting the low power timer, further comprising:
and when detecting that the electronic equipment is connected or broadcasting, disconnecting the connection or stopping broadcasting.
15. The control method of claim 9, wherein the preset signal is a bluetooth signal;
the length of the preset signal is smaller than the length of a broadcast signal set in a low-power-consumption Bluetooth protocol, and the preset period is larger than a broadcast interval set in the low-power-consumption Bluetooth protocol.
CN201780000435.8A 2017-05-31 2017-05-31 Electronic device and control method of electronic device Active CN109644331B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/086599 WO2018218503A1 (en) 2017-05-31 2017-05-31 Electronic device and control method thereof

Publications (2)

Publication Number Publication Date
CN109644331A CN109644331A (en) 2019-04-16
CN109644331B true CN109644331B (en) 2022-02-15

Family

ID=64454309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780000435.8A Active CN109644331B (en) 2017-05-31 2017-05-31 Electronic device and control method of electronic device

Country Status (2)

Country Link
CN (1) CN109644331B (en)
WO (1) WO2018218503A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101335941A (en) * 2007-06-29 2008-12-31 鸿富锦精密工业(深圳)有限公司 Mobile communication terminal and electricity quantity control method thereof
CN105050025A (en) * 2015-05-22 2015-11-11 上海美迪索科电子科技有限公司 Awakening method and device based on low-power-consumption Bluetooth radio frequency

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102109900A (en) * 2009-12-25 2011-06-29 比亚迪股份有限公司 Method and system for reducing static power consumption of electronic equipment in power-down mode
US20120327920A1 (en) * 2011-06-27 2012-12-27 Texas Instruments Incorporated Methods to enhance coexistence with low energy wireless networks
CN102869077B (en) * 2012-08-28 2015-06-03 苏州博联科技有限公司 ZigBee-protocol-based data acquisition and transmission method of wireless sensor network
CN102831452A (en) * 2012-08-31 2012-12-19 电子科技大学 Low power consumption operation for active RFID (Radio Frequency Identification) system
CN103412634B (en) * 2013-07-30 2016-08-10 深圳市汇顶科技股份有限公司 The MCU Rouser of a kind of SOC and method
CN106412845B (en) * 2015-08-03 2021-06-15 中兴通讯股份有限公司 Dormancy method and device of wireless fidelity Wi-Fi equipment
CN105281769A (en) * 2015-10-21 2016-01-27 深圳市汇顶科技股份有限公司 Signal conversion circuit and fingerprint identification system
CN105516901B (en) * 2015-12-21 2019-01-04 飞天诚信科技股份有限公司 A kind of bluetooth low energy device and its working method
CN106100685B (en) * 2016-08-24 2020-01-14 深圳市蓝科迅通科技有限公司 Power switching device based on low-power-consumption Bluetooth technology
CN106231545A (en) * 2016-09-21 2016-12-14 广东欧珀移动通信有限公司 Reduce the method and device of near-field communication module power consumption

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101335941A (en) * 2007-06-29 2008-12-31 鸿富锦精密工业(深圳)有限公司 Mobile communication terminal and electricity quantity control method thereof
CN105050025A (en) * 2015-05-22 2015-11-11 上海美迪索科电子科技有限公司 Awakening method and device based on low-power-consumption Bluetooth radio frequency

Also Published As

Publication number Publication date
CN109644331A (en) 2019-04-16
WO2018218503A1 (en) 2018-12-06

Similar Documents

Publication Publication Date Title
KR100626675B1 (en) Apparatus for wireless communications and method of controlling the same
US9820234B2 (en) Economical motor vehicle operation during a parked phase
TWI626856B (en) Method of wake-up signal transmission and reception, access point and wi-fi device thereof
US8199687B2 (en) Information-communication terminal having function of controlling electric power consumption
JP5287602B2 (en) Low standby power wireless communication system with specific frequency monitoring
US8780961B2 (en) Mixed-mode wireless device operation
KR20100133814A (en) Apparatus and method for managementing power of wlan module in portable terminal
CN109548054B (en) Method and device for keeping downlink synchronization
CN107529211B (en) Wireless communication system and method
CN108156651B (en) Switching control method and system between radio silent state and transmission state
US20140211674A1 (en) Advantageous uses of instructions instructing stations of wlan networks to desist from transmissions
CN108055696B (en) Method of controlling operation of a communication device, transceiver and computer readable medium for corresponding operation
CN107044031A (en) A kind of control method for washing machine
KR101976576B1 (en) Method And Apparatus for Saving Power in Wireless LAN
CN105744604A (en) WIFI module power consumption control device and method based on android system
CN109644331B (en) Electronic device and control method of electronic device
WO2023197720A1 (en) Charging method, charging station, system, and storage medium
CN104124767A (en) Wireless power transmission system transmitting end standby state automatic wake-up method and device
US8165330B2 (en) Method for wireless data transfer between a hearing aid and an external device
CN114765837B (en) Power saving processing method, device and equipment
CN113395668B (en) Low-power consumption communication control circuit
CN111800841B (en) Relay function control method and related device
CN108366415B (en) Method and equipment for supplying power to LPWA equipment
CN112243286A (en) Low-power-consumption energy detection method and communication device thereof
KR101730264B1 (en) Method and Apparatus for Low Power Wireless Sensor Network Communication Using Shared Channel Wake-up Transceiver in Wireless Sensor Networks

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