Disclosure of Invention
In view of the above problems, an object of the present invention is to provide an inflation control method, system and storage medium for wristwatch-type blood pressure detection, which can achieve the completion of inflation operation within a predetermined time range and ensure the stability of the inflation process by designing a set of inflation control method, so as to improve the experience of measurement. In addition, the working state of the air pump is monitored and regulated in real time in the inflation process, so that the control precision of the air pump is ensured.
The first aspect of the present invention provides an inflation control method for wristwatch-type blood pressure detection, the method comprising:
When the watch-type inflation setting is performed,
Setting a preset inflation speed for inflating the air bag, and acquiring first air pressure information;
recording first time information when the first air pressure information reaches a preset first air pressure threshold value;
obtaining first air quantity information according to the preset air charging speed and the first time information;
Obtaining first inflation speed information and second air pressure threshold information according to the first air quantity information;
when the wristwatch-type blood pressure measurement is performed,
Setting an inflation speed according to the first inflation speed information to inflate the air bag, and acquiring the first air pressure information;
judging whether the first air pressure information reaches the second air pressure threshold information or not;
if yes, starting to reduce the inflation speed until the inflation speed is the second inflation speed, and judging whether the first air pressure information reaches the first air pressure threshold value or not;
If yes, stopping the inflation.
In this scheme, according to the first air quantity information, first inflation speed information and second air pressure threshold information are obtained, specifically:
Obtaining the first inflation speed information according to the first air quantity information and preset detection time information;
and searching a preset air pressure threshold value corresponding table according to the first air charging speed information to obtain the second air pressure threshold value information.
In this scheme, set up the inflation speed according to first inflation speed information and inflate for the gasbag, specifically do:
The inflation speed is controlled to rise from zero to the first inflation speed through a speed regulation module;
The inflation speed rising period comprises a slow start period, a fast speed increasing period and a slow speed increasing period.
In this scheme, start to reduce the inflation speed until being the second inflation speed, specifically:
controlling the inflation speed to drop from the first inflation speed to the second inflation speed through a speed regulation module;
the period of the decrease in the inflation speed includes a slow decrease period, a fast decrease period, and a slow decrease period.
In this scheme, still include:
Sending a PWM signal to an air pump boosting module for adjusting the inflation speed;
According to a preset communication instruction, the air pump current monitoring module is communicated with the air pump current monitoring module to obtain the working state of the air pump;
and controlling the inflation speed according to the PWM signal and the working state of the air pump.
In this scheme, still include:
A pressure sensor;
and acquiring analog signals through a preset communication instruction or through an analog-to-digital converter to obtain air pressure information.
The second aspect of the present invention provides an inflation control system for wristwatch-type blood pressure detection, comprising an inflation control method program for wristwatch-type blood pressure detection, which when executed by the processor, implements the steps of:
When the watch-type inflation setting is performed,
Setting a preset inflation speed for inflating the air bag, and acquiring first air pressure information;
recording first time information when the first air pressure information reaches a preset first air pressure threshold value;
obtaining first air quantity information according to the preset air charging speed and the first time information;
Obtaining first inflation speed information and second air pressure threshold information according to the first air quantity information;
when the wristwatch-type blood pressure measurement is performed,
Setting an inflation speed according to the first inflation speed information to inflate the air bag, and acquiring the first air pressure information;
judging whether the first air pressure information reaches the second air pressure threshold information or not;
if yes, starting to reduce the inflation speed until the inflation speed is the second inflation speed, and judging whether the first air pressure information reaches the first air pressure threshold value or not;
If yes, stopping the inflation.
In this scheme, according to the first air quantity information, first inflation speed information and second air pressure threshold information are obtained, specifically:
Obtaining the first inflation speed information according to the first air quantity information and preset detection time information;
and searching a preset air pressure threshold value corresponding table according to the first air charging speed information to obtain the second air pressure threshold value information.
In this scheme, set up the inflation speed according to first inflation speed information and inflate for the gasbag, specifically do:
The inflation speed is controlled to rise from zero to the first inflation speed through a speed regulation module;
The inflation speed rising period comprises a slow start period, a fast speed increasing period and a slow speed increasing period.
A third aspect of the present invention provides a computer-readable storage medium having embodied therein an inflation control method program for wristwatch-type blood pressure detection, which when executed by a processor, implements the steps of the inflation control method for wristwatch-type blood pressure detection as described in any of the above.
The invention provides an inflation control method, a system and a storage medium for watch-type blood pressure detection, which are characterized in that firstly, aiming at different users, first inflation speed information and second air pressure threshold information corresponding to different users are obtained by executing watch-type inflation setting; then, in the blood pressure test process, the process of increasing the inflation speed is controlled according to the first inflation speed information, the process of decreasing the inflation speed is controlled according to the second air pressure threshold information, the inflation timeliness is ensured, and meanwhile, the inflation stability is ensured by monitoring and controlling the working state of the air pump, so that the use experience of a user is improved.
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 an inflation control method for wristwatch-type blood pressure detection according to the present invention.
As shown in fig. 1, the invention discloses an inflation control method for watch-type blood pressure detection, which comprises the following steps:
s102, when the watch type inflation setting is executed,
S104, setting a preset inflation speed to inflate the air bag, and acquiring first air pressure information;
S106, recording first time information that the first air pressure information reaches a preset first air pressure threshold value;
S108, obtaining first air quantity information according to the preset air charging speed and the first time information;
s110, obtaining first inflation speed information and second air pressure threshold information according to the first air quantity information;
s112, when watch-type blood pressure detection is executed,
S114, setting an inflation speed according to the first inflation speed information to inflate the air bag, and acquiring the first air pressure information;
s116, judging whether the first air pressure information reaches the second air pressure threshold information;
S118, if yes, starting to reduce the inflation speed until the inflation speed is the second inflation speed, and judging whether the first air pressure information reaches the first air pressure threshold value or not;
And S120, if yes, stopping inflating.
It should be noted that, compared with the wrist strap structure of a general sphygmomanometer, the wrist strap of the intelligent watch has the characteristics of strong tightness and unfixed interval space. The watchband structure is fixed on the arm or the wrist of a user, and has the characteristic of difficult disassembly and falling, so that the watchband can bear larger pressure in the inflation process of blood pressure detection. Because the watchband is fixed according to certain interval setting, can't accomplish that the wrist strap of general sphygmomanometer closely laminates user's arm or wrist, and all different users are because the clearance is different, then have the condition that required inflation operating condition is different. Therefore, the invention designs an inflation setting mode of the watch type blood pressure measurement, which is used for measuring and setting the working state of the air pump required by a user when the user uses the blood pressure measurement function.
When the wristwatch-type inflation setting is performed, the air pump is set to inflate the air bag at a low speed, and in practical applications, the inflation operation is usually carried out at a speed of 2 or 3 stages assuming that the inflation speed is classified into 10 stages. When the inflatable air bag is inflated, the pressure value generated between the air bag and the arm or the wrist is continuously measured through the pressure sensor and is recorded as first air pressure information. When the first air pressure information reaches a preset air pressure threshold value, the air pump stops inflating, and the total time of inflating the air pump is recorded as first time information; the preset air pressure threshold is generally a pressure value in the blood pressure measurement process, and is generally 180mmHg to 200mmHg. According to the inflation speed information and the first time information, the required total inflation amount can be calculated and recorded as first inflation amount information. And calculating the highest inflation speed according to the preset blood pressure detection time through the first air quantity information, and recording the highest inflation speed as first inflation speed information. And then searching a corresponding table in a memory according to the first inflation speed information to obtain a second air pressure threshold value, so as to judge the time when the inflation speed starts to decrease during blood pressure detection.
When the wristwatch-type blood pressure detection is performed, the air pump inflates the air bag into 4 periods including a speed-up period, a high-speed-holding period, a speed-down period, and a low-speed-holding period. Fig. 2 shows a schematic diagram of the change of the inflation speed during the blood pressure detection according to the embodiment of the invention, and shows a change diagram of the inflation speed of the air pump with time. As shown in FIG. 2, T1-T4 are periods of increasing velocity, indicating periods of increasing inflation velocity; T4-T5 are high-speed holding periods, which indicate periods in which the inflation speed is held at the first inflation speed; T5-T8 are the periods of decreasing speed, which represent the periods of continuously decreasing inflation speed; T8-T9 are low-speed holding periods, which indicate periods in which the inflation speed is held at the second inflation speed. In the speed rising period, the air charging speed is enabled to reach the first air charging speed smoothly and rapidly in a nonlinear acceleration mode according to the first air charging speed information. In the inflation process, first air pressure information is acquired in real time, and when the first air pressure information reaches a second air pressure threshold value, a speed reduction period is entered, so that the inflation speed is steadily and rapidly reduced from the first inflation speed to the second inflation speed; the second inflation speed is a preset lower inflation speed, and is used for enabling the first air pressure information to reach the first air pressure threshold value at a stable rising speed. And when the first air pressure information reaches a first air pressure threshold value, the air pump stops inflating after the air inflation operation is completed.
Firstly, aiming at a user of a non-used watch, testing and calculating a first inflation speed and a second air pressure threshold value corresponding to the user; then, when the watch-type blood pressure detection is carried out, the inflation speed is controlled, so that the inflation process is stable and rapid; the effect of improving the user experience is achieved.
Fig. 3 shows a flowchart for acquiring the first inflation speed information and the second air pressure threshold value information.
According to an embodiment of the present invention, as shown in fig. 3, the first inflation speed information and the second inflation speed threshold information are obtained according to the first air quantity information, specifically:
s302, obtaining the first inflation speed information according to the first air quantity information and preset detection time information;
S304, searching a preset air pressure threshold value corresponding table according to the first air charging speed information to obtain the second air pressure threshold value information.
In practical application, it is assumed that the inflation speed is classified into 10 classes, and the inflation speed is 1 unit per second to 10 units per second. The preset detection time information refers to the preset inflation time during blood pressure detection. Assuming that the first gas flow information is 28 gas units and the gas filling time is 5 seconds, dividing the first gas flow information by the second gas flow information and then rounding the divided gas flow information upwards to obtain the first gas filling speed information which is 6 units per second. Then, according to a pre-stored air pressure threshold value corresponding table and a preset pressurization value in the blood pressure measurement process, searching to obtain corresponding second air pressure threshold value information; wherein the pressurization value is generally 180mmHg to 200mmHg. For example, assuming that the pressurization value is 180mmHg, when the first inflation speed information is 6 units per second, the second air pressure threshold value information is set to 168mmHg; when the first inflation speed information is 3 units per second, the second air pressure threshold information is set to 175mmHg.
Fig. 4 shows a flow chart of regulation and control of the inflation speed in the acceleration period.
According to an embodiment of the present invention, as shown in fig. 4, the setting the inflation speed according to the first inflation speed information is to inflate the airbag, specifically:
S402, controlling the inflation speed to rise from zero to the first inflation speed through a speed regulation module;
s404, the inflation speed rising period comprises a slow start period, a fast speed increasing period and a slow speed increasing period.
It should be noted that, as shown in fig. 2, in the speed rising period T1 to T4, the inflation speed is raised from zero to the first inflation speed in a nonlinear manner by the air pump inflation speed adjusting module. The speed rising period comprises a slow starting period T1-T2, the slow starting period is represented, the acceleration of the air charging speed is continuously increased to a preset highest value, the slow starting is beneficial to the stable starting of the motor of the air pump, and the phenomenon of motor out-of-step is avoided; the rapid acceleration period T2-T3 represents rapid acceleration, the inflation speed is continuously increased at the preset highest acceleration, and the purpose of rapid increase of the inflation speed is realized; the slow speed increasing period T3-T4 represents slow speed increasing, the acceleration of the air charging speed is continuously reduced to zero, the motor of the air pump can stably reach the preset rotating speed, and the situation that the rotating speed repeatedly oscillates due to overhigh acceleration is avoided. Through the speed rising periods T1-T4, the air charging speed of the air pump can be stably and rapidly increased to the first air charging speed.
According to the embodiment of the invention, the starting of the reduction of the inflation speed until the second inflation speed is reached is specifically:
controlling the inflation speed to drop from the first inflation speed to the second inflation speed through a speed regulation module;
the period of the decrease in the inflation speed includes a slow decrease period, a fast decrease period, and a slow decrease period.
In the period T5-T8 of the decrease in speed, the inflation speed is decreased from the first inflation speed to the second inflation speed in a nonlinear manner by the air pump inflation speed adjusting module, as shown in fig. 2. The speed reduction period comprises a slow speed reduction period T5-T6, which represents a starting speed reduction period, and the deceleration of the air charging speed is continuously increased to a preset highest value, so that the motor of the air pump is facilitated to stably reduce the speed; the rapid deceleration period T6-T7 shows rapid deceleration, the inflation speed is continuously reduced at the preset highest deceleration, and the purpose of rapid reduction of the inflation speed is realized; the slow speed increasing period T7-T8 represents slow speed reduction, the speed reduction of the air charging speed is continuously reduced to zero, the motor of the air pump can stably reach the preset rotating speed, and the situation that the rotating speed repeatedly oscillates due to the fact that the speed reduction speed is too high is avoided. Through the rapid rising periods T1-T4, the air charging speed of the air pump can be stably and rapidly increased to the first air charging speed. Through the speed reduction period T5-T8, the inflation speed of the air pump can be stably and rapidly reduced to the second inflation speed.
According to an embodiment of the present invention, further comprising:
Sending a PWM signal to an air pump boosting module for adjusting the inflation speed;
According to a preset communication instruction, the air pump current monitoring module is communicated with the air pump current monitoring module to obtain the working state of the air pump;
and controlling the inflation speed according to the PWM signal and the working state of the air pump.
It should be noted that the speed regulation module of the air pump comprises a boost module and a current monitoring module. The output voltage of the boost module is controlled by sending a PWM (Pulse Width Modulation ) signal to the boost module. The higher the duty ratio of the PWM signal, the higher the voltage value output to the air pump by the boost module, and the higher the speed at which the air pump is driven. The working condition of the motor of the air pump is monitored through the current monitoring module, wherein the higher the current value is, the faster the rotating speed of the motor is indicated, namely the faster the air charging speed is. And then, communicating with a current monitoring module through a preset communication instruction, and acquiring the working state of the air pump in real time. The boost module is used as control, the current monitoring module is used as feedback, and the output is continuously regulated according to the feedback condition, so that the accurate control of the air pump inflation speed is realized.
According to an embodiment of the present invention, further comprising:
A pressure sensor;
and acquiring analog signals through a preset communication instruction or through an analog-to-digital converter to obtain air pressure information.
The pressure sensor is a device or apparatus that can sense a pressure signal and convert the pressure signal into a usable output electrical signal according to a certain rule. The pressure sensor is arranged between the air bag and the watch body or between the air bag and the wrist or arm of the user and is used for measuring the pressure between the air bag and the arm or the wrist of the user and is represented by air pressure information. Acquiring a pressure value measured by a pressure sensor through a preset communication instruction; or the analog electric signals of the pressure sensor are acquired through a digital-to-analog converter and converted into digital information for representing the air pressure information.
It is worth mentioning that the method further comprises:
Acquiring second time information of the air pump inflating the air bag;
judging whether the second time information exceeds a preset time threshold value;
if yes, the first abnormal information is sent to the terminal equipment.
The second time information is a duration of time for which the air pump inflates the air bag, and may include a speed up period, a high-speed holding period, a speed down period, and a low-speed holding period. When the duration of inflation exceeds a preset time threshold, indicating that the pressure value within the bladder does not reach the preset pressure threshold within a prescribed time, the cause of the problem may be: the air bag has air leakage points, abnormal inflation of the air pump and the like. At this time, by sending first abnormality information to the terminal device, it is used to indicate that there is a problem in the air pressure in the blood pressure test, and measurement abnormality occurs.
It is worth mentioning that the method further comprises:
Acquiring first air pressure information;
Judging whether the first air pressure information exceeds a first overpressure threshold;
if yes, stopping inflating through the air pump boosting module.
It should be noted that the invention also sets overvoltage protection by software. In the air bag inflation process, if the air pressure exceeds a first overpressure threshold value, the output voltage of the air pump boosting module is adjusted to be in a stop output state by setting a PWM signal, so that the aim of stopping inflation is fulfilled. Avoiding damage to users caused by continuous inflation.
It is worth mentioning that the method further comprises:
acquiring voltage value information output by a pressure sensor;
Judging whether the voltage information exceeds a preset voltage threshold value or not through a comparator circuit;
if so, the air pump boosting module stops working through the output of the comparator circuit.
It should be noted that the present invention also sets overvoltage protection through hardware. When the pressure sensor outputs an analog electrical signal, the pressure value is expressed in the form of a voltage value. Wherein the higher the voltage value, the greater the pressure value. When the voltage value information exceeds a preset voltage threshold value, the state that the overvoltage is reached is indicated, and the inflation operation needs to be stopped. And a comparator circuit is designed in the hardware circuit, and when the voltage value information exceeds a preset voltage threshold value, the output of the comparator circuit controls the boosting module of the air pump to realize the function of stopping inflation.
Fig. 5 shows a block diagram of an inflatable control system for wristwatch-type blood pressure detection according to the present invention.
As shown in fig. 5, the invention discloses an inflation control system 5 for wristwatch type blood pressure detection, which comprises a memory 51 and a processor 52, wherein the memory comprises an inflation control method program for wristwatch type blood pressure detection, and the inflation control method program for wristwatch type blood pressure detection realizes the following steps when being executed by the processor:
When the watch-type inflation setting is performed,
Setting a preset inflation speed for inflating the air bag, and acquiring first air pressure information;
recording first time information when the first air pressure information reaches a preset first air pressure threshold value;
obtaining first air quantity information according to the preset air charging speed and the first time information;
Obtaining first inflation speed information and second air pressure threshold information according to the first air quantity information;
when the wristwatch-type blood pressure measurement is performed,
Setting an inflation speed according to the first inflation speed information to inflate the air bag, and acquiring the first air pressure information;
judging whether the first air pressure information reaches the second air pressure threshold information or not;
if yes, starting to reduce the inflation speed until the inflation speed is the second inflation speed, and judging whether the first air pressure information reaches the first air pressure threshold value or not;
If yes, stopping the inflation.
It should be noted that, compared with the wrist strap structure of a general sphygmomanometer, the wrist strap of the intelligent watch has the characteristics of strong tightness and unfixed interval space. The watchband structure is fixed on the arm or the wrist of a user, and has the characteristic of difficult disassembly and falling, so that the watchband can bear larger pressure in the inflation process of blood pressure detection. Because the watchband is fixed according to certain interval setting, can't accomplish that the wrist strap of general sphygmomanometer closely laminates user's arm or wrist, and all different users are because the clearance is different, then have the condition that required inflation operating condition is different. Therefore, the invention designs an inflation setting mode of the watch type blood pressure measurement, which is used for measuring and setting the working state of the air pump required by a user when the user uses the blood pressure measurement function.
When the wristwatch-type inflation setting is performed, the air pump is set to inflate the air bag at a low speed, and in practical applications, the inflation operation is usually carried out at a speed of 2 or 3 stages assuming that the inflation speed is classified into 10 stages. When the inflatable air bag is inflated, the pressure value generated between the air bag and the arm or the wrist is continuously measured through the pressure sensor and is recorded as first air pressure information. When the first air pressure information reaches a preset air pressure threshold value, the air pump stops inflating, and the total time of inflating the air pump is recorded as first time information; the preset air pressure threshold is generally a pressure value in the blood pressure measurement process, and is generally 180mmHg to 200mmHg. According to the inflation speed information and the first time information, the required total inflation amount can be calculated and recorded as first inflation amount information. And calculating the highest inflation speed according to the preset blood pressure detection time through the first air quantity information, and recording the highest inflation speed as first inflation speed information. And then searching a corresponding table in a memory according to the first inflation speed information to obtain a second air pressure threshold value, so as to judge the time when the inflation speed starts to decrease during blood pressure detection.
When the wristwatch-type blood pressure detection is performed, the air pump inflates the air bag into 4 periods including a speed-up period, a high-speed-holding period, a speed-down period, and a low-speed-holding period. Fig. 2 shows a schematic diagram of the change of the inflation speed during the blood pressure detection according to the embodiment of the invention, and shows a change diagram of the inflation speed of the air pump with time. As shown in FIG. 2, T1-T4 are periods of increasing velocity, indicating periods of increasing inflation velocity; T4-T5 are high-speed holding periods, which indicate periods in which the inflation speed is held at the first inflation speed; T5-T8 are the periods of decreasing speed, which represent the periods of continuously decreasing inflation speed; T8-T9 are low-speed holding periods, which indicate periods in which the inflation speed is held at the second inflation speed. In the speed rising period, the air charging speed is enabled to reach the first air charging speed smoothly and rapidly in a nonlinear acceleration mode according to the first air charging speed information. In the inflation process, first air pressure information is acquired in real time, and when the first air pressure information reaches a second air pressure threshold value, a speed reduction period is entered, so that the inflation speed is steadily and rapidly reduced from the first inflation speed to the second inflation speed; the second inflation speed is a preset lower inflation speed, and is used for enabling the first air pressure information to reach the first air pressure threshold value at a stable rising speed. And when the first air pressure information reaches a first air pressure threshold value, the air pump stops inflating after the air inflation operation is completed.
Firstly, aiming at a user of a non-used watch, testing and calculating a first inflation speed and a second air pressure threshold value corresponding to the user; then, when the watch-type blood pressure detection is carried out, the inflation speed is controlled, so that the inflation process is stable and rapid; the effect of improving the user experience is achieved.
According to an embodiment of the present invention, the obtaining the first inflation speed information and the second inflation speed threshold information according to the first air volume information specifically includes:
Obtaining the first inflation speed information according to the first air quantity information and preset detection time information;
and searching a preset air pressure threshold value corresponding table according to the first air charging speed information to obtain the second air pressure threshold value information.
In practical application, it is assumed that the inflation speed is classified into 10 classes, and the inflation speed is 1 unit per second to 10 units per second. The preset detection time information refers to the preset inflation time during blood pressure detection. Assuming that the first gas flow information is 28 gas units and the gas filling time is 5 seconds, dividing the first gas flow information by the second gas flow information and then rounding the divided gas flow information upwards to obtain the first gas filling speed information which is 6 units per second. Then, according to a pre-stored air pressure threshold value corresponding table and a preset pressurization value in the blood pressure measurement process, searching to obtain corresponding second air pressure threshold value information; wherein the pressurization value is generally 180mmHg to 200mmHg. For example, assuming that the pressurization value is 180mmHg, when the first inflation speed information is 6 units per second, the second air pressure threshold value information is set to 168mmHg; when the first inflation speed information is 3 units per second, the second air pressure threshold information is set to 175mmHg.
According to an embodiment of the present invention, the setting the inflation speed according to the first inflation speed information is to inflate the airbag, specifically:
The inflation speed is controlled to rise from zero to the first inflation speed through a speed regulation module;
The inflation speed rising period comprises a slow start period, a fast speed increasing period and a slow speed increasing period.
It should be noted that, as shown in fig. 2, in the speed rising period T1 to T4, the inflation speed is raised from zero to the first inflation speed in a nonlinear manner by the air pump inflation speed adjusting module. The speed rising period comprises a slow starting period T1-T2, the slow starting period is represented, the acceleration of the air charging speed is continuously increased to a preset highest value, the slow starting is beneficial to the stable starting of the motor of the air pump, and the phenomenon of motor out-of-step is avoided; the rapid acceleration period T2-T3 represents rapid acceleration, the inflation speed is continuously increased at the preset highest acceleration, and the purpose of rapid increase of the inflation speed is realized; the slow speed increasing period T3-T4 represents slow speed increasing, the acceleration of the air charging speed is continuously reduced to zero, the motor of the air pump can stably reach the preset rotating speed, and the situation that the rotating speed repeatedly oscillates due to overhigh acceleration is avoided. Through the speed rising periods T1-T4, the air charging speed of the air pump can be stably and rapidly increased to the first air charging speed.
According to the embodiment of the invention, the starting of the reduction of the inflation speed until the second inflation speed is reached is specifically:
controlling the inflation speed to drop from the first inflation speed to the second inflation speed through a speed regulation module;
the period of the decrease in the inflation speed includes a slow decrease period, a fast decrease period, and a slow decrease period.
In the period T5-T8 of the decrease in speed, the inflation speed is decreased from the first inflation speed to the second inflation speed in a nonlinear manner by the air pump inflation speed adjusting module, as shown in fig. 2. The speed reduction period comprises a slow speed reduction period T5-T6, which represents a starting speed reduction period, and the deceleration of the air charging speed is continuously increased to a preset highest value, so that the motor of the air pump is facilitated to stably reduce the speed; the rapid deceleration period T6-T7 shows rapid deceleration, the inflation speed is continuously reduced at the preset highest deceleration, and the purpose of rapid reduction of the inflation speed is realized; the slow speed increasing period T7-T8 represents slow speed reduction, the speed reduction of the air charging speed is continuously reduced to zero, the motor of the air pump can stably reach the preset rotating speed, and the situation that the rotating speed repeatedly oscillates due to the fact that the speed reduction speed is too high is avoided. Through the rapid rising periods T1-T4, the air charging speed of the air pump can be stably and rapidly increased to the first air charging speed. Through the speed reduction period T5-T8, the inflation speed of the air pump can be stably and rapidly reduced to the second inflation speed.
According to an embodiment of the present invention, further comprising:
Sending a PWM signal to an air pump boosting module for adjusting the inflation speed;
According to a preset communication instruction, the air pump current monitoring module is communicated with the air pump current monitoring module to obtain the working state of the air pump;
and controlling the inflation speed according to the PWM signal and the working state of the air pump.
It should be noted that the speed regulation module of the air pump comprises a boost module and a current monitoring module. The output voltage of the boost module is controlled by sending a PWM (Pulse Width Modulation ) signal to the boost module. The higher the duty ratio of the PWM signal, the higher the voltage value output to the air pump by the boost module, and the higher the speed at which the air pump is driven. The working condition of the motor of the air pump is monitored through the current monitoring module, wherein the higher the current value is, the faster the rotating speed of the motor is indicated, namely the faster the air charging speed is. And then, communicating with a current monitoring module through a preset communication instruction, and acquiring the working state of the air pump in real time. The boost module is used as control, the current monitoring module is used as feedback, and the output is continuously regulated according to the feedback condition, so that the accurate control of the air pump inflation speed is realized.
According to an embodiment of the present invention, further comprising:
A pressure sensor;
and acquiring analog signals through a preset communication instruction or through an analog-to-digital converter to obtain air pressure information.
The pressure sensor is a device or apparatus that can sense a pressure signal and convert the pressure signal into a usable output electrical signal according to a certain rule. The pressure sensor is arranged between the air bag and the watch body or between the air bag and the wrist or arm of the user and is used for measuring the pressure between the air bag and the arm or the wrist of the user and is represented by air pressure information. Acquiring a pressure value measured by a pressure sensor through a preset communication instruction; or the analog electric signals of the pressure sensor are acquired through a digital-to-analog converter and converted into digital information for representing the air pressure information.
It is worth mentioning that the method further comprises:
Acquiring second time information of the air pump inflating the air bag;
judging whether the second time information exceeds a preset time threshold value;
if yes, the first abnormal information is sent to the terminal equipment.
The second time information is a duration of time for which the air pump inflates the air bag, and may include a speed up period, a high-speed holding period, a speed down period, and a low-speed holding period. When the duration of inflation exceeds a preset time threshold, indicating that the pressure value within the bladder does not reach the preset pressure threshold within a prescribed time, the cause of the problem may be: the air bag has air leakage points, abnormal inflation of the air pump and the like. At this time, by sending first abnormality information to the terminal device, it is used to indicate that there is a problem in the air pressure in the blood pressure test, and measurement abnormality occurs.
It is worth mentioning that the method further comprises:
Acquiring first air pressure information;
Judging whether the first air pressure information exceeds a first overpressure threshold;
if yes, stopping inflating through the air pump boosting module.
It should be noted that the invention also sets overvoltage protection by software. In the air bag inflation process, if the air pressure exceeds a first overpressure threshold value, the output voltage of the air pump boosting module is adjusted to be in a stop output state by setting a PWM signal, so that the aim of stopping inflation is fulfilled. Avoiding damage to users caused by continuous inflation.
It is worth mentioning that the method further comprises:
acquiring voltage value information output by a pressure sensor;
Judging whether the voltage information exceeds a preset voltage threshold value or not through a comparator circuit;
if so, the air pump boosting module stops working through the output of the comparator circuit.
It should be noted that the present invention also sets overvoltage protection through hardware. When the pressure sensor outputs an analog electrical signal, the pressure value is expressed in the form of a voltage value. Wherein the higher the voltage value, the greater the pressure value. When the voltage value information exceeds a preset voltage threshold value, the state that the overvoltage is reached is indicated, and the inflation operation needs to be stopped. And a comparator circuit is designed in the hardware circuit, and when the voltage value information exceeds a preset voltage threshold value, the output of the comparator circuit controls the boosting module of the air pump to realize the function of stopping inflation.
A third aspect of the present invention provides a computer-readable storage medium having embodied therein an inflation control method program for wristwatch-type blood pressure detection, which when executed by a processor, implements the steps of the inflation control method for wristwatch-type blood pressure detection as described in any of the above.
The invention provides an inflation control method, a system and a storage medium for watch-type blood pressure detection, which are characterized in that firstly, aiming at different users, first inflation speed information and second air pressure threshold information corresponding to different users are obtained by executing watch-type inflation setting; then, in the blood pressure test process, the process of increasing the inflation speed is controlled according to the first inflation speed information, the process of decreasing the inflation speed is controlled according to the second air pressure threshold information, the inflation timeliness is ensured, and meanwhile, the inflation stability is ensured by monitoring and controlling the working state of the air pump, so that the use experience of a user is 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 usb 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.