A gas detection method, device, equipment and medium with lighting function

By acquiring gas concentration values ​​and distance from the ground, determining safe distances from the ground, generating the emission angle of a laser beam, and controlling the gas detection device to emit indicator and diffused beams, the problem of being unable to assess the hazard level during gas leaks is solved, improving the safety and warning capabilities of the gas detection device.

CN116359440BActive Publication Date: 2026-06-02JINAN BENAN TECH DEV CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JINAN BENAN TECH DEV CO LTD
Filing Date
2023-03-28
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

Existing gas detection devices are unable to assess the hazard level/urgency of the leak area when a gas leak occurs, and cannot provide effective warnings to people at the scene of the accident. As a result, indoor gas leaks often occur because middle-aged and elderly people and other people with declining physical functions may forget to turn off the gas valve after using the gas, which poses a safety hazard.

Method used

By acquiring gas concentration values ​​and distance from the ground, a safe distance from the ground is determined, the emission angle of a laser beam is generated, and the gas detection device is controlled to emit an indicator beam to delineate dangerous areas, indicate safe heights for personnel, generate a diffused beam to mark leak areas, and send warning messages when necessary.

Benefits of technology

It effectively reduces the possibility of accidents for people indoors, and helps people identify safe heights and leak areas through laser and diffused light beams, thus improving safety during gas leaks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116359440B_ABST
    Figure CN116359440B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of gas detection, in particular to a gas detection method, device, equipment and medium with an illumination function, which comprises the following steps: acquiring a gas concentration value and a distance from the ground, determining a safe distance from the ground according to the distance from the ground and the gas concentration value, obtaining a transmission angle of a laser light beam according to the distance from the ground and the safe distance from the ground, and generating a laser transmission instruction to control the current gas detection device to transmit an indication light beam. In this way, the safe height that can be reached by the current indoor personnel can be prompted when the current indoor personnel controls the accident site, and the possibility of accidents of the indoor personnel is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of gas detection, and in particular to a gas detection method, apparatus, equipment and medium with lighting function. Background Technology

[0002] Gas detection devices can monitor the gas content in the air in real time and issue an alarm when the gas content falls within a concentration range that could cause an explosion. In recent years, with the accelerated pace of life, the main users of household gas have gradually shifted to middle-aged and elderly people. As their physical functions decline, these individuals often forget to turn off the indoor gas valve after using the gas, leading to frequent indoor gas leaks and posing a significant threat to the safety of family members.

[0003] To prevent accidents, gas detection devices currently on the market have undergone various improvements in terms of gas content measurement accuracy and explosion-proof and corrosion-resistant features. These improvements enhance the detection accuracy of indoor gas leaks and can issue alarm signals when the gas leakage level is far below the minimum concentration range that could cause an explosion. However, existing alarm functions do not involve assessing the hazard level / urgency of the gas leak area and cannot alert personnel at the accident site in the event of an accident. Summary of the Invention

[0004] The purpose of this application is to provide a gas detection method, apparatus, equipment, and medium with lighting function to solve at least one of the above-mentioned technical problems.

[0005] The above-mentioned inventive objective of this application is achieved through the following technical solutions:

[0006] Firstly, this application provides a gas detection method with lighting function, employing the following technical solution:

[0007] A gas detection method with lighting function, comprising:

[0008] Obtain the gas concentration value and the distance from the ground, where the distance from the ground is the vertical distance from the current gas detection device to the ground;

[0009] The safe distance from the ground is determined based on the distance from the ground and the gas concentration value. The safe distance from the ground is the height above the ground where the current indoor gas concentration value is equal to the preset safe concentration value.

[0010] The emission angle of the laser beam is obtained based on the distance from the ground and the safe distance from the ground, and a laser emission command is generated to control the current gas detection device to emit an indicator beam, which is used to inform the people in the room of the safe height they can reach.

[0011] In another possible implementation, the step of obtaining the emission angle of the laser beam based on the distance from the ground and the safe distance from the ground further includes:

[0012] The leak area is determined based on the gas concentration value, and the leak area is the current gas leak area in the room;

[0013] A command to emit a diffused beam is generated based on the emission angle of the laser beam and the leakage area, so as to emit a diffused beam to mark the leakage area.

[0014] In another possible implementation, determining the leak area based on the gas concentration value includes:

[0015] The abnormal area is determined based on the gas concentration value and the preset standard;

[0016] The area and relative coordinates of the gas leak area are determined based on the abnormal area and the gas concentration value. The relative coordinates are the coordinates corresponding to the gas leak area in a coordinate system established with the current gas detection device as the origin.

[0017] The leakage area is determined based on the area and the relative coordinates.

