CN117707832A - Reset method, system and storage medium of Bluetooth MCU of intelligent watch - Google Patents

Reset method, system and storage medium of Bluetooth MCU of intelligent watch Download PDF

Info

Publication number
CN117707832A
CN117707832A CN202410168062.7A CN202410168062A CN117707832A CN 117707832 A CN117707832 A CN 117707832A CN 202410168062 A CN202410168062 A CN 202410168062A CN 117707832 A CN117707832 A CN 117707832A
Authority
CN
China
Prior art keywords
voltage
information
preset
reset
bluetooth mcu
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.)
Pending
Application number
CN202410168062.7A
Other languages
Chinese (zh)
Inventor
陈泽鹏
赵磊
胡杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Weike Technology Co ltd
Original Assignee
Shenzhen Weike Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Weike Technology Co ltd filed Critical Shenzhen Weike Technology Co ltd
Priority to CN202410168062.7A priority Critical patent/CN117707832A/en
Publication of CN117707832A publication Critical patent/CN117707832A/en
Pending legal-status Critical Current

Links

Classifications

    • 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 provides a reset method, a system and a storage medium of a Bluetooth MCU of an intelligent watch, which are used for detecting and judging whether the power supply voltage of a charger is stable when entering a charging connection state; under the condition that the power supply voltage of the charger reaches a preset stable condition, detecting the battery voltage of the intelligent watch equipment; when the battery voltage is lower than a preset voltage threshold value, the problem of the dead halt of the Bluetooth MCU caused by low battery power when the charger is plugged and unplugged is solved by sending a reset instruction to the Bluetooth MCU. In addition, the charging process is controlled based on the detected electrical characteristics such as the battery voltage and temperature. According to the invention, the reset of the Bluetooth MCU is controlled by adding a small MCU, so that the functions of detecting the electrical performance and controlling the reset are realized, and the stability of the product and the reliability of charging are improved.

Description

