CN107708192B - Method and device for automatically switching Bluetooth working modes - Google Patents

Method and device for automatically switching Bluetooth working modes Download PDF

Info

Publication number
CN107708192B
CN107708192B CN201710950541.4A CN201710950541A CN107708192B CN 107708192 B CN107708192 B CN 107708192B CN 201710950541 A CN201710950541 A CN 201710950541A CN 107708192 B CN107708192 B CN 107708192B
Authority
CN
China
Prior art keywords
equipment
electric quantity
information
heart rate
bluetooth
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.)
Expired - Fee Related
Application number
CN201710950541.4A
Other languages
Chinese (zh)
Other versions
CN107708192A (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.)
TP Link Technologies Co Ltd
Original Assignee
TP Link Technologies 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 TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN201710950541.4A priority Critical patent/CN107708192B/en
Publication of CN107708192A publication Critical patent/CN107708192A/en
Application granted granted Critical
Publication of CN107708192B publication Critical patent/CN107708192B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/024Detecting, measuring or recording pulse rate or heart rate
    • A61B5/02438Detecting, measuring or recording pulse rate or heart rate with portable devices, e.g. worn by the patient
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/68Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
    • A61B5/6887Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient mounted on external non-worn devices, e.g. non-medical devices
    • A61B5/6898Portable consumer electronic devices, e.g. music players, telephones, tablet computers
    • 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
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • 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
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • 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

The invention discloses a method and a device for automatically switching Bluetooth working modes, which are suitable for a first device and a second device, wherein the first device and the second device realize wireless connection communication through Bluetooth. By adopting the technical scheme of the invention, the Bluetooth power consumption of the equipment can be reduced, so that the electric quantity consumption of the equipment is reduced, and the endurance time of the equipment is prolonged.

Description