[0018] In another possible implementation, generating the astigmatic beam emission command based on the emission angle of the laser beam and the leakage region includes:

[0019] The shortest distance between the relative coordinates corresponding to the leakage area and the laser beam is determined based on the emission angle of the laser beam and the distance from the ground. The shortest distance is the line segment distance corresponding to the shortest line segment from the point where the plane where the laser beam is located intersects the straight line passing through the relative coordinates to the relative coordinates when the plane is parallel to the vertical wall of the current room.

[0020] Determine whether the shortest distance exceeds a preset distance;

[0021] If so, the emission angle of the astigmatic beam is determined based on the shortest distance and the emission angle of the laser beam, and an astigmatic beam emission command is generated based on the emission angle of the astigmatic beam.

[0022] In another possible implementation, the method further includes:

[0023] If the shortest distance does not exceed the preset distance, the aperture level in the preset astigmatic aperture standard is determined according to the leakage area. The preset astigmatic aperture standard is the corresponding standard of the leakage area and the aperture level. The aperture level is the aperture area level obtained by the current gas detection device when emitting astigmatic light.

[0024] A command to emit a diffused beam is generated based on the relative coordinates and the aperture level.

[0025] In another possible implementation, the method further includes:

[0026] If the emission angle of the laser beam is within a preset danger range, a warning message is generated and sent to a designated device.

[0027] In another possible implementation, the generation of the alert message includes:

[0028] Get the current time;

[0029] The current moment is correlated with the emission angle of the laser beam, and the warning information is generated based on the correlation result;

[0030] Control the sending of the warning information to the designated device.

[0031] Secondly, this application provides a gas detection device with lighting function, which adopts the following technical solution:

[0032] A gas detection device with illumination function includes:

[0033] The information acquisition module is used to acquire gas concentration values ​​and distance from the ground, wherein the distance from the ground is the vertical distance from the current gas detection device to the ground;

[0034] The distance determination module is used to determine a safe distance from the ground based on the distance from the ground and the gas concentration value. The safe distance from the ground is the height above the ground where the gas concentration value in the current indoor environment is equal to a preset safe concentration value.

[0035] An angle determination module is used to obtain the emission angle of the laser beam based on the distance from the ground and the safe distance from the ground, and generate a laser emission command to control the current gas detection device to emit an indicator beam, which is used to inform the people in the room of the safe height they can reach.

[0036] In another possible implementation, the apparatus further includes: a region-determining module and a astigmatic beam-generating module, wherein,

[0037] The defined area module is used to determine the leakage area based on the gas concentration value, and the leakage area is the current gas leakage area in the room.

[0038] The primary astigmatic beam module is used to generate an astigmatic beam emission command based on the emission angle of the laser beam and the leakage area, so as to emit an astigmatic beam to mark the leakage area.

[0039] In another possible implementation, when the area determination module determines the leak area based on the gas concentration value, it specifically includes:

[0040] The abnormal area is determined based on the gas concentration value and the preset standard;

[0041] The area and relative coordinates of the gas leak area are determined based on the abnormal area and the gas concentration value. The relative coordinates are the coordinates corresponding to the gas leak area in a coordinate system established with the current gas detection device as the origin.

[0042] The leakage area is determined based on the area and the relative coordinates.

[0043] In another possible implementation, when the astigmatic beam generation module generates an astigmatic beam emission command based on the emission angle of the laser beam and the leakage area, it is specifically used for:

[0044] The shortest distance between the relative coordinates corresponding to the leakage area and the laser beam is determined based on the emission angle of the laser beam and the distance from the ground. The shortest distance is the line segment distance corresponding to the shortest line segment from the point where the plane where the laser beam is located intersects the straight line passing through the relative coordinates to the relative coordinates when the plane is parallel to the vertical wall of the current room.

[0045] Determine whether the shortest distance exceeds a preset distance;

[0046] If so, the emission angle of the astigmatic beam is determined based on the shortest distance and the emission angle of the laser beam, and an astigmatic beam emission command is generated based on the emission angle of the astigmatic beam.

[0047] In another possible implementation, the device further includes: an aperture determining module and a secondary astigmatic beam module, wherein,

[0048] The aperture determination module is used to determine the aperture level in the preset astigmatic aperture standard based on the leakage area. The preset astigmatic aperture standard is a standard corresponding to the leakage area and the aperture level. The aperture level is the aperture area level obtained by the current gas detection device when emitting astigmatic light.

[0049] The secondary astigmatic beam module is used to generate astigmatic beam emission commands based on the relative coordinates and the aperture level.

