Gas simulation method, device and electronic equipment
Through ultrasonic simulation technology, gas simulation controllers and detectors are used to form a simulated gas field, which solves the problem that the existing gas simulation training system cannot effectively handle harmful gases, improves training safety and accuracy, and realizes the detection of different gases and Simulation of concentration scenarios.
Patent Information
- Application Number
- CN202211741222.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-12-30
AI Technical Summary
The existing gas simulation training system cannot effectively handle the released harmful gases when simulating flammable and dangerous gases, resulting in environmental pollution and threats to the safety of training personnel.
Use ultrasonic waves to simulate the leakage of dangerous gases. Through the gas simulation controller and detector, it responds to the gas data input by the user, sends simulation data to the transmitter to form a simulated gas field, and detects the gas concentration through the gas detector to ensure the simulation results. Match preset conditions to avoid using real gases for simulations.
It improves the safety of gas simulation training, achieves accurate simulation of different gases and different concentration gas scenarios, ensures the safety and accuracy of firefighter training, and avoids the use of real gases.
Smart Images

Figure CN115862454B
Abstract
Description
Technical Field
[0001] The present application relates to the field of fire simulation training control technology, and in particular to a gas simulation method, device and electronic equipment. Background Art
[0002] At present, real fire simulation training facilities are mainly special practical training systems used for training various types of civil buildings, chemical facilities, coal mining facilities, and thermal power facilities when there are no fire accidents.
[0003] In the relevant technology, only a small number of domestic gas simulation training systems can complete the simulation of flammable gases and dangerous gases, but the harmful gases released during the simulation process cannot be handled, causing the harmful gases to spread and pollute the environment, and the safety of trainees cannot be guaranteed.
[0004] Therefore, there is an urgent need for a gas simulation method, device and electronic equipment. Summary of the invention
[0005] The present application provides a gas simulation method, which simulates the leakage of dangerous gases through ultrasound to avoid using real gas for simulation, thereby improving the safety of simulation training.
[0006] In a first aspect of the present application, a gas simulation method is provided, which adopts the following technical solution, and the method includes: responding to an input operation of a user, the input operation is used to represent first gas data input by the user, and the first gas data includes a first gas and the first gas concentration;
[0007] sending the first gas data to a plurality of transmitters so that the plurality of transmitters simulate the first gas data;
[0008] receiving second gas data sent by the gas detector;
[0009] Determining whether the first gas data and the second gas data meet a preset condition;
[0010] If the first gas data and the second gas data meet the preset conditions, a simulation success message of the first gas data is displayed to the user through the display screen, so that the firefighters can perform gas simulation training in the first gas data.
[0011] By adopting the above-mentioned technical solution, the gas simulation controller responds to the first gas data, so that multiple emitters simulate the first gas data to form a simulated gas field, and detects the gas concentration corresponding to the location through the gas detector, completes the matching of the first gas data and the current simulated gas data, and realizes the scene simulation of various gases and gases of different concentrations, thereby effectively avoiding the use of real gas for simulation, so as to improve the safety of simulation training.
[0012] Optionally, if the first gas data and the second gas data do not meet a preset condition, a first coordinate and a second coordinate are acquired, where the first coordinate is a current coordinate of the gas detector, and the second coordinate is a coordinate corresponding to a position where the first gas concentration is located;
[0013] Subtract the first coordinate from the second coordinate to calculate a deviation value;
[0014] Determine whether the deviation value is within a preset error range;
[0015] If the deviation value is not within the preset error range, the first coordinate is compensated according to the deviation value so that the first coordinate and the second coordinate are the same coordinate.
[0016] By adopting the above technical solution, when there is a large error between the first gas data and the second data, the current coordinates of the gas detector are compensated according to the deviation value between the current coordinates of the gas detector and the coordinates corresponding to the current concentration gas detector, so that the current coordinates of the gas detector are consistent with the coordinates corresponding to the current concentration gas detector, thereby ensuring the accuracy of the gas detector.
[0017] Optionally, the first gas data and the second gas data satisfy a preset condition, specifically including:
[0018] Acquire a third coordinate of the transmitter, where the third coordinate is the current coordinate of the transmitter;
[0019] Subtract the second coordinate from the first coordinate to calculate a first distance, where the first distance is used to represent the distance from the location where the first gas concentration is located to the current location of the gas detector;
[0020] Subtracting the second coordinate from the third coordinate to calculate a second distance, wherein the second distance is used to represent the distance from the transmitter to the location where the first gas concentration is located;
[0021] Calculating the gas concentration corresponding to the first coordinate according to the ratio of the first distance to the second distance and the first gas concentration;
[0022] If the gas concentration at the first coordinate is the same as the first gas concentration, it is confirmed that the first gas data and the second gas data meet a preset condition.
[0023] By adopting the above technical solution, the gas concentration corresponding to the first coordinate can be calculated by the ratio of the first distance to the second distance and the first gas concentration. The gas concentration corresponding to the first coordinate can be compared with the first gas concentration, and the error between the concentration detected by the current gas detector and the simulated preset concentration can be determined, which can effectively improve the speed of judging whether the simulation results and the actual detection results are reasonable.
[0024] Optionally, the first gas data also includes a second gas concentration, and the first gas concentration is greater than the second gas concentration, wherein the second gas concentration is the concentration of any gas except the first gas.
[0025] By adopting the above technical solution, the maximum gas concentration is determined to determine the coordinates corresponding to the position of the maximum gas concentration, so as to ensure that the position coordinates formed by simulation are consistent with the actual position coordinates detected.
[0026] Optionally, sending the first gas data to a plurality of transmitters so that the plurality of transmitters simulate the first gas data is specifically:
[0027] transmitting the first gas data to a plurality of the transmitters, wherein the first gas data includes an ultrasonic frequency band;
[0028] The plurality of transmitters respond to the first gas data so that the plurality of transmitters transmit ultrasonic waves corresponding to the ultrasonic frequency band.
[0029] By adopting the above technical solution, the ultrasonic frequency band contained in the first gas data is sent to the transmitter, so that the transmitter can simulate different types and concentrations of gases according to the different ultrasonic frequency bands received to meet the user's simulation training needs.
[0030] Optionally, the distance between the transmitter and the gas detector is calculated based on the speed of the ultrasonic wave emitted by the transmitter and the time it takes for the ultrasonic wave to reach the gas detector;
[0031] The first coordinate is obtained by calculation according to the distance between the emitter and the gas detector and the third coordinate.
[0032] By adopting the above technical solution, it is only necessary to determine the wave velocity of the ultrasonic wave emitted by the transmitter, the time when the ultrasonic wave reaches the gas detector and the position coordinates of the transmitter, so as to quickly determine the current position of the gas detector and match it with the simulated position, which helps to quickly adjust the position error that occurs during detection.
[0033] Optionally, the first gas includes one or more of oxygen, carbon monoxide and hydrogen sulfide.
[0034] By adopting the above technical solution, by simulating different types of gases or simulating multiple explosive gases at the same time, the training needs of firefighters can be met and different gas simulation scenarios can be provided for firefighters.
[0035] In a second aspect of the present application, a gas simulation device is provided, the gas simulation device comprising a receiving unit, a processing unit and a sending unit, wherein the receiving unit is used to respond to an input operation of a user and receive second gas data sent by a gas detector, wherein the input operation is used to represent first gas data input by a user, and the first gas data includes a first gas and the first gas concentration;
[0036] The sending unit is used to send the first gas data to a plurality of transmitters so that the plurality of transmitters simulate the first gas data;
[0037] The processing unit is used to determine whether the first gas data and the second gas data meet the preset conditions, and when the first gas data and the second gas data meet the preset conditions, display a simulation success message of the first gas data to the user through a display screen, so as to facilitate firefighters to perform gas simulation training in the first gas data.
[0038] By adopting the above-mentioned technical solution, the gas simulation controller responds to the first gas data, so that multiple emitters simulate the first gas data to form a simulated gas field, and detects the gas concentration corresponding to the location through the gas detector, completes the matching of the first gas data and the current simulated gas data, and realizes the scene simulation of various gases and gases of different concentrations, thereby effectively avoiding the use of real gas for simulation, so as to improve the safety of simulation training.
[0039] Optionally, the plurality of emitters are three emitters, the three emitters are arranged in a triangle, the three emitters are located at three vertices of the triangle, and the gas detector is located in the middle of the three emitters.
[0040] By adopting the above technical solution, three transmitters are set up and arranged in a triangle, which can simulate an environment where multiple gas fields overlap, which is helpful to simulate the environment when multiple gases leak. The ultrasonic waves emitted by the transmitters overlap with each other to form a triangular positioning and ranging system, which can improve the accuracy of the coordinates of each position in the system.
[0041] In a third aspect of the present application, an electronic device is provided, comprising a processor, a memory, a user interface and a network interface, wherein the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory.
[0042] By adopting the above technical solution, instructions can be read quickly, thereby improving the response speed of the electronic device to the first gas data instruction sent by the transmitter and the second gas data sent by the gas detector.
[0043] In summary, the present application includes at least one of the following beneficial technical effects:
[0044] 1. The gas simulation controller responds to the first gas data, so that multiple transmitters simulate the first gas data to form a simulated gas field, and detects the gas concentration corresponding to the location through the gas detector, completes the matching of the first gas data and the current simulated gas data, and realizes the scene simulation of various gases and gases of different concentrations, thereby effectively avoiding the use of real gas for simulation, so as to improve the safety of simulation training;
[0045] 2. By only determining the wave velocity of the ultrasonic wave emitted by the transmitter, the time when the ultrasonic wave reaches the gas detector, and the position coordinates of the transmitter, the current position of the gas detector can be quickly determined and matched with the simulated position, which helps to quickly adjust the position error that occurs during detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a flow chart of a gas simulation training method according to an embodiment of the present application;
[0047] Figure 2 is a flow chart of a coordinate error compensation method according to an embodiment of the present application;
[0048] Figure 3 is a flow chart of a method for matching gas concentration according to an embodiment of the present application;
[0049] Figure 4 is a schematic diagram of a signal coverage area in an embodiment of the present application;
[0050] Figure 5 is a schematic diagram of a TOA positioning model according to an embodiment of the present application;
[0051] Figure 6 is a schematic structural diagram of a gas simulation device according to an embodiment of the present application;
[0052] Figure 7 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application.
[0053] Explanation of the accompanying drawings: 1. Gas simulation controller; 2. Transmitter; 21. Transmitting end; 3. Gas detector; 4. Gas simulation device; 41. Receiving unit; 42. Processing unit; 43. Sending unit; 5. Electronic device; 51. Processor; 52. Communication bus; 53. User interface; 54. Network interface; 55. Memory. DETAILED DESCRIPTION
[0054] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0055] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0056] Before introducing the embodiments of the present invention, some terms involved in the embodiments of the present invention are first defined and explained.
[0057] Photoacoustic spectroscopy is a spectral analysis technology based on the photoacoustic effect. It has the advantages of high detection sensitivity, fast time response, continuous real-time monitoring, small volume, and multi-component gas detection. It is widely used in petrochemical analysis, air pollution detection, coal mine gas concentration monitoring, transformer oil dissolved gas analysis, medical exhaled gas diagnosis and other fields.
[0058] The following is combined with Figure 1-7 This application is described in further detail.
[0059] The present application embodiment discloses a gas simulation training method, such as Figure 1 As shown, the steps of the method include S101-S105.
[0060] Step S101 , responding to an input operation of a user, where the input operation is used to represent first gas data input by the user, where the first gas data includes a first gas and a first gas concentration.
[0061] In this step, the first gas includes one or more of oxygen, carbon monoxide and hydrogen sulfide, and the first gas may also include explosive gas, such as methane, ethane, propane, toluene, xylene, ethyl chloride, ethyl bromide, vinyl chloride, vinyl dichloride, trichlorotoluene, etc. The gas simulation controller 1 can manually adjust the input gas data to meet the gas training requirements.
[0062] Step S102 : sending first gas data to the multiple transmitters 2 , so that the multiple transmitters 2 simulate the first gas data.
[0063] In this step, the transmitter 2 includes an ultrasonic transmitting circuit, which can continuously or discontinuously generate ultrasonic waves with a frequency of 40kHz. At the same time, the type and concentration of the gas in the current range can be determined according to the photoacoustic spectroscopy technology, and the wavelength of the light corresponding to the gas can be determined accordingly. At this time, the ultrasonic wave of the corresponding wavelength can be emitted by the transmitter 2 to achieve the simulation of the gas. For example, using a DFBLD near-infrared laser with a central wavelength of 1567nm to output an infrared laser with a peak wavelength of 1567.324nm can achieve quantitative measurement of carbon monoxide. At this time, the ultrasonic wave with a wavelength of 1567nm can be emitted by the transmitter 2 to simulate carbon monoxide.
[0064] The gas simulation controller 1 can modify the type and concentration of the gas emitted by the transmitter 2 by adjusting the ultrasonic parameters. The ultrasonic simulated gas is emitted through the two transmitting ends 21 of the transmitter 2. The transmitter 2 can only simulate the emission of one gas at a time.
[0065] Step S103, receiving the second gas data sent by the gas detector 3.
[0066] In this step, the gas detector 3 determines the gas concentration at the corresponding position of the gas detector 3 by detecting the signal strength of the current gas field, and the gas detector 3 and the gas simulation controller 1 communicate with each other through a wireless connection. The gas detector 3 will respond to the default settings and manually adjusted gas data of the gas simulation controller 1.
[0067] Step S104, determining whether the first gas data and the second gas data meet a preset condition.
[0068] In this step, the gas concentration corresponding to the current position of the gas detector 3 can be compared with the coordinates corresponding to the simulated concentration to determine whether there is an error in the current coordinates of the gas detector 3.
[0069] Step S105, if the first gas data and the second gas data meet the preset conditions, a simulation success message of the first gas data is displayed to the user through the display screen, so that the firefighters can perform gas simulation training in the first gas data.
[0070] The transmitter 2 responds to the first gas data, so that multiple transmitters 2 simulate the first gas data to form a simulated gas field, and detects the gas concentration corresponding to the location through the gas detector 3, completes the matching of the first gas data and the current simulated gas data, and realizes the scene simulation of various gases and gases of different concentrations, thereby effectively avoiding the use of real gas for simulation, so as to improve the safety of simulation training.
[0071] In one example, multiple transmitters 2 are installed to simulate gas leakage, and the transmitters 2 installed in different locations and in different scenes can be used to simulate different dangerous scenes, ranging from small gas leakage scenes to scenes where huge steam clouds are generated when the leakage is serious.
[0072] The gas meter of the gas detector 3 measures the signal strength of the transmitter 2, which simulates any one of the preset gases. If the measured value exceeds the preset alarm value, the alarm will sound. The gas simulation controller 1 can set two different alarm levels for each gas, including a maximum alarm value and a minimum alarm value. If the measured value in the gas detector 3 exceeds the set alarm value, the gas simulation controller 1 will also receive the same alarm signal. Among them, the range of alarm values depends to a large extent on the reflection intensity of the detection area. Therefore, the alarm range may be changed near obstacles, or when the training room uses a hard floor, such as a concrete floor, the alarm range will change, or when the training room uses a soft floor, such as a carpet, the alarm range will also change. The range of the selected measured gas concentration is adjusted to the required range through the gas simulation controller 1. The adjusted range will increase or decrease in the smallest unit.
[0073] like Figure 2 As shown, the coordinate error compensation method includes steps S201-S204.
[0074] Step S201, if the first gas data and the second gas data do not meet the preset conditions, obtain the first coordinate and the second coordinate of the gas detector 3, the first coordinate is the current coordinate of the gas detector 3, and the second coordinate is the coordinate corresponding to the position where the first gas concentration is located.
[0075] In this step, a coordinate display program is loaded into the gas detector 3, which can transmit the coordinates of the current gas detector 3 to the gas simulation controller 1 at any time.
[0076] Step S202, subtracting the first coordinate from the second coordinate to calculate a deviation value.
[0077] In this step, the deviation value is obtained by comparing the coordinate values displayed on the gas detector 3 with the coordinate values of the signal coverage range formed by the transmitter 2, wherein the coordinate values displayed on the gas detector 3 and the coordinate values of the signal coverage range are both coordinates in a two-dimensional plane.
[0078] Step S203, determining whether the deviation value is within a preset error range.
[0079] In this step, the allowable deviation is 5 cm in the X or Y direction, or other more accurate deviation values, which can be set by the user.
[0080] Step S204 , if the deviation value is not within the preset error range, the first coordinate is compensated according to the deviation value so that the first coordinate and the second coordinate are the same coordinate.
[0081] When there is a large error between the first gas data and the second data, the current coordinates of the gas detector are compensated according to the deviation value between the current coordinates of the gas detector 3 and the coordinates corresponding to the current concentration gas detector 3, so that the current coordinates of the gas detector 3 are consistent with the coordinates corresponding to the current concentration gas detector 3, thereby ensuring the accuracy of the gas detector.
[0082] In one example, the coordinate position of the gas detector 3 can be adjusted until the gas concentration detected by the gas detector 3 is less than or equal to the preset concentration. This is the boundary of the simulated gas coverage range, and the simulated gas actual coverage range is obtained through actual measurement. The signal coverage range formed by multiple transmitters 2 is simulated by the gas simulation controller 1, and the simulated gas actual coverage range and the signal coverage range are compared with the range corresponding to the maximum concentration position as the center to determine whether there is a deviation between the simulated gas actual coverage range and the signal coverage range. At the same time, a deviation between the gas actual coverage range and the signal coverage range is also allowed.
[0083] like Figure 3 As shown, the gas concentration matching method includes steps S301-S305.
[0084] Step S301 , obtaining the third coordinate of the transmitter 2 , where the third coordinate is the current coordinate of the transmitter 2 .
[0085] In this step, the third coordinate of the transmitter 2 can be read by loading a coordinate display program, and the position coordinate of the current transmitter 2 setting can be read.
[0086] Step S302 , subtract the second coordinate from the first coordinate to calculate a first distance, where the first distance is used to represent the distance from the location where the first gas concentration is located to the current location of the gas detector 3 .
[0087] Step S303: Subtract the second coordinate from the third coordinate to calculate a second distance, wherein the second distance is used to represent the distance from the emitter 2 to the location where the first gas concentration is located.
[0088] Step S304: Calculate the gas concentration corresponding to the first coordinate according to the ratio of the first distance to the second distance and the first gas concentration.
[0089] Step S305 , if the gas concentration at the first coordinate is the same as the first gas concentration, confirming that the first gas data and the second gas data meet a preset condition.
[0090] The gas concentration corresponding to the first coordinate can be calculated by the ratio of the first distance to the second distance and the first gas concentration. The gas concentration corresponding to the first coordinate can be compared with the first gas concentration, and the error between the concentration detected by the current gas detector 3 and the simulated preset concentration can be determined, which can effectively improve the speed of determining whether the simulation results and the actual detection results are reasonable.
[0091] refer to Figure 4 and Figure 5 This application adopts the TOA positioning algorithm, i.e., the time of arrival algorithm, to calculate the position of the gas detector 3. The TOA positioning algorithm measures the time taken for the ultrasonic transmitting end 21 to transmit the ultrasonic wave to the ultrasonic gas detector 3. The product of time and ultrasonic velocity is the distance from the gas detector 3 to each transmitting end 21. When a circle is drawn with each transmitting end 21 of the transmitter 2 as the center and the distance as the radius, two distance circles intersect at two points, and two position solutions of the ultrasonic transmitting end are obtained, so a third distance circle is needed to determine the actual position of the gas detector 3.
[0092] refer to Figure 4 , a signal coverage area is formed between the transmitting ends 21 of any two transmitters 2. When the gas detector 3 is placed in the signal coverage area, the actual coordinates of the gas detector 3 can be solved.
[0093] The number of the transmitters 2 can be 2, 3 or 4, that is, the number of the transmitting ends 21 corresponding to the transmitter 2 is 4, 6 or 8. The number of the transmitters 2 can be multiple, and according to the detection accuracy of the device and the price of the device, it is preferred that the number of the transmitters 2 is 3 as the optimal simulation solution.
[0094] Assume that the XOY plane is the ceiling of the indoor space, the positions of the transmitter 2 on the plane are A (0, 0, 0), B (a, 0, 0), and C (0, b, 0), and the gas detector M is located on the ground, and its spatial coordinate position is M (x, y, z). The distances from the three receiving points to the gas detector M are D1, D2, and D3, respectively. From the spatial geometric relationship, we can get formula (1.1).
[0095]
[0096] The coordinate value of T(x, y, z) can be solved by equation (1.1), as shown in equation (1.2), and finally the spatial position coordinate of the gas detector M is obtained. TOA positioning in two-dimensional space can be regarded as a model in which three circles intersect at one point, as shown in the figure. When the time of the transmitter and the receiver is completely synchronized, the exact time when the gas detector arrives at the fixed transmitter can be measured. Assuming that the position coordinate of the gas detector is M(x, y), the position coordinates of the three transmitters are R si (x i ,y i ), i = 1, 2, 3, the speed C of the ultrasonic signal is multiplied by the TOA measurement time to obtain the distances r1, r2, r3 from the three transmitting ends to the gas detector. The coordinates of the gas detector can be calculated based on the geometric relationship.
[0097] According to the actual coordinates obtained, the area with the coordinates in the middle position can be set as the area with the highest concentration. The concentration values of the other areas at their current positions can be obtained based on the obtained coordinate values and the distance from the center point.
[0098] In this embodiment, the first gas data also includes a second gas concentration, and the first gas concentration is greater than the second gas concentration, wherein the second gas concentration is the concentration of any gas except the first gas.
[0099] The coordinates corresponding to the position of the maximum gas concentration are determined by determining the maximum gas concentration, so as to ensure that the position coordinates formed by the simulation are consistent with the actual position coordinates detected.
[0100] In this embodiment, the first gas data is sent to multiple transmitters 2 so that the multiple transmitters 2 simulate the first gas data, specifically: the first gas data is transmitted to the multiple transmitters 2, wherein the first gas data also includes an ultrasonic frequency band; the multiple transmitters 2 respond to the first gas data so that the multiple transmitters emit ultrasonic waves corresponding to the ultrasonic frequency band.
[0101] The ultrasonic frequency band included in the first gas data is sent to the transmitter 2, so that the transmitter 2 can simulate different types and concentrations of gases according to the different ultrasonic frequency bands received to meet the user's simulation training needs.
[0102] In a possible example, the first gas data and the corresponding ultrasonic frequency band may be sent to the transmitter 2, or only the corresponding ultrasonic frequency band may be sent to the transmitter 2. The first gas data will display the gas concentration and gas type to be sent in the gas simulation controller 1, and the ultrasonic frequency band corresponding to the first gas data is sent to the transmitter 2 through the gas simulation controller 1, so that the transmitter 2 emits the corresponding simulated gas. The first gas data can be adjusted by the gas simulation controller 1, for example, the type of simulated gas emitted by the first transmitter is switched from oxygen to carbon monoxide, and the concentration of the corresponding simulated gas can also be changed. When either the type of simulated gas or the concentration of the simulated gas changes, the ultrasonic frequency band emitted by the gas simulation controller 1 changes accordingly.
[0103] In this embodiment, the distance between the transmitter 2 and the gas detector 3 is calculated based on the speed of the ultrasonic wave emitted by the transmitter 2 and the time it takes for the ultrasonic wave to reach the gas detector 3; the first coordinate is calculated based on the distance between the transmitter 2 and the gas detector 3 and the third coordinate.
[0104] By only determining the wave velocity of the ultrasonic wave emitted by the transmitter 2, the time when the ultrasonic wave reaches the gas detector 3 and the position coordinates of the transmitter 2, the current position of the gas detector 3 can be quickly determined and matched with the simulated position, which helps to quickly adjust the position error that occurs during detection.
[0105] In one example, obtaining the first coordinates also requires determining the current position by using a TOA positioning algorithm.
[0106] Based on the above method, the present application provides a gas simulation device 4, referring to Figure 6 The gas simulation device 4 includes a receiving unit 41, a processing unit 42 and a sending unit 43, wherein:
[0107] The receiving unit 41 is used to respond to the user's input operation and receive the second gas data sent by the gas detector 3, wherein the input operation is used to represent the first gas data input by the user, and the first gas data includes the first gas and the first gas concentration; the sending unit 43 is used to send the first gas data to multiple transmitters 2 so that the multiple transmitters 2 simulate the first gas data; the processing unit 42 is used to determine whether the first gas data and the second gas data meet the preset conditions, and when the first gas data and the second gas data meet the preset conditions, display the simulation success message of the first gas data to the user through the display screen, so as to facilitate firefighters to conduct gas simulation training in the first gas data.
[0108] In a possible example, if the first gas data and the second gas data do not meet the preset conditions, the receiving unit 41 is used to obtain the first coordinate and the second coordinate of the gas detector 3, the first coordinate is the current coordinate of the gas detector 3, and the second coordinate is the coordinate corresponding to the position where the first gas concentration is located; the processing unit 42 is used to subtract the first coordinate from the second coordinate, calculate the deviation value, and determine whether the deviation value is within the preset error range. If the error value is not within the preset error range, the processing unit 42 compensates the first coordinate according to the deviation value so that the first coordinate and the second coordinate are the same coordinate.
[0109] In one possible example, the acquisition unit is used to obtain the third coordinate of the transmitter 2, where the third coordinate is the current coordinate of the transmitter 2. The processing unit 42 is used to subtract the second coordinate from the first coordinate to calculate the first distance, where the first distance is used to represent the distance from the location where the first gas concentration is located to the current location of the gas detector 3. The processing unit 42 is used to subtract the second coordinate from the third coordinate to calculate the second distance, where the second distance is used to represent the distance from the transmitter 2 to the location where the first gas concentration is located. The processing unit 42 is used to calculate the gas concentration corresponding to the first coordinate based on the ratio of the first distance to the second distance and the first gas concentration. If the gas concentration of the first coordinate is the same as the first gas concentration, the processing unit 42 confirms that the first gas data and the second gas data meet the preset conditions.
[0110] In a possible example, the first gas data also includes a second gas concentration, the first gas concentration is greater than the second gas concentration, and the second gas concentration is the concentration of any gas except the first gas.
[0111] In a possible example, the sending unit 43 is used to transmit first gas data to multiple transmitters 2, wherein the first gas data also includes an ultrasonic frequency band; the multiple transmitters 2 respond to the first gas data so that the multiple transmitters emit ultrasonic waves corresponding to the ultrasonic frequency band.
[0112] In one possible example, the processing unit 42 is used to calculate the distance between the transmitter 2 and the gas detector 3 based on the speed of the ultrasonic wave emitted by the transmitter 2 and the time it takes for the ultrasonic wave to reach the gas detector 3; the processing unit 42 is used to calculate the first coordinate based on the distance between the transmitter 2 and the gas detector 3 and the third coordinate.
[0113] In one possible example, the first gas includes one or more of oxygen, carbon monoxide, and hydrogen sulfide.
[0114] In this embodiment, the multiple emitters 2 are three emitters 2, the three emitters 2 are arranged in a triangle, the three emitters 2 are located at the three vertices of the triangle, and the gas detector 3 is located in the middle of the three emitters 2. The gas detector 3 can be within the gas coverage formed by the three emitters 2.
[0115] Three transmitters 2 are set up and arranged in a triangle. The ultrasonic waves emitted by the transmitters 2 overlap with each other to form a triangular positioning and ranging system. At the same time, it can simulate the environment of multiple overlapping gas fields, which is helpful to simulate the environment when multiple gases leak. In addition, the ultrasonic waves emitted by the transmitters 2 overlap with each other to form a triangular positioning and ranging system, which can improve the accuracy of the coordinates of each position in the system.
[0116] See also Figure 7 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7 As shown, the electronic device 5 may include: at least one processor 51 , at least one network interface 54 , a user interface 53 , a memory 55 , and at least one communication bus 52 .
[0117] The communication bus 52 is used to realize the connection and communication between these components.
[0118] The user interface 53 may include a display screen (Display) and a camera (Camera), and the optional user interface 53 may also include a standard wired interface and a wireless interface.
[0119] The network interface 54 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0120] Among them, the processor 51 may include one or more processing cores. The processor 51 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 55, and calling data stored in the memory 55. Optionally, the processor 51 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 51 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 51, and it can be implemented separately through a chip.
[0121] Among them, the memory 55 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 55 includes a non-transitory computer-readable storage medium. The memory 55 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 55 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 55 may also be optionally at least one storage device located away from the aforementioned processor 51. As Figure 7 As shown, the memory 55 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application program for a gas simulation training method.
[0122] exist Figure 7In the electronic device 5 shown, the user interface 53 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 51 can be used to call an application program storing a gas simulation training method in the memory 55. When executed by one or more processors, the electronic device executes one or more methods in the above-mentioned embodiments.
[0123] A computer-readable storage medium stores instructions, which, when executed by one or more processors, enable the computer to execute one or more methods in the above-mentioned embodiments.
[0124] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0125] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0126] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0127] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0128] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0129] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.
[0130] The above are only exemplary embodiments of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, it will be easy for those skilled in the art to think of other embodiments of the present disclosure. This application is intended to cover any variation, use or adaptive change of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the technical field that are not recorded in the present disclosure.
[0131] The embodiments of this specific implementation method are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Therefore, all equivalent changes made based on the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. A gas simulation method, characterized in that: Applied to a gas simulation controller (1), the method comprises: In response to an input operation of a user, the input operation is used to represent first gas data input by the user, the first gas data including a first gas and the first gas concentration; Sending the first gas data to a plurality of transmitters (2) so that the plurality of transmitters (2) simulate the first gas data; receiving second gas data sent by a gas detector (3); Determining whether the first gas data and the second gas data meet a preset condition; If the first gas data and the second gas data meet the preset conditions, a simulation success message of the first gas data is displayed to the user through a display screen, so that the firefighter can perform gas simulation training in the first gas data; The method further comprises: If the first gas data and the second gas data do not meet the preset condition, obtaining a first coordinate and a second coordinate, wherein the first coordinate is the current coordinate of the gas detector (3), and the second coordinate is the coordinate corresponding to the position where the first gas concentration is located; Subtract the first coordinate from the second coordinate to calculate a deviation value; Determine whether the deviation value is within a preset error range; If the deviation value is not within the preset error range, compensating the first coordinate according to the deviation value so that the first coordinate and the second coordinate are the same coordinate; The first gas data and the second gas data meet a preset condition, specifically including: Acquire a third coordinate of the transmitter (2), the third coordinate being the current coordinate of the transmitter (2); Subtracting the second coordinate from the first coordinate to calculate a first distance, the first distance being used to represent the distance from the location where the first gas concentration is located to the current location of the gas detector (3); Subtracting the second coordinate from the third coordinate to calculate a second distance, wherein the second distance is used to represent the distance from the emitter (2) to the location where the first gas concentration is located; Calculating the gas concentration corresponding to the first coordinate according to the ratio of the first distance to the second distance and the first gas concentration; If the gas concentration at the first coordinate is the same as the first gas concentration, confirming that the first gas data and the second gas data meet a preset condition; The first gas data is sent to a plurality of transmitters (2) so that the plurality of transmitters (2) simulate the first gas data, specifically: Transmitting the first gas data to a plurality of the transmitters (2), wherein the first gas data also includes an ultrasonic frequency band; The plurality of transmitters (2) respond to the first gas data so that the plurality of transmitters transmit ultrasonic waves corresponding to the ultrasonic frequency band.
2. The method according to claim 1, characterized in that The first gas data also includes a second gas concentration, the first gas concentration is greater than the second gas concentration, wherein the second gas concentration is the concentration of any gas except the first gas.
3. The method according to claim 1, characterized in that The obtaining of the first coordinate is specifically as follows: The distance between the transmitter (2) and the gas detector (3) is calculated based on the speed of the ultrasonic wave emitted by the transmitter (2) and the time it takes for the ultrasonic wave to reach the gas detector (3); The first coordinate is obtained by calculation according to the distance between the transmitter (2) and the gas detector (3) and the third coordinate.
4. The method according to claim 1, characterized in that: The first gas includes one or more of oxygen, carbon monoxide and hydrogen sulfide.
5. A gas simulation device, characterized in that: The gas simulation device (4) comprises a receiving unit (41), a processing unit (42) and a sending unit (43), wherein: The receiving unit (41) is used to respond to an input operation of a user and receive second gas data sent by the gas detector (3), wherein the input operation is used to represent first gas data input by the user, and the first gas data includes a first gas and the first gas concentration; The sending unit (43) is used to send the first gas data to a plurality of transmitters (2), so that the plurality of transmitters (2) simulate the first gas data; The processing unit (42) is used to determine whether the first gas data and the second gas data meet a preset condition, and when the first gas data and the second gas data meet the preset condition, display a simulation success message of the first gas data to the user through a display screen, so that firefighters can perform gas simulation training in the first gas data; If the first gas data and the second gas data do not satisfy a preset condition, the receiving unit (41) is used to obtain a first coordinate and a second coordinate of the gas detector (3), the first coordinate being the current coordinate of the gas detector (3), and the second coordinate being the coordinate corresponding to the position where the first gas concentration is located; the processing unit (42) is used to calculate a deviation value by subtracting the first coordinate from the second coordinate, and to determine whether the deviation value is within a preset error range; if the error value is not within the preset error range, the processing unit (42) compensates the first coordinate according to the deviation value, so that the first coordinate and the second coordinate are the same coordinate; The acquisition unit is used to obtain a third coordinate of the transmitter (2), the third coordinate being the current coordinate of the transmitter (2), the processing unit (42) being used to calculate a first distance by subtracting the second coordinate from the first coordinate, the first distance being used to represent the distance from a location where the first gas concentration is located to a current location of the gas detector (3), the processing unit (42) being used to calculate a second distance by subtracting the second coordinate from the third coordinate, wherein the second distance is used to represent the distance from the transmitter (2) to a location where the first gas concentration is located, the processing unit (42) being used to calculate a gas concentration corresponding to the first coordinate based on a ratio of the first distance to the second distance and the first gas concentration, and if the gas concentration at the first coordinate is the same as the first gas concentration, the processing unit (42) confirms that the first gas data and the second gas data meet a preset condition; The sending unit (43) is used to transmit first gas data to the multiple transmitters (2), wherein the first gas data also includes an ultrasonic frequency band; the multiple transmitters (2) respond to the first gas data so that the multiple transmitters emit ultrasonic waves corresponding to the ultrasonic frequency band.
6. The device according to claim 5, characterized in that The plurality of emitters (2) are three emitters (2), the three emitters (2) are arranged in a triangle, the three emitters (2) are located at three vertices of the triangle, and the gas detector (3) is located in the middle of the three emitters (2).
7. An electronic device, characterized in that: The electronic device (5) comprises a processor (51), a memory (55), a user interface (53) and a network interface (54), wherein the memory (55) is used to store instructions, the user interface (53) and the network interface (54) are used to communicate with other devices, and the processor (51) is used to execute the instructions stored in the memory (55) so that the electronic device (5) executes the method according to any one of claims 1 to 4.