Method and device for automatically switching Bluetooth working modes
Technical Field
The invention relates to the field of Bluetooth technology application, in particular to a method and a device for automatically switching Bluetooth working modes.
Background
With the continuous progress of science and technology, the smart watch has been developed rapidly, and with the continuous development and application of the functions of the smart watch and the mobile phone, the connection and communication between the smart watch and the mobile phone by using the wireless connection technology becomes inevitable. Under most conditions, the intelligent watch and the mobile phone are in wireless connection through the Bluetooth, information of the mobile phone is pushed to the intelligent watch through the Bluetooth, and the information of the intelligent watch is fed back to the mobile phone through the Bluetooth. The Bluetooth has two working modes, namely a normal working mode and a low power consumption mode, the low power consumption mode can be divided into an automatic sleep mode, a deep sleep mode and a sleep mode, and the power consumption of the Bluetooth is different in the low power consumption modes with different degrees.
When a user wears and uses the smart watch, information exchange is carried out between the smart watch and the mobile phone, and the electric quantity of the smart watch and the electric quantity of the mobile phone are sufficient, the Bluetooth of the smart watch and the Bluetooth of the mobile phone work in a normal working mode; when the user did not wear the smart watch, when there was not information between smart watch and the cell-phone to come, when the electric quantity of smart watch and cell-phone was not enough, if continue to keep bluetooth work in normal operating mode, then can lead to the bluetooth consumption of smart watch and cell-phone big, the electric quantity consumption increases to influence the time of endurance of smart watch and cell-phone. In addition, the smart watches on the market at present are small in size and small in battery capacity, so that the technical problem that how to reduce the Bluetooth power consumption of the smart watches and the mobile phones is necessary to solve is to reduce the power consumption of the smart watches and the mobile phones and prolong the endurance time of the smart watches and the mobile phones.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a method and an apparatus for automatically switching a bluetooth working mode, which can reduce bluetooth power consumption of a device, thereby reducing power consumption of the device and prolonging a duration of the device.
In order to solve the above technical problem, an embodiment of the present invention provides a method for automatically switching a bluetooth operating mode, the method being applied to a first device and a second device, the first device and the second device implementing wireless connection communication through bluetooth, wherein,
the method for automatically switching the Bluetooth working mode suitable for the first equipment comprises the following steps:
detecting the heart rate of a user to obtain heart rate data information;
judging whether heart rate data is smaller than a preset heart rate threshold value or not according to the heart rate data information, and if the heart rate data is smaller than the heart rate threshold value, switching a Bluetooth working mode of the first equipment to a deep sleep mode; if the heart rate data is not smaller than the heart rate threshold value, judging whether information comes and goes between the first equipment and the second equipment within a first preset time period;
if no information comes between the first device and the second device, switching the Bluetooth working mode of the first device to the deep sleep mode; if information exchange exists between the first equipment and the second equipment, acquiring the electric quantity information of the first equipment;
judging whether the electric quantity of the first equipment is smaller than a preset electric quantity threshold value or not according to the electric quantity information of the first equipment, and if the electric quantity of the first equipment is smaller than the electric quantity threshold value, switching the Bluetooth working mode of the first equipment to a sleep mode; if the electric quantity of the first equipment is not smaller than the electric quantity threshold value, judging whether the first equipment receives the electric quantity shortage reminding information of the second equipment;
if the first equipment does not receive the electric quantity shortage reminding information of the second equipment, switching the Bluetooth working mode of the first equipment to a normal working mode; if the first device receives the electric quantity shortage reminding information of the second device, judging whether the first device receives the charging information of the second device within a second preset time period;
if the first equipment does not receive the charging information of the second equipment, switching the Bluetooth working mode of the first equipment to the sleep mode; and if the first equipment receives the charging information of the second equipment, switching the Bluetooth working mode of the first equipment to the normal working mode.
The method for automatically switching the Bluetooth working mode suitable for the second equipment comprises the following steps:
judging whether heart rate data is smaller than a preset heart rate threshold value or not according to the received heart rate data information sent by the first equipment, and if the heart rate data is smaller than the heart rate threshold value, switching the Bluetooth working mode of the second equipment to a deep sleep mode; if the heart rate data is not smaller than the heart rate threshold value, judging whether information comes and goes between the second equipment and the first equipment within a first preset time period;
if no information comes between the second equipment and the first equipment, switching the Bluetooth working mode of the second equipment to the deep sleep mode; if information exchange exists between the second equipment and the first equipment, acquiring the electric quantity information of the second equipment;
judging whether the electric quantity of the second equipment is smaller than a preset electric quantity threshold value or not according to the electric quantity information of the second equipment, and if the electric quantity of the second equipment is smaller than the electric quantity threshold value, switching the Bluetooth working mode of the second equipment to a sleep mode; if the electric quantity of the second equipment is not smaller than the electric quantity threshold value, judging whether the second equipment receives the charging information of the first equipment;
if the second equipment receives the charging information of the first equipment, switching the Bluetooth working mode of the second equipment to the sleep mode; and if the second equipment does not receive the charging information of the first equipment, switching the Bluetooth working mode of the second equipment to a normal working mode.
Compared with the prior art, the method for automatically switching the Bluetooth working mode provided by the embodiment of the invention firstly judges whether the heart rate data is smaller than a preset heart rate threshold value or not, then judges whether information comes between the first device and the second device within a preset time period or not, finally judges whether the electric quantity of the first device and the second device is smaller than a preset electric quantity threshold value or not so as to judge whether charging information exists or not, and automatically switches the Bluetooth working modes of the first device and the second device among the deep sleep mode, the sleep mode and the normal working mode according to different judgment results, so that the problem of high Bluetooth power consumption of the device is solved, the Bluetooth power consumption of the device is reduced, the electric quantity consumption of the device is reduced, and the endurance time of the device is prolonged.
Further, a heart rate sensor arranged in the first device is used for detecting the heart rate of a user so as to obtain the heart rate data information, and when the heart rate data is detected to jump from being smaller than the heart rate threshold value to being not smaller than the heart rate threshold value or from being not smaller than the heart rate threshold value to being smaller than the heart rate threshold value at any time, the heart rate data information is sent to the second device.
Further, the first preset time period is set by a first timer configured in the first device, and the second preset time period is set by a second timer configured in the first device.
Further, if the electric quantity of the first device is smaller than the electric quantity threshold value and the first device is detected to be charging, the charging information of the first device is sent to the second device.
Further, the first preset time period is set by a timer configured in the second device.
Further, if the electric quantity of the second device is smaller than the electric quantity threshold value, sending the electric quantity shortage reminding information of the second device to the first device.
Further, if the electric quantity of the second device is smaller than the electric quantity threshold value and it is detected that the second device is being charged, the charging information of the second device is sent to the first device.
In order to solve the above technical problem, an embodiment of the present invention further provides an apparatus for automatically switching a bluetooth operating mode, where the apparatus is adapted to a first device and a second device, and the first device and the second device implement wireless connection communication through bluetooth, where,
device suitable for automatic switch-over bluetooth mode of first equipment includes heart rate data detection module, heart rate data judgment module, the very first time setting module, information round trip judgment module, electric quantity acquisition module, electric quantity judgment module, the not enough warning information judgment module of electric quantity, second time setting module, charging information judgment module and bluetooth mode switch module, wherein:
the heart rate data detection module is used for detecting the heart rate of a user to obtain heart rate data information;
the heart rate data judging module is used for judging whether heart rate data is smaller than a preset heart rate threshold value or not according to the heart rate data information, and if the heart rate data is smaller than the heart rate threshold value, the Bluetooth working mode of the first equipment is switched to a deep sleep mode through the Bluetooth working mode switching module; if the heart rate data is not smaller than the heart rate threshold value, the first time setting module and the information communication judging module start to work;
the first time setting module is used for setting a first preset time period;
the information traffic judging module is used for judging whether information traffic exists between the first device and the second device within the first preset time period, and if no information traffic exists between the first device and the second device, the Bluetooth working mode of the first device is switched to the deep sleep mode through the Bluetooth working mode switching module; if information comes and goes between the first equipment and the second equipment, the electric quantity acquisition module starts to work;
the electric quantity acquisition module is used for acquiring electric quantity information of the first equipment;
the electric quantity judging module is used for judging whether the electric quantity of the first equipment is smaller than a preset electric quantity threshold value according to the electric quantity information of the first equipment, and if the electric quantity of the first equipment is smaller than the electric quantity threshold value, the Bluetooth working mode of the first equipment is switched to a sleep mode through the Bluetooth working mode switching module; if the electric quantity of the first device is not smaller than the electric quantity threshold value, the electric quantity shortage reminding information judgment module starts to work;
the power shortage reminding information judging module is used for judging whether the first equipment receives power shortage reminding information of the second equipment or not, and if the first equipment does not receive the power shortage reminding information of the second equipment, the Bluetooth working mode of the first equipment is switched to a normal working mode through the Bluetooth working mode switching module; if the first device receives the electric quantity shortage reminding information of the second device, the second time setting module and the charging information judging module start to work;
the second time setting module is used for setting a second preset time period;
the charging information judging module is used for judging whether the first equipment receives charging information of the second equipment within a second preset time period, and if the first equipment does not receive the charging information of the second equipment, the Bluetooth working mode of the first equipment is switched to the dormant mode through the Bluetooth working mode switching module; if the first device receives the charging information of the second device, the Bluetooth working mode of the first device is switched to the normal working mode through the Bluetooth working mode switching module;
the Bluetooth working mode switching module is used for switching the Bluetooth working mode of the first device according to different judgment results.
The device suitable for automatic switch-over bluetooth mode of second equipment includes rhythm of the heart data judgment module, very first time setting module, information round trip judgment module, electric quantity acquisition module, electric quantity judgment module, charging information judgment module and bluetooth mode switch module, wherein:
the heart rate data judging module is used for judging whether heart rate data is smaller than a preset heart rate threshold value or not according to the received heart rate data information sent by the first equipment, and if the heart rate data is smaller than the heart rate threshold value, the Bluetooth working mode of the second equipment is switched to a deep sleep mode through the Bluetooth working mode switching module; if the heart rate data is not smaller than the heart rate threshold value, the first time setting module and the information communication judging module start to work;
the first time setting module is used for setting a first preset time period;
the information traffic judging module is used for judging whether information traffic exists between the second device and the first device within the first preset time period, and if no information traffic exists between the second device and the first device, the Bluetooth working mode of the second device is switched to the deep sleep mode through the Bluetooth working mode switching module; if information comes and goes between the second equipment and the first equipment, the electric quantity acquisition module starts to work;
the electric quantity acquisition module is used for acquiring electric quantity information of the second equipment;
the electric quantity judging module is used for judging whether the electric quantity of the second equipment is smaller than a preset electric quantity threshold value according to the electric quantity information of the second equipment, and if the electric quantity of the second equipment is smaller than the electric quantity threshold value, the Bluetooth working mode of the second equipment is switched to a dormant mode through the Bluetooth working mode switching module; if the electric quantity of the second equipment is not smaller than the electric quantity threshold value, the charging information judgment module starts to work;
the charging information judging module is used for judging whether the second equipment receives charging information of the first equipment or not, and if the second equipment receives the charging information of the first equipment, the Bluetooth working mode of the second equipment is switched to the dormant mode through the Bluetooth working mode switching module; if the second equipment does not receive the charging information of the first equipment, the Bluetooth working mode of the second equipment is switched to a normal working mode through the Bluetooth working mode switching module;
the Bluetooth working mode switching module is used for switching the Bluetooth working mode of the second equipment according to different judgment results.
Compared with the prior art, the device for automatically switching the Bluetooth working mode provided by the embodiment of the invention analyzes the states of the first device and the second device through the information obtained by the heart rate data detection module, the heart rate data judgment module, the time setting module, the information forward and backward judgment module, the electric quantity acquisition module, the electric quantity judgment module, the insufficient electric quantity reminding information judgment module and the charging information judgment module and the corresponding judgment results, and automatically switches the Bluetooth working modes of the first device and the second device among the deep sleep mode, the sleep mode and the normal working mode according to different states through the Bluetooth working mode switching module, so that the problem of high Bluetooth power consumption of the devices is solved, the Bluetooth power consumption of the devices is reduced, and the endurance time of the devices is prolonged.
Drawings
Fig. 1 is a flowchart of a method for automatically switching a bluetooth operating mode according to embodiment 1 of the present invention;
fig. 2 is a flowchart of a method for automatically switching a bluetooth operating mode according to embodiment 2 of the present invention;
fig. 3 is a block diagram of an apparatus for automatically switching a bluetooth operating mode according to embodiment 3 of the present invention;
fig. 4 is a block diagram of an apparatus for automatically switching a bluetooth operating mode according to embodiment 4 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without any inventive step, are within the scope of the present invention.
In order to make the description of the embodiment of the present invention clearer, the bluetooth operation mode in the embodiment of the present invention is first explained.
Two kinds of mode exist in the bluetooth, normal operating mode and low power consumption mode, and the low power consumption mode includes automatic sleep mode, deep sleep mode and dormant mode again, and the power consumption of bluetooth is different under the low power consumption mode of different degrees:
the automatic sleep mode needs to be entered by using an AT instruction, when the waiting time exceeds the set time under the condition that the Bluetooth is not connected or the serial port is not provided with data, the Bluetooth enters the automatic sleep mode, and the Bluetooth can carry out connection communication under the automatic sleep mode and can be awakened AT any time through the serial port data;
in the deep sleep mode, an AT instruction is required to enter, the Bluetooth can perform connection communication in the deep sleep mode, the Bluetooth can be waken AT any time by establishing connection or a wakening pin, and the power consumption of the Bluetooth is about 1.5 uA;
the sleep mode needs to be entered by using an AT command, the Bluetooth cannot perform connection communication in the sleep mode, the Bluetooth needs to be awakened through an awakening pin, and the power consumption of the Bluetooth is about 150 nA.
The following specifically introduces the technical solution of the embodiment of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a method for automatically switching a bluetooth operating mode according to embodiment 1 of the present invention, where the method is applied to a first device, and the first device and a second device implement wireless connection communication through bluetooth, and the method includes:
s101, detecting the heart rate of a user to obtain heart rate data information;
step S102, judging whether heart rate data is smaller than a preset heart rate threshold value or not according to the heart rate data information, and if the heart rate data is smaller than the heart rate threshold value, switching a Bluetooth working mode of the first equipment to a deep sleep mode; if the heart rate data is not smaller than the heart rate threshold value, judging whether information comes and goes between the first equipment and the second equipment within a first preset time period;
step S103, if no information comes between the first device and the second device, switching the Bluetooth working mode of the first device to the deep sleep mode; if information exchange exists between the first equipment and the second equipment, acquiring the electric quantity information of the first equipment;
step S104, judging whether the electric quantity of the first equipment is smaller than a preset electric quantity threshold value or not according to the electric quantity information of the first equipment, and if the electric quantity of the first equipment is smaller than the electric quantity threshold value, switching the Bluetooth working mode of the first equipment to a sleep mode; if the electric quantity of the first equipment is not smaller than the electric quantity threshold value, judging whether the first equipment receives the electric quantity shortage reminding information of the second equipment;
step S105, if the first device does not receive the electric quantity shortage reminding information of the second device, switching the Bluetooth working mode of the first device to a normal working mode; if the first device receives the electric quantity shortage reminding information of the second device, judging whether the first device receives the charging information of the second device within a second preset time period;
step S106, if the first equipment does not receive the charging information of the second equipment, switching the Bluetooth working mode of the first equipment to the sleep mode; and if the first equipment receives the charging information of the second equipment, switching the Bluetooth working mode of the first equipment to the normal working mode.
Specifically, in step S101, a heart rate sensor configured in the first device detects a heart rate of a user to obtain heart rate data information, and when it is detected at any time that the heart rate data jumps from being smaller than the heart rate threshold value to being not smaller than the heart rate threshold value or from being smaller than the heart rate threshold value to being smaller than the heart rate threshold value, the heart rate data information is sent to the second device.
Specifically, step S102 sets the first preset time period by using a first timer configured in the first device.
Specifically, in step S104, if the electric quantity of the first device is smaller than the electric quantity threshold, and it is detected that the first device is being charged, the charging information of the first device is sent to the second device.
Specifically, step S105 sets the second preset time period by a second timer configured in the first device.
In this embodiment, the first device is preferably a smart watch, the second device is preferably a mobile phone, and the smart watch and the mobile phone realize wireless connection communication through bluetooth.
The method for automatically switching the Bluetooth working mode switches the Bluetooth working mode of the smart watch to the deep sleep mode when the detected heart rate data is less than the preset heart rate threshold value, switches the Bluetooth working mode of the smart watch to the deep sleep mode when no information comes between the smart watch and the mobile phone within a first preset time period, switches the Bluetooth working mode of the smart watch to the sleep mode when the power of the smart watch is less than the preset power threshold value, switches the Bluetooth working mode of the smart watch to the sleep mode when the smart watch receives the reminding information that the power of the mobile phone is insufficient and does not receive the charging information of the mobile phone within a second preset time period, and switches the Bluetooth working mode of the smart watch to the normal working mode when the smart watch receives the reminding information that the power of the mobile phone is insufficient and receives the charging information of the mobile phone within the second preset time period, when the detected heart rate data is not less than a preset heart rate threshold value and information comes and goes between the intelligent watch and the mobile phone in a first preset time period, the electric quantity of the intelligent watch is not less than the preset electric quantity threshold value, and the intelligent watch does not receive insufficient electric quantity reminding information of the mobile phone, the Bluetooth working mode of the intelligent watch is switched to a normal working mode, the problem that the Bluetooth power consumption of the intelligent watch is large is solved, the Bluetooth power consumption of the intelligent watch is reduced, the electric quantity consumption of the intelligent watch is reduced, and the endurance time of the intelligent watch is prolonged.
Referring to fig. 2, fig. 2 is a flowchart of a method for automatically switching a bluetooth operating mode according to embodiment 2 of the present invention, where the method is applied to a second device, and the second device and a first device implement wireless connection communication through bluetooth, and the method includes:
step S201, judging whether heart rate data is smaller than a preset heart rate threshold value or not according to received heart rate data information sent by the first equipment, and if the heart rate data is smaller than the heart rate threshold value, switching a Bluetooth working mode of the second equipment to a deep sleep mode; if the heart rate data is not smaller than the heart rate threshold value, judging whether information comes and goes between the second equipment and the first equipment within a first preset time period;
step S202, if no information comes between the second device and the first device, switching the Bluetooth working mode of the second device to the deep sleep mode; if information exchange exists between the second equipment and the first equipment, acquiring the electric quantity information of the second equipment;
step S203, judging whether the electric quantity of the second equipment is smaller than a preset electric quantity threshold value or not according to the electric quantity information of the second equipment, and if the electric quantity of the second equipment is smaller than the electric quantity threshold value, switching the Bluetooth working mode of the second equipment to a sleep mode; if the electric quantity of the second equipment is not smaller than the electric quantity threshold value, judging whether the second equipment receives the charging information of the first equipment;
step S204, if the second device receives the charging information of the first device, switching the Bluetooth working mode of the second device to the sleep mode; and if the second equipment does not receive the charging information of the first equipment, switching the Bluetooth working mode of the second equipment to a normal working mode.
Specifically, step S201 sets the first preset time period by a timer configured in the second device.
Specifically, in step S203, if the electric quantity of the second device is smaller than the electric quantity threshold, the electric quantity shortage notification message of the second device is sent to the first device.
Specifically, in step S203, if the electric quantity of the second device is smaller than the electric quantity threshold, and it is detected that the second device is being charged, the charging information of the second device is sent to the first device.
In this embodiment, the first device is preferably a smart watch, the second device is preferably a mobile phone, and the smart watch and the mobile phone realize wireless connection communication through bluetooth.
The method for automatically switching the Bluetooth working mode switches the Bluetooth working mode of the mobile phone to the deep sleep mode when the received heart rate data is less than a preset heart rate threshold value, switches the Bluetooth working mode of the mobile phone to the deep sleep mode when no information comes between the mobile phone and the smart watch in a first preset time period, switches the Bluetooth working mode of the mobile phone to the sleep mode when the electric quantity of the mobile phone is less than the preset electric quantity threshold value, switches the Bluetooth working mode of the mobile phone to the sleep mode when the mobile phone receives charging information of the smart watch, and switches the Bluetooth working mode of the mobile phone to the normal working mode when the received heart rate data is not less than the preset heart rate threshold value, information comes between the mobile phone and the smart watch in the first preset time period, the electric quantity of the mobile phone is not less than the preset electric quantity threshold value and the mobile phone does not receive the charging information of the smart watch, the problem of the bluetooth big consumption of cell-phone has been solved, the bluetooth consumption of cell-phone has been reduced to reduce the electric quantity consumption of cell-phone, prolonged the time of endurance of cell-phone.
Referring to fig. 3, fig. 3 is a block diagram of a device for automatically switching a bluetooth working mode according to embodiment 3 of the present invention, where the device is suitable for a first device, and the first device and a second device implement wireless connection communication through bluetooth, and the device includes a heart rate data detection module 101, a heart rate data determination module 102, a first time setting module 103, an information forward/backward determination module 104, an electric quantity acquisition module 105, an electric quantity determination module 106, an electric quantity shortage reminding information determination module 107, a second time setting module 108, a charging information determination module 109, and a bluetooth working mode switching module 110, where:
the heart rate data detection module 101 is configured to detect a heart rate of a user to obtain heart rate data information;
the heart rate data determining module 102 is configured to determine whether heart rate data is smaller than a preset heart rate threshold according to the heart rate data information, and if the heart rate data is smaller than the heart rate threshold, switch a bluetooth operating mode of the first device to a deep sleep mode through the bluetooth operating mode switching module 110; if the heart rate data is not less than the heart rate threshold, the first time setting module 103 and the information traffic judging module 104 start to work;
the first time setting module 103 is configured to set a first preset time period;
the information traffic determining module 104 is configured to determine whether information traffic exists between the first device and the second device within the first preset time period, and if no information traffic exists between the first device and the second device, switch the bluetooth operating mode of the first device to the deep sleep mode through the bluetooth operating mode switching module 110; if information comes and goes between the first device and the second device, the electric quantity obtaining module 105 starts to work;
the electric quantity obtaining module 105 is configured to obtain electric quantity information of the first device;
the electric quantity determining module 106 is configured to determine whether the electric quantity of the first device is smaller than a preset electric quantity threshold according to the electric quantity information of the first device, and if the electric quantity of the first device is smaller than the electric quantity threshold, switch the bluetooth working mode of the first device to a sleep mode through the bluetooth working mode switching module 110; if the electric quantity of the first device is not less than the electric quantity threshold, the electric quantity shortage reminding information judgment module 107 starts working;
the power shortage warning information determining module 107 is configured to determine whether the first device receives power shortage warning information of the second device, and if the first device does not receive power shortage warning information of the second device, switch the bluetooth operating mode of the first device to a normal operating mode through the bluetooth operating mode switching module 110; if the first device receives the reminding information of insufficient electric quantity of the second device, the second time setting module 108 and the charging information judging module 109 start working;
the second time setting module 108 is configured to set a second preset time period;
the charging information determining module 109 is configured to determine whether the first device receives charging information of the second device within the second preset time period, and if the first device does not receive charging information of the second device, switch the bluetooth operating mode of the first device to the sleep mode through the bluetooth operating mode switching module 110; if the first device receives the charging information of the second device, the bluetooth working mode of the first device is switched to the normal working mode through the bluetooth working mode switching module 110;
the bluetooth working mode switching module 110 is configured to switch the bluetooth working mode of the first device according to different determination results.
In this embodiment, the first device is preferably a smart watch, the second device is preferably a mobile phone, and the smart watch and the mobile phone realize wireless connection communication through bluetooth.
The device for automatically switching the Bluetooth working mode detects the heart rate of a user through a heart rate data detection module 101 to obtain heart rate data information, judges whether the detected heart rate data is smaller than a preset heart rate threshold value or not through a heart rate data judgment module 102, sets a first preset time period through a first time setting module 103, judges whether information comes and comes between a smart watch and a mobile phone in the first preset time period through an information coming and going judgment module 104, acquires electric quantity information of the smart watch through an electric quantity acquisition module 105, judges whether the electric quantity of the smart watch is smaller than the preset electric quantity threshold value or not through an electric quantity judgment module 106, judges whether the smart watch receives insufficient electric quantity reminding information of the mobile phone or not through an insufficient electric quantity reminding information judgment module 107, sets a second preset time period through a second time setting module 108, and judges whether the smart watch receives charging information of the mobile phone in the second preset time period through a charging information judgment module 109, the Bluetooth working mode of the intelligent watch is automatically switched among the deep sleep mode, the sleep mode and the normal working mode through the Bluetooth working mode switching module 110 according to different judgment results, so that the problem of high Bluetooth power consumption of the intelligent watch is solved, the Bluetooth power consumption of the intelligent watch is reduced, the power consumption of the intelligent watch is reduced, and the endurance time of the intelligent watch is prolonged.
Referring to fig. 4, fig. 4 is a block diagram of a device for automatically switching a bluetooth working mode according to embodiment 4 of the present invention, where the device is suitable for a second device, and the second device and a first device implement wireless connection communication through bluetooth, and the device includes a heart rate data determining module 201, a first time setting module 202, an information communication determining module 203, an electric quantity obtaining module 204, an electric quantity determining module 205, a charging information determining module 206, and a bluetooth working mode switching module 207, where:
the heart rate data judging module 201 is configured to judge whether heart rate data is smaller than a preset heart rate threshold according to received heart rate data information sent by the first device, and if the heart rate data is smaller than the heart rate threshold, switch the bluetooth working mode of the second device to a deep sleep mode through the bluetooth working mode switching module 207; if the heart rate data is not less than the heart rate threshold, the first time setting module 202 and the information traffic judging module 203 start to work;
the first time setting module 202 is configured to set a first preset time period;
the information traffic determining module 203 is configured to determine whether information traffic exists between the second device and the first device within the first preset time period, and if no information traffic exists between the second device and the first device, switch the bluetooth operating mode of the second device to the deep sleep mode through the bluetooth operating mode switching module 207; if information comes and goes between the second device and the first device, the electric quantity obtaining module 204 starts to work;
the electric quantity obtaining module 204 is configured to obtain electric quantity information of the second device;
the electric quantity determining module 205 is configured to determine whether the electric quantity of the second device is smaller than a preset electric quantity threshold according to the electric quantity information of the second device, and if the electric quantity of the second device is smaller than the electric quantity threshold, switch the bluetooth working mode of the second device to a sleep mode through the bluetooth working mode switching module 207; if the electric quantity of the second device is not less than the electric quantity threshold, the charging information determining module 206 starts to work;
the charging information determining module 206 is configured to determine whether the second device receives charging information of the first device, and if the second device receives the charging information of the first device, switch a bluetooth operating mode of the second device to the sleep mode through the bluetooth operating mode switching module 207; if the second device does not receive the charging information of the first device, the bluetooth working mode of the second device is switched to a normal working mode through the bluetooth working mode switching module 207;
the bluetooth working mode switching module 207 is configured to switch the bluetooth working mode of the second device according to different determination results.
In this embodiment, the first device is preferably a smart watch, the second device is preferably a mobile phone, and the smart watch and the mobile phone realize wireless connection communication through bluetooth.
The device for automatically switching the Bluetooth working mode judges whether the heart rate data received by the mobile phone is smaller than a preset heart rate threshold value or not through the heart rate data judging module 201, sets a first preset time period through the first time setting module 202, judges whether information comes between the mobile phone and the smart watch in the first preset time period or not through the information coming and going judging module 203, acquires the electric quantity information of the mobile phone through the electric quantity acquiring module 204, judges whether the electric quantity of the mobile phone is smaller than the preset electric quantity threshold value or not through the electric quantity judging module 205, judges whether the mobile phone receives the charging information of the smart watch or not through the charging information judging module 206, automatically switches the Bluetooth working mode of the mobile phone among a deep sleep mode, a sleep mode and a normal working mode according to different judging results through the Bluetooth working mode switching module 207, and solves the problem of large Bluetooth power consumption of the, the Bluetooth power consumption of the mobile phone is reduced, so that the electric quantity consumption of the mobile phone is reduced, and the endurance time of the mobile phone is prolonged.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for automatically switching a Bluetooth working mode, the method is applied to a first device, the first device and a second device realize wireless connection communication through Bluetooth, and the method is characterized by comprising the following steps:
detecting the heart rate of a user to obtain heart rate data information;
judging whether heart rate data is smaller than a preset heart rate threshold value or not according to the heart rate data information, and if the heart rate data is smaller than the heart rate threshold value, switching a Bluetooth working mode of the first equipment to a deep sleep mode; if the heart rate data is not smaller than the heart rate threshold value, judging whether information comes and goes between the first equipment and the second equipment within a first preset time period;
if no information comes between the first device and the second device, switching the Bluetooth working mode of the first device to the deep sleep mode; if information exchange exists between the first equipment and the second equipment, acquiring the electric quantity information of the first equipment;
judging whether the electric quantity of the first equipment is smaller than a preset electric quantity threshold value or not according to the electric quantity information of the first equipment, and if the electric quantity of the first equipment is smaller than the electric quantity threshold value, switching the Bluetooth working mode of the first equipment to a sleep mode; if the electric quantity of the first equipment is not smaller than the electric quantity threshold value, judging whether the first equipment receives the electric quantity shortage reminding information of the second equipment;
if the first equipment does not receive the electric quantity shortage reminding information of the second equipment, switching the Bluetooth working mode of the first equipment to a normal working mode; if the first device receives the electric quantity shortage reminding information of the second device, judging whether the first device receives the charging information of the second device within a second preset time period;
if the first equipment does not receive the charging information of the second equipment, switching the Bluetooth working mode of the first equipment to the sleep mode; and if the first equipment receives the charging information of the second equipment, switching the Bluetooth working mode of the first equipment to the normal working mode.
2. The method of claim 1, wherein the heart rate data information is obtained by detecting a heart rate of a user through a heart rate sensor disposed in the first device, and wherein the heart rate data information is sent to the second device when the heart rate data is detected to jump from less than the heart rate threshold to not less than the heart rate threshold or from not less than the heart rate threshold to less than the heart rate threshold at any time.
3. The method of automatically switching bluetooth modes of operation as claimed in claim 1, wherein the first predetermined period of time is set by a first timer configured in the first device and the second predetermined period of time is set by a second timer configured in the first device.
4. The method of claim 1, wherein if the power of the first device is less than the power threshold and it is detected that the first device is charging, sending charging information of the first device to the second device.
5. The utility model provides an automatic switch over bluetooth operational mode's device, the device is applicable to first equipment, first equipment and second equipment realize wireless connection communication through the bluetooth, its characterized in that, including heart rate data detection module, heart rate data judgment module, the very first time setting module, information round trip judgment module, electric quantity acquisition module, electric quantity judgment module, the not enough warning information judgment module of electric quantity, the second time setting module, charging information judgment module and bluetooth operational mode switching module, wherein:
the heart rate data detection module is used for detecting the heart rate of a user to obtain heart rate data information;
the heart rate data judging module is used for judging whether heart rate data is smaller than a preset heart rate threshold value or not according to the heart rate data information, and if the heart rate data is smaller than the heart rate threshold value, the Bluetooth working mode of the first equipment is switched to a deep sleep mode through the Bluetooth working mode switching module; if the heart rate data is not smaller than the heart rate threshold value, the first time setting module and the information communication judging module start to work;
the first time setting module is used for setting a first preset time period;
the information traffic judging module is used for judging whether information traffic exists between the first device and the second device within the first preset time period, and if no information traffic exists between the first device and the second device, the Bluetooth working mode of the first device is switched to the deep sleep mode through the Bluetooth working mode switching module; if information comes and goes between the first equipment and the second equipment, the electric quantity acquisition module starts to work;
the electric quantity acquisition module is used for acquiring electric quantity information of the first equipment;
the electric quantity judging module is used for judging whether the electric quantity of the first equipment is smaller than a preset electric quantity threshold value according to the electric quantity information of the first equipment, and if the electric quantity of the first equipment is smaller than the electric quantity threshold value, the Bluetooth working mode of the first equipment is switched to a sleep mode through the Bluetooth working mode switching module; if the electric quantity of the first device is not smaller than the electric quantity threshold value, the electric quantity shortage reminding information judgment module starts to work;
the power shortage reminding information judging module is used for judging whether the first equipment receives power shortage reminding information of the second equipment or not, and if the first equipment does not receive the power shortage reminding information of the second equipment, the Bluetooth working mode of the first equipment is switched to a normal working mode through the Bluetooth working mode switching module; if the first device receives the electric quantity shortage reminding information of the second device, the second time setting module and the charging information judging module start to work;
the second time setting module is used for setting a second preset time period;
the charging information judging module is used for judging whether the first equipment receives charging information of the second equipment within a second preset time period, and if the first equipment does not receive the charging information of the second equipment, the Bluetooth working mode of the first equipment is switched to the dormant mode through the Bluetooth working mode switching module; if the first device receives the charging information of the second device, the Bluetooth working mode of the first device is switched to the normal working mode through the Bluetooth working mode switching module;
the Bluetooth working mode switching module is used for switching the Bluetooth working mode of the first device according to different judgment results.
6. A method for automatically switching a Bluetooth working mode, wherein the method is applied to a second device, and the second device and a first device realize wireless connection communication through Bluetooth, and the method is characterized by comprising the following steps:
judging whether heart rate data is smaller than a preset heart rate threshold value or not according to the received heart rate data information sent by the first equipment, and if the heart rate data is smaller than the heart rate threshold value, switching the Bluetooth working mode of the second equipment to a deep sleep mode; if the heart rate data is not smaller than the heart rate threshold value, judging whether information comes and goes between the second equipment and the first equipment within a first preset time period;
if no information comes between the second equipment and the first equipment, switching the Bluetooth working mode of the second equipment to the deep sleep mode; if information exchange exists between the second equipment and the first equipment, acquiring the electric quantity information of the second equipment;
judging whether the electric quantity of the second equipment is smaller than a preset electric quantity threshold value or not according to the electric quantity information of the second equipment, and if the electric quantity of the second equipment is smaller than the electric quantity threshold value, switching the Bluetooth working mode of the second equipment to a sleep mode; if the electric quantity of the second equipment is not smaller than the electric quantity threshold value, judging whether the second equipment receives the charging information of the first equipment;
if the second equipment receives the charging information of the first equipment, switching the Bluetooth working mode of the second equipment to the sleep mode; and if the second equipment does not receive the charging information of the first equipment, switching the Bluetooth working mode of the second equipment to a normal working mode.
7. The method of automatically switching bluetooth modes of operation according to claim 6, wherein the first predetermined period of time is set by a timer configured in the second device.
8. The method according to claim 6, wherein if the power of the second device is less than the power threshold, sending a power shortage notification message to the first device.
9. The method of claim 8, wherein if the power of the second device is less than the power threshold and it is detected that the second device is charging, sending charging information of the second device to the first device.
10. The utility model provides an automatic switch over bluetooth operational mode's device, the device is applicable to the second equipment, wireless connection communication is realized through the bluetooth to second equipment and first equipment, its characterized in that, includes heart rate data judgment module, the very first time sets up module, information round trip judgment module, electric quantity acquisition module, electric quantity judgment module, charging information judgment module and bluetooth operational mode switching module, wherein:
the heart rate data judging module is used for judging whether heart rate data is smaller than a preset heart rate threshold value or not according to the received heart rate data information sent by the first equipment, and if the heart rate data is smaller than the heart rate threshold value, the Bluetooth working mode of the second equipment is switched to a deep sleep mode through the Bluetooth working mode switching module; if the heart rate data is not smaller than the heart rate threshold value, the first time setting module and the information communication judging module start to work;
the first time setting module is used for setting a first preset time period;
the information traffic judging module is used for judging whether information traffic exists between the second device and the first device within the first preset time period, and if no information traffic exists between the second device and the first device, the Bluetooth working mode of the second device is switched to the deep sleep mode through the Bluetooth working mode switching module; if information comes and goes between the second equipment and the first equipment, the electric quantity acquisition module starts to work;
the electric quantity acquisition module is used for acquiring electric quantity information of the second equipment;
the electric quantity judging module is used for judging whether the electric quantity of the second equipment is smaller than a preset electric quantity threshold value according to the electric quantity information of the second equipment, and if the electric quantity of the second equipment is smaller than the electric quantity threshold value, the Bluetooth working mode of the second equipment is switched to a dormant mode through the Bluetooth working mode switching module; if the electric quantity of the second equipment is not smaller than the electric quantity threshold value, the charging information judgment module starts to work;
the charging information judging module is used for judging whether the second equipment receives charging information of the first equipment or not, and if the second equipment receives the charging information of the first equipment, the Bluetooth working mode of the second equipment is switched to the dormant mode through the Bluetooth working mode switching module; if the second equipment does not receive the charging information of the first equipment, the Bluetooth working mode of the second equipment is switched to a normal working mode through the Bluetooth working mode switching module;
the Bluetooth working mode switching module is used for switching the Bluetooth working mode of the second equipment according to different judgment results.
CN201710950541.4A 2017-10-11 2017-10-11 Method and device for automatically switching Bluetooth working modes Expired - Fee Related CN107708192B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710950541.4A CN107708192B (en) 2017-10-11 2017-10-11 Method and device for automatically switching Bluetooth working modes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710950541.4A CN107708192B (en) 2017-10-11 2017-10-11 Method and device for automatically switching Bluetooth working modes