[0050] In another possible implementation, the device further includes a warning information generation module, wherein the warning information generation module is used to generate warning information and send the warning information to a designated device.

[0051] In another possible implementation, when the warning information generation module generates warning information, it is specifically used for:

[0052] Get the current time;

[0053] The current moment is correlated with the emission angle of the laser beam, and the warning information is generated based on the correlation result;

[0054] Control the sending of the warning information to the designated device.

[0055] Thirdly, this application provides an electronic device that adopts the following technical solution:

[0056] At least one processor;

[0057] Memory;

[0058] At least one application, wherein the at least one application is stored in memory and configured to be executed by at least one processor, the at least one application being configured to: perform the above-described gas detection method with lighting function.

[0059] Fourthly, this application provides a computer-readable storage medium, which adopts the following technical solution:

[0060] A computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to perform the method described above.

[0061] In summary, this application includes at least one of the following beneficial technical effects;

[0062] This application provides a gas detection method, device, equipment, and medium with lighting function. In this application, the safe ground height at which the current indoor gas concentration value equals a preset safe concentration is determined by the current indoor gas concentration value and the current distance of the gas detection device from the ground. The emission angle of the laser beam emitted by the gas detection device is determined based on the current distance of the gas detection device from the ground and the safe ground height, so that the laser beam can be used as an indicator beam to divide different danger zones. When people in the room are controlling the accident scene, it can indicate the safe height that people in the room can reach, thereby reducing the possibility of accidents. Attached Figure Description

[0063] Figure 1 This is a schematic flowchart of a gas detection method with lighting function according to one embodiment of this application;

[0064] Figure 2 This is a schematic diagram of the structure of a gas detection device with lighting function according to one embodiment of this application;

[0065] Figure 3 This is a schematic diagram of the structure of a gas detection electronic device with lighting function according to one embodiment of this application. Detailed Implementation

[0066] The following combination Figures 1 to 3 This application will be described in further detail.

[0067] This specific embodiment is merely an explanation of this application and is not intended to limit it. After reading this specification, those skilled in the art can make modifications to this embodiment without contributing any inventive step, but such modifications are protected by patent law as long as they are within the scope of this application.

[0068] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0069] Furthermore, the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article, unless otherwise specified, generally indicates that the preceding and following related objects have an "or" relationship.

[0070] The embodiments of this application will now be described in further detail with reference to the accompanying drawings.

[0071] This application provides a gas detection method with lighting function, executed by an electronic device. This electronic device can be a server or a terminal device. The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The terminal device can be a smartphone, tablet, laptop, desktop computer, etc., but is not limited to these. The terminal device and the server can be directly or indirectly connected via wired or wireless communication. This application does not impose any limitations on this. Figure 1 As shown, the method includes steps S11, S12, and S13, wherein:

[0072] Step S11: Obtain the gas concentration value and distance from the ground.

[0073] Wherein, the distance from the ground is the vertical distance from the current gas detection device to the ground. In this embodiment, the indoor space does not include areas separated by doors, walls, or other objects. Since household gas is mostly natural gas, the telemetry device in this embodiment is defined as a natural gas detection device, including but not limited to the laser telemetry natural gas leak detector mentioned in this embodiment.

[0074] In this embodiment, the distance from the ground of the current gas detection device, pre-set in the memory, is obtained. A spatial coordinate system is established with the projection of the current gas detection device onto the ground directly below as the origin, and the coordinates of the current gas detection device in the spatial coordinate system are determined. In the spatial coordinate system, any direction is selected to divide the indoor space into several two-dimensional planes. A laser remote sensing natural gas leak detector is used to detect the natural gas concentration in the two-dimensional planes and obtain the two-dimensional concentration distribution of all two-dimensional planes. Then, a tomography algorithm is used to reconstruct the three-dimensional concentration distribution of the indoor space from the two-dimensional concentration distribution of all two-dimensional planes.

[0075] By fitting the spatial coordinate system to the three-dimensional concentration distribution, the gas concentration values ​​corresponding to different spatial coordinates in the indoor space are obtained.

[0076] Step S12: Determine the safe distance from the ground based on the distance from the ground and the gas concentration value.

[0077] The safe distance from the ground is the height above the ground where the current indoor gas concentration value is equal to the preset safe concentration value. The preset safe concentration value should be adjusted according to the actual situation. For example, if the permanent residents in the room where the gas detection device is located are elderly people or children, the preset safe concentration value in this application should be reduced. In order to clearly explain the technical solution in this application, the preset safe concentration value is set to 3000ppm in this embodiment of the application to elaborate on the technical solution.

