Background
An air respirator is a fire fighting device which is commonly applied to the field of fire fighting. When the fire fighter enters the fire scene, the air respirator can provide oxygen for the fire fighter, and the fire fighter is prevented from being invaded by toxic gas and the like in the fire scene. As firefighters continue to consume the air within the air respirator, the air pressure within the air respirator also decreases. After a certain period of use, the air pressure is reduced to a threshold value, and then air must be supplemented into the air respirator to ensure the air respirator can be used normally.
To facilitate proper operation of the firefighter, air respirators used in the prior art often include a device that indicates the remaining use time of the air respirator. For example, there is a commonly used method of calculating the remaining usage time, that is, calculating the remaining usage time based on the real-time air pressure in the air respirator. Taking an air respirator with a market model of RZKF-6/30 as an example, the maximum air supply flow is 300L/min, the working pressure is 30MPa, the volume of an air bottle is 6.8L, the threshold value of the alarm pressure is 4-6MPa, and the theoretical service time is 60 minutes. However, the service time of the gas cylinder is greatly related to the breathing frequency of the user, and if the user is in a sitting state, the service time of the gas in the gas cylinder is generally more than 60 minutes; if the user is in a state of vigorous exercise, the usage time is less than 60 minutes as the respiration rate increases. For the fire fighters, the motion state of the user has uncertainty, and the physical quality and oxygen consumption of the user are different, the residual using time is calculated according to the real-time air pressure, and the difference is generated between the calculated result and the real residual using time. Even more unreasonably, the air pressure in the air bottle is changed sharply when the user's breathing frequency is changed sharply in a short time, so that the calculated remaining usage time is also changed sharply in a short time, for example, the calculated remaining usage time of the device is 30 minutes in the previous minute, the calculated remaining usage time of the device is 4 minutes after the user breathes deeply several times, and the remaining usage time is increased back to 28 minutes after the user's breathing frequency is returned to the initial frequency. The drastic change of the calculation result causes serious interference to the user, influences the judgment of the user on the real remaining time and is not beneficial to the fire fighting operation of fire fighters.
Disclosure of Invention
The present invention is directed to overcome the above-mentioned problems in the prior art, and provides a method, an apparatus and a storage medium for detecting the remaining usage time of an air respirator, which can reduce the interference of the respiration process on the detection of the remaining usage time, so that the detection result is closer to the real remaining usage time.
To this end, the invention provides a method for detecting the remaining service time of an air respirator, which comprises the following steps:
an initial detection step: measuring an initial air pressure value p in an air respirator0Calculating the theoretical residual service time t0;
An output step: the theoretical residual service time t0Visualization;
retesting step: and the theoretical residual service time t0Interval time t1Thereafter, the air pressure value p in the air respirator is measured1;
A calculation step: according to the pressure value p of the retest step1Carrying out correction calculation to obtain dynamic residual service time t2;
A judging step: if the dynamic residual service time t2Is equal to the theoretical residual service time t0Then, the remaining usage time t is corrected3=t0(ii) a Let a be a compensation coefficient, if the dynamic residual service time t2Greater than the theoretical remaining service time t0Then, the remaining usage time t is corrected3=(t0+ a); if the dynamic residual service time t2Less than the theoretical residual service time t0Then, the remaining usage time t is corrected3=(t0-a);
An updating step: setting the initial air pressure value p0Assigned as said air pressure value p1The theoretical residual service time t of the initial detection step0Assigning a value of the corrected remaining service time t3The corrected residual service time t3And visualizing and repeatedly executing the retesting step.
The detection method provided by the invention can provide a reasonable residual service time for users through detecting the air pressure condition in the air respirator in real time and through reasonable correction calculation. The detection method provided by the invention can be corrected by means of the compensation coefficient a, so that the phenomenon that the air pressure is rapidly changed in a short time due to the change of the breathing frequency of a user is prevented, a series of situations which are not in accordance with the reality, such as reciprocating fluctuation, sudden drop or sudden rise, are generated in the calculated residual using time, the influence on the detection result due to the factors such as the rapid change of the breathing frequency of the user is effectively avoided, and the residual using time which is closest to the actual using situation of the air respirator is provided for the user. The detection method of the invention has simple steps and is easy to realize.
Preferably, the interval time t1And the theoretical residual use time t of the initial detection step0In a ratio of 1: (360-3600). So that the calculation of the correction of the remaining service time at intervals of a small time period can make t of the output step0The residual service time which is relatively close to a real numerical value is reflected in real time, so that the use condition of the air respirator can be known by a user more conveniently.
Preferably, the theoretical remaining usage time t0Dynamic remaining service time t2The timing unit of (a) is minutes, and the compensation coefficient a is 0.1-10 minutes.
More preferably, the air respirator has a pressure in the range of 20 to 50 megapascals, more preferably 30 megapascals.
Preferably, the theoretical remaining usage time t of said initial detection step0Is calculated according to the initial air pressure value p0Can be calculated using 2 minutes per mpa for said theoretical residual service time t0。
Preferably, the dynamic remaining usage time t2The calculation method comprises the following steps: t is t2=p1*t1/(p0–p1). According to the real-time detected air pressure value p1Calculating the air consumption rate at a certain moment, and calculating the air consumption rate and the air pressure value p according to the air consumption rate and the air pressure value at the moment1Calculating the residual service time, namely calculating the dynamic residual service timeAnd (3) removing the solvent.
In another embodiment, the calculating step further includes: if the initial air pressure value p0Greater than the pressure value p of the retest step1Then calculate the remaining usage time t21Said remaining usage time t21The calculation method comprises the following steps: t is t21=p1*t1/(p0–p1) Calculating the remaining usage time t22Said remaining usage time t22The calculation method of (2) is that the air pressure value p of the retest step1Can be used for 2 minutes per mpa, according to said remaining use time t21And the remaining usage time t22Calculating dynamic remaining usage time t2Said dynamic remaining usage time t2Is calculated by dividing t21And t22Is assigned to t2(ii) a If the air pressure value p of the retest step1Greater than said initial air pressure value p0Then the dynamic residual time t2The calculation method of (2) is that the air pressure value p of the retest step1May be used for 2 minutes per mpa. Because the initial air pressure value p is according to the normal use condition0Should be greater than the pressure value p of the retest step1If the opposite occurs, this may be due to the absence of an air respirator or to an inaccurate measurement. The influence of the conditions on the subsequent judgment and correction of the residual time can be eliminated by the calculation step.
The invention also provides a device for realizing the detection method, which comprises an air pressure detection module, a processing module and an output module, wherein:
the air pressure detection module is connected with the processing module and is used for transmitting the detected initial air pressure value and the detected air pressure value to the processing module;
the processing module comprises a storage module and a calculation module, wherein the calculation module is used for executing the calculation step and the judgment step and converting the initial air pressure value p0Assigned as said air pressure value p1And the theoretical residual service time t0Initial air pressureValue p0And the air pressure value p1Storing the data to the storage module;
the output module is used for outputting the theoretical residual service time t0And said corrected remaining usage time t3。
More preferably, the output module further comprises a display module for visually displaying the theoretical remaining usage time t0And said corrected remaining usage time t3。
The invention also provides a storage medium for implementing the detection method described above, on which a computer program is stored which, when executed by a processor, implements the detection method described above.
Detailed Description
The technical solution of the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
Example 1
Referring to fig. 1 and 2, a method for detecting a remaining usage time of an air respirator includes the steps of:
initial detection step 110: measuring an initial air pressure value p in an air respirator0Calculating the theoretical residual service time t0;
An output step 120: the theoretical residual service time t0Visualization;
retesting step 130: and the theoretical residual service time t0Interval time t1Thereafter, the air pressure value p in the air respirator is measured1;
A calculation step 140: according to the pressure value p of the retest step 1301Carrying out correction calculation to obtain dynamic residual service time t2;
A judgment step 150: if the dynamic residual service time t2Is equal to the theoretical residual service time t0Then, the remaining usage time t is corrected3=t0(ii) a Let a be a compensation coefficient, if the dynamic residual service time t2Greater than the theoretical remaining service time t0Then, the remaining usage time t is corrected3=(t0+ a); if the dynamic residual service time t2Less than the theoretical residual service time t0Then, the remaining usage time t is corrected3=(t0-a);
An update step 160: setting the initial air pressure value p0Assigned as said air pressure value p1The theoretical residual service time t of the initial detection step0Assigning a value of the corrected remaining service time t3The corrected residual service time t3And visualizing and repeatedly executing the retesting step 130.
Specifically, in example 1, the theoretical remaining usage time t0Dynamic remaining service time t2The timing unit of (a) is minutes, and the compensation coefficient a is 1 minute. The maximum air pressure of the air respirator is 25 MPa, i.e. the initial air pressure value p measured in the initial detection step 1100It was 25 MPa. Theoretical remaining usage time t of the initial detection step 1100Is calculated according to the initial air pressure value p0Can be calculated using 2 minutes per mpa for said theoretical residual service time t0. Therefore, the theoretical remaining usage time t of the initial detection step 1100Was 50 minutes.
Said interval time t1Theoretical remaining usage time t from the initial detection step 1100In a ratio of 1: 900, said t1Is 4 seconds (i.e., 1/15 minutes), so that the calculation of the correction for the remaining usage time at intervals of a small time interval enables the output of t of step 1200The residual service time which is relatively close to a real numerical value is reflected in real time, so that the use condition of the air respirator can be known by a user more conveniently.
When the time t is spaced1After 4 seconds, the user takes a relatively rapid breathing action, the air pressure in the air respirator changes dramatically, and the measured air pressure value p in the air respirator in the retesting step 130 is now the same as the air pressure value p in the air respirator1It was 24.8 MPa.
The dynamic remaining usage time t2The calculation method comprises the following steps: t is t2=p1*t1/(p0–p1). According to the real-time detected air pressure value p1Calculating the air consumption rate at a certain moment, and calculating the air consumption rate and the air pressure value p according to the air consumption rate and the air pressure value at the moment1Calculating the remaining usage time, i.e. the dynamic remaining usage time, thus t224.8 ═ (1/15)/(25-24.8) ═ 8.2 minutes. The remaining usage time in the air respirator is 50 minutes before 4 seconds but the remaining usage time calculated after only 4 seconds is only about 8 minutes left, which is not very consistent with the actual situation and also interferes with the judgment of the usage of the air respirator by the user. Therefore, the present invention also proceeds to the determining step 150, since t28.2 min, less than t050 minutes, so t3Outputs t visually through a display or the like for 50-1-49 minutes349 minutes and step p of said initial detection0The value is assigned to 24.8 MPa, and the theoretical residual service time t of the initial detection step is determined0Assigning a value of the corrected remaining service time t3,t049 minutes.
Then, the retest step 131 is executed: and the theoretical residual service time t0Interval t of 49 minutes1After 4 seconds, the air pressure p in the air respirator is measured124.5 mpa;
the calculation step 141 is performed: according to the air pressure p of the retest step 1311Carrying out correction calculation to obtain dynamic residual service time t224.5 ═ (1/15)/(24.8-24.5) ═ 5.4 minutes;
execution of decision step 151: the dynamic remaining usage time t of said calculating step 1412Less than said theoretical remaining service time t0When the time is 49 minutes, the residue is correctedTime of use t3=(t0-a) 48 minutes;
the update step 161 is performed: setting the initial air pressure value p0The theoretical remaining service time t of said initial inspection step 110 is assigned a value of 24.5 mpa0Assigning a value of 48 minutes, and setting the corrected residual service time t3Visually output and then repeat the retest step 132.
Repeating the retest step 130 to output the corrected residual time t3. The detection method provided by the invention can provide a reasonable residual service time for users through detecting the air pressure condition in the air respirator in real time and through reasonable correction calculation. The detection method provided by the invention can prevent a series of situations which are not in accordance with reality, such as reciprocating fluctuation, sudden drop or sudden rise and the like of the calculated residual service life, caused by the sudden change of the air pressure in a short time, so that the influence on the detection result caused by factors such as the rapid change of the breathing frequency of a user is effectively avoided, and the residual service life which is closest to the real service life of the air respirator is provided for the user. The detection method of the invention has simple steps and is easy to realize.
Example 2
Referring to fig. 3, a method for detecting a remaining usage time of an air respirator includes the steps of:
initial detection step 110: measuring an initial air pressure value p in an air respirator0Calculating the theoretical residual service time t0;
An output step 120: the theoretical residual service time t0Visualization;
retesting step 130: and the theoretical residual service time t0Interval time t1Thereafter, the air pressure value p in the air respirator is measured1;
A calculation step 140: according to the pressure value p of the retest step 1301Carrying out correction calculation to obtain dynamic residual service time t2;
A judgment step 150: if the dynamic residual service time t2Is equal to the theoretical residualBy time t0Then, the remaining usage time t is corrected3=t0(ii) a Let a be a compensation coefficient, if the dynamic residual service time t2Greater than the theoretical remaining service time t0Then, the remaining usage time t is corrected3=(t0+ a); if the dynamic residual service time t2Less than the theoretical residual service time t0Then, the remaining usage time t is corrected3=(t0-a);
An update step 160: setting the initial air pressure value p0Assigned as said air pressure value p1The theoretical residual service time t of the initial detection step0Assigning a value of the corrected remaining service time t3The corrected residual service time t3And visualizing and repeatedly executing the retesting step 130.
Specifically, in example 2, the theoretical remaining usage time t0Dynamic remaining service time t2The timing unit of (a) is minutes, and the compensation coefficient a is 1 minute. The maximum air pressure of the air respirator is 25 MPa, i.e. the initial air pressure value p measured in the initial detection step 1100It was 25 MPa. Theoretical remaining usage time t of the initial detection step 1100Is calculated according to the initial air pressure value p0Can be calculated using 2 minutes per mpa for said theoretical residual service time t0. Therefore, the theoretical remaining usage time t of the initial detection step 1100Was 50 minutes.
Said interval time t1Theoretical remaining usage time t from the initial detection step 1100In a ratio of 1: 900, said t1Is 4 seconds (i.e., 1/15 minutes), so that the calculation of the correction for the remaining usage time at intervals of a small time interval enables the output of t of step 1200The residual service time which is relatively close to a real numerical value is reflected in real time, so that the use condition of the air respirator can be known by a user more conveniently.
When the time t is spaced1After 4 seconds, the user takes a relatively sharp breathing action, the air pressure in the air respirator changes violently, and at the moment, the breathing action is repeatedThe value of the air pressure p measured in step 130 within the air respirator1It was 24.8 MPa.
In the calculating step 140, if the initial air pressure value p0Greater than the pressure value p of the retest step1Then calculate the remaining usage time t21Said remaining usage time t21The calculation method comprises the following steps: t is t21=p1*t1/(p0–p1) Calculating the remaining usage time t22Said remaining usage time t22The calculation method of (2) is that the air pressure value p of the retest step1Can be used for 2 minutes per mpa, according to said remaining use time t21And the remaining usage time t22Calculating dynamic remaining usage time t2Said dynamic remaining usage time t2Is calculated by dividing t21And t22Is assigned to t2(ii) a If the air pressure value p of the retest step1Greater than said initial air pressure value p0Then the dynamic residual time t2The calculation method of (2) is that the air pressure value p of the retest step1May be used for 2 minutes per mpa. Thus, t2124.8 ═ 1/15)/(25-24.8 ═ 8.2 minutes, t22A minimum of 8.2 minutes was assigned to t, 49.6 minutes2. The decision step 150 is performed due to t28.2 min, less than t050 minutes, so t3Outputs t visually through a display or the like for 50-1-49 minutes349 minutes and step p of said initial detection0The value is assigned to 24.8 MPa, and the theoretical residual service time t of the initial detection step is determined0Assigning a value of the corrected remaining service time t3,t049 minutes.
Then, the retest step 131 is executed: and the theoretical residual service time t0Interval t of 49 minutes1After 4 seconds, the air pressure p in the air respirator is measured124.5 mpa;
the calculation step 141 is performed: according to the air pressure p of the retest step 1311Carrying out correction calculation to obtain dynamic residual service time t2=24.5*(1/15)/(24.8-24.5) ═ 5.4 minutes;
execution of decision step 151: the dynamic remaining usage time t of said calculating step 1412Less than said theoretical remaining service time t0When the time is 49 minutes, the remaining usage time t is corrected3=(t0-a) 48 minutes;
the update step 161 is performed: setting the initial air pressure value p0The theoretical remaining service time t of said initial inspection step 110 is assigned a value of 24.5 mpa0Assigning a value of 48 minutes, and setting the corrected residual service time t3Visually output and then repeat the retest step 132.
Repeating the retest step 130 to output the corrected residual time t3. The detection method provided by the invention can provide a reasonable residual service time for users through detecting the air pressure condition in the air respirator in real time and through reasonable correction calculation. The detection method provided by the invention can prevent a series of situations which are not in accordance with reality, such as reciprocating fluctuation, sudden drop or sudden rise and the like of the calculated residual service life, caused by the sudden change of the air pressure in a short time, so that the influence on the detection result caused by factors such as the rapid change of the breathing frequency of a user is effectively avoided, and the residual service life which is closest to the real service life of the air respirator is provided for the user. The detection method of the invention has simple steps and is easy to realize.
Example 3
Referring to fig. 4, an apparatus for implementing the detection method of embodiment 1 includes an air pressure detection module 210, a processing module 220, and an output module 230, wherein:
the air pressure detecting module 210 is connected to the processing module 220, and the air pressure detecting module 210 transmits the detected initial air pressure value and the detected air pressure value to the processing module 220;
the processing module 220 comprises a storage module 221 and a calculation module 222, wherein the calculation module 222 is used for executing the calculation step and the judgment step and calculating the initial air pressure value p0Assigned as said air pressure value p1And is combined withThe theoretical residual service time t0Initial air pressure value p0And the air pressure value p1Storing the data to the storage module 221; the storage module 221 is configured to store the initial air pressure value p in the initial detecting step and the calculating step0And the theoretical remaining service time t0;
The output module 230 is configured to output the theoretical remaining usage time t0And said corrected remaining usage time t3。
The output module 230 further comprises a display module for visually displaying the theoretical remaining usage time t of the output step0And the corrected remaining usage time t of said determining step 1503。
The detection device provided by the invention can provide a reasonable residual service time for users through detecting the air pressure condition in the air respirator in real time and through reasonable correction calculation. The detection device provided by the invention can prevent a series of situations which are not in accordance with reality, such as reciprocating fluctuation, sudden drop or sudden rise and the like of the calculated residual service life, caused by sudden change of air pressure in a short time, so that the influence on the detection result caused by factors such as the rapid change of the breathing frequency of a user is effectively avoided, and the residual service life which is closest to the real service life of the air respirator is provided for the user. The detection device has simple steps and is easy to realize.
Example 4
Referring to fig. 5, a storage medium for implementing the detection method of embodiment 2 includes a processor 310, a memory 320, an air pressure detecting device 330, and an output device 340; the number of the processors 310 in the computer device may be one or more, and one processor 310 is taken as an example in fig. 3; the processor 310, the memory 320, the air pressure detecting device 330 and the output device 340 in the electronic device may be connected by a bus or other means, and fig. 3 illustrates the connection by the bus as an example.
The memory 320 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the detection method described above. The processor 310 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 320, so as to implement the detection method.
The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 320 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 320 may further include memory located remotely from the processor 310, which may be connected to the electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The air pressure detecting device 330 may be used to input the initial air pressure value of the initial detecting step, and the like. The output device 340 may include a display device such as a display screen.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes instructions for enabling an electronic device (which may be a mobile phone, a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
Variations and modifications to the above-described embodiments may occur to those skilled in the art, which fall within the scope and spirit of the above description. Therefore, the present invention is not limited to the specific embodiments disclosed and described above, and some modifications and variations of the present invention should fall within the scope of the claims of the present invention. Furthermore, although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.