WO2018218503A1 - 电子设备以及电子设备的控制方法 - Google Patents
电子设备以及电子设备的控制方法 Download PDFInfo
- Publication number
- WO2018218503A1 WO2018218503A1 PCT/CN2017/086599 CN2017086599W WO2018218503A1 WO 2018218503 A1 WO2018218503 A1 WO 2018218503A1 CN 2017086599 W CN2017086599 W CN 2017086599W WO 2018218503 A1 WO2018218503 A1 WO 2018218503A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- low
- preset signal
- power consumption
- frequency clock
- electronic device
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present application relates to the field of low power consumption technologies, and in particular, to an electronic device and a method for controlling the electronic device.
- Low-power Bluetooth (BLE4.0 and above) is the mainstream wireless for low-cost and low-power requirements due to its extremely low power consumption (generally a button cell can be used for one to several years of continuous operation)
- the program is widely used in medical, home, entertainment and other fields.
- Low-power Bluetooth systems generally include low-power Bluetooth master devices, as well as various forms of low-power Bluetooth slave devices.
- Low-power Bluetooth slave devices are small in size and do not have a large-capacity power supply battery. When the consumption of Bluetooth is exhausted, the Bluetooth device will not affect the normal operation of the system, but when a certain number of Bluetooth devices are down, the entire low-power Bluetooth system will collapse or even crash.
- a low-power Bluetooth system might require a low-power Bluetooth master and four low-power Bluetooth slaves to work simultaneously to maintain its high-precision operation, if there are now 8 low-power Bluetooth slaves in the system.
- the low-power Bluetooth slaves are down one by one, the entire network will not be affected.
- the number of low-power Bluetooth slaves that work normally drops to four if the low-power Bluetooth slave device is down at this time, the entire system may not work properly.
- the inventor found in the process of implementing the present application that the prior art has at least the following problem: the low-power Bluetooth master device cannot grasp the situation of each low-power Bluetooth slave device in the entire system, resulting in the system. When the number of low-power Bluetooth slaves reaches a critical level, corresponding measures cannot be taken to ensure a stable and efficient operation of the entire system.
- the purpose of some embodiments of the present application is to provide an electronic device and a control method of the electronic device.
- a low power consumption switching command is detected, multiple high power consumption devices are turned off to reduce power consumption and prolong the survival time of the slave device.
- An embodiment of the present application provides an electronic device including: a first data selector, a plurality of high power consumption devices, a low power consumption timer, and a mode controller; and the plurality of high power devices includes a microcontroller; The first output of the first data selector is coupled to the input of the microcontroller, the second output is coupled to the input of the low power timer, the gate control is coupled to the mode controller, and the low power timer is coupled a plurality of high power devices in a plurality of high power devices; wherein the mode controller is configured to control the first data selector to strobe the second output when the low power switching command is detected, the low power timer Is enabled and used to turn off multiple high-power devices and start timing; low-power timers are also used to wake up several high-power devices to send preset signals during timing to preset cycles; low-power timing It is also used to turn off several high-power devices and restart timing after the preset signal has been sent.
- Another embodiment of the present application provides a control method of an electronic device including a low power consumption timer and a plurality of high power consumption devices.
- the control method includes: starting low power when a low power switching command is detected A low-power timer turns off multiple high-power devices and starts timing; when clocked to a preset period, the low-power timer wakes up several high-power devices in multiple high-power devices to The preset signal is sent; after the preset signal is sent, the low-power timer turns off several high-power devices and restarts timing.
- the embodiment of the present application can turn off multiple high-power devices when a low-power switching command is detected, so as to reduce power consumption and prolong the survival time of the slave device.
- the mode controller is a power detecting device, and the power detecting device is configured to determine that the low power switching command is detected when detecting that the electronic device is in a low battery state; A warning signal for the battery.
- the mode controller is specifically introduced, and a low power consumption switching command is determined.
- a warning signal indicating a low power is sent, so that the main device can be found in time to facilitate. The corresponding processing is carried out to maintain the stability of the system.
- the electronic device further includes a preset signal transmitter and a low frequency clock generator
- the plurality of high power devices include a high frequency clock generator; the high frequency clock generator and the low frequency clock generator are respectively connected to the first data selector An input signal; the preset signal transmitter is connected to the second output end of the first data selector, and is connected to the low power consumption timer; wherein, when the first data selector is strobed the second output end, the high frequency clock generator Outputting a high frequency clock signal to a preset signal transmitter, the low frequency clock generator outputs a low frequency clock signal to a low power consumption timer; the preset signal transmitter is configured to send a preset signal under the timing control of the high frequency clock signal, and Let the low power timer be notified after the signal is sent.
- a preset signal transmitter is added, and the preset signal is sent by the preset signal transmitter, thereby reducing the opening of the high power consumption device to further reduce power consumption.
- the electronic device further includes 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 is connected to the output end of the preset signal transmitter, and the strobe control end is Connected to the mode controller; wherein the mode controller controls the second data selector to gate the second input when the low power switching command is detected.
- the second data selector is synchronously switched with the first data selector, that is, when the electronic device is in a low battery state, the second data selector only allows The preset signal transmitter outputs a preset signal, thereby preventing the preset signal from being interfered by the microcontroller, and ensuring the stability of the signal.
- a plurality of high power devices include a high frequency clock generator and a microcontroller; the electronic device further includes 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
- the high frequency clock generator when the first data selector strobes the second output terminal, the high frequency clock generator outputs a high frequency clock signal to the microcontroller, and the low frequency clock generator outputs the low frequency clock signal to the low power consumption timer; the microcontroller is used
- the preset signal is transmitted under the timing control of the high frequency clock signal, and the low power timer is notified after the preset signal is transmitted.
- a scheme for transmitting a preset signal without adding other components is provided, and the preset signal can be sent by the microcontroller, which is convenient for flexible selection according to actual conditions, and at the same time saves a certain hardware cost.
- the preset signal transmitter includes 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 further connected
- the radio frequency controller is configured to generate the preset signal, and the radio frequency controller is configured to control the preset signal to be sent out.
- high-power devices include a power switching controller; the power switching controller is used to switch the electronic device from the auxiliary power source to the main power source when being woken up; when the power is turned off, the electronic device is switched from the main power source to the auxiliary power source Power supply.
- power consumption is reduced as much as possible on the basis of ensuring the transmission of the preset signal.
- several high power devices include a transmit antenna for wirelessly transmitting a preset signal.
- the preset signal is a Bluetooth signal; the length of the preset signal is smaller than the length of the broadcast signal set in the low-power Bluetooth protocol, and the preset period is greater than the low-power Bluetooth protocol.
- the broadcast interval set in the conference is set to reduce power consumption as much as possible to ensure that the device can maintain an existing working state for a longer period of time, and at the same time reduce direct mutual interference between the preset signal and other devices.
- 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 in accordance with a second embodiment of the present application.
- FIG. 3 is a block diagram showing 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 specific flowchart of a method for controlling an electronic device according to a fifth embodiment of the present application.
- FIG. 6 is a specific flowchart of step 105 according to the fifth embodiment of the present application.
- FIG. 7 is a specific flowchart of a method for controlling an electronic device according to a sixth embodiment of the present application.
- FIG. 8 is a specific flowchart of a method for controlling an electronic device according to a seventh embodiment of the present application.
- FIG. 9 is a specific flowchart of a method of controlling an electronic device according to an eighth embodiment of the present application.
- a first embodiment of the present application relates to an electronic device, such as a low power Bluetooth slave device, for connecting to a low power Bluetooth master device, such as a mobile phone, a tablet computer, etc., a low power Bluetooth slave device and low power
- the Bluetooth-consuming main device constitutes a low-power Bluetooth system.
- the electronic device includes a first data selector 1, a plurality of high power consumption devices, a low power consumption timer 2, and a mode controller 3; among the plurality of high power consumption devices, the microcontroller 4 is included.
- the first output end of the first data selector 1 is connected to the input end of the microcontroller 4, the second output end is connected to the input end of the low power consumption timer 2, and the strobe control end is connected to the mode controller 3;
- the timer 2 is connected to several high power devices of a plurality of high power devices.
- the mode controller 3 is configured to control the first data selector 1 to gate the second output when the low power switching command is detected, and the second end of the first data selector 1 is connected to the low power timer 2,
- the low-power timer 2 When the low-power timer 2 is started, the low-power timer 2 is used to turn off multiple high-power devices and start timing; the low-power timer 2 is also used to wake up several times when timing to a preset period.
- a high-power device transmits a preset signal, and the low-power timer 2 controls to turn off several high-power devices and restart timing after the preset signal is transmitted.
- the electronic device when the electronic device only needs to transmit a small amount of information, and the frequency requirement for transmitting the information is very low, it may be determined that the low power consumption switching command is detected, and the low power consumption timer 2 is started, and the low power is started.
- Timer 2 turns off multiple high-power devices and starts timing. When the timer reaches the preset period, several high-power devices are woken up to send preset signals.
- the preset signals can be user-defined shorter data. .
- the high-power device refers to a device that consumes a relatively high amount of power per unit time
- the plurality of high-power devices refers to all high-power devices used in the electronic device for the normal operation of the electronic device, and several high-power devices.
- the consuming device includes all of the high power devices necessary to transmit the preset signal.
- this embodiment provides an electronic device that can turn off multiple high-power devices when detecting a low-power switching command to reduce power consumption and prolong the survival time of the slave device.
- the second embodiment of the present application relates to an electronic device.
- This embodiment is a refinement of the first embodiment.
- the main refinement is that in the embodiment, the mode controller 3 is a power detecting device.
- the power detecting device detects that the electronic device is in a low battery state, it is determined that the low power consumption switching command is detected, the low power consumption timer 2 is started, and the low power consumption timer 2 is turned off.
- a high-power device starts counting until a predetermined period of time wakes up several high-power devices to send a preset signal, which is a warning signal that characterizes low battery.
- the low battery state can mean that the power is less than a preset power lower limit value and cannot work normally, and the device will be exhausted and down in a short time.
- the electronic device further includes a preset signal transmitter 5 and a low frequency clock generator 6, and the high frequency clock generator 7 is included in several high power consumption devices.
- 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 with the low power consumption timer 2 to the second of the first data selector 1 At the output, the preset signal transmitter 5 is also connected to the low power timer 2.
- the first data selector 1 when the low power consumption switching command is not detected (the electronic device is in the normal power state), the first data selector 1 gates the first output end, and the high frequency clock generator 7 outputs the high frequency clock signal to the micro The controller 4, the low frequency clock generator 6, outputs a low frequency clock signal to the microcontroller 4, at which time the electronic device is in a normal working state.
- the first data selector 1 strobes the second output terminal, and the high frequency clock generator 7 outputs the high frequency clock signal to the preset.
- Signal transmitter 5, low frequency clock generator 6 outputs low frequency clock signal to low power timer 2, low power
- the consumption timer 2 controls to turn off a plurality of high-power devices including the microcontroller 4 and start timing, at which time the electronic device enters an ultra-low power operation mode.
- the preset signal transmitter 5 is configured to send a preset signal under the timing control of the high frequency clock signal, and notify the low power timer 2 after the preset signal is sent, and the low power timer 2 is retimed, and the timing is up to When the period is set, the preset signal transmitter 5 transmits the preset signal again.
- a preset signal transmitter dedicated to transmitting a preset signal is added to reduce the opening of the high power consumption device, further reducing power consumption.
- the preset signal transmitter 5 may be a dedicated beacons sending controller, and the preset signal sent may be a very short beacons data packet.
- the preset signal transmitter 5 is completely turned off.
- the preset signal transmitter timing is awakened to send a preset signal.
- the preset signal is a very short beacons data packet, which includes: a broadcast channel Preamble (form 50105010b) specified by the low-power Bluetooth protocol, and an Access Address (form 0x8E89BED6) specified by the low-power Bluetooth protocol, and the transmission channel can be
- a broadcast channel Preamble (form 50105010b) specified by the low-power Bluetooth protocol
- an Access Address (form 0x8E89BED6) specified by the low-power Bluetooth protocol
- the transmission channel can be
- the broadcast channels ch37, ch38, and ch39 specified by the low-power Bluetooth protocol are arbitrarily selected for transmission, but are not limited thereto.
- the electronic device further includes a second data selector 8; the first input of the second data selector 9 is connected to the output of the microcontroller 4, and the second input is connected to the preset signal.
- the output terminal of the device 10 is connected to the mode controller 3; wherein the mode controller 3 controls the second data selector 8 to gate the second input when detecting the low power switching command.
- the second data selector is synchronously switched with the first data selector, that is, when the low power switching command is detected, the second data selector only allows the preset signal transmitter to output a preset signal, thereby avoiding the preset. The signal is disturbed by the microcontroller 4, ensuring signal stability.
- several high power devices further include a power switching controller 9;
- the power switching controller 9 is configured to switch the electronic device from the auxiliary power source to the main power source when it is woken up; when the power is turned off, the electronic device is switched from the main power source to the auxiliary power source. Reduce power consumption as much as possible while ensuring that the preset signal is sent normally.
- the electronic device when the electronic device is a low power Bluetooth device, several high power devices further include a transmitting antenna 10 for wirelessly transmitting a preset signal.
- the embodiment provides an ultra-low power consumption mode of the electronic device, and the electronic device can be a low power Bluetooth slave device, as follows:
- the mode controller 3 detects that the low-power Bluetooth slave device is too low in power to perform normal operation or only needs to send a small amount of data information, and controls the first data selector 1 to strobe the second output terminal.
- the device 4 is turned off (the microcontroller 4 is also a high power device within the electronic device).
- the low power timer 2 is activated, turning off multiple high power devices inside the electronic device and starting timing.
- the plurality of high-power devices include a power switching controller 9, and the power switching controller 9 controls the low-power Bluetooth slave device to be switched from the main power source to the auxiliary power source. At this time, only the low power timer 2 is reserved.
- the internal high-power device in which the low power consumption timer 2 is turned off includes, for example, a high frequency clock generator 7, a power supply switching controller 9, and a transmitting antenna 10.
- the low power timer 2 reaches the predetermined period, wake up several high power devices.
- several high-power devices include a power switching controller 9, and the power switching controller 9 controls the low-power Bluetooth slave device to be switched from the auxiliary power source to the main power source.
- the preset signal transmitter 5 controls to transmit the preset signal beacons data packet, and the preset signal is generally wirelessly transmitted through the transmitting antenna 10.
- high power devices that wake up by the low power timer 2 include a high frequency clock generator 7, a transmitting antenna 10.
- the low-power timer 2 controls to turn off several high-power devices and start over. Timing, only low power timer 2 is reserved.
- the analysis of the beacons data packet can be completed without adding additional hardware. And calculating the location of the low-power Bluetooth master device according to the receiving end RSSI (received signal strength indication). According to the current situation of each slave device in the entire system, the user is prompted to manage.
- RSSI received signal strength indication
- the warning signal indicating the low power is sent, so that the main device can be found in time to facilitate the corresponding processing, thereby maintaining the stability of the system.
- the third embodiment of the present application relates to an electronic device.
- the third embodiment of the present application is a refinement of the second embodiment, and the main refinement is that the preset signal transmitter 5 is specifically introduced.
- the preset signal transmitter 5 includes two sequence generators 501 and a radio frequency controller 502; the sequence generator 501 and the radio frequency control 502 are respectively connected to the second output of the first data selector 1.
- the sequence generator 501 is also coupled to the radio frequency control 502; the sequence generator 501 is configured to generate a preset signal, and the radio frequency controller 502 is configured to control the pre-set signal to be sent out.
- the two sequence generators 501 generate a sequence preset signal and send it to the buffer buffer, and generate preset signal data through the buffer buffer.
- the preset signal data is sent by the RF controller 502. After the transmission is completed, the RF controller 502 notifies the low power. Timer 2 shuts down several high power devices and begins timing while turning off RF controller 502.
- sequence generators 501 are taken as an example. In practice, whether the sequence generator 501 is operated may be pre-configured to control selection of one or two serial products.
- the processor 501 operates, and if only one sequence generator 501 is operated, the transmission of the preset signal can also be completed, but is not limited thereto.
- sequence generator 501 only one sequence generator 501 can be set.
- the preset signal generated by the sequence generator 501 can generate the preset signal data without using the buffer buffer, and directly send the generated preset signal to the RF controller 502. That is, the sequence generator 501 can directly connect to the radio frequency controller 502 to transmit a preset signal.
- this embodiment provides a specific implementation manner of a preset signal transmitter, which satisfies the actual design requirements.
- the fourth embodiment of the present application relates to an electronic device.
- the fourth embodiment of the present application is substantially the same as the second embodiment.
- the main difference is that in this embodiment, a method is provided that can be sent without adding other components.
- the scheme of the preset signal is provided.
- a plurality of high power devices include a high frequency clock generator 7 and a microcontroller 4; and the electronic device further includes a low frequency clock generator 6.
- the high frequency clock generator 7 and the low frequency clock generator 6 are respectively connected to the input terminal of the first data selector 1.
- the first data selector 1 when the low power consumption switching command is not detected, the first data selector 1 gates the first output end, and the high frequency clock generator 7 outputs the high frequency clock signal to the microcontroller 4, the low frequency clock controller 6 Output the low frequency clock signal to the microcontroller 4, and the electronic device is in a normal working state.
- the high frequency clock generator 7 outputs the high frequency clock signal to the microcontroller 4, and the low frequency clock generator 6 Output the low frequency clock signal to the low power timer 2, and the low power timer 2 controls to turn off multiple high power devices and start timing, at which time the electronic device enters an ultra low power mode of operation.
- the microcontroller 4 transmits a preset signal under the timing control of the high frequency clock signal, and notifies the low power after the preset signal is transmitted. Timer 2, the low power timer 2 is re-timed, and when the timer is preset to the preset period, the microcontroller 4 transmits the preset signal again.
- the present embodiment provides a solution for transmitting a preset signal without adding other components, and the preset signal can be sent by the microcontroller, which is convenient for flexible selection according to actual conditions, and saves A certain cost.
- 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, and the plurality of high Power devices include several high-power devices, including high-frequency clock generators in several high-power devices.
- FIG. 5 A specific flowchart of the control method of the electronic device is shown in FIG. 5.
- Step 101 Determine whether a low power switching command is detected. If yes, go to step 102; if no, it will end directly.
- the electronic device when the electronic device only needs to transmit a small amount of information and the frequency requirement for transmitting the information is low, it may be determined that the detection is to the low power switching command, or the mode controller is the power detecting device, when the power is When the detecting device detects that the electronic device is in a low battery state, it is determined that the low power switching command is detected.
- step 102 a low power timer is started.
- step 103 the low power timer turns off multiple high power devices and begins timing.
- the electronic device ends the normal working state and enters an ultra-low power operation mode, and the low-power timer controls to turn off multiple high-power devices to reduce power consumption, so that the electronic device maintains The time is longer and then the low power timer starts timing.
- step 104 it is determined whether the timing is up to a preset period.
- step 105 it is determined whether the timing is up to the preset period, and if yes, the process proceeds to step 105 to wake up the plurality of high-power devices; if not, the determination is continued until the preset period is reached.
- the preset period should be much longer than the normal broadcast period of the electronic device, so as to balance the low power consumption and the functions of other devices, generally in the order of seconds.
- step 105 the low power timer wakes up several high power devices of the plurality of high power devices to transmit the preset signal.
- the preset signal transmitter transmits a preset signal when the low power consumption timer is clocked to a predetermined period (preset The signal can be user-defined shorter data).
- the mode controller 3 is a power detecting device, and the power detecting device detects that the electronic device is in a low battery state, in order to enable the host device to be found in time for processing, the slave device (electronic device) needs to periodically notify the master device, thereby The stability of the system is maintained; that is, when the low-power timer is clocked to a predetermined period, the preset signal transmitter transmits a preset signal, and the preset signal is a warning signal indicating a low power.
- the transmission of preset signals requires the support of several high power devices. Therefore, low-power timers need to wake up several high-power devices.
- step 105 the low-power timer wakes up several high-power devices in multiple high-power devices to transmit preset signals, including:
- the high-frequency clock generator outputs a high-frequency clock signal to the preset signal transmitter.
- the preset signal transmitter requires timing control of the high frequency clock signal to issue a preset signal, and therefore, at least some high power devices include a high frequency clock generator; wake up the high frequency clock generator, the high frequency clock The generator outputs a high frequency clock signal to the preset signal transmitter.
- the preset signal transmitter transmits the preset signal under the timing control of the high frequency clock signal.
- the preset signal transmitter receives the high frequency clock signal, the preset signal is generated and transmitted.
- the preset signal transmitter notifies the low power consumption timer after the preset signal is transmitted.
- the preset signal transmitter After the preset signal is sent, the preset signal transmitter generates a signal indicating that the transmission is completed to the low power consumption timer; when the low power consumption timer receives the signal, the high power consumption is turned off. Device.
- the preset signal can be a Bluetooth signal.
- the length of the preset signal is smaller than the length of the broadcast signal set in the Bluetooth low energy protocol, and the preset period is greater than the broadcast interval set in the low power Bluetooth protocol.
- a preset signal of a proprietary form is set to reduce power consumption as much as possible to ensure that the device can maintain an existing working state for a longer period of time, and at the same time reduce direct mutual interference between the preset signal and other devices.
- the channel transmitted by the preset signal needs to be in the broadcast channel specified by the low-power Bluetooth protocol, making it easier to be scanned and found.
- step 106 the low power timer shuts down several high power devices and restarts timing.
- the electronic device enters the ultra-low power mode again, turns off several high-power devices, and restarts the timing, and proceeds to step 104 to determine whether the timing is up to a preset period. When the period is set, the preset signal is sent again.
- the low power consumption timer is started, and the low power consumption timer controls to turn off multiple high power consumption devices, and is sent by the preset signal when the low power consumption timer counts to a preset period.
- the device sends a preset signal, but the actual is not limited to this.
- the embodiment is a method embodiment corresponding to the first embodiment and the second embodiment, and the 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 effective in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related technical details mentioned in the embodiment can also be applied to the first embodiment and the second embodiment.
- this embodiment can turn off multiple high-power devices when detecting that the electronic device is in a low-power state, thereby reducing power consumption, prolonging the survival time of the slave device, and emitting a low battery at a predetermined cycle.
- the warning signal enables the master device to discover in time to facilitate the 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.
- This embodiment is an improvement of the fifth embodiment.
- the main improvement is that a preset signal is immediately transmitted when a low power consumption switching command is detected.
- FIG. 7 A specific process of the control method of the electronic device of this embodiment is shown in FIG. 7.
- Step 201 and step 202 are substantially the same as steps 101 and 102.
- Steps 205 to 208 are substantially the same as steps 103 to 106, and are not described here. The difference is that in this embodiment, Steps 203 and 204 are explained in detail as follows:
- Step 203 The preset signal transmitter transmits the preset signal under the timing control of the high frequency clock signal.
- the high frequency clock generator outputs a high frequency clock signal to the preset signal transmitter, and the preset signal transmitter transmits the preset signal under the control of the high frequency clock signal.
- Step 204 The preset signal transmitter notifies the low power consumption timer after the preset signal is sent.
- the preset signal transmitter needs to notify the low power consumption timer after the preset signal is transmitted, so that it can turn off several high power consumption devices in time.
- the low-power timer is enabled, turns off several high-power devices, and then begins timing, and the electronics enter an ultra-low-power mode of operation.
- this embodiment sends a transmission preset after the low power consumption timer is started, and before the low power consumption timer turns off multiple high power consumption devices and starts timing, which can be more timely. Notify the master device.
- the seventh embodiment of the present application relates to a method for controlling an electronic device.
- the present embodiment is substantially the same as the fifth embodiment.
- the main difference is that in this embodiment, a pre-transmission can be provided without adding other components. Set the signal scheme.
- a number of high power devices include a high frequency clock generator and a microcontroller.
- the specific flow of the control method of the electronic device is as shown in FIG.
- the steps 301 to 304 are substantially the same as the steps 101 and 104, and the steps 306 and 106 are substantially the same, and are not described here; the difference is:
- step 305 the low-power timer wakes up a plurality of high-power devices of the plurality of high-power devices to transmit the preset signal, specifically:
- the high-frequency clock generator outputs a high-frequency clock signal to the microcontroller.
- high-power devices include a microcontroller, which requires a high-frequency clock signal to control the output of a preset signal. At this time, the high-frequency clock generator is awakened, and the high-frequency clock generator outputs a high-frequency clock signal. Go to the microcontroller.
- Sub-step 3052 the microcontroller transmits a preset signal under the timing control of the high frequency clock signal.
- the high frequency clock generator outputs a high frequency clock signal to the microcontroller, the microcontroller
- the preset signal is transmitted under the control of the high frequency clock signal.
- Sub-step 3053 the microcontroller notifies the low-power timer after the preset signal is sent.
- the microcontroller needs to notify the low-power timer to enable it to turn off several high-power devices in time.
- the low-power timer is started, and multiple internal high-power devices are turned off.
- the microcontroller is controlled to issue a preset signal;
- the microcontroller can be immediately controlled to issue a preset signal when the low-power timer is started to notify the master device in a timely manner.
- the present embodiment can be implemented in cooperation with the fourth embodiment.
- the technical details mentioned in the fourth embodiment are still effective in this embodiment.
- the technical effects that can be achieved in the fourth embodiment can also be implemented in the embodiment. To reduce the repetition, details are not described herein again. Accordingly, the related art details mentioned in the embodiment can also be applied to the fourth embodiment.
- the present embodiment provides a solution for transmitting a preset signal without adding other components, and the preset signal can be sent by the microcontroller, which is convenient for flexible selection according to actual conditions, and saves Certain hardware costs.
- the eighth embodiment of the present application relates to a control method of an electronic device.
- This embodiment is an improvement of the fifth embodiment, and the main improvement is that the judgment of whether the electronic device is being connected or being broadcast is added.
- FIG. 9 A specific process of the control method of the electronic device of this embodiment is shown in FIG. 9.
- Step 401 and step 101 are substantially the same, and steps 404 to 408 are substantially the same as steps 102 to 106, and are not described herein again. The difference is that this embodiment In step 402 and step 403, the specific explanation is as follows:
- Step 402 Detect whether the electronic device is connecting or broadcasting. If yes, go to step 403; if no, go to step 404.
- the electronic device may affect the transmission of the preset signal if it is still being wired or broadcast.
- step 403 the connection is disconnected or the broadcast is stopped.
- the connection is disconnected or the broadcast is stopped.
- disconnecting the connection means that the electronic device disconnects all devices currently connected to it.
- the embodiment determines whether the electronic device is being connected or is being broadcasted, so that the connection is disconnected or the broadcast is stopped in time to avoid affecting the transmission of the next preset signal.
- a program instructing related hardware may be completed by a program instructing related hardware, and the program is stored in a storage medium, and includes a plurality of instructions for making a device (which may be a single chip microcomputer). , a chip, etc. or a processor performs all or part of the steps of the methods described in various embodiments of the present application.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Electric Clocks (AREA)
- Selective Calling Equipment (AREA)
- Power Sources (AREA)
Abstract
一种电子设备以及电子设备的控制方法。电子设备包括:第一数据选择器(1)、多个高功耗器件、低功耗定时器(2)以及模式控制器(3);多个高功耗器件中包括微控制器(4);第一数据选择器(1)的第一输出端连接于微控制器(4)的输入端,第二输出端连接于低功耗定时器(2)的输入端,选通控制端连接于模式控制器(3);低功耗定时器(2)连接于多个高功耗器件中的若干个高功耗器件。采用该方法,在检测到低功耗切换命令时,关闭多个高功耗器件,以降低功耗,延长从设备的存活时间。
Description
本申请涉及低功耗技术领域,尤其涉及一种电子设备以及电子设备的控制方法。
低功耗蓝牙(BLE4.0及以上的版本)因其功耗极低的特点(一般一节纽扣电池可供其连续工作一至数年),成为了主流的针对低成本低功耗需求的无线方案,广泛应用于医疗、家居、娱乐等领域。
现有低功耗蓝牙系统一般包括低功耗蓝牙主设备,以及各种形式的低功耗蓝牙从设备,低功耗蓝牙从设备体积小并不会配置大容量的供电电池,当个别低功耗蓝牙从设备电池耗尽时,由于部署的蓝牙设备较多不会影响系统正常运行,但是当一定数量的蓝牙设备宕机后,整个低功耗蓝牙系统将会瘫痪甚至崩溃。
例如,一个低功耗蓝牙系统可能需要1个低功耗蓝牙主设备和4个低功耗蓝牙从设备同时工作才能维持其高精度的工作,假如现在系统中有8个低功耗蓝牙从设备,起初当低功耗蓝牙从设备逐个宕机时,整个网络不会有影响。当正常工作的低功耗蓝牙从设备数降到4个时,如果此时再有低功耗蓝牙从设备宕机,整个系统可能工作不正常。
发明人在实现本申请的过程中发现,现有技术至少存在以下问题:低功耗蓝牙主设备不能掌握整个系统中各低功耗蓝牙从设备的情况,导致在系统中
低功耗蓝牙从设备数目到达临界时,无法进行相应的措施以确保整个系统持久稳定有效的工作。
发明内容
本申请部分实施例的目的在于提供一种电子设备以及电子设备的控制方法,在检测到低功耗切换命令时,关闭多个高功耗器件,以降低功耗,延长从设备的存活时间。
本申请的一个实施例提供了一种电子设备,包括:第一数据选择器、多个高功耗器件、低功耗定时器以及模式控制器;多个高功耗器件中包括微控制器;第一数据选择器的第一输出端连接于微控制器的输入端,第二输出端连接于低功耗定时器的输入端,选通控制端连接于模式控制器;低功耗计时器连接于多个高功耗器件中的若干个高功耗器件;其中,模式控制器用于在检测到低功耗切换命令时,控制第一数据选择器选通第二输出端,低功耗定时器被启动且用于关闭多个高功耗器件并开始计时;低功耗定时器还用于在计时至预设周期时,唤醒若干个高功耗器件,以发送预设信号;低功耗定时器还用于在预设信号发送完毕后,关闭若干个高功耗器件并重新开始计时。
本申请的另一个实施例提供了一种电子设备的控制方法,电子设备包括低功耗定时器与多个高功耗器件;控制方法包括:当检测到低功耗切换命令时,启动低功耗定时器;低功耗定时器关闭多个高功耗器件并开始计时;当计时至预设周期时,低功耗定时器唤醒多个高功耗器件中的若干个高功耗器件,以发送预设信号;在预设信号发送完毕后,低功耗定时器关闭若干个高功耗器件,并重新开始计时。
本申请实施例相对于现有技术而言,可以在检测到低功耗切换命令时,关闭多个高功耗器件,以降低功耗,延长从设备的存活时间。
另外,模式控制器为电量检测器件,所述电量检测器件用于在检测到所述电子设备处于低电量状态时,判定为检测到所述低功耗切换命令;所述预设信号为表征低电量的警示信号。本实施例对模式控制器进行了具体的介绍,同时提供了低功耗切换命令的判定方式,在电子设备处于低电量状态时,发送表征低电量的警示信号,使主设备能及时发现以便于进行相应的处理,从而保持了系统的稳定性。
另外,电子设备还包括预设信号发送器与低频时钟发生器,若干个高功耗器件中包括高频时钟发生器;高频时钟发生器与低频时钟发生器分别连接于第一数据选择器的输入端;预设信号发送器连接于第一数据选择器的第二输出端,且连接于低功耗定时器;其中,第一数据选择器选通第二输出端时,高频时钟发生器输出高频时钟信号至预设信号发送器,低频时钟发生器输出低频时钟信号至低功耗定时器;预设信号发送器用于在高频时钟信号的时序控制下发送预设信号,并在预设信号发送完毕后通知低功耗定时器。本实施例,增设了一个预设信号发送器,通过预设信号发送器发送预设信号,减少了高功耗器件的开启,以进一步降低功耗。
另外,电子设备还包括第二数据选择器;第二数据选择器的第一输入端连接于微控制器的输出端,第二输入端连接于预设信号发送器的输出端,选通控制端连接于模式控制器;其中,模式控制器在检测到所述低功耗切换命令时,控制第二数据选择器选通第二输入端。本实施例中,第二数据选择器与第一数据选择器同步切换,即当电子设备处于低电量状态时,第二数据选择器只允许
预设信号发送器输出预设信号,从而可以避免预设信号受到微控制器的干扰,确保了信号的稳定。
另外,若干个高功耗器件中包括高频时钟发生器与微控制器;电子设备还包括低频时钟发生器;高频时钟发生器与低频时钟发生器分别连接于第一数据选择器的输入端;其中,第一数据选择器选通第二输出端时,高频时钟发生器输出高频时钟信号至微控制器,低频时钟发生器输出低频时钟信号至低功耗定时器;微控制器用于在高频时钟信号的时序控制下发送预设信号,并在预设信号发送完毕后通知低功耗定时器。本实施例中,提供了一种不增加其他元器件便能够发送预设信号的方案,可以通过微控制器发送预设信号,便于根据实际情况灵活选择,同时节约了一定的硬件成本。
另外,预设信号发送器包括序列产生器与射频控制器;所述序列产生器与所述射频控制器分别连接于所述第一数据选择器的第二输出端,所述序列产生器还连接于所述射频控制器;所述序列产生器用于产生所述预设信号,所述射频控制器用于控制所述预设信号发送出去。本实施例提供了预设信号发送器的一种具体实现方式。
另外,若干个高功耗器件包括电源切换控制器;电源切换控制器用于在被唤醒时,将电子设备由辅助电源切换至主电源供电;在被关闭时,将电子设备由主电源切换至辅助电源供电。本实施例,在确保预设信号发送的基础上,尽可能降低功耗。
另外,若干个高功耗器件包括发射天线,用于将预设信号无线发射出去。
另外,在电子设备的控制方法中,预设信号为蓝牙信号;预设信号的长度小于低功耗蓝牙协议中设定的广播信号长度,且预设周期大于低功耗蓝牙协
议中设定的广播间隔。本实施例中,设置专有形式的预设信号,以尽可能降低功耗,保证设备能够维持更长时间的现有工作状态,同时降低了预设信号与其他设备之间直接的相互干扰。
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。
图1是根据本申请第一实施例的电子设备的方框示意图;
图2是根据本申请第二实施例的电子设备的方框示意图;
图3是根据本申请第三实施例的电子设备的方框示意图;
图4是根据本申请第四实施例的电子设备的方框示意图;
图5是根据本申请第五实施例的电子设备的控制方法的具体流程图;
图6是根据本申请第五实施例的步骤105的具体流程图;
图7是根据本申请第六实施例的电子设备的控制方法的具体流程图;
图8是根据本申请第七实施例的电子设备的控制方法的具体流程图;
图9是根据本申请第八实施例的电子设备的控制方法的具体流程图。
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请部分实施例进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请的第一实施例涉及一种电子设备,例如为低功耗蓝牙从设备,用于与低功耗蓝牙主设备连接,例如为手机、平板电脑等,低功耗蓝牙从设备与低功耗蓝牙主设备组成低功耗蓝牙系统。如图1所示,电子设备包括第一数据选择器1、多个高功耗器件、低功耗定时器2以及模式控制器3;多个高功耗器件中包括微控制器4。
第一数据选择器1的第一输出端连接于微控制器4的输入端,第二输出端连接于低功耗定时器2的输入端,选通控制端连接于模式控制器3;低功耗计时器2连接于多个高功耗器件中的若干个高功耗器件。
模式控制器3用于在检测到低功耗切换命令时,控制第一数据选择器1选通第二输出端,第一数据选择器1的第二端连接于低功耗定时器2,此时,低功耗定时器2被启动,低功耗定时器2用于关闭多个高功耗器件并开始计时;低功耗定时器2还用于在计时至预设周期时,唤醒若干个高功耗器件,以发送预设信号,低功耗定时器2在预设信号发送完毕后,控制关闭若干个高功耗器件并重新开始计时。
本实施例中,在电子设备只需传递少量的信息,并且对传递信息的频率要求很低时,可以判定为检测到所述低功耗切换命令,低功耗定时器2被启动,低功耗定时器2关闭多个高功耗器件并开始计时,直至计时至预设周期时,唤醒若干个高功耗器件,以发送预设信号,预设信号可以为用户自定义的较短的数据。
本实施例中,高功耗器件是指单位时间内消耗电量较高的器件,多个高功耗器件是指电子设备中用于供电子设备正常工作的所有高功耗器件,若干个高功耗器件包括用于发送预设信号所必需的全部高功耗器件。
本实施例相对于现有技术而言,提供了一种电子设备,可以在检测到低功耗切换命令时,关闭多个高功耗器件,以降低功耗,延长从设备的存活时间。
本申请的第二实施例涉及一种电子设备,本实施例是对第一实施例的细化,主要细化之处在于:本实施例中,模式控制器3为电量检测器件。
本实施例中,当电量检测器件检测到所述电子设备处于低电量状态时,判定为检测到所述低功耗切换命令,低功耗定时器2被启动,低功耗定时器2关闭多个高功耗器件并开始计时,直至计时至预设周期时,唤醒若干个高功耗器件,以发送预设信号,预设信号为表征低电量的警示信号。
其中,低电量状态可以是指电量小于一个预设的电量下限值而无法正常工作,设备将在很短时间内电量耗尽而宕机。
于实际中,请参考图2,电子设备还包括预设信号发送器5与低频时钟发生器6,若干个高功耗器件中包括高频时钟发生器7。
高频时钟发生器7与低频时钟发生器6分别连接于第一数据选择器1的输入端;预设信号发送器5与低功耗定时器2一同连接于第一数据选择器1的第二输出端,预设信号发送器5还连接于低功耗定时器2。
本实施例中,当未检测到低功耗切换命令(电子设备处于正常电量状态)时,第一数据选择器1选通第一输出端,高频时钟发生器7输出高频时钟信号至微控制器4,低频时钟发生器6输出低频时钟信号至微控制器4,此时电子设备处于正常工作状态。
本实施例中,当检测到低功耗切换命令(电子设备处于低电量状态)时,第一数据选择器1选通第二输出端,高频时钟发生器7输出高频时钟信号至预设信号发送器5,低频时钟发生器6输出低频时钟信号至低功耗定时器2,低功
耗定时器2控制关闭包括微控制器4在内的多个高功耗器件并开始计时,此时电子设备进入超低功耗的工作模式。预设信号发送器5用于在高频时钟信号的时序控制下发送预设信号,并在预设信号发送完毕后通知低功耗定时器2,低功耗定时器2重新计时,计时至预设周期时,预设信号发送器5再次发送预设信号。本实施例中,增设了一个专用于发送预设信号的预设信号发送器,以减少高功耗器件的开启,进一步降低了功耗。
本实施例中,预设信号发送器5可以是专用的beacons发送控制器,发送的预设信号可以是一个极短的beacons数据包。电子设备正常工作时,预设信号发送器5完全处于关闭状态。当电子设备处于低电量状态时,预设信号发送器定时被唤醒发送预设信号。
其中,预设信号是一个极短的beacons数据包,其包含:低功耗蓝牙协议规定的广播信道Preamble(形式50105010b),低功耗蓝牙协议规定的Access Address(形式0x8E89BED6),发送信道可根据低功耗蓝牙协议规定的广播信道ch37、ch38、ch39中任意选择发送,但不限于此。
一个例子,请参考图2,电子设备还包括第二数据选择器8;第二数据选择器9的第一输入端连接于微控制器4的输出端,第二输入端连接于预设信号发送器10的输出端,选通控制端连接于模式控制器3;其中,模式控制器3在检测到低功耗切换命令时,控制第二数据选择器8选通第二输入端。本实施例第二数据选择器与第一数据选择器同步切换,即当检测到低功耗切换命令时,第二数据选择器只允许预设信号发送器输出预设信号,从而可以避免预设信号受到微控制器4的干扰,确保了信号的稳定。
于实际中,请参考图2,若干个高功耗器件还包括电源切换控制器9;
电源切换控制器9用于在其被唤醒时,将电子设备由辅助电源切换至主电源供电;在被关闭时,将电子设备由主电源切换至辅助电源供电。在确保预设信号正常发送的基础上,尽可能降低功耗。
例如,请参考图2,电子设备为低功耗蓝牙设备时,若干个高功耗器件还包括发射天线10,用于将预设信号无线发射出去。
实际上,本实施例提供了一种电子设备超低功耗的工作模式,电子设备可以是一种低功耗蓝牙从设备,具体如下:
1、模式控制器3检测到低功耗蓝牙从设备自身电量过低而无法进行正常工作或只需发送少量数据信息时,控制第一数据选择器1选通第二输出端,此时微控制器4被关闭(微控制器4也属于电子设备内的一种高功耗器件)。
2、低功耗定时器2被启动,关闭电子设备内部的多个高功耗器件并开始计时。其中,多个高功耗器件包括电源切换控制器9,电源切换控制器9控制低功耗蓝牙从设备由主电源切换至辅助电源供电。此时,仅保留低功耗定时器2工作。低功耗定时器2关闭的内部高功耗器件例如包括高频时钟发生器7,电源切换控制器9、发射天线10。
3、当低功耗定时器2计时到达预定周期时,唤醒若干个高功耗器件。其中,若干个高功耗器件包括电源切换控制器9,电源切换控制器9控制低功耗蓝牙从设备由辅助电源切换至主电源供电。此时,预设信号发送器5控制发送预设信号beacons数据包,一般通过发射天线10将预设信号无线发射出去。
例如,低功耗定时器2唤醒的若干个高功耗器件包括高频时钟发生器7,发射天线10。
4、发送完毕,低功耗定时器2控制关闭若干个高功耗器件并重新开始
计时,仅保留低功耗定时器2。
5、重复上述步骤3~4,不断地发出预设信号。
于实际中,在低功耗蓝牙主设备端,由于beacons数据包的发送方式、发送频率与现有低功耗蓝牙设备兼容,因此不需要添加其它额外硬件,即可完成对beacons数据包的解析,并根据接收端RSSI(接收信号强度指示),计算获得该低功耗蓝牙主设备的位置。根据当前整个系统中各从设备情况,提示用户进行管理。
本实施例相对于第一实施例而言,在电子设备处于低电量状态时,发送表征低电量的警示信号,使主设备能及时发现以便于进行相应的处理,从而保持了系统的稳定性。
本申请的第三实施例涉及一种电子设备,本申请第三实施例是对第二实施例的细化,主要细化之处在于:对预设信号发送器5进行了具体的介绍。
本实施例中,请参考图3,预设信号发送器5包括两个序列产生器501与射频控制器502;序列产生器501与射频控制502分别连接于第一数据选择器1的第二输出端,序列产生器501还连接于射频控制502;序列产生器501用于产生预设信号,射频控制器502用于控制预设信号发送出去。两个序列产生器501产生序列预设信号并发送到buffer缓冲器,通过buffer缓冲器生成预设信号数据,预设信号数据经过射频控制器502发送,发送完成后,射频控制器502通知低功耗定时器2关闭若干个高功耗器件并开始计时,同时关闭射频控制器502。
需要说明的是,本实施例是以两个序列产生器501为例,实际中,可以对序列产生器501是否运行进行预先配置,从而控制选择一个或者两个序列产
生器501运行,若只有一个序列产生器501运行,同样可以完成预设信号的发送,然不限于此。
于实际中,还可以仅设置一个序列产生器501,此时序列产生器501产生的预设信号可以不通过buffer缓冲器生成预设信号数据,直接将产生的预设信号发送到射频控制器502,即,序列产生器501可以直接连接射频控制器502,发送预设信号。
本实施例相对于第二实施例而言,提供了一种预设信号发送器的具体实现方式,满足了实际设计需求。
本申请的第四实施例涉及一种电子设备,本申请第四实施例与第二实施例大致相同,主要区别之处在于:本实施例中,提供了一种不增加其他元器件便能够发送预设信号的方案。
本实施例中,请参考图4,若干个高功耗器件中包括高频时钟发生器7与微控制器4;电子设备还包括低频时钟发生器6。高频时钟发生器7与低频时钟发生器6分别连接于第一数据选择器1的输入端。
本实施例中,当未检测到低功耗切换命令时,第一数据选择器1选通第一输出端,高频时钟发生器7输出高频时钟信号至微控制器4,低频时钟控制器6输出低频时钟信号至微控制器4,此时电子设备处于正常工作状态。
本实施例中,当检测到低功耗切换命令时,第一数据选择器1选通第二输出端时,高频时钟发生器7输出高频时钟信号至微控制器4,低频时钟发生器6输出低频时钟信号至低功耗定时器2,低功耗定时器2控制关闭多个高功耗器件并开始计时,此时电子设备进入超低功耗的工作模式。微控制器4在高频时钟信号的时序控制下发送预设信号,并在预设信号发送完毕后通知低功耗
定时器2,低功耗定时器2重新计时,计时至预设周期时,微控制器4再次发送预设信号。
本实施例相对于第二实施例而言,提供了一种不增加其他元器件便能够发送预设信号的方案,可以通过微控制器发送预设信号,便于根据实际情况灵活选择,同时节约了一定的成本。
本申请第五实施例涉及一种电子设备的控制方法,电子设备包括第一数据选择器、低功耗定时器、预设信号发送器、模式控制器与多个高功耗器件,多个高功耗器件包括若干个高功耗器件,若干个高功耗器件中包括高频时钟发生器。电子设备的控制方法的具体流程图如图5所示。
步骤101,判断是否检测到低功耗切换命令。若是,则进入步骤102;若否,则直接结束。
具体而言,当电子设备只需传递少量的信息,并且对传递信息的频率要求很低时,可以判定为检测为到所述低功耗切换命令,或者模式控制器为电量检测器件,当电量检测器件检测到所述电子设备处于低电量状态时,判定为检测到所述低功耗切换命令。
步骤102,启动低功耗定时器。
具体而言,当判定检测到所述低功耗切换命令时,此时接收到一个启动指令,启动低功耗定时器。
步骤103,低功耗定时器关闭多个高功耗器件并开始计时。
具体而言,启动低功耗定时器后,电子设备结束正常工作状态,进入超低功耗的工作模式,低功耗定时器控制关闭多个高功率器件降低功耗,以使电子设备维持的时间更长,随后低功耗定时器开始计时。
步骤104,判断是否计时至预设周期。
具体而言,对是否计时至预设周期进行判断,若是,则进入步骤105,唤醒多个高功耗器件;若否,则继续进行判断,直至到达预设周期。
需要说明的是,预设周期应该要比电子设备正常的广播周期要长很多,以兼顾低功耗以及告知其他设备的功能,一般为秒级。
步骤105,低功耗定时器唤醒多个高功耗器件中的若干个高功耗器件,以发送预设信号。
具体而言,当电子设备只需传递少量的信息,并且对传递信息的频率要求很低时,在低功耗定时器在计时至预定周期时,预设信号发送器发送预设信号(预设信号可以为用户自定义的较短的数据)。而当模式控制器3为电量检测器件,电量检测器件检测到电子设备处于低电量状态时,为了使自身能及时被主设备发现以便于处理,从设备(电子设备)需要定时通知主设备,从而保持了系统的稳定性;即低功耗定时器在计时至预定周期时,预设信号发送器会发送预设信号,预设信号为表征低电量的警示信号。预设信号的发送需要若干个高功耗器件的支持。因此,低功耗定时器需要唤醒若干个高功耗器件。
于实际中,请参考图6,步骤105,低功耗定时器唤醒多个高功耗器件中的若干个高功耗器件,以发送预设信号,具体包括:
子步骤1051,低功耗定时器唤醒若干个高功耗器件后,高频时钟发生器输出高频时钟信号至预设信号发送器。
具体而言,预设信号发送器需要高频时钟信号的时序控制才能发出预设信号,因此,若干个高功耗器件中至少包括高频时钟发生器;唤醒高频时钟发生器,高频时钟发生器输出高频时钟信号到预设信号发送器。
子步骤1052,预设信号发送器在高频时钟信号的时序控制下发送预设信号。
具体而言,预设信号发送器接收到高频时钟信号时,生成并发送预设信号。
子步骤1053,预设信号发送器在预设信号发送完毕后通知低功耗定时器。
具体而言,预设信号发送器在预设信号发送完毕后,会产生一个表征发送完毕的信号至低功耗定时器;低功耗定时器收到该信号时,关闭该若干个高功耗器件。
一个例子,预设信号可以为蓝牙信号。预设信号的长度小于低功耗蓝牙协议中设定的广播信号长度,且预设周期大于低功耗蓝牙协议中设定的广播间隔。本实施例中,设置专有形式的预设信号,以尽可能降低功耗,保证设备能够维持更长时间的现有工作状态,同时降低了预设信号与其他设备之间直接的相互干扰。
其中,预设信号发送的信道需要在低功耗蓝牙协议规定的广播信道中,使其更加容易地被扫描发现。
步骤106,低功耗定时器关若干个高功耗器件,并重新开始计时。
具体而言,发送完预设信号后,电子设备再次进入超低功耗模式,关闭若干个高功耗器件,并重新开始计时,进入步骤104,判断计时是否至预设周期,在计时至预设周期时,再次发送预设信号。
需要说明的是,本实施例中,启动低功耗定时器,低功耗定时器控制关闭多个高功耗器件,在低功耗定时器计时至预设周期时,才通过预设信号发送
器发送预设信号,然实际中不限于此。
不难发现,本实施例为与第一实施例、第二实施例相对应的方法实施例,本实施例可与第一实施例、第二实施例互相配合实施。第一实施例、第二实施例中提到的相关技术细节在本实施例中依然有效,为了减少重复,这里不再赘述。相应地,本实施例中提到的相关技术细节也可应用在第一实施例、第二实施例中。
本实施例相对于现有技术而言,可以在检测到电子设备处于低电量状态时,关闭多个高功耗器件,以降低功耗,延长从设备的存活时间,同时按预定周期发出低电量警示信号,使主设备能及时发现以便于进行相应的处理,从而保持了系统的稳定性。
本申请第六实施例涉及一种电子设备的控制方法,本实施例是对第五实施例的改进,主要改进之处在于:在检测到低功耗切换命令时,立即发送一个预设信号。
本实施例的电子设备的控制方法具体流程如图7所示。
其中,步骤201、步骤202与步骤101、步骤102对应大致相同,步骤205至步骤208与步骤103至步骤106对应大致相同,在此处不再赘述;不同之处在于,本实施例中,增加了步骤203和步骤204,具体解释如下:
步骤203,预设信号发送器在高频时钟信号的时序控制下发送预设信号。
具体而言,当检测到低功耗切换命令时,高频时钟发生器输出高频时钟信号到预设信号发送器,预设信号发送器在高频时钟信号的控制下,发送预设信号。
步骤204,预设信号发送器在预设信号发送完毕后通知低功耗定时器。
具体而言,预设信号发送器在预设信号发送完毕后,需要通知低功耗定时器,以使其能够及时的关闭若干个高功耗器件。低功耗定时器被启动,关闭若干个高功耗器件,随后开始计时,电子设备进入超低功耗的工作模式。
本实施例相对于第四实施例而言,在启动低功耗定时器之后,且在低功耗定时器关闭多个高功耗器件并开始计时之前,发送了一次发送预设,能够更及时的通知主设备。
本申请第七实施例涉及一种电子设备的控制方法,本实施例与第五实施例大致相同,主要区别之处在于:本实施例中,提供了一种不增加其他元器件便能够发送预设信号的方案。
本实施例中,若干个高功耗器件中包括高频时钟发生器与微控制器。电子设备的控制方法的具体流程如图8所示。其中,步骤301至步骤304与步骤101、步骤104对应大致相同,步骤306与步骤106对应大致相同,在此处不再赘述;不同之处在于:
本实施例中,步骤305,低功耗定时器唤醒多个高功耗器件中的若干个高功耗器件,以发送预设信号,具体包括:
子步骤3051,低功耗定时器唤醒若干个高功耗器件后,高频时钟发生器输出高频时钟信号至微控制器。
具体而言,若干个高功耗器件包括微控制器,微控制器需要高频时钟信号来控制发出预设信号,此时,唤醒高频时钟发生器,高频时钟发生器输出高频时钟信号到微控制器。
子步骤3052,微控制器在高频时钟信号的时序控制下发送预设信号。
具体而言,高频时钟发生器输出高频时钟信号到微控制器,微控制器
在高频时钟信号的控制下,发送预设信号。
子步骤3053,微控制器在预设信号发送完毕后通知低功耗定时器。
具体而言,微控制器在预设信号发送完毕后,需要通知低功耗定时器,以使其能够及时的关闭若干个高功耗器件。
值得一提的是,本实施例中,低功耗定时器被启动,关闭内部多个高功耗器件,低功耗定时器计时至预设周期时,微控制器被控制发出预设信号;于实际中,可以在低功耗定时器被启动时,立刻控制微控制器发出一个预设信号,以更及时的通知主设备。
由于第四实施例与本实施例相互对应,因此本实施例可与第四实施例互相配合实施。第四实施例中提到的相关技术细节在本实施例中依然有效,在第四实施例中所能达到的技术效果在本实施例中也同样可以实现,为了减少重复,这里不再赘述。相应地,本实施例中提到的相关技术细节也可应用在第四实施例中。
本实施例相对于第五实施例而言,提供了一种不增加其他元器件便能够发送预设信号的方案,可以通过微控制器发送预设信号,便于根据实际情况灵活选择,同时节约了一定的硬件成本。
本申请第八实施例涉及一种电子设备的控制方法,本实施例是对第五实施例的改进,主要改进之处在于:增加了对电子设备是否正在连线或者正在广播的判断。
本实施例的电子设备的控制方法具体流程如图9所示。
其中,步骤401与步骤101对应大致相同,步骤404至步骤408与步骤102至步骤106对应大致相同,在此处不再赘述;不同之处在于,本实施例
中,增加了步骤402和步骤403,具体解释如下:
步骤402,检测电子设备是否正在连线或者正在广播。若是,则进入步骤403;若否,则进入步骤404。
具体而言,当检测到低功耗切换命令时,电子设备如果仍正在连线或者广播,则可能影响到预设信号的发送。
步骤403,切断连线或停止广播。
具体而言,当检测到电子设备正在连线或正在广播时,切断连线或停止广播。
需要说明的是,切断连线是指电子设备断开当前与之连接的所有设备。
本实施例相对于第五实施例而言,对电子设备是否正在连线或者正在广播进行判断,便于及时的切断连线或停止广播,以免对接下来预设信号的发送产生影响。
本领域技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本领域的普通技术人员可以理解,上述各实施例是实现本申请的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本申请的精神和范围。
Claims (15)
- 一种电子设备,包括:第一数据选择器、多个高功耗器件、低功耗定时器以及模式控制器;所述多个高功耗器件包括微控制器;所述第一数据选择器的第一输出端连接于所述微控制器的输入端,第二输出端连接于所述低功耗定时器的输入端,选通控制端连接于所述模式控制器;所述低功耗计时器连接于所述多个高功耗器件中的若干个高功耗器件;其中,所述模式控制器用于在检测到低功耗切换命令时,控制所述第一数据选择器选通所述第二输出端,所述低功耗定时器被启动且用于关闭所述多个高功耗器件并开始计时;所述低功耗定时器还用于在计时至预设周期时,唤醒所述若干个高功耗器件,以发送预设信号;所述低功耗定时器还用于在所述预设信号发送完毕后,关闭所述若干个高功耗器件并重新开始计时。
- 如权利要求1所述的电子设备,其中,所述模式控制器为电量检测器件,所述电量检测器件用于在检测到所述电子设备处于低电量状态时,判定为检测到所述低功耗切换命令;所述预设信号为表征低电量的警示信号。
- 如权利要求1所述的电子设备,其中,所述电子设备还包括预设信号发送器与低频时钟发生器,所述若干个高功耗器件中包括高频时钟发生器;所述高频时钟发生器与低频时钟发生器分别连接于所述第一数据选择器的输入端;所述预设信号发送器连接于所述第一数据选择器的第二输出端,且连接于所述低功耗定时器;其中,所述第一数据选择器选通所述第二输出端时,所述高频时钟发生器 输出高频时钟信号至所述预设信号发送器,所述低频时钟发生器输出低频时钟信号至所述低功耗定时器;所述预设信号发送器用于在所述高频时钟信号的时序控制下发送所述预设信号,并在所述预设信号发送完毕后通知所述低功耗定时器。
- 如权利要求3所述的电子设备,其中,所述电子设备还包括第二数据选择器;所述第二数据选择器的第一输入端连接于所述微控制器的输出端,第二输入端连接于所述预设信号发送器的输出端,选通控制端连接于所述模式控制器;其中,所述模式控制器在检测到所述低功耗切换命令时,控制所述第二数据选择器选通所述第二输入端。
- 如权利要求1所述的电子设备,其中,所述若干个高功耗器件中包括高频时钟发生器与所述微控制器;所述电子设备还包括低频时钟发生器;所述高频时钟发生器与低频时钟发生器分别连接于所述第一数据选择器的输入端;其中,所述第一数据选择器选通所述第二输出端时,所述高频时钟发生器输出高频时钟信号至所述微控制器,所述低频时钟发生器输出低频时钟信号至所述低功耗定时器;所述微控制器用于在所述高频时钟信号的时序控制下发送所述预设信号,并在所述预设信号发送完毕后通知所述低功耗定时器。
- 如权利要求1所述的电子设备,其中,所述预设信号发送器包括序列产生器与射频控制器;所述序列产生器与所述射频控制器分别连接于所述第一数据选择器的第二 输出端,所述序列产生器还连接于所述射频控制器;所述序列产生器用于产生所述预设信号,所述射频控制器用于控制所述预设信号发送出去。
- 如权利要求1所述的电子设备,其中,所述若干个高功耗器件包括电源切换控制器;所述电源切换控制器用于在被唤醒时,将所述电子设备由辅助电源切换至主电源供电;在被关闭时,将所述电子设备由所述主电源切换至所述辅助电源供电。
- 如权利要求1所述的电子设备,其中,所述若干个高功耗器件包括发射天线,用于将所述预设信号无线发射出去。
- 一种电子设备的控制方法,所述电子设备包括低功耗定时器与多个高功耗器件;所述控制方法包括:当检测到低功耗切换命令时,启动所述低功耗定时器;所述低功耗定时器关闭所述多个高功耗器件并开始计时;当计时至预设周期时,所述低功耗定时器唤醒所述多个高功耗器件中的若干个高功耗器件,以发送预设信号;在所述预设信号发送完毕后,所述低功耗定时器关闭所述若干个高功耗器件,并重新开始计时。
- 如权利要求9所述的控制方法,其中,所述电子设备还包括预设信号发送器,所述若干个高功耗器件中包括高频时钟发生器;所述低功耗定时器唤醒所述电子设备中的若干个高功耗器件,以发送预设信号,具体包括:所述低功耗定时器唤醒所述若干个高功耗器件后,所述高频时钟发生器输出高频时钟信号至所述预设信号发送器;所述预设信号发送器在所述高频时钟信号的时序控制下发送所述预设信号;所述预设信号发送器在所述预设信号发送完毕后通知所述低功耗定时器。
- 如权利要求10所述的控制方法,其中,在启动所述低功耗定时器之后,且在所述低功耗定时器关闭所述多个高功耗器件并开始计时之前,还包括:所述预设信号发送器在所述高频时钟信号的时序控制下发送所述预设信号;所述预设信号发送器在所述预设信号发送完毕后通知所述低功耗定时器。
- 如权利要求9所述的控制方法,其中,所述若干个高功耗器件中包括高频时钟发生器与微控制器;所述低功耗定时器唤醒所述电子设备中的若干个高功耗器件,以发送预设信号,具体包括:所述低功耗定时器唤醒所述若干个高功耗器件后,所述高频时钟发生器输出高频时钟信号至所述微控制器;所述微控制器在所述高频时钟信号的时序控制下发送所述预设信号;所述微控制器在所述预设信号发送完毕后通知所述低功耗定时器。
- 如权利要求9至12中任一项所述的控制方法,其中,所述检测到低功耗切换命令,具体为:当检测到所述电子设别处于低电量状态时,判定为检测到所述低功耗切换命令;其中,所述预设信号为表征低电量的警示信号。
- 如权利要求13所述的控制方法,其中,在检测到所述低功耗切换命令之后,且在启动所述低功耗定时器之前,还包括:当检测到所述电子设备正在连线或者正在广播时,切断连线或停止广播。
- 如权利要求9所述的控制方法,其中,所述预设信号为蓝牙信号;所述预设信号的长度小于低功耗蓝牙协议中设定的广播信号长度,且所述预设周期大于所述低功耗蓝牙协议中设定的广播间隔。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201780000435.8A CN109644331B (zh) | 2017-05-31 | 2017-05-31 | 电子设备以及电子设备的控制方法 |
PCT/CN2017/086599 WO2018218503A1 (zh) | 2017-05-31 | 2017-05-31 | 电子设备以及电子设备的控制方法 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2017/086599 WO2018218503A1 (zh) | 2017-05-31 | 2017-05-31 | 电子设备以及电子设备的控制方法 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018218503A1 true WO2018218503A1 (zh) | 2018-12-06 |
Family
ID=64454309
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/086599 WO2018218503A1 (zh) | 2017-05-31 | 2017-05-31 | 电子设备以及电子设备的控制方法 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109644331B (zh) |
WO (1) | WO2018218503A1 (zh) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102109900A (zh) * | 2009-12-25 | 2011-06-29 | 比亚迪股份有限公司 | 用于降低电子设备掉电模式时的静态功耗的方法和系统 |
CN102831452A (zh) * | 2012-08-31 | 2012-12-19 | 电子科技大学 | 一种有源rfid系统的低功耗运行方法 |
CN102869077A (zh) * | 2012-08-28 | 2013-01-09 | 苏州博联科技有限公司 | 基于ZigBee协议的无线传感网络的数据采集传输方法 |
CN103412634A (zh) * | 2013-07-30 | 2013-11-27 | 深圳市汇顶科技股份有限公司 | 一种soc芯片的mcu唤醒装置和方法 |
CN105516901A (zh) * | 2015-12-21 | 2016-04-20 | 飞天诚信科技股份有限公司 | 一种低功耗蓝牙设备及其工作方法 |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101335941B (zh) * | 2007-06-29 | 2012-05-16 | 鸿富锦精密工业(深圳)有限公司 | 移动通讯终端及其电量控制方法 |
US20120327920A1 (en) * | 2011-06-27 | 2012-12-27 | Texas Instruments Incorporated | Methods to enhance coexistence with low energy wireless networks |
CN105050025A (zh) * | 2015-05-22 | 2015-11-11 | 上海美迪索科电子科技有限公司 | 一种基于低功耗蓝牙射频唤醒方法及装置 |
CN106412845B (zh) * | 2015-08-03 | 2021-06-15 | 中兴通讯股份有限公司 | 无线保真Wi-Fi设备的休眠方法及装置 |
CN105281769A (zh) * | 2015-10-21 | 2016-01-27 | 深圳市汇顶科技股份有限公司 | 信号转换电路及指纹识别系统 |
CN106100685B (zh) * | 2016-08-24 | 2020-01-14 | 深圳市蓝科迅通科技有限公司 | 一种基于低功耗蓝牙技术的功率切换装置 |
CN106231545A (zh) * | 2016-09-21 | 2016-12-14 | 广东欧珀移动通信有限公司 | 降低近场通信模块功耗的方法及装置 |
-
2017
- 2017-05-31 WO PCT/CN2017/086599 patent/WO2018218503A1/zh active Application Filing
- 2017-05-31 CN CN201780000435.8A patent/CN109644331B/zh active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102109900A (zh) * | 2009-12-25 | 2011-06-29 | 比亚迪股份有限公司 | 用于降低电子设备掉电模式时的静态功耗的方法和系统 |
CN102869077A (zh) * | 2012-08-28 | 2013-01-09 | 苏州博联科技有限公司 | 基于ZigBee协议的无线传感网络的数据采集传输方法 |
CN102831452A (zh) * | 2012-08-31 | 2012-12-19 | 电子科技大学 | 一种有源rfid系统的低功耗运行方法 |
CN103412634A (zh) * | 2013-07-30 | 2013-11-27 | 深圳市汇顶科技股份有限公司 | 一种soc芯片的mcu唤醒装置和方法 |
CN105516901A (zh) * | 2015-12-21 | 2016-04-20 | 飞天诚信科技股份有限公司 | 一种低功耗蓝牙设备及其工作方法 |
Also Published As
Publication number | Publication date |
---|---|
CN109644331B (zh) | 2022-02-15 |
CN109644331A (zh) | 2019-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8611268B1 (en) | Access point power save mechanism for wireless communication systems | |
US8976721B1 (en) | Beacon miss prevention in power save modes using timing synchronization function | |
CN104335643B (zh) | 用于LTE eNB的唤醒功能 | |
EP2301283B1 (en) | Partial power save mode for access points during device discovery | |
USRE48605E1 (en) | Method and apparatus for managing power of WLAN module in portable terminal | |
US8792401B2 (en) | Systems and methods for reducing power consumption in communication networks | |
JP4064084B2 (ja) | 無線通信機器及びその制御方法 | |
TWI626856B (zh) | 喚醒信號發送與接收之方法、存取點以及Wi-Fi裝置 | |
US20150208349A1 (en) | System and Method for Low Power Signaling in a Wireless Local Area Network | |
US20180110000A1 (en) | Wake-up receiver scheduling | |
JP5287602B2 (ja) | 特定周波数監視による低待受電力型無線通信システム | |
CN108712740B (zh) | 一种蓝牙低功耗连接方法和装置 | |
CN104977979B (zh) | 时钟源切换方法和系统 | |
US20120106658A1 (en) | Mixed-Mode Wireless Device Operation | |
KR20190129219A (ko) | 무선랜 ap에 따른 전력 절감 최적화 방법 및 장치 | |
WO2018218503A1 (zh) | 电子设备以及电子设备的控制方法 | |
WO2023005481A1 (zh) | 用于吊钩倾角检测装置的通信方法及吊钩倾角检测装置 | |
KR102292649B1 (ko) | 저 전력 소비의 에너지 검출 방법 및 그 통신 장치 | |
EP3312997B1 (en) | Fire alarm and fire alarm system | |
CN114765837B (zh) | 省电处理方法、装置及设备 | |
KR101730264B1 (ko) | 무선 공유 채널 웨이크-업 송수신기를 이용한 저전력 무선 센서 네트워크 통신 방법 및 장치 | |
CN113329471A (zh) | 建立点对点通信的方法、系统、存储介质以及电子设备 | |
JP2008131467A (ja) | 通信装置 | |
KR20150051734A (ko) | 네트워크 가용 단말의 수면상태 제공 시스템 및 그 방법 | |
WO2024067508A1 (zh) | 小区同步方法、装置、终端、网络侧设备及存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17911929 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17911929 Country of ref document: EP Kind code of ref document: A1 |