[0078] In the embodiments of this application, the spatial coordinates at which the gas concentration value in the three-dimensional concentration distribution is equal to the preset safe concentration value are determined. The distance from the ground at the spatial coordinates is determined according to the correspondence standard between the spatial coordinates and the distance from the ground and the origin of the coordinates, and the distance from the ground at the spatial coordinates is taken as the safe distance from the ground.

[0079] For example, if the current gas detection device is 3m above the ground and its corresponding coordinates are (0, 3, 0), and the spatial coordinates of the preset safe concentration value are (2, 2.5, 0), then the safe distance from the ground is 2.5m.

[0080] Step S13: Obtain the emission angle of the laser beam based on the distance from the ground and the safe distance from the ground, and generate a laser emission command to control the current gas detection device to emit an indicator beam.

[0081] The indicator beam is used to inform people in the room of the safe height they can reach; in this application, the indicator beam is a laser beam. The device for emitting the indicator beam is the laser emitter on the current gas detection device, and the device for adjusting the emission angle of the laser beam is a rotating shaft connected to the laser emitter within the current gas detection device.

[0082] Based on the spatial coordinates corresponding to the safe distance from the ground and the spatial coordinates at the safe distance from the ground, i.e., the spatial coordinates corresponding to the safe distance from the ground and the spatial coordinates of the current gas detection device, determine the vector from the current gas detection device to the location where the gas concentration value is the preset safe concentration value, determine the plane passing through the vector in the spatial coordinate system, and among all the planes, determine the plane parallel to the vertical axis, i.e., the plane parallel to the current indoor vertical wall.

[0083] Among all the spatial coordinate lines corresponding to the safe distance from the ground within the defined plane, retain the line perpendicular to the wall and obtain the penetration point of the line on the corresponding wall. Finally, determine the coordinates of the penetration point, and obtain the emission direction of the laser emission command control when sending the indicator beam based on the spatial coordinates of the current gas detection device and the spatial coordinates of the penetration point.

[0084] The safe ground height at which the current indoor gas concentration equals the preset safe concentration is determined by the current indoor gas concentration value and the current distance of the gas detection device from the ground. The emission angle of the laser beam emitted by the gas detection device is determined based on the current distance of the gas detection device from the ground and the safe distance from the ground, so that the laser beam can be used as an indicator beam to divide different danger zones. When people in the room are controlling the accident scene, it indicates the safe height that people in the room can reach, reducing the possibility of accidents.

[0085] Another possible implementation of this application embodiment may include, after step S13, steps S131 (not shown in the figure) and S132 (not shown in the figure), wherein, in step S131, the leakage area is determined based on the gas concentration value.

[0086] The leak area refers to the current gas leak zone inside the room.

[0087] In this embodiment of the application, the extreme point of the current indoor gas concentration value is determined, and the leakage area is determined by the coordinates corresponding to the extreme point in the spatial coordinate system.

[0088] Step S132: Generate a diffused beam emission command based on the emission angle of the laser beam and the leakage area, so as to emit a diffused beam to mark the gas leakage area.

[0089] In this embodiment of the application, the emission angle of the laser beam and the coordinates corresponding to the pole value are determined according to the emission angle of the laser beam and the location of the leak area in the current room, and a diffuse beam emission command is generated to indicate the location of the gas leak.

[0090] Another possible implementation of this application embodiment, step S131 may specifically include: step S13111 (not shown in the figure), step S13112 (not shown in the figure) and step S13113 (not shown in the figure), wherein, in step S13111, an abnormal area is determined based on the gas concentration value and a preset standard.

[0091] The preset standard is a calculation formula used to calculate gas concentration in a spatial coordinate system, namely...

[0092] Within the formula To fit the gas concentration values ​​corresponding to all coordinates in the spatial coordinate system using the least squares method, the concentration field function at the undetermined point in each local concentration field fitting subdomain, i.e., the concentration field function at point p within the equation, is w. i The weights assigned to each local concentration field.

[0093] In this embodiment, the gas concentration values ​​corresponding to all coordinates in the spatial coordinate system are fitted using the least squares method to obtain a concentration field distribution surface. Then, the concentration field distribution surface is segmented into watershed image regions, and extreme points within the local concentration field that meet preset standards are identified. The abnormal areas within the current indoor environment are determined based on the coordinates of these extreme points in the spatial coordinate system.

[0094] Step S13112: Determine the area and relative coordinates of the gas leak area based on the abnormal area and the gas concentration value.

[0095] The relative coordinates are the coordinates corresponding to the gas leak area within a coordinate system established with the current gas detection device as the origin.

[0096] Step S13113: Determine the leakage area based on the area and relative coordinates.