Reset method, system and storage medium of Bluetooth MCU of intelligent watch
Technical Field
The invention relates to the field of electronic control, in particular to a method, a system and a storage medium for resetting a Bluetooth MCU of a smart watch.
Background
The micro control unit (Microcontroller Unit; MCU), also called as single chip microcomputer (Single Chip Microcomputer) or single chip microcomputer, properly reduces the frequency and specification of the CPU, and integrates the peripheral interfaces such as memory, counter, A/D conversion, UART, etc. onto a single chip to form a chip-level computer. The Bluetooth MCU is an MCU integrated with a Bluetooth module and having a Bluetooth communication function.
In practical application, when the portable mobile intelligent product of the Bluetooth MCU is used, the situation that the Bluetooth MCU still is in a configuration stage and cannot perform low-power protection can be encountered in the process of plugging and unplugging the charger. That is, taking the smart watch as an example, when the battery of the smart watch is in a low-power state, the plugging/unplugging of the charger has a fault that can cause the halt of the bluetooth MCU host, and meanwhile, the performance of the bluetooth MCU is damaged. Therefore, an electronic control technology is needed to solve the problem that the smart watch is dead due to the fact that the charger is plugged in and plugged out under the condition of low power.
Disclosure of Invention
In view of the above problems, the present invention aims to provide a method, a system and a storage medium for resetting a bluetooth MCU of a smart watch, wherein the method, the system and the storage medium are used for detecting a battery and controlling charging through a small-sized MCU, and if the battery power is lower than a preset voltage threshold, a reset instruction is sent to the bluetooth MCU through the small-sized MCU, so that the problem of the malfunction of the bluetooth MCU due to the low battery power is solved. The invention controls the reset of the Bluetooth MCU through a small MCU, thereby not only realizing the functions of detecting the electrical performance and controlling the reset, but also improving the stability of the product and the reliability of charging.
The first aspect of the invention provides a resetting method of a Bluetooth MCU of a smart watch, which comprises the following steps:
acquiring connection state information, and judging whether to enter a charging connection state according to the connection state information;
if yes, periodically acquiring first voltage information;
obtaining first time information of the first voltage information in a first voltage threshold range according to the relation between the first voltage information and a preset first voltage threshold range;
judging whether the first time information exceeds a preset time threshold value or not;
if yes, entering a charging state;
acquiring second voltage information;
judging whether the second voltage information exceeds a preset second voltage threshold value or not;
if yes, turning on a charging switch;
if not, after the first instruction is sent, the charging switch is started.
In this scheme, according to the relation between the first voltage information and the preset first voltage threshold range, first time information that the first voltage information is in the first voltage threshold range is obtained, specifically:
judging whether the first voltage information is in the preset first voltage threshold range or not;
if yes, updating the first time information according to the acquisition period of the first voltage information;
if not, initializing the first time information.
In this scheme, still include:
when entering a charging connection state, acquiring first voltage information;
judging whether the first voltage information exceeds a power supply threshold value;
if yes, connecting the battery anode through the first conduction unit;
and obtaining second voltage information through an analog-to-digital converter.
In this scheme, after sending first instruction, open the charge switch, specifically:
according to the preset duration, a preset conduction level is sent to the second conduction unit;
in a preset duration, the second conduction unit enables a reset pin of the Bluetooth MCU to be connected to a preset reset level, and drives the Bluetooth MCU to reset;
and starting the charging switch to supplement electric energy to the battery.
In this scheme, still include:
a preset reset instruction is sent to the Bluetooth MCU through a communication interface;
judging whether feedback information is received or not;
if yes, the charging switch is turned on;
if not, the preset reset instruction is resent.
In this scheme, still include:
acquiring the second voltage information;
judging whether the second voltage information exceeds a preset third voltage threshold value or not;
if yes, closing the charging switch;
if not, the charging switch is turned on.
The second aspect of the present invention provides a reset system of a bluetooth MCU of a smart watch, including a reset method program of a bluetooth MCU of a smart watch, where the reset method program of a bluetooth MCU of a smart watch, when executed by the processor, implements the following steps:
acquiring connection state information, and judging whether to enter a charging connection state according to the connection state information;
if yes, periodically acquiring first voltage information;
obtaining first time information of the first voltage information in a first voltage threshold range according to the relation between the first voltage information and a preset first voltage threshold range;
judging whether the first time information exceeds a preset time threshold value or not;
if yes, entering a charging state;
acquiring second voltage information;
judging whether the second voltage information exceeds a preset second voltage threshold value or not;
if yes, turning on a charging switch;
if not, after the first instruction is sent, the charging switch is started.
In this scheme, according to the relation between the first voltage information and the preset first voltage threshold range, first time information that the first voltage information is in the first voltage threshold range is obtained, specifically:
judging whether the first voltage information is in the preset first voltage threshold range or not;
if yes, updating the first time information according to the acquisition period of the first voltage information;
if not, initializing the first time information.
In this scheme, still include:
when entering a charging connection state, acquiring first voltage information;
judging whether the first voltage information exceeds a power supply threshold value;
if yes, connecting the battery anode through the first conduction unit;
and obtaining second voltage information through an analog-to-digital converter.
A third aspect of the present invention provides a computer readable storage medium, including therein a method program for resetting a bluetooth MCU of a smart watch, which when executed by a processor, implements the steps of the method for resetting a bluetooth MCU of a smart watch as described in any one of the above.
The invention provides a reset method, a system and a storage medium of a Bluetooth MCU of an intelligent watch, which are used for detecting and judging whether the power supply voltage of a charger is stable when entering a charging connection state; under the condition that the power supply voltage of the charger reaches a preset stable condition, detecting the battery voltage of the intelligent watch equipment; when the battery voltage is lower than a preset voltage threshold value, the problem of the dead halt of the Bluetooth MCU caused by low battery power when the charger is plugged and unplugged is solved by sending a reset instruction to the Bluetooth MCU. In addition, the charging process is controlled based on the detected electrical characteristics such as the battery voltage and temperature. According to the invention, the reset of the Bluetooth MCU is controlled by adding a small MCU, so that the functions of detecting the electrical performance and controlling the reset are realized, and the stability of the product and the reliability of charging are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be considered as limiting the scope.
Fig. 1 shows a flowchart of a method for resetting a bluetooth MCU of a smart watch according to the present invention;
FIG. 2 is a flowchart of updating first time information according to an embodiment of the present invention;
FIG. 3 shows a flowchart for acquiring second voltage information according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a structural connection provided by an embodiment of the present invention;
fig. 5 shows a block diagram of a reset system of a bluetooth MCU of a smart watch according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Unless otherwise defined, all terms (including technical and scientific terms) used in the embodiments of the invention have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The terms "first," "second," and the like, as used in embodiments of the present invention, do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. Nor does the terms "a," "an," or "the" or similar terms mean a limitation of quantity, but rather that at least one is present. Likewise, the word "comprising" or "comprises", and the like, means that elements or items preceding the word are included in the element or item listed after the word and equivalents thereof, but does not exclude other elements or items. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The steps preceding or following the methods of embodiments of the present invention are not necessarily performed in a sequential order. Rather, the various steps may be processed in reverse order or simultaneously. Also, other operations may be added to or removed from these processes.
In addition, functional modules in the embodiments of the present invention may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
Fig. 1 shows a flowchart of a method for resetting a bluetooth MCU of a smart watch according to the present invention.
As shown in fig. 1, the invention discloses a method for resetting a bluetooth MCU of a smart watch, which comprises the following steps:
s102, acquiring connection state information, and judging whether to enter a charging connection state according to the connection state information;
s104, if yes, periodically acquiring first voltage information;
s106, obtaining first time information of the first voltage information in a first voltage threshold range according to the relation between the first voltage information and a preset first voltage threshold range;
s108, judging whether the first time information exceeds a preset time threshold value;
s110, if yes, entering a charging state;
s112, acquiring second voltage information;
s114, judging whether the second voltage information exceeds a preset second voltage threshold value;
s116, if yes, turning on a charging switch;
s118, if not, after the first instruction is sent, a charging switch is turned on.
It should be noted that, the connection state information is whether the charger is connected to the smart watch device, and provides power supply for the smart watch device. When the charging connection state is entered, the electric energy from the charger can be received, the electric energy is electrified, and the detection and reset functions are activated; that is, the charger provides power for the small MCU that controls the Bluetooth MCU to reset, and the work of detecting and resetting begins after the small MCU is powered on. After power-on, continuously collecting first voltage information with a certain time as a period; the first voltage information refers to a voltage value of electric energy provided by the charger, namely a power supply voltage of the charger. In practical applications, the power supply voltage of the charger is generally measured every 100ms, 200ms or 500ms, and the voltage value of the power supply voltage, that is, the first voltage information, is obtained through conversion by an analog-to-digital converter (ADC). Then, judging whether the power supply voltage of the charger is stable or not according to the relation between the first voltage information and a preset first voltage threshold range; specifically, the duration of the first voltage information kept within the preset first voltage threshold range is recorded as first time information. For example, the supply voltage is measured with a period of 100ms, and the first voltage threshold range is 4.9V to 5.1V; and if the power supply voltage value measured in each time period is within the first voltage threshold range, accumulating the first time information for 100ms, otherwise, resetting the first time information. When the first time information exceeds the preset time information, the charger power supply voltage reaches the preset stable requirement. In practical application, when the power supply voltage of the charger is stabilized within the voltage range for 3 seconds, the power supply voltage stabilization degree reaches the preset requirement.
When the charger supply voltage is deemed to be in a steady state, a state of charge is entered. The second voltage information is the voltage value of the two ends of the anode and the cathode of the battery. The voltage at the positive and negative ends of the battery is measured, and the voltage value at the positive and negative ends of the battery, namely the battery voltage value, namely the second voltage information, is obtained through conversion of an analog-to-digital converter (ADC). Judging whether the second voltage information exceeds a preset second voltage threshold, in practical application, setting the second voltage threshold to be 3.4V, and when the battery voltage does not exceed 3.4V, accessing the charger to the charger has the risk of the Bluetooth MCU to halt, so that the intelligent watch device works abnormally. That is, when the battery voltage exceeds 3.4V, it is determined that the operation of the bluetooth MCU is not affected, and at this time, the charger supplements the battery of the smart watch device with electric energy by turning on the charging switch; when the battery voltage is not more than 3.4V, the risk of influencing the normal work of the Bluetooth MCU is determined, and the Bluetooth MCU is reset and restarted by sending a first instruction, namely a reset instruction and resetting the Bluetooth MCU, so that the problem of abnormality of the Bluetooth MCU is solved; after the Bluetooth MCU resets, the charging switch is turned on, so that the charger supplements electric energy for the battery of the intelligent watch device.
Fig. 2 shows a flow chart for determining an acquisition mode of positioning information when the power is sufficient.
According to an embodiment of the present invention, as shown in fig. 2, the first time information that the first voltage information is in the first voltage threshold range is obtained according to the relationship between the first voltage information and the preset first voltage threshold range, specifically:
s202, judging whether the first voltage information is in the preset first voltage threshold range or not;
s204, if yes, updating the first time information according to the acquisition period of the first voltage information;
s206, if not, initializing the first time information.
The first voltage information refers to a voltage value of the electric energy provided by the charger, that is, a supply voltage of the charger. Judging whether the power supply voltage of the charger is stable or not according to the relation between the first voltage information and a preset first voltage threshold range; specifically, the duration of the first voltage information kept within the preset first voltage threshold range is recorded as first time information. That is, the duration of the first voltage information within the preset first voltage threshold range is recorded, and whether the first voltage is in a stable state is determined according to the duration. For example, the supply voltage is measured with a period of 100ms, and the first voltage threshold range is 4.9V to 5.1V; if the power supply voltage value measured in each time period is within a first voltage threshold range, accumulating the first time information for 100ms; and if the first voltage information is not in the first voltage threshold range, resetting the first time information.
Fig. 3 shows a flow chart for determining an acquisition mode of positioning information when the power is insufficient.
According to an embodiment of the present invention, as shown in fig. 3, further includes:
s302, when entering a charging connection state, acquiring first voltage information;
s304, judging whether the first voltage information exceeds a power supply voltage threshold value;
s306, if yes, connecting the battery anode through the first conduction unit;
and S308, obtaining second voltage information through an analog-to-digital converter.
It should be noted that, when the smart watch device enters a charging connection state, that is, the charger provides electric power for a small MCU in the smart watch device for controlling the Bluetooth MCU to reset, the first voltage information is obtained; the first voltage information refers to a voltage value of electric energy provided by the charger, namely a power supply voltage of the charger. As shown in fig. 4, when the first voltage information exceeds a power supply voltage threshold required for the operation of the small MCU, the small MCU41 receives the supply of electric power from the charger 43, and enters an on-power state; the first conduction unit 412 receives the drive of the power supply voltage from the charger 43, and is in a conduction state, so that the voltage detection interface of the small MCU41 is connected to the positive electrode of the battery 44. The voltage at the positive and negative ends of the battery is measured, and the voltage value at the positive and negative ends of the battery, namely the battery voltage value, namely the second voltage information, is obtained through conversion of an analog-to-digital converter (ADC).
According to an embodiment of the present invention, after the first instruction is sent, a charging switch is turned on, specifically:
according to the preset duration, a preset conduction level is sent to the second conduction unit;
in a preset duration, the second conduction unit enables a reset pin of the Bluetooth MCU to be connected to a preset reset level, and drives the Bluetooth MCU to reset;
and starting the charging switch to supplement electric energy to the battery.
It should be noted that, the first instruction is used for driving the bluetooth MCU to reset, in practical application, the reset pin of the bluetooth MCU is set to a reset level lasting for a certain time, so as to achieve the purpose of resetting the bluetooth MCU. As shown in fig. 4, the small MCU41 sends a preset on level to the second on unit 413, so that the second on unit realizes switching on state; wherein the conduction level is high level or low level; the small MCU keeps the conduction state of the second conduction unit for a preset duration according to the preset duration; in the application of the invention, the small MCU sends a high level of 500ms to the second conduction unit, so that the second conduction unit is in a conduction state of 500ms. When the second conduction unit is in a conduction state, the second conduction unit connects a reset pin of the Bluetooth MCU to a preset reset level to drive the Bluetooth MCU to reset. In the application of the invention, the small MCU puts the second conduction unit in the conduction state of 500ms, that is, connects the reset pin of the Bluetooth MCU to the reset level for 500ms. After the small MCU finishes sending the on level, the charging switch 411 starts the charging operation, so that the charger supplements the electric energy to the battery.
According to an embodiment of the present invention, further comprising:
a preset reset instruction is sent to the Bluetooth MCU through a communication interface;
judging whether feedback information is received or not;
if yes, the charging switch is turned on;
if not, the preset reset instruction is resent.
It should be noted that, the first instruction is used for driving the bluetooth MCU to reset, and an instruction communication manner may be adopted, so that a reset operation is performed to the bluetooth MCU according to the reset instruction. Firstly, a preset reset instruction is sent to a Bluetooth MCU through a communication interface; in the application of the invention, the Bluetooth MCU executes the reset operation after receiving the reset instruction, and sends feedback information to the small MCU after completing the reset operation. Then, the small MCU is used for judging whether the Bluetooth MCU is successfully reset by judging whether a feedback instruction is received or not. If feedback information is received, the Bluetooth MCU is successfully reset, and a charging operation is started through a charging switch, so that the charger supplements electric energy to the battery; if the feedback information is not received, the Bluetooth MCU fails to reset, and then a reset instruction is sent again, so that the Bluetooth MCU executes the reset operation again.
According to an embodiment of the present invention, further comprising:
acquiring the second voltage information;
judging whether the second voltage information exceeds a preset third voltage threshold value or not;
if yes, closing the charging switch;
if not, the charging switch is turned on.
The second voltage information is a voltage value of both the positive and negative electrodes of the battery. In practical application, whether the battery is in a state of electric quantity saturation is judged by monitoring the voltage values of the two ends of the positive electrode and the negative electrode of the battery. The invention sets a second voltage threshold to measure whether the battery is at a preset upper limit of electric quantity. When the second voltage information exceeds a third voltage threshold, the electric quantity reaches a preset capacity, and the charging operation is closed through the charging switch, so that the charger stops supplementing the electric energy to the battery; when the second voltage information does not exceed the third voltage threshold, the charging switch is used for starting the charging operation, so that the charger supplements the electric energy for the battery. In the application of the invention, the corresponding battery voltage value is 4.2V when the battery electric quantity is in a saturated state, and the invention sets the third voltage threshold value to be 4.1V; when the battery voltage exceeds 4.1V, stopping charging; when the battery voltage does not exceed 4.1V, charging is continued. The third voltage threshold is set to be lower than the voltage in the saturated state, so that the battery is not in the full saturated state, and the battery life can be effectively prevented from being reduced due to the overcharge of the battery.
It is worth mentioning that the method further comprises:
acquiring the second voltage information;
when the second voltage information is lower than a first charging voltage threshold value, a first charging mode is entered;
when the second voltage information is not lower than the first charging voltage threshold value and the second voltage information is higher than the second charging voltage threshold value, entering a second charging mode;
when the second voltage information is not lower than the second charging voltage threshold value, entering a third charging mode;
the second voltage information is a voltage value of both the positive and negative electrodes of the battery. In practical application, the voltage value of the two ends of the anode and the cathode of the battery is monitored to be used for representing the electric quantity condition of the battery. In order to protect the battery in the charging process, under the condition of low battery electric quantity, a mode of reducing charging current is adopted to prevent the damage of the internal structure of the battery caused by instantaneous high power; under the condition of high battery power, a mode of reducing charging current is adopted to prevent the service life of the battery from being reduced due to overcharging. In the application of the invention, for the case of a lithium battery with a nominal voltage of 3.7V and a full voltage of 4.2V, a first charging voltage threshold value of 2.9V and a second charging voltage threshold value of 4.05V are set; when the voltage of the battery is lower than 2.9V, a first charging mode, namely a trickle charging mode is entered, and the battery is charged by adopting a current value smaller than that in full-current charging; when the voltage of the battery is not lower than 2.9V and lower than 4.05V, the battery is charged in a second charging mode, namely a full-current charging mode; and when the voltage of the battery is not lower than 4.05V, the battery is charged by adopting a third charging mode and adopting a current value smaller than that in full-current charging. Thereby achieving the purposes of protecting the battery and prolonging the service life of the battery.
It is worth mentioning that the method further comprises:
acquiring first temperature information;
judging whether the first temperature information exceeds a preset temperature threshold value or not;
if yes, closing the charging switch;
the first temperature information is a temperature value of the battery. When the temperature value of the battery exceeds a preset temperature threshold value, the battery is stopped from being replenished with electric energy by closing the charging switch in order to prevent the phenomenon of ignition or battery damage caused by overheating.
Fig. 5 shows a block diagram of a reset system of a bluetooth MCU of a smart watch according to the present invention.
As shown in fig. 5, the invention discloses a reset system 5 of a bluetooth MCU of a smart watch, which comprises a memory 51 and a processor 52, wherein the memory comprises a reset method program of the bluetooth MCU of the smart watch, and the reset method program of the bluetooth MCU of the smart watch realizes the following steps when being executed by the processor:
acquiring connection state information, and judging whether to enter a charging connection state according to the connection state information;
if yes, periodically acquiring first voltage information;
obtaining first time information of the first voltage information in a first voltage threshold range according to the relation between the first voltage information and a preset first voltage threshold range;
judging whether the first time information exceeds a preset time threshold value or not;
if yes, entering a charging state;
acquiring second voltage information;
judging whether the second voltage information exceeds a preset second voltage threshold value or not;
if yes, turning on a charging switch;
if not, after the first instruction is sent, the charging switch is started.
It should be noted that, the connection state information is whether the charger is connected to the smart watch device, and provides power supply for the smart watch device. When the charging connection state is entered, the electric energy from the charger can be received, the electric energy is electrified, and the detection and reset functions are activated; that is, the charger provides power for the small MCU that controls the Bluetooth MCU to reset, and the work of detecting and resetting begins after the small MCU is powered on. After power-on, continuously collecting first voltage information with a certain time as a period; the first voltage information refers to a voltage value of electric energy provided by the charger, namely a power supply voltage of the charger. In practical applications, the power supply voltage of the charger is generally measured every 100ms, 200ms or 500ms, and the voltage value of the power supply voltage, that is, the first voltage information, is obtained through conversion by an analog-to-digital converter (ADC). Then, judging whether the power supply voltage of the charger is stable or not according to the relation between the first voltage information and a preset first voltage threshold range; specifically, the duration of the first voltage information kept within the preset first voltage threshold range is recorded as first time information. For example, the supply voltage is measured with a period of 100ms, and the first voltage threshold range is 4.9V to 5.1V; and if the power supply voltage value measured in each time period is within the first voltage threshold range, accumulating the first time information for 100ms, otherwise, resetting the first time information. When the first time information exceeds the preset time information, the charger power supply voltage reaches the preset stable requirement. In practical application, when the power supply voltage of the charger is stabilized within the voltage range for 3 seconds, the power supply voltage stabilization degree reaches the preset requirement.
When the charger supply voltage is deemed to be in a steady state, a state of charge is entered. The second voltage information is the voltage value of the two ends of the anode and the cathode of the battery. The voltage at the positive and negative ends of the battery is measured, and the voltage value at the positive and negative ends of the battery, namely the battery voltage value, namely the second voltage information, is obtained through conversion of an analog-to-digital converter (ADC). Judging whether the second voltage information exceeds a preset second voltage threshold, in practical application, setting the second voltage threshold to be 3.4V, and when the battery voltage does not exceed 3.4V, accessing the charger to the charger has the risk of the Bluetooth MCU to halt, so that the intelligent watch device works abnormally. That is, when the battery voltage exceeds 3.4V, it is determined that the operation of the bluetooth MCU is not affected, and at this time, the charger supplements the battery of the smart watch device with electric energy by turning on the charging switch; when the battery voltage is not more than 3.4V, the risk of influencing the normal work of the Bluetooth MCU is determined, and the Bluetooth MCU is reset and restarted by sending a first instruction, namely a reset instruction and resetting the Bluetooth MCU, so that the problem of abnormality of the Bluetooth MCU is solved; after the Bluetooth MCU resets, the charging switch is turned on, so that the charger supplements electric energy for the battery of the intelligent watch device.
According to the embodiment of the invention, according to the relation between the first voltage information and the preset first voltage threshold range, the first time information that the first voltage information is in the first voltage threshold range is obtained, specifically:
judging whether the first voltage information is in the preset first voltage threshold range or not;
if yes, updating the first time information according to the acquisition period of the first voltage information;
if not, initializing the first time information.
The first voltage information refers to a voltage value of the electric energy provided by the charger, that is, a supply voltage of the charger. Judging whether the power supply voltage of the charger is stable or not according to the relation between the first voltage information and a preset first voltage threshold range; specifically, the duration of the first voltage information kept within the preset first voltage threshold range is recorded as first time information. That is, the duration of the first voltage information within the preset first voltage threshold range is recorded, and whether the first voltage is in a stable state is determined according to the duration. For example, the supply voltage is measured with a period of 100ms, and the first voltage threshold range is 4.9V to 5.1V; if the power supply voltage value measured in each time period is within a first voltage threshold range, accumulating the first time information for 100ms; and if the first voltage information is not in the first voltage threshold range, resetting the first time information.
According to an embodiment of the present invention, further comprising:
when entering a charging connection state, acquiring first voltage information;
judging whether the first voltage information exceeds a power supply voltage threshold value;
if yes, connecting the battery anode through the first conduction unit;
and obtaining second voltage information through an analog-to-digital converter.
It should be noted that, when the smart watch device enters a charging connection state, that is, the charger provides electric power for a small MCU in the smart watch device for controlling the Bluetooth MCU to reset, the first voltage information is obtained; the first voltage information refers to a voltage value of electric energy provided by the charger, namely a power supply voltage of the charger. As shown in fig. 4, when the first voltage information exceeds a power supply voltage threshold required for the operation of the small MCU, the small MCU41 receives the supply of electric power from the charger 43, and enters an on-power state; the first conduction unit 412 receives the drive of the power supply voltage from the charger 43, and is in a conduction state, so that the voltage detection interface of the small MCU41 is connected to the positive electrode of the battery 44. The voltage at the positive and negative ends of the battery is measured, and the voltage value at the positive and negative ends of the battery, namely the battery voltage value, namely the second voltage information, is obtained through conversion of an analog-to-digital converter (ADC).
According to an embodiment of the present invention, after the first instruction is sent, a charging switch is turned on, specifically:
according to the preset duration, a preset conduction level is sent to the second conduction unit;
in a preset duration, the second conduction unit enables a reset pin of the Bluetooth MCU to be connected to a preset reset level, and drives the Bluetooth MCU to reset;
and starting the charging switch to supplement electric energy to the battery.
It should be noted that, the first instruction is used for driving the bluetooth MCU to reset, in practical application, the reset pin of the bluetooth MCU is set to a reset level lasting for a certain time, so as to achieve the purpose of resetting the bluetooth MCU. As shown in fig. 4, the small MCU41 sends a preset on level to the second on unit 413, so that the second on unit realizes switching on state; wherein the conduction level is high level or low level; the small MCU keeps the conduction state of the second conduction unit for a preset duration according to the preset duration; in the application of the invention, the small MCU sends a high level of 500ms to the second conduction unit, so that the second conduction unit is in a conduction state of 500ms. When the second conduction unit is in a conduction state, the second conduction unit connects a reset pin of the Bluetooth MCU to a preset reset level to drive the Bluetooth MCU to reset. In the application of the invention, the small MCU puts the second conduction unit in the conduction state of 500ms, that is, connects the reset pin of the Bluetooth MCU to the reset level for 500ms. After the small MCU finishes sending the on level, the charging switch 411 starts the charging operation, so that the charger supplements the electric energy to the battery.
According to an embodiment of the present invention, further comprising:
a preset reset instruction is sent to the Bluetooth MCU through a communication interface;
judging whether feedback information is received or not;
if yes, the charging switch is turned on;
if not, the preset reset instruction is resent.
It should be noted that, the first instruction is used for driving the bluetooth MCU to reset, and an instruction communication manner may be adopted, so that a reset operation is performed to the bluetooth MCU according to the reset instruction. Firstly, a preset reset instruction is sent to a Bluetooth MCU through a communication interface; in the application of the invention, the Bluetooth MCU executes the reset operation after receiving the reset instruction, and sends feedback information to the small MCU after completing the reset operation. Then, the small MCU is used for judging whether the Bluetooth MCU is successfully reset by judging whether a feedback instruction is received or not. If feedback information is received, the Bluetooth MCU is successfully reset, and a charging operation is started through a charging switch, so that the charger supplements electric energy to the battery; if the feedback information is not received, the Bluetooth MCU fails to reset, and then a reset instruction is sent again, so that the Bluetooth MCU executes the reset operation again.
According to an embodiment of the present invention, further comprising:
acquiring the second voltage information;
judging whether the second voltage information exceeds a preset third voltage threshold value or not;
if yes, closing the charging switch;
if not, the charging switch is turned on.
The second voltage information is a voltage value of both the positive and negative electrodes of the battery. In practical application, whether the battery is in a state of electric quantity saturation is judged by monitoring the voltage values of the two ends of the positive electrode and the negative electrode of the battery. The invention sets a second voltage threshold to measure whether the battery is at a preset upper limit of electric quantity. When the second voltage information exceeds a third voltage threshold, the electric quantity reaches a preset capacity, and the charging operation is closed through the charging switch, so that the charger stops supplementing the electric energy to the battery; when the second voltage information does not exceed the third voltage threshold, the charging switch is used for starting the charging operation, so that the charger supplements the electric energy for the battery. In the application of the invention, the corresponding battery voltage value is 4.2V when the battery electric quantity is in a saturated state, and the invention sets the third voltage threshold value to be 4.1V; when the battery voltage exceeds 4.1V, stopping charging; when the battery voltage does not exceed 4.1V, charging is continued. The third voltage threshold is set to be lower than the voltage in the saturated state, so that the battery is not in the full saturated state, and the battery life can be effectively prevented from being reduced due to the overcharge of the battery.
It is worth mentioning that the method further comprises:
acquiring the second voltage information;
when the second voltage information is lower than a first charging voltage threshold value, a first charging mode is entered;
when the second voltage information is not lower than the first charging voltage threshold value and the second voltage information is higher than the second charging voltage threshold value, entering a second charging mode;
when the second voltage information is not lower than the second charging voltage threshold value, entering a third charging mode;
the second voltage information is a voltage value of both the positive and negative electrodes of the battery. In practical application, the voltage value of the two ends of the anode and the cathode of the battery is monitored to be used for representing the electric quantity condition of the battery. In order to protect the battery in the charging process, under the condition of low battery electric quantity, a mode of reducing charging current is adopted to prevent the damage of the internal structure of the battery caused by instantaneous high power; under the condition of high battery power, a mode of reducing charging current is adopted to prevent the service life of the battery from being reduced due to overcharging. In the application of the invention, for the case of a lithium battery with a nominal voltage of 3.7V and a full voltage of 4.2V, a first charging voltage threshold value of 2.9V and a second charging voltage threshold value of 4.05V are set; when the voltage of the battery is lower than 2.9V, a first charging mode, namely a trickle charging mode is entered, and the battery is charged by adopting a current value smaller than that in full-current charging; when the voltage of the battery is not lower than 2.9V and lower than 4.05V, the battery is charged in a second charging mode, namely a full-current charging mode; and when the voltage of the battery is not lower than 4.05V, the battery is charged by adopting a third charging mode and adopting a current value smaller than that in full-current charging. Thereby achieving the purposes of protecting the battery and prolonging the service life of the battery.
It is worth mentioning that the method further comprises:
acquiring first temperature information;
judging whether the first temperature information exceeds a preset temperature threshold value or not;
if yes, closing the charging switch;
the first temperature information is a temperature value of the battery. When the temperature value of the battery exceeds a preset temperature threshold value, the battery is stopped from being replenished with electric energy by closing the charging switch in order to prevent the phenomenon of ignition or battery damage caused by overheating.
A third aspect of the present invention provides a computer readable storage medium, including therein a method program for resetting a bluetooth MCU of a smart watch, which when executed by a processor, implements the steps of the method for resetting a bluetooth MCU of a smart watch as described in any one of the above.
The invention provides a reset method, a system and a storage medium of a Bluetooth MCU of an intelligent watch, which are used for detecting and judging whether the power supply voltage of a charger is stable when entering a charging connection state; under the condition that the power supply voltage of the charger reaches a preset stable condition, detecting the battery voltage of the intelligent watch equipment; when the battery voltage is lower than a preset voltage threshold value, the problem of the dead halt of the Bluetooth MCU caused by low battery power when the charger is plugged and unplugged is solved by sending a reset instruction to the Bluetooth MCU. In addition, the charging process is controlled based on the detected electrical characteristics such as the battery voltage and temperature. According to the invention, the reset of the Bluetooth MCU is controlled by adding a small MCU, so that the functions of detecting the electrical performance and controlling the reset are realized, and the stability of the product and the reliability of charging are improved.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. The method for resetting the Bluetooth MCU of the intelligent watch is characterized by comprising the following steps:
acquiring connection state information, and judging whether to enter a charging connection state according to the connection state information;
if yes, periodically acquiring first voltage information;
obtaining first time information of the first voltage information in a first voltage threshold range according to the relation between the first voltage information and a preset first voltage threshold range;
judging whether the first time information exceeds a preset time threshold value or not;
if yes, entering a charging state;
acquiring second voltage information;
judging whether the second voltage information exceeds a preset second voltage threshold value or not;
if yes, turning on a charging switch;
if not, after the first instruction is sent, the charging switch is started.
2. The method for resetting the bluetooth MCU of the smart watch according to claim 1, wherein the obtaining the first time information that the first voltage information is in the first voltage threshold range according to the relationship between the first voltage information and the preset first voltage threshold range specifically includes:
judging whether the first voltage information is in the preset first voltage threshold range or not;
if yes, updating the first time information according to the acquisition period of the first voltage information;
if not, initializing the first time information.
3. The method for resetting a bluetooth MCU of a smart watch according to claim 1, further comprising:
when entering a charging connection state, acquiring first voltage information;
judging whether the first voltage information exceeds a power supply threshold value;
if yes, connecting the battery anode through the first conduction unit;
and obtaining second voltage information through an analog-to-digital converter.
4. The method for resetting a bluetooth MCU of a smart watch according to claim 1, wherein after the first command is sent, turning on a charging switch, specifically:
according to the preset duration, a preset conduction level is sent to the second conduction unit;
in a preset duration, the second conduction unit enables a reset pin of the Bluetooth MCU to be connected to a preset reset level, and drives the Bluetooth MCU to reset;
and starting the charging switch to supplement electric energy to the battery.
5. The method for resetting a bluetooth MCU of a smart watch according to claim 1, further comprising:
a preset reset instruction is sent to the Bluetooth MCU through a communication interface;
judging whether feedback information is received or not;
if yes, the charging switch is turned on;
if not, the preset reset instruction is resent.
6. The method for resetting a bluetooth MCU of a smart watch according to claim 1, further comprising:
acquiring the second voltage information;
judging whether the second voltage information exceeds a preset third voltage threshold value or not;
if yes, closing the charging switch;
if not, the charging switch is turned on.
7. The system is characterized by comprising a memory and a processor, wherein the memory comprises a reset method program of the Bluetooth MCU of the intelligent watch, and the reset method program of the Bluetooth MCU of the intelligent watch is executed by the processor and comprises the following steps:
acquiring connection state information, and judging whether to enter a charging connection state according to the connection state information;
if yes, periodically acquiring first voltage information;
obtaining first time information of the first voltage information in a first voltage threshold range according to the relation between the first voltage information and a preset first voltage threshold range;
judging whether the first time information exceeds a preset time threshold value or not;
if yes, entering a charging state;
acquiring second voltage information;
judging whether the second voltage information exceeds a preset second voltage threshold value or not;
if yes, turning on a charging switch;
if not, after the first instruction is sent, the charging switch is started.
8. The reset system of the bluetooth MCU of the smart watch according to claim 7, wherein the obtaining the first time information that the first voltage information is in the first voltage threshold range according to the relationship between the first voltage information and the preset first voltage threshold range specifically includes:
judging whether the first voltage information is in the preset first voltage threshold range or not;
if yes, updating the first time information according to the acquisition period of the first voltage information;
if not, initializing the first time information.
9. The reset system of a bluetooth MCU of a smart watch of claim 7, further comprising:
when entering a charging connection state, acquiring first voltage information;
judging whether the first voltage information exceeds a power supply threshold value;
if yes, connecting the battery anode through the first conduction unit;
and obtaining second voltage information through an analog-to-digital converter.
10. A computer readable storage medium having stored thereon a computer program, characterized in that the computer readable storage medium comprises therein a reset method program of a bluetooth MCU of a smart watch, which, when executed by a processor, implements the steps of the reset method of a bluetooth MCU of a smart watch according to any one of claims 1 to 6.
CN202410168062.7A 2024-02-06 2024-02-06 Reset method, system and storage medium of Bluetooth MCU of intelligent watch Pending CN117707832A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410168062.7A CN117707832A (en) 2024-02-06 2024-02-06 Reset method, system and storage medium of Bluetooth MCU of intelligent watch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410168062.7A CN117707832A (en) 2024-02-06 2024-02-06 Reset method, system and storage medium of Bluetooth MCU of intelligent watch