Publications (2)

Publication Number Publication Date
CN107708192A CN107708192A (en) 2018-02-16
CN107708192B true CN107708192B (en) 2021-03-23

Family

ID=61183706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710950541.4A Expired - Fee Related CN107708192B (en) 2017-10-11 2017-10-11 Method and device for automatically switching Bluetooth working modes

Country Status (1)

Country Link
CN (1) CN107708192B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587777A (en) * 2018-12-12 2019-04-05 上海联影医疗科技有限公司 Device and method, computer readable storage medium, remote control device and the medical imaging device of power management
CN112449327A (en) * 2019-08-27 2021-03-05 北京君正集成电路股份有限公司 Method and device for switching working states of wireless data interaction terminal
CN113520305B (en) * 2020-04-17 2022-11-25 华为技术有限公司 Method and device for determining working mode of photoelectric sensor
CN117717351A (en) * 2024-02-08 2024-03-19 南京鼓楼医院集团宿迁医院有限公司 Bluetooth transmission-based electrocardiograph quick auxiliary matching method and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007114579A (en) * 2005-10-21 2007-05-10 Pioneer Electronic Corp Display device, method, system, and server, and program
JP5527895B2 (en) * 2010-11-18 2014-06-25 パナソニック株式会社 Secondary battery control device and control method
CN103533619A (en) * 2012-07-05 2014-01-22 华为技术有限公司 Mobile communication terminal and power management method thereof
CN104679219B (en) * 2015-03-03 2018-07-17 网易(杭州)网络有限公司 Extend the method and apparatus of the stand-by time of electronics wearable device
CN106293071A (en) * 2016-07-28 2017-01-04 宇龙计算机通信科技(深圳)有限公司 The mode switching method of a kind of wearable device and wearable device
CN106445073A (en) * 2016-09-28 2017-02-22 惠州Tcl移动通信有限公司 Method and system for automatic scene mode switching of mobile terminal