[0097] In this embodiment of the application, the area corresponding to the leak point and the spatial coordinates corresponding to the leak point are determined based on the gas concentration value corresponding to the extreme point in the abnormal region in the three-dimensional concentration distribution and the corresponding spatial coordinates in the spatial coordinate system.

[0098] If the area of ​​the leak point is not larger than the unit volume of space in the spatial coordinate system, then any point in the area of ​​the leak point can be selected as the relative coordinate.

[0099] If the area corresponding to the leak point is larger than the unit volume of space in the spatial coordinate system, then the leak point area that occupies the largest proportion of the unit volume of space is determined in the spatial coordinate system. The volumes of other leak areas besides the determined leak point area are compared to determine the coordinates connecting the other leak areas with the largest volume to the determined leak point area. Finally, one of the determined coordinates is randomly selected as the relative coordinate.

[0100] Specifically, since the detection intensity of gas detection devices on the market is relatively high, gas leaks can generally be detected in the early stages. The area / volume of the leak area is usually measured in centimeters. Therefore, in this embodiment, when determining the relative coordinates of the gas leak location, the leak area is divided into two parts for analysis: the leak point area that occupies the largest proportion of the unit space volume and other leak areas within the leak point area. In practice, other analysis methods can be used to determine the coordinates of the gas leak location, as long as the positioning of the gas leak location coordinates in this application is met.

[0101] The relative coordinates and area of ​​the leak point are bound together, and the binding result is used as the leak area.

[0102] Another possible implementation of this application embodiment, step S132 may specifically include: step S13121 (not shown in the figure), step S13122 (not shown in the figure) and step S13123 (not shown in the figure), wherein, in step S13121, the shortest distance between the relative coordinates corresponding to the leakage area and the laser beam is determined according to the emission angle of the laser beam and the distance from the ground.

[0103] The shortest distance is the shortest line segment distance between the intersection of the plane where the laser beam is located and the vertical wall of the current room, which is determined when the plane is parallel to the vertical wall of the room and the line where the relative coordinates are located.

[0104] In this embodiment of the application, the vector of the laser beam at the time of emission is determined according to the emission angle of the laser beam, and the plane passing through the vector in the coordinate space is determined. Among all the determined planes, the plane parallel to the vertical axis in the spatial coordinate system is selected.

[0105] Determine the shortest distance between the planes obtained by filtering the relative coordinate distances corresponding to the leakage area.

[0106] Step S13122: Determine whether the shortest distance exceeds the preset distance.

[0107] The preset distances include upper and lower distance limits. To prevent excessively large distances between the laser beam and the diffused beam (i.e., excessively large minimum distances) from causing low visibility in the indoor space, restricting movement of people and hindering the handling of indoor gas leak devices, preset distances are set to control and adjust the emission angle of the diffused beam.

[0108] Since most indoor equipment is placed on the ground, and the presence of indoor equipment can lead to different behavioral restrictions for occupants in indoor spaces with the same visibility, the preset distance is divided into upper and lower distance limits. Furthermore, the preset distance can be adjusted based on the physical condition of the occupants and their ability to handle emergencies. For example, if the room with a gas leak is Room A, and the occupants are a 6-year-old child and a 78-year-old elderly person, the preset distance for Room A should be shortened to reduce the possibility of obstruction due to low visibility when occupants in Room A handle gas leak devices, given that children generally have poor ability to handle such emergencies and most elderly people have some degree of vision decline.

[0109] In the embodiments of this application, when the distance between the relative coordinates and the filtered plane is the shortest distance, the coordinates mapped from the relative coordinates to the filtered plane are determined.

[0110] Based on the angle of the laser beam and the current distance of the gas detection device from the ground, a laser beam is simulated on the selected plane, and the selected plane is divided into upper and lower cut-off planes according to the simulated laser beam.

[0111] If the mapped coordinates are located on the upper cutoff plane of the two cutoff planes, then it is determined whether the shortest distance exceeds the upper distance limit of the preset distance. Similarly, if the mapped coordinates are located on the lower cutoff plane of the two cutoff planes, then it is determined whether the shortest distance exceeds the lower distance limit of the preset distance.

[0112] Step S13123, if yes, then determine the emission angle of the astigmatic beam based on the shortest distance and the emission angle of the laser beam, and generate an astigmatic beam emission command based on the emission angle of the astigmatic beam.

[0113] In this embodiment of the application, if the shortest distance exceeds the preset distance, the multiple between the shortest distance and the preset distance is determined.