Publications (1)

Publication Number Publication Date
CN117707832A true CN117707832A (en) 2024-03-15

Family

ID=90150144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410168062.7A Pending CN117707832A (en) 2024-02-06 2024-02-06 Reset method, system and storage medium of Bluetooth MCU of intelligent watch

Country Status (1)

Country Link
CN (1) CN117707832A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5321627A (en) * 1992-03-11 1994-06-14 Globe-Union, Inc. Battery monitor and method for providing operating parameters
CN110074596A (en) * 2019-03-29 2019-08-02 杨松 Beddo repositioning method, device, computer equipment and storage medium
CN113419617A (en) * 2021-07-06 2021-09-21 上海铼锶信息技术有限公司 Wearable device charging reset circuit and control method
CN115514031A (en) * 2021-06-22 2022-12-23 Oppo广东移动通信有限公司 Charging control method and device, computer equipment and storage medium
CN117220391A (en) * 2023-11-09 2023-12-12 深圳市微克科技有限公司 Power supply management method, system and storage medium for smart watch during charging

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5321627A (en) * 1992-03-11 1994-06-14 Globe-Union, Inc. Battery monitor and method for providing operating parameters
CN110074596A (en) * 2019-03-29 2019-08-02 杨松 Beddo repositioning method, device, computer equipment and storage medium
CN115514031A (en) * 2021-06-22 2022-12-23 Oppo广东移动通信有限公司 Charging control method and device, computer equipment and storage medium
CN113419617A (en) * 2021-07-06 2021-09-21 上海铼锶信息技术有限公司 Wearable device charging reset circuit and control method
CN117220391A (en) * 2023-11-09 2023-12-12 深圳市微克科技有限公司 Power supply management method, system and storage medium for smart watch during charging

