Mine lamp monitoring method and system, computer equipment and storage medium
By obtaining and analyzing the data change information of the mine lamp, determining the associated modules and test cases, and conducting accurate testing and alarm processing, the problems of poor initiative and low monitoring efficiency in mine lamp monitoring are solved, and the testing efficiency and system reliability are improved.
Patent Information
- Application Number
- CN202411728216.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-03-21
AI Technical Summary
The initiative in mining lamp monitoring is poor, the problem is lagging behind, and the monitoring efficiency and accuracy are low.
By obtaining data change information of the mining lamp to be monitored, analyzing and determining the associated modules and test cases, filtering the test scope, conducting unit tests, integrating tests and system tests, generating test reports, and recording and sending alarm information in real time.
Effectively narrow the scope of testing, improve testing efficiency and accuracy, timely discover and position problems, and improve the reliability and safety of the mining lamp system.
Smart Images

Figure CN119669062A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of remote monitoring technology, and in particular to a mining lamp monitoring method, system, computer equipment and storage medium. Background Art
[0002] With the widespread use of mining lamps in mining operations, the stability and safety of their operation are particularly important. Mining lamps are the core lighting equipment for mining workers, and their failure may directly threaten the safety of operations and even cause safety accidents. Therefore, monitoring the operating status of mining lamps, timely detecting potential abnormalities, and quickly responding have become important links in mine safety management.
[0003] Existing mining lamp monitoring systems usually adopt a passive monitoring method, that is, the system can only respond when the mining lamp fails or is abnormal, but cannot actively monitor data and code changes, which poses certain safety risks. Summary of the invention
[0004] The purpose of the embodiments of the present application is to propose a mining lamp monitoring method, system, computer equipment and storage medium to solve the problems of poor initiative, delayed problem detection, and low monitoring efficiency and accuracy in mining lamp monitoring.
[0005] In order to solve the above technical problems, the embodiment of the present application provides a mining lamp monitoring method, which adopts the following technical solution:
[0006] A mining lamp monitoring method comprises the following steps:
[0007] Obtain data change information of the mining lamp to be monitored;
[0008] Analyze the data change information to obtain associated modules and test cases corresponding to the data change information;
[0009] Determine the test scope according to the associated module, the test case and the preset screening rule, and screen and obtain the target test case;
[0010] The test is performed according to the test scope and the target test case, and a test report corresponding to the mining lamp to be monitored is generated.
[0011] Furthermore, in the step of performing the test according to the test range and the target test case and generating a test report corresponding to the mining lamp to be monitored, the testing step specifically includes:
[0012] After determining the test scope, selecting the relevant test cases according to the test scope;
[0013] Perform unit testing, integration testing and system testing on the target test cases;
[0014] Record the results of each test link in real time, including whether the test passed or not, execution time, and error information;
[0015] The test results are summarized in the test report.
[0016] Furthermore, the step of analyzing the data change information to obtain the associated modules and test cases corresponding to the data change information specifically includes:
[0017] Analyze the code change information of the monitored mining lamp and identify the affected modules;
[0018] Determine the dependent modules of the affected module according to the preset dependency relationship rules;
[0019] A set of test cases associated with the affected module and its dependent modules is established to form a test scope.
[0020] Furthermore, after the step of obtaining the data change information of the mining lamp to be monitored, the method further includes:
[0021] Analyzing abnormalities of the data change information;
[0022] When an abnormal situation is detected, a corresponding alarm message is generated;
[0023] The generated alarm information is sent to the relevant responsible personnel via SMS, email or system message, and the alarm content is recorded in the system log.
[0024] Furthermore, the step of sending the generated alarm information to relevant responsible personnel via SMS, email or system message, and recording the alarm content in the system log specifically includes:
[0025] When an abnormal situation is detected, the type, occurrence time, relevant data points and impact range of the abnormal situation are extracted to generate complete alarm information;
[0026] According to the severity of the abnormal situation, select the appropriate notification method, determine the list of recipients, and send alarm information one by one;
[0027] The alarm information is stored in the system log, including the alarm time, abnormal description, sending status and receiving confirmation status. If there are repeated alarms, the records are merged and the duration is marked;
[0028] Check the confirmation of the recipient. If not, resend after a set time interval.
[0029] Furthermore, after the step of performing the test according to the test range and the target test case and generating a test report corresponding to the mining lamp to be monitored, the method further includes:
[0030] Parse the data in the test report to extract data, strategies, features and supplementary information of all modules of the mining lamp to be monitored;
[0031] Generate reference relationships between all modules of the mining lamp to be monitored through one-way parsing;
[0032] A bidirectional relationship reference tree is established according to the parsed reference relationship, and a visual interface is provided for user query and retrieval.
[0033] Furthermore, the step of obtaining the data change information of the mining lamp to be monitored specifically includes:
[0034] Automatically collect the operating status data and environmental parameter data of the mining lamp to be monitored at set time intervals;
[0035] Record code changes in real time, including specific information of additions, deletions, and modifications.
[0036] In order to solve the above technical problems, the embodiment of the present application also provides a mining lamp monitoring system, which adopts the following technical solution:
[0037] A mining lamp monitoring system, comprising:
[0038] An acquisition module is used to obtain data change information of the mining lamp to be monitored;
[0039] An analysis module, used to analyze the data change information to obtain associated modules and test cases corresponding to the data change information;
[0040] A screening module, used to determine the test scope according to the association module, the test cases and preset screening rules, and screen to obtain target test cases;
[0041] The test module is used to perform a test according to the test scope and the target test case, and generate a test report corresponding to the mining lamp to be monitored.
[0042] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:
[0043] A computer device includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the above-mentioned mining lamp monitoring method when executing the computer-readable instructions.
[0044] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:
[0045] A computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the mining lamp monitoring method described above are implemented.
[0046] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0047] The mining lamp monitoring method disclosed in the present application obtains data change information of the mining lamp to be monitored; then, the data change information is analyzed to obtain the associated modules and test cases corresponding to the data change information; then, the test scope is determined according to the associated modules, the test cases and the preset screening rules, and the target test cases are screened; finally, the test is performed according to the test scope and the target test cases to generate a test report corresponding to the mining lamp to be monitored. The present application obtains the operating status data, environmental parameter data and code change information of the mining lamp to be monitored, combines the analysis and screening of the data change information, accurately locates the associated modules and the target test cases, and achieves the effect of effectively narrowing the test scope and improving the test efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0049] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0050] Figure 2 is a flow chart of an embodiment of a mining lamp monitoring method according to the present application;
[0051] Figure 3 is a structural schematic diagram of an embodiment of a mining lamp monitoring system according to the present application;
[0052] Figure 4 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION
[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0054] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0055] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0056] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0057] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0058] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, etc.
[0059] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0060] It should be noted that the mining lamp monitoring method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the mining lamp monitoring system is generally arranged in the server / terminal device.
[0061] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0062] Continue to refer Figure 2 , shows a flow chart of an embodiment of a mining lamp monitoring method according to the present application. The mining lamp monitoring method comprises the following steps:
[0063] Step S201, obtaining data change information of the mining lamp to be monitored.
[0064] In this embodiment, the mining lamp monitoring method is executed on an electronic device (eg Figure 1 The server / terminal device shown in the figure can send or receive data through a wired connection or a wireless connection. It should be noted that the above wireless connection methods may include but are not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future.
[0065] In this embodiment, the system automatically collects the operating status data and environmental parameter data of the mining lamp through timed tasks or event triggers, including the working voltage, current, light intensity, temperature, humidity, etc. of the equipment. At the same time, the system monitors the updated content in the code version library and records the specific information of each code modification, such as the modified file, line number and modification type (addition, deletion or modification).
[0066] Step S202: Analyze the data change information to obtain associated modules and test cases corresponding to the data change information.
[0067] In this embodiment, first, the code change information is parsed to identify the modules corresponding to the modified code; then, based on the dependency rules between modules (such as call chains, logical dependencies, etc.), the directly affected modules and dependent modules are located; and according to the affected module set, the corresponding test cases are associated.
[0068] Step S203, determining the test scope according to the associated module, the test cases and preset screening rules, and screening to obtain target test cases.
[0069] In this embodiment, based on the analysis results and combined with the test strategy (such as prioritizing high-risk modules), the test scope is determined; screening rules (such as functional coverage, code line coverage) are used to filter the target test case set to exclude redundant or irrelevant test cases.
[0070] Step S204, performing a test according to the test scope and the target test case, and generating a test report corresponding to the mining lamp to be monitored.
[0071] In this embodiment, the system performs unit testing, integration testing, and system testing according to a set of test cases, and records the results in real time during the testing process, including whether the test passes or fails, execution time, and error logs. Finally, a structured test report is generated for analysis by operation and maintenance personnel and developers.
[0072] This application obtains the operating status data, environmental parameter data and code change information of the monitored mining lamp, combines the analysis and screening of the data change information, accurately locates the related modules and target test cases, and effectively narrows the test scope and improves test efficiency and accuracy.
[0073] In some optional implementations of this embodiment, in the above step of performing the test according to the test range and the target test case and generating a test report corresponding to the mining lamp to be monitored, the testing step specifically includes:
[0074] After determining the test scope, selecting the relevant test cases according to the test scope;
[0075] Perform unit testing, integration testing and system testing on the target test cases;
[0076] Record the results of each test link in real time, including whether the test passed or not, execution time, and error information;
[0077] The test results are summarized in the test report.
[0078] In this embodiment, according to the modules in the test scope, the test cases related to them are screened, and the test cases in high-risk areas are given priority to ensure the coverage of key functions. Unit testing is to independently verify the basic functions of each module to ensure that it can run correctly under a single condition; integration testing is to verify whether the interaction between modules is normal and ensure the stability of the dependencies; system testing is to verify the functional integrity and stability of the entire system in a simulated real operating environment. The system automatically captures and records the results of the test links, including pass or fail, execution time, error type and detailed logs. All test results are summarized and associated with test cases and modules. The results of each test link are stored in a structured manner to generate a complete test report, including coverage, problems found and test suggestions.
[0079] This application conducts unit testing, integration testing and system testing on the target test cases after clarifying the test scope, records the test results in real time and generates a test report in summary, which helps to comprehensively evaluate the functional integrity and compatibility of the module; real-time recording of test results can also timely discover and locate problems, improve test efficiency and accuracy of results, and provide a guarantee for the reliable operation of the mining lamp system.
[0080] In some optional implementations of this embodiment, the step of analyzing the data change information to obtain the associated modules and test cases corresponding to the data change information specifically includes:
[0081] Analyze the code change information of the monitored mining lamp and identify the affected modules;
[0082] Determine the dependent modules of the affected module according to the preset dependency relationship rules;
[0083] A set of test cases associated with the affected module and its dependent modules is established to form a test scope.
[0084] In this embodiment, a code parsing tool is used to analyze the scope of changes submitted each time, identify the code modules affected by the changes, and the module dependency rules include direct call relationships, function reference chains, shared data structures, etc. Through rule analysis, dependent modules are identified to form a module dependency chain. By finding the test cases of the affected modules and the test cases of related modules, a complete test case set is generated, and further combined with the test strategy, the test case set is optimized to remove redundancy.
[0085] This application analyzes data change information, identifies the affected modules and determines their dependent modules, further establishes a set of test cases and forms a test scope, thereby effectively identifying areas that may be affected and achieving precise testing; the analysis of dependencies ensures the comprehensiveness of the test, avoids missing potential problems, and provides strong support for the stability and reliability of the mining lamp system.
[0086] In some optional implementations of this embodiment, after the step of obtaining the data change information of the mining lamp to be monitored, the method further includes:
[0087] Analyzing abnormalities of the data change information;
[0088] When an abnormal situation is detected, a corresponding alarm message is generated;
[0089] The generated alarm information is sent to the relevant responsible personnel via SMS, email or system message, and the alarm content is recorded in the system log.
[0090] In this embodiment, the system performs threshold detection or pattern analysis on the collected change information to determine whether there is an abnormal situation (such as an operating status parameter exceeding the standard or a code change not complying with the rules). Extract key data of the abnormality, including the abnormality type, time, involved modules and potential impact range, and generate structured alarm information containing the above information for subsequent sending and storage. Depending on the severity of the abnormality, the system selects SMS, email or system message to notify the relevant person in charge, and records the sending situation in the log.
[0091] This application generates and sends alarm information by analyzing abnormal situations of data change information, and records it in the system log, so as to achieve rapid response and traceability to abnormal events; the instant transmission of alarm information improves the efficiency of problem response, and the log record provides a basis for subsequent problem analysis and system improvement, thereby further improving the safety and reliability of mining lamp monitoring.
[0092] In some optional implementations of this embodiment, the steps of sending the generated alarm information to relevant responsible personnel via SMS, email or system message, and recording the alarm content in the system log specifically include:
[0093] When an abnormal situation is detected, the type, occurrence time, relevant data points and impact range of the abnormal situation are extracted to generate complete alarm information;
[0094] According to the severity of the abnormal situation, select the appropriate notification method, determine the list of recipients, and send alarm information one by one;
[0095] The alarm information is stored in the system log, including the alarm time, abnormal description, sending status and receiving confirmation status. If there are repeated alarms, the records are merged and the duration is marked;
[0096] Check the confirmation of the recipient. If not, resend after a set time interval.
[0097] In this embodiment, after an abnormality is detected, the type, time, related modules and impact range of the abnormality are extracted to generate an alarm information entry; the system generates a list of recipients based on the severity of the abnormality and the configuration of the module responsible person, and selects the most suitable notification method; the log records the alarm content, including the abnormality type, alarm time, sending status and receiving confirmation status, merges repeated alarms, and marks the duration to avoid excessive redundant records. The system regularly checks the confirmation status of the alarm recipient. If it is not confirmed, it will be resent at the set interval until it is confirmed.
[0098] This application enhances the accuracy and timeliness of alarm processing by extracting detailed information of abnormal situations and generating complete alarm information, selecting appropriate notification methods according to the severity of the abnormality, checking the confirmation of the receiving personnel and resending unconfirmed alarms; the merged records of duplicate alarms reduce redundant information, and continuous tracking ensures that abnormal problems are effectively resolved, providing support for the efficient operation of the mining lamp monitoring system.
[0099] In some optional implementations of this embodiment, after the above step of performing the test according to the test range and the target test case and generating the test report corresponding to the mining lamp to be monitored, the method further includes:
[0100] Parse the data in the test report to extract data, strategies, features and supplementary information of all modules of the mining lamp to be monitored;
[0101] Generate reference relationships between all modules of the mining lamp to be monitored through one-way parsing;
[0102] A bidirectional relationship reference tree is established according to the parsed reference relationship, and a visual interface is provided for user query and retrieval.
[0103] In this embodiment, the system extracts the functional characteristics, strategies and dependency information of each module by parsing the data in the test report, and identifies the reference relationship between modules, such as the module call chain and data interaction path, through one-way parsing. Based on the module reference relationship, a two-way relationship tree is constructed to represent the interaction and dependency between modules. Based on the module reference relationship, a two-way relationship tree is constructed to represent the interaction and dependency between modules.
[0104] This application parses the data in the test report, extracts module data, strategies, features and completion information, generates reference relationships between modules, further establishes a bidirectional relationship reference tree and provides a visual interface to facilitate users to intuitively query and retrieve dependencies between modules; this method not only improves the transparency and ease of use of the system, but also provides reliable technical support for data analysis, fault diagnosis and system optimization.
[0105] In some optional implementations of this embodiment, the above step of obtaining the data change information of the mining lamp to be monitored specifically includes:
[0106] Automatically collect the operating status data and environmental parameter data of the mining lamp to be monitored at set time intervals;
[0107] Record code changes in real time, including specific information of additions, deletions, and modifications.
[0108] In this embodiment, the system automatically collects operating status and environmental parameters at set time intervals, including device temperature, power, light intensity, etc. The code changes are recorded in real time, including the changed file, line number and change type (addition, deletion, modification), and stored as a historical log for subsequent analysis.
[0109] This application can comprehensively grasp the operating status and code changes of the mining lamp by regularly collecting the operating status data and environmental parameter data of the mining lamp, and recording the code change information in real time; the real-time and comprehensive nature of this data provides a basis for subsequent data analysis, anomaly detection and precise testing, thereby improving the overall intelligence level and operating efficiency of the monitoring system.
[0110] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0111] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0112] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0113] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0114] Further references Figure 3 , as a response to the above Figure 2 The present application provides an embodiment of a mining lamp monitoring system, which is similar to Figure 2 Corresponding to the method embodiment shown, the system can be specifically applied to various electronic devices.
[0115] like Figure 3 As shown, the mining lamp monitoring system 300 described in this embodiment includes: an acquisition module 301, an analysis module 302, a screening module 303 and a testing module 304. Among them:
[0116] An acquisition module 301 is used to acquire data change information of a mining lamp to be monitored;
[0117] An analysis module 302 is used to analyze the data change information to obtain associated modules and test cases corresponding to the data change information;
[0118] A screening module 303 is used to determine the test scope according to the association module, the test case and the preset screening rule, and screen to obtain the target test case;
[0119] The testing module 304 is used to perform a test according to the test scope and the target test case, and generate a test report corresponding to the mining lamp to be monitored.
[0120] The mining lamp monitoring system provided in this application obtains the operating status data, environmental parameter data and code change information of the mining lamp to be monitored, combines the analysis and screening of the data change information, and accurately locates the related modules and target test cases, thereby effectively narrowing the test scope and improving the test efficiency and accuracy.
[0121] In some optional implementations of this embodiment, the testing module 304 is further configured to:
[0122] After determining the test scope, selecting the relevant test cases according to the test scope;
[0123] Perform unit testing, integration testing and system testing on the target test cases;
[0124] Record the results of each test link in real time, including whether the test passed or not, execution time, and error information;
[0125] The test results are summarized in the test report.
[0126] The mining lamp monitoring system provided in this application performs unit testing, integration testing and system testing on target test cases after clarifying the test scope, records the test results in real time and summarizes and generates a test report, which helps to comprehensively evaluate the functional integrity and compatibility of the module; real-time recording of test results can also promptly discover and locate problems, improve test efficiency and the accuracy of results, and provide a guarantee for the reliable operation of the mining lamp system.
[0127] In some optional implementations of this embodiment, the analysis module 302 is further configured to:
[0128] Analyze the code change information of the monitored mining lamp and identify the affected modules;
[0129] Determine the dependent modules of the affected module according to the preset dependency relationship rules;
[0130] A set of test cases associated with the affected module and its dependent modules is established to form a test scope.
[0131] The mining lamp monitoring system provided in this application analyzes data change information, identifies the affected modules and determines their dependent modules, further establishes a set of test cases and forms a test scope, thereby effectively identifying areas that may be affected and achieving precise testing; the analysis of dependencies ensures the comprehensiveness of the test, avoids missing potential problems, and provides strong support for the stability and reliability of the mining lamp system operation.
[0132] In some optional implementations of this embodiment, the acquisition module 301 is further used to:
[0133] Analyzing abnormalities of the data change information;
[0134] When an abnormal situation is detected, a corresponding alarm message is generated;
[0135] The generated alarm information is sent to the relevant responsible personnel via SMS, email or system message, and the alarm content is recorded in the system log.
[0136] The mining lamp monitoring system provided in the present application generates and sends alarm information by analyzing abnormal situations of data change information, and records it in the system log, thereby realizing rapid response and traceability to abnormal events; the instant transmission of alarm information improves the efficiency of problem response, and the log record provides a basis for subsequent problem analysis and system improvement, thereby further improving the safety and reliability of mining lamp monitoring.
[0137] In some optional implementations of this embodiment, the acquisition module 301 is further used to:
[0138] When an abnormal situation is detected, the type, occurrence time, relevant data points and impact range of the abnormal situation are extracted to generate complete alarm information;
[0139] According to the severity of the abnormal situation, select the appropriate notification method, determine the list of recipients, and send alarm information one by one;
[0140] The alarm information is stored in the system log, including the alarm time, abnormal description, sending status and receiving confirmation status. If there are repeated alarms, the records are merged and the duration is marked;
[0141] Check the confirmation of the recipient. If not, resend after a set time interval.
[0142] The mining lamp monitoring system provided in this application enhances the accuracy and timeliness of alarm processing by extracting detailed information of abnormal situations and generating complete alarm information, selecting appropriate notification methods according to the severity of the abnormality, checking the confirmation status of the receiving personnel and resending unconfirmed alarms; the merged records of duplicate alarms reduce redundant information, and continuous tracking ensures that abnormal problems are effectively resolved, providing support for the efficient operation of the mining lamp monitoring system.
[0143] In some optional implementations of this embodiment, the testing module 304 is further configured to:
[0144] Parse the data in the test report to extract data, strategies, features and supplementary information of all modules of the mining lamp to be monitored;
[0145] Generate reference relationships between all modules of the mining lamp to be monitored through one-way parsing;
[0146] A bidirectional relationship reference tree is established according to the parsed reference relationship, and a visual interface is provided for user query and retrieval.
[0147] The mining lamp monitoring system provided in this application parses the data in the test report, extracts module data, strategies, features and completion information, and generates reference relationships between modules, further establishes a bidirectional relationship reference tree and provides a visual interface, so that users can intuitively query and retrieve the dependencies between modules; this method not only improves the transparency and ease of use of the system, but also provides reliable technical support for data analysis, fault diagnosis and system optimization.
[0148] In some optional implementations of this embodiment, the acquisition module 301 is further used to:
[0149] Automatically collect the operating status data and environmental parameter data of the mining lamp to be monitored at set time intervals;
[0150] Record code changes in real time, including specific information of additions, deletions, and modifications.
[0151] The mining lamp monitoring system provided in the present application can comprehensively grasp the operating status and code changes of the mining lamp by regularly collecting the operating status data and environmental parameter data of the mining lamp and recording the code change information in real time; the real-time and comprehensive nature of this data provides a basis for subsequent data analysis, anomaly detection and precise testing, thereby improving the overall intelligence level and operating efficiency of the monitoring system.
[0152] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.
[0153] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected and communicated through a system bus. It should be noted that the figure only shows a computer device 4 with components 41-43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0154] The computer device may be a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with the user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0155] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk equipped on the computer device 4, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions of the mining lamp monitoring method, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.
[0156] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run the computer-readable instructions stored in the memory 41 or process data, such as computer-readable instructions for running the mining lamp monitoring method.
[0157] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.
[0158] The computer equipment provided in this application obtains the operating status data, environmental parameter data and code change information of the monitored mining lamp, combines the analysis and screening of the data change information, accurately locates the related modules and target test cases, and effectively narrows the test scope and improves the test efficiency and accuracy.
[0159] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the mining lamp monitoring method as described above.
[0160] The computer-readable storage medium provided in the present application obtains the operating status data, environmental parameter data and code change information of the monitored mining lamp, combines the analysis and screening of the data change information, accurately locates the associated modules and target test cases, and achieves the effect of effectively narrowing the test scope and improving the test efficiency and accuracy.
[0161] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0162] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A mining lamp monitoring method, characterized in that: The steps include: Obtain data change information of the mining lamp to be monitored; Analyze the data change information to obtain associated modules and test cases corresponding to the data change information; Determine the test scope according to the associated module, the test case and the preset screening rule, and screen and obtain the target test case; The test is performed according to the test scope and the target test case, and a test report corresponding to the mining lamp to be monitored is generated.
2. The mining lamp monitoring method according to claim 1, characterized in that: In the step of performing the test according to the test scope and the target test case and generating a test report corresponding to the mining lamp to be monitored, the test step specifically includes: After determining the test scope, selecting the relevant test cases according to the test scope; Perform unit testing, integration testing and system testing on the target test cases; Record the results of each test link in real time, including whether the test passed or not, execution time, and error information; The test results are summarized in the test report.
3. The mining lamp monitoring method according to claim 2, characterized in that: The step of analyzing the data change information to obtain the associated modules and test cases corresponding to the data change information specifically includes: Analyze the code change information of the monitored mining lamp and identify the affected modules; Determine the dependent modules of the affected module according to the preset dependency relationship rules; A set of test cases associated with the affected module and its dependent modules is established to form a test scope.
4. The mining lamp monitoring method according to claim 1, characterized in that: After the step of obtaining the data change information of the mining lamp to be monitored, the method further includes: Analyzing abnormalities of the data change information; When an abnormal situation is detected, a corresponding alarm message is generated; The generated alarm information is sent to the relevant responsible personnel via SMS, email or system message, and the alarm content is recorded in the system log.
5. The mining lamp monitoring method according to claim 4, characterized in that: The step of sending the generated alarm information to relevant responsible personnel via SMS, email or system message, and recording the alarm content in the system log specifically includes: When an abnormal situation is detected, the type, occurrence time, relevant data points and impact range of the abnormal situation are extracted to generate complete alarm information; According to the severity of the abnormal situation, select the appropriate notification method, determine the list of recipients, and send alarm information one by one; The alarm information is stored in the system log, including the alarm time, abnormal description, sending status and receiving confirmation status. If there are repeated alarms, the records are merged and the duration is marked; Check the confirmation of the recipient. If not, resend after a set time interval.
6. The mining lamp monitoring method according to claim 1, characterized in that: After the step of performing the test according to the test range and the target test case and generating a test report corresponding to the mining lamp to be monitored, the method further includes: Parse the data in the test report to extract data, strategies, features and supplementary information of all modules of the mining lamp to be monitored; Generate reference relationships between all modules of the mining lamp to be monitored through one-way parsing; A bidirectional relationship reference tree is established according to the parsed reference relationship, and a visual interface is provided for user query and retrieval.
7. The mining lamp monitoring method according to any one of claims 1 to 6, characterized in that: The step of obtaining the data change information of the mining lamp to be monitored specifically includes: Automatically collect the operating status data and environmental parameter data of the mining lamp to be monitored at set time intervals; Record code changes in real time, including specific information of additions, deletions, and modifications.
8. A mining lamp monitoring system, characterized in that: include: An acquisition module is used to obtain data change information of the mining lamp to be monitored; An analysis module, used to analyze the data change information to obtain associated modules and test cases corresponding to the data change information; A screening module, used to determine the test scope according to the association module, the test cases and preset screening rules, and screen to obtain target test cases; The test module is used to perform a test according to the test scope and the target test case, and generate a test report corresponding to the mining lamp to be monitored.
9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the mining lamp monitoring method according to any one of claims 1 to 7 when executing the computer-readable instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the mining lamp monitoring method according to any one of claims 1 to 7 are implemented.