Also Published As

Publication number Publication date
CN107708192A (en) 2018-02-16

Similar Documents

Publication Publication Date Title
CN107708192B (en) Method and device for automatically switching Bluetooth working modes
CN105979103B (en) Battery power guarantee method and device for portable electronic product and mobile terminal
CN109690900B (en) Charging method and terminal
EP2988219B1 (en) Power saving management method and device for intelligent terminal
CN102593540B (en) A kind of battery activated method, module and terminal
CN103399483A (en) Method and device for power supply management of wearable equipment
EP2876944A1 (en) Network card device, routing device, system and method for realizing dynamic sleep and wakeup
CN201846395U (en) Mobile phone with power saving function
WO2006073630A3 (en) Battery pack, system, and method for waking up a charge control circuit of a mobile communication device
WO2016184428A1 (en) Charging management apparatus, charging apparatus, and charging management method
US9954787B2 (en) Intelligent terminal power-saving management method and apparatus
CN210042141U (en) Wireless earphone, wireless earphone charging box and charging control system
CN105516515A (en) Method and system for automatically switching intelligent terminal to power saving mode
CN105549720A (en) Power energy-saving control method and system for intelligent wearable device
CN105611505B (en) Message pushing method, message pushing device and terminal
CN208112891U (en) A kind of wireless headset
CN110572869A (en) equipment awakening method and device based on BLE and Hall switch
CN103024183A (en) Method and system for awakening mobile phone
CN106535116A (en) Method and device for monitoring position of mobile terminal
CN103024204B (en) A kind of electricity saving method of mobile terminal and device
CN102013532B (en) Method and device for controlling terminal to be charged
CN204990613U (en) Lasting portable alarm of seeking help of standby of intelligence
CN105208225A (en) Method and device for reducing power consumption of smart watch
WO2018137383A1 (en) Screen display method and device, and terminal
CN106814776A (en) A kind of Intelligent bracelet control system and method

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210323

CF01 Termination of patent right due to non-payment of annual fee