[0114] The initial emission angle of the astigmatic beam is determined based on the spatial coordinates and relative coordinates of the current gas detection device. If the determined multiple exceeds 2 times, the coordinate difference between the spatial coordinates and relative coordinates of the current gas detection device is taken as the first coordinate difference, and the coordinate difference between the spatial coordinates of the current gas detection device and the spatial coordinates corresponding to the safe distance from the ground is taken as the second coordinate difference. The first coordinate difference is reduced based on the second coordinate difference to reduce the space between the astigmatic beam and the laser beam. Finally, the emission angle of the astigmatic beam is determined based on the reduced coordinate difference.

[0115] In this embodiment, the emission angle of the astigmatic beam is determined based on the shortest distance and the emission angle of the laser beam. Essentially, the astigmatic beam is fitted to the laser beam in the indoor space as a reference to reduce the space between the laser beam and the astigmatic beam, thereby reducing the possibility of inconvenience to indoor personnel due to low visibility when controlling gas leaks indoors.

[0116] One possible implementation of this application embodiment includes steps S1312a (not shown in the figure) and S1312b (not shown in the figure), wherein...

[0117] Step S1312a: If the shortest distance does not exceed the preset distance, then determine the aperture level in the preset astigmatic aperture standard based on the leakage area.

[0118] The preset astigmatism aperture standard is a correspondence between leakage area and aperture level. The aperture level indicates the aperture area obtained when the astigmatism emitter in the current gas detection device emits astigmatic light. In the astigmatism aperture standard, the larger the leakage area, the larger the corresponding aperture level, and the larger the obtained aperture area. For example, if the current indoor area is 5m²... 2 Therefore, the relationship between aperture order and leakage area can be expressed as follows: Aperture order one (aperture area at 3m is 9π cm²) 2 )——[1cm 2 3cm 2 Second-order aperture (aperture area at 3m is 1πm) 2 )——(3cm 2 10cm 2 When setting the astigmatism aperture standard, the correspondence between the aperture grade and the leakage area should be adjusted appropriately. However, during the adjustment process, it should be noted that the aperture area obtained by the adjusted aperture grade in indoor illumination should not exceed 2m². 2 This avoids difficulties in locating the actual gas leak when personnel are indoors, due to the large aperture area.

[0119] In the embodiments of this application, if the shortest distance does not exceed the preset distance, the aperture level corresponding to the leakage area in the preset astigmatic aperture standard is determined.

[0120] Specifically, when adjusting the aperture level of the current gas detection device, it is necessary to adjust it according to the specific structure of the astigmatic emitter inside the current gas detection device. For example, if the astigmatic emitter is a focusing emitter, that is, a spherical emitting mirror, the distance between the focal point and the emitting sphere is changed by adjusting the focal point of the emitting mirror, so as to control the light emitted by the focusing emitter and achieve the effect of changing the aperture area.

[0121] Step S1312b: Generate a diffuse beam emission command based on the relative coordinates and aperture area.

[0122] In this embodiment of the application, a diffuse beam emission command is generated based on the obtained aperture area and relative coordinates to control the current gas detection device to emit a diffuse beam to the relative coordinates.

[0123] One possible implementation of this application embodiment includes a method that further comprises: step S1a (not shown in the figure), wherein,

[0124] In step S1a, if the emission angle of the laser beam is within the preset danger range, a warning message is generated and sent to the designated device.

[0125] The preset danger zone is [0°, 79°]. When the laser beam emission angle is 0°, the laser beam emitted by the current gas detection device shines perpendicularly onto the ground. The current gas detection device is installed at a height of approximately 2 meters when detecting gases less dense than air. However, gas detection devices are typically installed in areas where gas is readily available, such as kitchens, and in most homes, the installation height is usually less than 8 meters. 2 The safe distance from the ground is about 1m when the laser beam is emitted downwards and the emission angle is less than 79°, based on the installation height and the area of ​​the kitchen and other areas where gas is directly used. Therefore, in this embodiment, the preset danger zone is set to [0°, 79°].

[0126] In this embodiment of the application, it is determined whether the emission angle in the laser emission command is within a preset danger range. If so, a warning message is generated and sent to the designated device according to the reserved communication ID.

[0127] Specifically, the communication ID can be a mobile phone number or a personal account on social media, and the designated device can be a mobile phone, watch, or computer.

[0128] One possible implementation of this application embodiment includes step S1a, which may specifically include: step S1a1 (not shown in the figure), step S1a2 (not shown in the figure), and step S1a3 (not shown in the figure), wherein,

[0129] Step S1a1: Obtain the current time.

[0130] The current time is the point in time when the emission angle of the laser beam is determined.

[0131] Step S1a2: Associate the current time with the emission angle of the laser beam, and generate a warning message based on the association result.

[0132] In this embodiment of the application, the current time is obtained, and the current time is bound to the corresponding laser beam emission angle. A warning message is generated based on the binding result. The form of the warning message is not limited.

[0133] Step S1a3: Control the sending of warning information to the designated device.

[0134] In this embodiment of the application, the warning information is sent to the designated device through the reserved communication ID.

[0135] The above embodiments describe a gas detection method with lighting function from the perspective of method flow. The following embodiments describe a gas detection device with lighting function from the perspective of virtual module or virtual unit. For details, please refer to the following embodiments.

[0136] This application provides a gas detection device 20 with lighting function, such as... Figure 2 As shown, the gas detection device 20 with lighting function may specifically include: an information acquisition module 21, a distance determination module 22, and an angle determination module 23, wherein,

[0137] The information acquisition module 21 is used to acquire the gas concentration value and the distance from the ground, where the distance from the ground is the vertical distance from the current gas detection device to the ground.

[0138] The distance determination module 22 is used to determine the safe distance from the ground based on the distance from the ground and the gas concentration value. The safe distance from the ground is the height above the ground where the current indoor gas concentration value is equal to the preset safe concentration value.

[0139] The angle determination module 23 is used to obtain the emission angle of the laser beam based on the distance from the ground and the safe distance from the ground, and generate a laser emission command to control the current gas detection device to emit an indicator beam. The indicator beam is used to inform the people in the room of the safe height that can be reached.

[0140] In another possible implementation of this application embodiment, the apparatus 20 further includes: a region determination module and a astigmatic beam generation module, wherein...

[0141] The area determination module is used to determine the leakage area based on the gas concentration value. The leakage area is the gas leakage area in the current room.

[0142] The first-level astigmatic beam module is used to generate astigmatic beam emission commands based on the emission angle of the laser beam and the leakage area, so as to emit astigmatic beams to mark the leakage area.

[0143] Another possible implementation of this application embodiment, where the area determination module determines the leak area based on the gas concentration value, specifically includes:

[0144] The abnormal area is determined based on the gas concentration value and preset standards;

[0145] The area and relative coordinates of the gas leak area are determined based on the abnormal area and the gas concentration value. The relative coordinates are the coordinates corresponding to the gas leak area in a coordinate system established with the current gas detection device as the origin.

[0146] The leakage area is determined based on the area and relative coordinates.

[0147] Another possible implementation of this application embodiment, whereby the astigmatic beam generation module generates an astigmatic beam emission command based on the emission angle and leakage area of ​​the laser beam, is specifically used for:

[0148] The shortest distance between the relative coordinates of the leak area and the laser beam is determined based on the emission angle and distance from the ground of the laser beam. The shortest distance is the line segment distance from the point where the plane where the laser beam is located intersects the straight line passing through the relative coordinates to the point where the line segment is shortest when the plane is parallel to the vertical wall of the current room.

[0149] Determine whether the shortest distance exceeds the preset distance;

[0150] If so, the emission angle of the astigmatic beam is determined based on the shortest distance and the emission angle of the laser beam, and an astigmatic beam emission command is generated based on the emission angle of the astigmatic beam.

[0151] In another possible implementation of this application embodiment, the device 20 further includes: a determining aperture module and a secondary astigmatic beam module, wherein...

[0152] The aperture module is used to determine the aperture level in the preset astigmatic aperture standard based on the leakage area. The preset astigmatic aperture standard is the corresponding standard between the leakage area and the aperture level. The aperture level is the aperture area level obtained by the current gas detection device when emitting astigmatic light.

[0153] The secondary astigmatic beam module is used to generate astigmatic beam emission commands based on relative coordinates and aperture scale area.

[0154] In another possible implementation of this application embodiment, the device 20 further includes: a warning information generation module, wherein the warning information generation module is used to generate warning information and send the warning information to a designated device.

[0155] Another possible implementation of this application embodiment, whereby the warning information generation module, when generating warning information, is specifically used for:

[0156] Get the current time;

[0157] The current moment is correlated with the emission angle of the laser beam, and a warning message is generated based on the correlation result;

[0158] Control the sending of alert messages to designated devices.

[0159] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the gas detection device 20 with lighting function described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0160] This application provides an electronic device, such as... Figure 3 As shown, Figure 3 The illustrated electronic device 300 includes a processor 301 and a memory 303. The processor 301 and the memory 303 are connected, for example, via a bus 302. Optionally, the electronic device 300 may also include a transceiver 304. It should be noted that in practical applications, the transceiver 304 is not limited to one type, and the structure of this electronic device 300 does not constitute a limitation on the embodiments of this application.