Similar Documents

Publication Publication Date Title
CA3079795C (en) Emergency starting power supply and emergency start method
CN115514064A (en) Battery management system for lithium battery power supply system
CN112737043A (en) Power supply energy storage system, and control method and device of power supply energy storage system
KR20210061235A (en) System for lead-acid battery replacement
US7541778B2 (en) Method and apparatus for detecting whether a lead acid battery is sulphated and for charging same
CN113147503A (en) Electric vehicle power supply management method
CN110350624B (en) Intelligent battery overdischarge failure protection device and method
CN111682626A (en) BMS battery management system and management method suitable for energy storage cabinet
US5831415A (en) Electrical disconnection and automatic re-engagement of battery monitoring circuits
WO2020015502A1 (en) Method and device for tracking overdischarge of battery, chip, battery and aircraft
CN117220391B (en) Power supply management method, system and storage medium for smart watch during charging
KR20210060297A (en) System for recharging battery with motion sensor
CN117707832A (en) Reset method, system and storage medium of Bluetooth MCU of intelligent watch
CN114084044B (en) Control method and system for dormancy and awakening of lithium battery pack protection board
CN116101126A (en) Battery system and automobile
CN111525542B (en) Power supply method for safely storing data of intelligent electric energy meter
CN211981564U (en) Power-off data protection device of intelligent electric energy meter
CN217215996U (en) Over-discharge protection and activation circuit and device of battery and electronic equipment
CN217063851U (en) Industrial camera
CN213304212U (en) Battery management system and device
CN115967150B (en) Circuit and method for preventing over-discharge and awakening of battery of high-voltage battery system
CN215770520U (en) Power-off protection hard disk device
CN102545274A (en) Lead-acid battery charger and charging method thereof
KR20230071214A (en) Battery management apparatus and method for controlling battery
CN116599177A (en) Charging protection method and circuit

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