[0161] Processor 301 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 301 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0162] Bus 302 may include a pathway for transmitting information between the aforementioned components. Bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 302 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 3 The symbol is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0163] The memory 303 may be a ROM (Read Only Memory) or other type of static storage device capable of storing static information and instructions, RAM (Random Access Memory) or other type of dynamic storage device capable of storing information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto.

[0164] The memory 303 is used to store application code that executes the solution of this application, and its execution is controlled by the processor 301. The processor 301 is used to execute the application code stored in the memory 303 to implement the content shown in the foregoing method embodiments.

[0165] Electronic devices include, but are not limited to: mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle terminals (such as in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Servers can also be included. Figure 3 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0166] This application provides a computer-readable storage medium storing a computer program that, when run on a computer, enables the computer to execute the corresponding content in the aforementioned method embodiments.

[0167] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0168] The above are only some embodiments of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A gas detection method with lighting function, characterized in that, include: Obtain the gas concentration value and the distance from the ground, where the distance from the ground is the vertical distance from the current gas detection device to the ground; The safe distance from the ground is determined based on the distance from the ground and the gas concentration value. The safe distance from the ground is the height above the ground where the current indoor gas concentration value is equal to the preset safe concentration value. The emission angle of the laser beam is obtained based on the distance from the ground and the safe distance from the ground, and a laser emission command is generated to control the current gas detection device to emit an indicator beam. The indicator beam is used to inform the people in the room of the safe height that can be reached. The step of obtaining the emission angle of the laser beam based on the distance from the ground and the safe distance from the ground further includes: The leakage area is determined based on the gas concentration value, and the leakage area is the current gas leakage area in the room; A command to emit a diffused beam is generated based on the emission angle of the laser beam and the leakage area, so as to emit a diffused beam to mark the leakage area; The step of determining the leak area based on the gas concentration value includes: The abnormal area is determined based on the gas concentration value and the preset standard; The area and relative coordinates of the gas leak area are determined based on the abnormal area and the gas concentration value. The relative coordinates are the coordinates corresponding to the gas leak area in a coordinate system established with the current gas detection device as the origin. The leakage area is determined based on the area and the relative coordinates; The step of generating a stray beam emission command based on the emission angle of the laser beam and the leakage area includes: The shortest distance between the relative coordinates corresponding to the leakage area and the laser beam is determined based on the emission angle of the laser beam and the distance from the ground. The shortest distance is the line segment distance corresponding to the shortest line segment from the point where the plane where the laser beam is located intersects the straight line passing through the relative coordinates to the relative coordinates when the plane is parallel to the vertical wall of the current room. Determine whether the shortest distance exceeds a preset distance; If so, the emission angle of the astigmatic beam is determined based on the shortest distance and the emission angle of the laser beam, and the emission command of the astigmatic beam is generated based on the emission angle of the astigmatic beam.

2. The gas detection method with lighting function according to claim 1, characterized in that, The method further includes: If the shortest distance does not exceed the preset distance, the aperture level in the preset astigmatic aperture standard is determined according to the leakage area. The preset astigmatic aperture standard is the corresponding standard of the leakage area and the aperture level. The aperture level is the aperture area level obtained by the current gas detection device when emitting astigmatic light. A command to emit a diffused beam is generated based on the relative coordinates and the aperture level.

3. The gas detection method with lighting function according to claim 1, characterized in that, The method further includes: If the emission angle of the laser beam is within a preset danger range, a warning message is generated and sent to a designated device.

4. The gas detection method with lighting function according to claim 3, characterized in that, The generated warning information includes: Get the current time; The current moment is correlated with the emission angle of the laser beam, and the warning information is generated based on the correlation result; Control the sending of the warning information to the designated device.

5. A gas detection device with illumination function, employing the gas detection method with illumination function as described in any one of claims 1-4, characterized in that, include: The information acquisition module is used to acquire gas concentration values ​​and distance from the ground, wherein the distance from the ground is the vertical distance from the current gas detection device to the ground; The distance determination module is used to determine a safe distance from the ground based on the distance from the ground and the gas concentration value. The safe distance from the ground is the height above the ground where the gas concentration value in the current indoor environment is equal to a preset safe concentration value. An angle determination module is used to obtain the emission angle of the laser beam based on the distance from the ground and the safe distance from the ground, and generate a laser emission command to control the current gas detection device to emit an indicator beam, which is used to inform the people in the room of the safe height they can reach.

6. An electronic device, characterized in that, include: At least one processor; Memory; At least one application, wherein the at least one application is stored in memory and configured to be executed by at least one processor, said at least one application being configured to: perform the gas detection method with lighting function as described in any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that, It stores a computer program, which, when executed in a computer, causes the computer to perform the gas detection method with lighting function as described in any one of claims 1 to 4.