Inspection method, inspection equipment and inspection system
Through automated requests and command execution between inspection equipment and monitoring equipment, automated inspections of the hospital are realized, and the problems of high cost of manual inspection and difficulty in automatic inspection are solved, efficiency is improved and information security is ensured.
Patent Information
- Application Number
- CN202411190040.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-06
AI Technical Summary
In the prior art, the hospital's inspection method relies on manual operations, resulting in high labor costs and reduced inspection efficiency. Since only specific machines can be connected to the external network at the hospital site, other machines cannot communicate directly with the external network, resulting in automatic patrol. Inspection is difficult to achieve.
When the polling time is detected, the inspection equipment sends inspection requests to the monitoring equipment and executes inspection scripts based on the inspection instructions generated by the monitoring equipment, so as to achieve automated inspection; at the same time, use the monitoring equipment and the server Encrypted transmission ensures information security.
No manual operation is required, which saves labor costs and improves inspection efficiency, avoids the inspection scripts from occupying equipment resources for a long time, and realizes automated inspections on the hospital site, ensuring the safety of information transmission.
Smart Images

Figure CN119094559A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and in particular, relates to an inspection method, inspection equipment and inspection system. Background Art
[0002] At present, in the process of each hospital being put into use, in order to improve the safety production and operation of each hospital, the relevant operation and maintenance personnel need to master the environment, business volume, storage and other information of each hospital site. Operation and maintenance personnel usually rely on regular manual inspections (regular inspections every six months and inspections before each holiday) to obtain the above information. The inspection method of manual inspection usually requires operation and maintenance personnel to log in to each server of each site through various remote links to execute inspection scripts to obtain inspection results. However, whether it is managing the login method of each site (such as remote link, Sunflower, etc.), login password, or logging in to the site to execute inspection scripts, copy inspection result files, and analyze inspection results, it is a very labor-intensive process. It can be seen that the existing technology is difficult to meet actual needs, not only the labor cost is high, but also the inspection efficiency is reduced. Summary of the invention
[0003] The embodiments of the present application provide an inspection method, inspection equipment and inspection system, which do not require manual operation, thus saving labor costs and improving inspection efficiency. At the same time, the inspection equipment will execute the inspection script only when the polling time is reached, thereby avoiding the program used to execute the inspection script from occupying device resources for a long time.
[0004] In a first aspect, an embodiment of the present application provides an inspection method, which is applied to an inspection device, and the method includes:
[0005] When it is detected that the polling time has arrived, a patrol request is sent to the monitoring device;
[0006] Receiving the inspection instruction sent by the monitoring device; the inspection instruction is generated by the monitoring device when it is determined that the request time corresponding to the inspection request meets the preset inspection time condition;
[0007] Execute the inspection script according to the inspection instructions to obtain the inspection results.
[0008] The embodiment of the present application provides a patrol method, which sends a patrol request to a monitoring device when it detects that a polling time has been reached; receives a patrol instruction sent by the monitoring device; the patrol instruction is generated by the monitoring device when it is determined that the request time corresponding to the patrol request meets a preset patrol time condition; and executes a patrol script according to the patrol instruction to obtain a patrol result. Compared with the prior art, the entire patrol process of the present method does not require manual operation, which not only saves labor costs but also improves patrol efficiency; at the same time, the patrol device will only execute the patrol script when the polling time has been reached, thereby avoiding the long-term occupation of device resources by the program used to execute the patrol script.
[0009] In a possible implementation manner of the first aspect, after sending the inspection request to the monitoring device, the method further includes:
[0010] Receiving the inspection rejection instruction sent by the monitoring device; the inspection rejection instruction is generated by the monitoring device after receiving the inspection rejection information sent by the server; the inspection rejection information is generated by the server when it detects that the inspection program does not meet the inspection time condition after receiving the inspection inquiry information sent by the monitoring device;
[0011] According to the inspection rejection instruction, the current inspection is stopped or skipped, or the system enters the sleep state.
[0012] In the above implementation mode, when the inspection device determines that the inspection time condition of the inspection program has not been met, it can control the inspection program to stop or skip the current inspection to avoid the inspection program waiting for the inspection meaninglessly, or it can control the inspection program to enter a sleep state, which not only avoids the inspection program occupying device resources for a long time, but also saves device energy consumption and memory.
[0013] In an implementation of the first aspect, after sending the inspection request to the monitoring device, the method further includes:
[0014] Obtaining first version information of the inspection script and second version information of the program package to be updated; the program package to be updated is used to represent the latest inspection script;
[0015] If the first version information does not match the second version information, the inspection script is updated based on the program package to be updated to obtain a target script.
[0016] In the above implementation, the inspection device can update the inspection script automatically when detecting that the inspection script needs to be updated, thereby improving the inspection accuracy and inspection success rate of subsequent inspection programs based on the updated inspection script.
[0017] In one implementation of the first aspect, the inspection instruction is generated by the following steps:
[0018] The monitoring device generates inspection query information based on the inspection request and sends the inspection query information to the server;
[0019] After receiving the inspection inquiry information, if the inquiry time corresponding to the inspection inquiry information is within the preset inspection time, the server generates inspection response information and sends the inspection response information to the monitoring device;
[0020] After receiving the inspection response information, the monitoring device determines that the request time meets the inspection time condition and generates an inspection instruction.
[0021] In the above implementation, the monitoring device can generate corresponding inspection instructions after receiving the inspection response information generated by the server when detecting that the inquiry time corresponding to the inspection inquiry information is within the preset inspection time, thereby ensuring the generation accuracy of the inspection instructions and thus improving the inspection accuracy.
[0022] In an implementation of the first aspect, the inspection time condition includes: the request time is the same as or coincides with the preset inspection time, or the request time is after the inspection time.
[0023] In the above implementation, the inspection device can perform inspection when the request time is the same as or coincides with the preset inspection time, or when the request time is after the inspection time, thereby improving the inspection accuracy.
[0024] In a second aspect, an embodiment of the present application provides an inspection method, which is applied to a monitoring device, including:
[0025] Receive inspection requests sent by inspection equipment;
[0026] When it is determined that the request time corresponding to the inspection request meets the preset inspection time condition, an inspection instruction is generated;
[0027] Send inspection instructions to the inspection equipment.
[0028] An inspection method provided in an embodiment of the present application enables inspection equipment at a hospital site to interact with monitoring equipment, thereby solving the problem that only specific machines at the hospital site can connect to the external network and other machines in the hospital cannot directly communicate with the external network, thereby realizing automatic inspection of the hospital site.
[0029] In an implementation of the second aspect, after the inspection instruction is sent to the inspection device, the method further includes:
[0030] Receive inspection results sent by inspection equipment;
[0031] Encrypt the inspection result based on a preset encryption algorithm to obtain an encrypted inspection result;
[0032] Send the encrypted inspection results to the server.
[0033] In the above implementation, the information transmitted between the monitoring device and the server is encrypted, thereby improving the security of information transmission between the monitoring device and the server.
[0034] In a third aspect, an embodiment of the present application provides an inspection method, which is applied to a server, and the method includes:
[0035] Receive inspection inquiry information sent by monitoring equipment;
[0036] If the query time corresponding to the inspection query information meets the preset inspection time condition, the inspection response information is generated;
[0037] Send inspection response information to the monitoring device.
[0038] An inspection method provided by an embodiment of the present application is a method in which the server feeds back corresponding results to the monitoring device only when it receives the inspection query information sent by the monitoring device, thereby reducing the energy consumption of the server.
[0039] In a fourth aspect, an embodiment of the present application provides an inspection device, including:
[0040] A first sending unit, configured to send an inspection request to the monitoring device when detecting that a polling time has arrived;
[0041] A first receiving unit is used to receive an inspection instruction sent by a monitoring device; the inspection instruction is generated by the monitoring device when it is determined that the request time corresponding to the inspection request meets a preset inspection time condition;
[0042] The first control unit is used to execute the inspection script according to the inspection instruction to obtain the inspection result.
[0043] In one implementation of the fourth aspect, the inspection device further includes:
[0044] The second receiving unit is used to receive the inspection rejection instruction sent by the monitoring device; the inspection rejection instruction is generated by the monitoring device after receiving the inspection rejection information sent by the server; the inspection rejection information is generated by the server when it detects that the inspection program does not meet the inspection time condition after receiving the inspection query information sent by the monitoring device;
[0045] The second control unit is used to stop or skip the current inspection, or enter a dormant state according to the inspection rejection instruction.
[0046] In one implementation of the fourth aspect, the inspection device further includes:
[0047] An acquisition unit, used to acquire first version information of the inspection script and second version information of the program package to be updated; the program package to be updated is used to represent the latest inspection script;
[0048] The updating unit is used for updating the inspection script based on the program package to be updated to obtain a target script if the first version information is inconsistent with the second version information.
[0049] In a fifth aspect, an embodiment of the present application provides a monitoring device, including:
[0050] A first receiving unit, used to receive an inspection request sent by an inspection device;
[0051] A first generating unit, configured to generate an inspection instruction when it is determined that the request time corresponding to the inspection request satisfies a preset inspection time condition;
[0052] The first sending unit is used to send the inspection instruction to the inspection device.
[0053] In one implementation of the fifth aspect, the monitoring device further includes:
[0054] A second receiving unit, used to receive the inspection result sent by the inspection device;
[0055] An encryption unit, used to encrypt the inspection result based on a preset encryption algorithm to obtain an encrypted inspection result;
[0056] The second sending unit is used to send the encrypted inspection result to the server.
[0057] In a sixth aspect, an embodiment of the present application provides a server, including:
[0058] A first receiving unit, used to receive inspection inquiry information sent by the monitoring device;
[0059] A first generating unit, configured to generate inspection response information if the inquiry time corresponding to the inspection inquiry information meets a preset inspection time condition;
[0060] The sending unit is used to send the inspection response information to the monitoring device.
[0061] In the seventh aspect, an embodiment of the present application provides an inspection device, including: a memory, a processor, and a computer program and an inspection program stored in the memory and executable on the processor, wherein the processor implements the inspection method as described in any one of the first aspects above when executing the computer program.
[0062] In an eighth aspect, an embodiment of the present application provides a monitoring device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the inspection method as described in any one of the second aspects above is implemented.
[0063] In a ninth aspect, an embodiment of the present application provides a server, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the inspection method as described in any one of the third aspects is implemented.
[0064] In the tenth aspect, an embodiment of the present application provides an inspection system, comprising: an inspection device and a monitoring device, the inspection device being used to execute an inspection method as described in any one of the first aspect, and the monitoring device being used to execute an inspection method as described in any one of the second aspect.
[0065] In the eleventh aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the inspection method as described in any one of the first, second and third aspects above.
[0066] In the twelfth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on an inspection system, the inspection system can execute the inspection method of any one of the first, second and third aspects above. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only 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.
[0068] Figure 1 It is a structural diagram of an inspection system provided by an embodiment of the present application;
[0069] Figure 2 is a structural schematic diagram of an inspection system provided by another embodiment of the present application;
[0070] Figure 3 is a flowchart of an implementation of an inspection method provided in an embodiment of the present application;
[0071] Figure 4 is a flowchart of an implementation of an inspection method provided by another embodiment of the present application;
[0072] Figure 5 is a flowchart of an implementation of an inspection method provided in yet another embodiment of the present application;
[0073] Figure 6 is a flowchart of an implementation of an inspection method provided by another embodiment of the present application;
[0074] Figure 7 is a structural diagram of an inspection system provided by yet another embodiment of the present application;
[0075] Figure 8 is a flowchart of an implementation of an inspection method provided by another embodiment of the present application;
[0076] Fig. 9 It is a structural schematic diagram of an inspection device provided in one embodiment of the present application;
[0077] Fig.10 is a structural schematic diagram of an inspection device provided in another embodiment of the present application;
[0078] Fig.11 It is a structural diagram of a monitoring device provided in an embodiment of the present application;
[0079] Fig.12 is a schematic diagram of the structure of a monitoring device provided by another embodiment of the present application;
[0080] Fig.13 It is a structural diagram of a server provided in an embodiment of the present application;
[0081] Fig.14 It is a structural diagram of a server provided in another embodiment of the present application. DETAILED DESCRIPTION
[0082] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0083] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0084] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0085] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0086] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0087] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0088] In actual applications, in order to ensure the safe production and operation of each hospital during the commissioning process, the relevant operation and maintenance personnel need to master the environment, business volume, resource storage and other information of each hospital site. At present, operation and maintenance personnel usually rely on regular manual inspections (regular inspections every six months and inspections before each holiday) to obtain the above information. The inspection method of manual inspection usually requires operation and maintenance personnel to log in to each server of each site through various remote link methods to execute the inspection script to obtain the inspection results. However, whether it is managing the login method (remote link, Sunflower) and login password of each site, or logging in to the site to execute the inspection script, copy the inspection result file, and analyze the inspection results, it is a very labor-intensive process. It can be seen that the existing technology is difficult to meet the actual needs, not only the labor cost is high, but also the inspection efficiency is reduced.
[0089] At the same time, since only specific machines in the hospital can connect to the external network, other machines in the hospital cannot communicate directly with the external network. Based on this, in order to realize automatic inspection of each hospital site, save labor costs, and improve inspection efficiency, in all embodiments of the present application, a patrol system is provided. The patrol method performed by the patrol system can specifically realize automatic inspection of the hospital site through the various method embodiments corresponding to the figure below, which will not be repeated here.
[0090] See also Figure 1 , Figure 1 Schematic diagram of the structure of the inspection system provided by an embodiment of the present application. Figure 1 As shown, the inspection system 1 provided in the embodiment of the present application includes: at least one inspection device 10 (only one is shown in the figure), at least one monitoring device 20 (only one is shown in the figure) and a server 30. At least one monitoring device 20 is in communication connection with the server 30.
[0091] In practical applications, since each inspection area is provided with at least one inspection device 10 and one monitoring device 20, at least one inspection device 10 in the same inspection area is in communication connection with a monitoring device 20 in the same inspection area. A inspection area specifically refers to the area where the entire hospital is located.
[0092] In the embodiment of the present application, the server 30 is not in any inspection area. The server 30 can be a desktop computer, a computer or other equipment, or a cloud server.
[0093] Based on this, please also refer to Figure 2 , Figure 2 FIG. 1 is a schematic diagram of the structure of an inspection system provided by another embodiment of the present application. Figure 2 As shown, multiple inspection devices 10 in the same inspection area are connected to the monitoring client in the monitoring device 20 in the same inspection area through their own inspection programs, and the monitoring device 20 in each inspection area is connected to the server 30 through its own monitoring client.
[0094] It should be noted that since the hospital is a special place, in all embodiments of the present application, the server 30 cannot actively interact with the monitoring device 20 in the inspection area. Only when it receives a request from the monitoring device 20 in the inspection area, it will feedback corresponding response information to the monitoring device 20 in the inspection area.
[0095] The following will take the application of the inspection method to an inspection device in an inspection area as an example for explanation.
[0096] See also Figure 3 , Figure 3 FIG. 1 is a flowchart of an implementation of the inspection method provided by an embodiment of the present application. Figure 3 As shown, the inspection method provided in an embodiment of the present application may include S101 to S1012, which are described in detail as follows:
[0097] In S101 , when the inspection device detects that the polling time has arrived, it sends an inspection request to the monitoring device.
[0098] In the embodiment of the present application, when the relevant personnel set the inspection program in the inspection device, they can register the scheduled task to the operating system of the inspection device, so that the operating system of the inspection device can poll and schedule the inspection program based on the scheduled task. Among them, the polling time of the scheduled task can be set according to actual needs and is not limited here.
[0099] It should be noted that in the embodiment of the present application, the polling time specifically refers to the periodic time during which the inspection device periodically sends a query to the monitoring device whether it can start the inspection.
[0100] As an example, when the polling time is once every three days, assuming that the last query time is August 7, the next query time is August 10.
[0101] Based on this, when the inspection device detects that the polling time has arrived, it can call its own inspection program to send an inspection request to the monitoring device.
[0102] In some possible embodiments, when there are multiple inspection devices, the inspection request may further include a device identification of the inspection device, wherein the device identification includes but is not limited to a device number and a device serial number.
[0103] In some other possible embodiments, in order to improve the inspection accuracy and inspection success rate of subsequent inspection procedures, the inspection device may further perform the following steps after step S101, which are described in detail as follows:
[0104] Obtaining first version information of the inspection script and second version information of the program package to be updated; the program package to be updated is used to represent the latest inspection script;
[0105] If the first version information does not match the second version information, the inspection script is updated based on the program package to be updated to obtain a target script.
[0106] In this embodiment, after the inspection device uses its own inspection program to send an inspection request to the monitoring device, that is, wakes up the inspection program, it can detect whether the inspection script executed by the inspection program at this time is the latest inspection script.
[0107] Therefore, the inspection device can obtain the second version information of the program package to be updated, and compare the second version information with the first version information of the inspection script. The program package to be updated is used to represent the latest inspection script.
[0108] In one embodiment of the present application, when the inspection device detects that the first version information does not match the second version information, it indicates that the inspection script is not the latest inspection script, that is, the inspection script needs to be updated. Therefore, the inspection device can update the inspection script based on the program package to be updated to obtain an updated inspection script, that is, a target script, that is, the latest inspection script.
[0109] In another embodiment of the present application, when the inspection device detects that the first version information matches the second version information, it indicates that the inspection script is the latest inspection script, that is, there is no need to update the inspection script. Therefore, the inspection device can delete the program package to be updated to increase the memory of the inspection device.
[0110] In some further possible embodiments, in order to improve the user experience so that relevant personnel can later check the inspection results of the inspection device on the server, the inspection device may further perform the following steps after step S101, which are described in detail as follows:
[0111] Determine the upload results corresponding to the historical inspection results of the inspection program;
[0112] If the upload result is not uploaded, the historical inspection results will be sent to the monitoring device.
[0113] In this embodiment, after the inspection device sends an inspection request to the monitoring device using its own inspection program, i.e. wakes up the inspection program, it can detect whether the historical inspection results of the inspection program have been sent to the monitoring device, i.e. determine the upload results corresponding to the historical inspection results of the inspection program.
[0114] The uploaded results include but are not limited to: not uploaded and uploaded. Not uploaded means that the historical inspection results used to describe the inspection procedure have not been sent to the monitoring device. Uploaded means that the historical inspection results used to describe the inspection procedure have been sent to the monitoring device.
[0115] In this embodiment, when the inspection device detects that the upload result is not uploaded, it means that the historical inspection result of the inspection program has not been sent to the monitoring device. Therefore, the inspection device can send the above historical inspection result to the monitoring device.
[0116] Afterwards, the monitoring device may send the historical inspection results to the server, and the server may associate and store the historical inspection results with the inspection device.
[0117] In S102, the monitoring device receives the inspection request sent by the inspection device.
[0118] In the embodiment of the present application, after receiving the inspection request, the monitoring device can determine whether the request time corresponding to the inspection request satisfies the preset inspection time condition. The preset inspection time condition can be set according to actual needs and is not limited here.
[0119] In one embodiment of the present application, when the inspection system includes an inspection device, a monitoring device and a server, steps S103 to S109 can be continued to be executed so that the server can determine whether the inspection program of the inspection device is in the preset inspection time, and then determine whether the above-mentioned request time meets the preset inspection time condition.
[0120] In another embodiment of the present application, when the inspection system only includes the inspection device and the monitoring device, that is, the monitoring device can realize the function of the server, the following can be executed: Figure 7The steps S503 to S504 shown are so that the monitoring device can directly determine whether the inspection program of the inspection device is within the preset inspection time, and further determine whether the above-mentioned request time meets the preset inspection time condition.
[0121] In S103, the monitoring device generates inspection query information based on the inspection request.
[0122] In S104, the monitoring device sends the inspection inquiry information to the server.
[0123] In the embodiment of the present application, after the monitoring device receives the inspection request sent by the inspection program in the inspection device, it indicates that the inspection device needs to determine from the server whether it can start the inspection. Therefore, the monitoring device can generate inspection query information based on the inspection request. The inspection query information is used to describe whether the inspection device can start the inspection.
[0124] As an example, the monitoring equipment may include monitoring cameras, various sensors (eg, current sensors, voltage sensors), and other devices.
[0125] In some possible embodiments, in combination with S101, when there are multiple inspection devices, since the inspection request carries the device identification of the inspection device, the monitoring device can extract the device identification from the inspection request and generate the above inspection query information based on the device identification.
[0126] In S105, the server receives the inspection inquiry information sent by the monitoring device.
[0127] In S106, if the server detects that the inquiry time corresponding to the inspection inquiry information meets the preset inspection time condition, it generates inspection response information.
[0128] In S107, the server sends the inspection response information to the monitoring device.
[0129] It should be noted that, in the embodiment of the present application, the preset inspection time condition may include: the inquiry time of the inspection inquiry information meets the preset inspection time. The preset inspection time may be determined according to actual needs and is not limited here.
[0130] In an embodiment of the present application, since the server pre-stores the inspection time preset by the above-mentioned inspection device, after receiving the inspection inquiry information sent by the monitoring device, the server can compare the inquiry time of the inspection inquiry information, that is, the time when the server receives the above-mentioned inspection inquiry information, with the above-mentioned preset inspection time.
[0131] It should be noted that, in combination with S104, when there are multiple inspection devices, since the inspection query information carries the device identification of the inspection device, the server can extract the device identification from the inspection query information, and based on the device identification and the pre-stored correspondence between different device identifications and different inspection times, determine the preset inspection time corresponding to the above-mentioned inspection device.
[0132] In one embodiment of the present application, for example, when the preset inspection time is a moment or date, when the server detects that the above-mentioned inquiry time is the same as the preset inspection time, it means that the inspection device has just reached the preset inspection time, that is, the inspection program in the inspection device has just reached the preset inspection time, so the server can generate an inspection response message. Among them, the inspection response message is used to describe that the inspection device can start the inspection. As an example, when the inquiry time is August 7 and the preset inspection time is also August 7, the inspection response message can be generated. As another example, when the inquiry time is 10 am and the preset inspection time is also 10 am, the inspection response message can be generated. As another example, when the inquiry time is 12 hours after the last inspection and the preset inspection time is also 12 hours after the last inspection, the inspection response message can be generated.
[0133] In another embodiment of the present application, for example, when the preset inspection time is a time period, when the server detects that the above-mentioned inquiry time coincides with the preset inspection time, it means that the inspection device is within the preset inspection time at this time, that is, the inspection program in the inspection device has reached the preset inspection time or coincides with the preset inspection time, so the server can generate inspection response information. The inspection response information is used to describe that the inspection device can start inspection. As an example, when the inquiry time is 11 a.m. and the preset inspection time is between 10 a.m. and 1 p.m., the inspection response information can be generated.
[0134] In another embodiment of the present application, when the preset inspection time is a moment, when the server detects that the query time is after the preset inspection time, it means that the inspection device is in the process of inspection or should be inspected at this time, that is, the inspection program in the inspection device is in the process of inspection or needs to be inspected, so the server can generate inspection response information. The inspection response information is used to describe that the inspection device can start inspection.
[0135] Afterwards, the server may send the above inspection response information to the monitoring device.
[0136] In another embodiment of the present application, when the server detects that the query time is before the preset inspection time, it indicates that the inspection device has not reached the preset inspection time. Therefore, the server can execute the following steps: Figure 4 In steps S206 to S207 shown in FIG. 1 , the monitoring device may perform the following steps: Figure 4 In steps S208 to S2010 shown in FIG. 1 , the inspection device may perform the following steps: Figure 4 Steps S2011 to S2012 are shown.
[0137] In S108, the monitoring device receives the inspection response information sent by the server.
[0138] In S109, the monitoring device determines, based on the inspection response information, that the request time corresponding to the inspection request meets a preset inspection time condition, and generates an inspection instruction.
[0139] In S1010, the monitoring device sends an inspection instruction to the inspection device.
[0140] In the embodiment of the present application, after receiving the inspection response information sent by the server, the monitoring device can determine that the request time corresponding to the inspection request meets the preset inspection time condition, and generate an inspection instruction based on the inspection response information, and send the inspection instruction to the inspection device. The inspection instruction is used to instruct the inspection device to start the inspection.
[0141] In S1011, the inspection device receives the inspection instruction sent by the monitoring device.
[0142] In S1012, the inspection device executes the inspection script according to the inspection instruction to obtain the inspection result.
[0143] In the embodiment of the present application, after receiving the inspection instruction sent by the monitoring device, the inspection device can execute the inspection script according to the inspection instruction to obtain the inspection result.
[0144] In some possible embodiments, since the inspection device is provided with an inspection program, the inspection device can control the inspection program provided therein to execute the inspection script according to the inspection instruction to obtain the inspection result.
[0145] Among them, the inspection result is used to describe the inspection information in the inspection area obtained after the inspection equipment (or inspection program) inspects the inspection area. The inspection information includes, but is not limited to, one or more of the following items: environmental information, resource information, equipment usage, etc. in the inspection area. As an example, the environmental information may include one or more of the environmental layout, temperature, humidity, electromagnetic interference, personnel flow, etc. in the inspection area. Resource information may include the number of devices in the inspection area, the type of equipment, whether the equipment has failed, etc. The equipment usage may include one or more of the following items: the schedule of one or more devices to be inspected, whether the equipment is being used, the length of time the equipment has been working or will work, etc.
[0146] In one embodiment of the present application, in combination with S101, when the inspection script has been updated to the target script, the inspection device can execute the target script according to the inspection instruction, that is, control the inspection program to execute the target script according to the inspection instruction to improve the inspection success rate and / or inspection accuracy.
[0147] From the above, it can be seen that the inspection method provided by the embodiment of the present application sends an inspection request to the monitoring device when the polling time is detected; receives the inspection instruction sent by the monitoring device; the inspection instruction is generated by the monitoring device when it is determined that the request time corresponding to the inspection request meets the preset inspection time condition; executes the inspection script according to the inspection instruction to obtain the inspection result. Compared with the prior art, the entire inspection process of this method does not require manual operation, which not only saves labor costs, but also improves inspection efficiency; at the same time, the inspection device will only execute the inspection script when the polling time is reached, thereby avoiding the long-term occupation of device resources by the program used to execute the inspection script.
[0148] See also Figure 4 , Figure 4 is a flowchart of an implementation of an inspection method provided by another embodiment of the present application. Figure 3 Corresponding to the embodiment, the inspection method provided in this embodiment may include S201 to S2012, which are described in detail as follows:
[0149] In S201, when the inspection device detects that the polling time has arrived, it sends an inspection request to the monitoring device.
[0150] In S202, the monitoring device receives the inspection request sent by the inspection device.
[0151] In S203, the monitoring device generates inspection query information based on the inspection request.
[0152] In S204, the monitoring device sends the inspection inquiry information to the server.
[0153] In S205, the server receives the inspection inquiry information sent by the monitoring device.
[0154] Steps S201 to S205 in this embodiment are Figure 3 Steps S101 to S105 in the corresponding embodiments are the same. Please refer to the relevant descriptions in steps S101 to S105 for details, which will not be repeated here.
[0155] In S206, if the server detects that the inquiry time corresponding to the inspection inquiry information does not meet the preset inspection time condition, it generates inspection rejection information.
[0156] In S207, the server sends the inspection rejection information to the monitoring device.
[0157] In this embodiment, when the server detects that the inquiry time corresponding to the inspection inquiry information is before the preset inspection time, it means that the inspection device has not reached the preset inspection time, that is, the inspection program in the inspection device has not reached the preset inspection time, that is, the inquiry time corresponding to the inspection inquiry information does not meet the preset inspection time condition, so the server can generate inspection rejection information and send the inspection rejection information to the monitoring device. Among them, the inspection rejection information is used to describe that the inspection device has not reached the inspection time and cannot perform this inspection.
[0158] In S208, the monitoring device receives the inspection rejection information sent by the server.
[0159] In S209, the monitoring device generates an inspection rejection instruction based on the inspection rejection information.
[0160] In S2010, the monitoring device sends an inspection rejection instruction to the inspection device.
[0161] In this embodiment, after receiving the inspection rejection information sent by the server, the monitoring device can generate an inspection rejection instruction based on the inspection rejection information and send the inspection rejection instruction to the inspection device, because the inspection rejection information is used to describe that the inspection device has not reached the inspection time and cannot perform the inspection. The inspection rejection instruction is used to indicate that the inspection device cannot perform the inspection.
[0162] In S2011, the inspection device receives the inspection rejection instruction sent by the monitoring device.
[0163] In S2012, the inspection device stops or skips the current inspection, or enters a sleep state according to the inspection rejection instruction.
[0164] In this embodiment, after receiving the inspection rejection instruction sent by the monitoring device, the inspection device can determine that the inspection time has not arrived at this time, that is, the inspection device cannot control the inspection program to perform this inspection. Therefore, the inspection device can control the inspection program to stop or skip the current inspection according to the inspection rejection instruction, or directly control the inspection program to enter a dormant state. The current inspection specifically refers to the inspection corresponding to the inspection rejection instruction.
[0165] From the above, it can be seen that the inspection method provided in this embodiment can stop or skip the current inspection, or enter a sleep state when the inspection device determines that the inspection time of the inspection program has not yet arrived. This not only avoids the inspection program from occupying device resources for a long time, but also saves device energy consumption and memory.
[0166] In one embodiment of the present application, in order to improve the security of information transmission between the server and the monitoring device, the information transmitted between the two can be encrypted. Specifically, the server and the monitoring device can pre-agreed on a set of the same preset encryption algorithm and a preset decryption algorithm corresponding to the preset encryption algorithm. Based on this, Figure 5 FIG. 1 is a flowchart of an implementation of an inspection method provided in another embodiment of the present application. Figure 3 Corresponding to the embodiment, the inspection method provided in this embodiment may include S301 to S3014, which are described in detail as follows:
[0167] In S301, when the inspection device detects that the polling time has arrived, it sends an inspection request to the monitoring device.
[0168] In S302, the monitoring device receives the inspection request sent by the inspection device.
[0169] In S303, the monitoring device generates inspection query information based on the inspection request.
[0170] Steps S301 to S303 in this embodiment are Figure 3 Steps S101 to S103 in the corresponding embodiments are the same. Please refer to the relevant descriptions in steps S101 to S103 for details, which will not be repeated here.
[0171] In S304, the monitoring device encrypts the inspection query information based on a preset encryption algorithm to obtain the encrypted inspection query information, and sends the encrypted inspection query information to the server.
[0172] In this embodiment, the preset encryption algorithm can be set according to actual needs and is not limited here. As an example but not limitation, the preset encryption algorithm can be a symmetric encryption algorithm, such as: Data Encryption Standard (DES) algorithm.
[0173] In S305, the server receives the encrypted inspection inquiry information sent by the monitoring device.
[0174] In S306, the server decrypts the encrypted inspection inquiry information based on a preset decryption algorithm corresponding to the preset encryption algorithm to obtain the inspection inquiry information.
[0175] It should be noted that, in the present embodiment, the server pre-stores a preset encryption algorithm pre-agreed between it and the monitoring device and a preset decryption algorithm corresponding to the preset encryption algorithm. Based on this, after obtaining the encrypted inspection inquiry information, the server can decrypt the encrypted inspection inquiry information based on its pre-stored preset decryption algorithm, and thereby obtain unencrypted inspection inquiry information.
[0176] The preset decryption algorithm should correspond to the preset encryption algorithm. For example, if the pre-stored preset encryption algorithm is the DES algorithm in the symmetric encryption algorithm, the corresponding preset decryption algorithm is also the DES algorithm.
[0177] In some possible embodiments, since the monitoring devices in different inspection areas are different, in order to further improve the security of information transmission between the server and each monitoring device, the server can agree with different monitoring devices on different preset encryption algorithms and preset decryption algorithms corresponding to the preset encryption algorithms. Based on this, in this embodiment, after receiving the encrypted inspection query information sent by the monitoring device, the server can determine the preset decryption algorithm corresponding to the monitoring device, and decrypt the encrypted inspection query information based on the preset decryption algorithm.
[0178] In S307, if the server detects that the inquiry time corresponding to the inspection inquiry information is the same as or coincides with the preset inspection time, or the inquiry time is after the inspection time, then the inspection response information is generated.
[0179] Step S307 in this embodiment is Figure 3 Step S106 in the corresponding embodiment is the same. Please refer to the relevant description in step S106 for details, which will not be repeated here.
[0180] In S308, the server encrypts the inspection response information based on a preset encryption algorithm to obtain the encrypted inspection response information, and sends the encrypted inspection response information to the monitoring device.
[0181] In this embodiment, the server pre-stores a preset encryption algorithm pre-agreed between it and the monitoring device and a preset decryption algorithm corresponding to the preset encryption algorithm. Based on this, after generating inspection response information, the server can encrypt the generated inspection response information based on its pre-stored preset encryption algorithm, and then obtain the encrypted inspection response information.
[0182] In some possible embodiments, since the monitoring devices in different inspection areas are different, in order to further improve the security of information transmission between the server and each monitoring device, the server can agree with different monitoring devices on different preset encryption algorithms and preset decryption algorithms corresponding to the preset encryption algorithms. Based on this, in this embodiment, when generating inspection response information, the server can determine the preset encryption algorithm corresponding to the monitoring device, and encrypt the generated inspection response information based on the preset encryption algorithm.
[0183] Afterwards, the server can send the encrypted inspection response information to the monitoring device.
[0184] In S309, the monitoring device receives the encrypted inspection response information sent by the server.
[0185] In S3010, the monitoring device decrypts the encrypted inspection response information based on a preset decryption algorithm corresponding to the preset encryption algorithm to obtain the inspection response information.
[0186] It should be noted that, in the present embodiment, the monitoring device pre-stores a preset encryption algorithm agreed upon between it and the server and a preset decryption algorithm corresponding to the preset encryption algorithm. Based on this, after obtaining the encrypted inspection response information, the monitoring device can decrypt the encrypted inspection response information based on its pre-stored preset decryption algorithm, and thereby obtain unencrypted inspection response information.
[0187] In S3011, the monitoring device generates a patrol instruction based on the patrol response information.
[0188] In S3012, the monitoring device sends the inspection instruction to the inspection device.
[0189] In S3013, the inspection device receives the inspection instruction sent by the monitoring device.
[0190] In S3014, the inspection device executes the inspection script according to the inspection instruction to obtain the inspection result.
[0191] Steps S3011 to S3014 in this embodiment are Figure 3 Steps S109 to S1012 in the corresponding embodiments are the same. Please refer to the relevant descriptions in steps S109 to S1012 for details, which will not be repeated here.
[0192] It can be seen from the above that the inspection method provided in this embodiment improves the security of information transmission between the monitoring device and the server by encrypting the information transmitted between the monitoring device and the server.
[0193] In one embodiment of the present application, in order to facilitate relevant personnel to check the inspection results of the inspection equipment, clearly understand the inspection status of the inspection equipment, and improve user experience, based on this, Figure 6 FIG. 1 is a flowchart of an implementation of an inspection method provided by another embodiment of the present application. Figure 3 Corresponding to the embodiment, the inspection method provided in this embodiment may further include S401 to S408 after step S1012, which are described in detail as follows:
[0194] In S401, the inspection device sends the inspection result to the monitoring device.
[0195] In this embodiment, the inspection device can obtain the inspection result after controlling the inspection program to execute the inspection script. The inspection result is used to describe the inspection information in the inspection area obtained after the inspection device (inspection program) inspects the inspection area. The inspection information includes but is not limited to: environmental information, resource information and usage of each device in the inspection area.
[0196] Afterwards, the inspection device can send the inspection result to the monitoring device.
[0197] In S402, the monitoring device receives the inspection result sent by the inspection device.
[0198] In S403, the monitoring device encrypts the inspection result based on a preset encryption algorithm to obtain an encrypted inspection result.
[0199] In S404, the monitoring device sends the encrypted inspection result to the server.
[0200] In this embodiment, the preset encryption algorithm can be set according to actual needs and is not limited here. As an example but not limitation, the preset encryption algorithm can be a symmetric encryption algorithm, such as: Data Encryption Standard (DES) algorithm.
[0201] In S405, the server receives the encrypted inspection result sent by the monitoring device.
[0202] In S406, the server decrypts the encrypted inspection result based on a preset decryption algorithm to obtain the inspection result.
[0203] It should be noted that, in the present embodiment, the server pre-stores a preset encryption algorithm pre-agreed between it and the monitoring device and a preset decryption algorithm corresponding to the preset encryption algorithm. Based on this, after obtaining the encrypted inspection result, the server can decrypt the encrypted inspection result based on its pre-stored preset decryption algorithm, and thereby obtain an unencrypted inspection result.
[0204] The preset decryption algorithm should correspond to the preset encryption algorithm. For example, if the pre-stored preset encryption algorithm is the DES algorithm in the symmetric encryption algorithm, the corresponding preset decryption algorithm is also the DES algorithm.
[0205] In some possible embodiments, since the monitoring devices in different inspection areas are different, in order to further improve the security of information transmission between the server and each monitoring device, the server can agree with different monitoring devices on different preset encryption algorithms and preset decryption algorithms corresponding to the preset encryption algorithms. Based on this, in this embodiment, after receiving the encrypted inspection result sent by the monitoring device, the server can determine the preset decryption algorithm corresponding to the monitoring device, and decrypt the encrypted inspection result based on the preset decryption algorithm.
[0206] In S407, the server analyzes the inspection result to obtain an analysis result.
[0207] In this embodiment, after obtaining the inspection results, the server can analyze the inspection results, that is, analyze the obtained inspection information, to obtain the analysis results, because the inspection results are used to describe the inspection information within the inspection area obtained after the inspection program inspects the inspection area.
[0208] The analysis results include but are not limited to: a first strategy that the relevant personnel need to execute on the environment in the inspection area, a second strategy that the relevant personnel need to execute on the resources in the inspection area, and a third strategy that the relevant personnel need to execute on each device used in the inspection area. The first strategy, the second strategy, and the third strategy can all be set according to actual needs and are not limited here.
[0209] In S408, the server generates an inspection report based on the analysis result.
[0210] In this embodiment, after the server obtains the analysis result, it can import the inspection result and the analysis result into the preset inspection report template. Specifically, the server associates the inspection result and the analysis result with the inspection result item of the target inspection device in the preset inspection report template, and associates the analysis result with the analysis result item of the target inspection device in the preset inspection report template, thereby obtaining the inspection report.
[0211] In some possible embodiments, the server may output the above inspection report.
[0212] In some other possible embodiments, after obtaining the inspection report, the server may also generate and output prompt information, where the prompt information is used to prompt relevant personnel that the inspection of the inspection equipment has been completed.
[0213] In some other possible embodiments, the server may also send the prompt information to the terminal device used by the relevant personnel through SMS or email, so that the relevant personnel can check the inspection report in time. The terminal device includes but is not limited to: laptops, desktop computers and other devices.
[0214] It can be seen from the above that in the inspection method provided in this embodiment, the server can generate an inspection report based on the received inspection results, so that relevant personnel can promptly understand the inspection status of the area where the inspection equipment is located.
[0215] In another embodiment of the present application, after the inspection device receives the inspection instruction, that is, after the inspection device determines that it needs to perform an inspection, the inspection record corresponding to the inspection device will enter the following states in sequence:
[0216] First, the inspection record will enter the inspection-in-progress state. The inspection-in-progress state is used to indicate that the relevant personnel have triggered the inspection and are waiting for the inspection device to start executing the inspection script, that is, waiting for the inspection device to start the inspection, or the inspection-in-progress state is used to indicate that the inspection device is executing the inspection script, that is, it is inspecting.
[0217] After that, the inspection record will enter the inspection report production state. The inspection report production state is used to indicate that the inspection of the inspection equipment has been completed, and the inspection result has been sent to the server. The server is analyzing the inspection information (i.e., various indicators) in the inspection result to generate an inspection report.
[0218] In one embodiment of the present application, the monitoring device and the server can be the same device, that is, the monitoring device can also implement various functions of the server. Figure 7 , Figure 7 Schematic diagram of the structure of the inspection system provided by another embodiment of the present application. Figure 7 As shown, the inspection system 1 provided in the embodiment of the present application includes: at least one inspection device 10 (only one is shown in the figure) and a monitoring device 40.
[0219] In this embodiment, the monitoring device 40 can be implemented as follows: Figure 1-2 The functions of the monitoring device 20 shown in FIG. Figure 1 ~such as Figure 2 The functionality of the server 30 is shown.
[0220] The following inspection method will be applied to Figure 7 The inspection system shown is described below.
[0221] Therefore, please refer to Figure 8 , Figure 8 FIG. 1 is a flowchart of an implementation of an inspection method provided by another embodiment of the present application. Figure 8As shown, the inspection method provided in an embodiment of the present application may include S501 to S506, which are described in detail as follows:
[0222] In S501, when the inspection device detects that the polling time has arrived, it sends an inspection request to the monitoring device.
[0223] In this embodiment, step S501 and Figure 3 The step S101 in the corresponding embodiment is the same. Please refer to the relevant description in step S101 for details, which will not be repeated here.
[0224] In S502, the monitoring device receives the inspection request sent by the inspection device.
[0225] In S503, if the monitoring device detects that the request time corresponding to the inspection request meets the preset inspection time condition, it generates an inspection instruction.
[0226] In S504, the monitoring device sends the inspection instruction to the inspection device.
[0227] It should be noted that the preset inspection time condition may include: the request time meets the preset inspection time. The preset inspection time may be determined according to actual needs and is not limited here.
[0228] In this embodiment, after the monitoring device receives the inspection request sent by the inspection program in the inspection device, it indicates that the inspection device needs to confirm with the monitoring device whether it can start the inspection. Therefore, the monitoring device can determine the request time corresponding to the inspection request, that is, the time when the monitoring device receives the inspection request, and compare it with the preset inspection time.
[0229] It should be noted that when there are multiple inspection devices, since the inspection request carries the equipment identification of the inspection device, the monitoring device can extract the equipment identification from the inspection request and determine the preset inspection time corresponding to the above-mentioned inspection device based on the equipment identification and the pre-stored correspondence between different equipment identifications and different inspection times.
[0230] In one implementation of this embodiment, for example, when the preset inspection time is a moment or date, when the monitoring device detects that the above-mentioned request time is the same as the preset inspection time, it means that the inspection device has just reached the preset inspection time, that is, the inspection program in the inspection device has just reached the preset inspection time, so the monitoring device can generate an inspection instruction. The inspection instruction is used to indicate that the inspection device can start the inspection. As an example, when the request time is August 7 and the preset inspection time is also August 7, an inspection response message can be generated. As another example, when the request time is 10 am and the preset inspection time is also 10 am, an inspection response message can be generated. As another example, when the request time is 12 hours after the last inspection and the preset inspection time is also 12 hours after the last inspection, an inspection instruction can be generated.
[0231] In another implementation of this embodiment, for example, when the preset inspection time is a time period, when the monitoring device detects that the request time coincides with the preset inspection time, it indicates that the inspection device is within the preset inspection time, that is, the inspection program in the inspection device has reached the preset inspection time or coincides with the preset inspection time, so the monitoring device can generate an inspection instruction. As an example, when the request time is 11 a.m. and the preset inspection time is between 10 a.m. and 1 p.m., an inspection response message can be generated.
[0232] In another implementation of this embodiment, when the preset inspection time is a moment, when the monitoring device detects that the above-mentioned request time is after the preset inspection time, it means that under normal circumstances the inspection device is in the process of inspection or should perform inspection, that is, the inspection program in the inspection device is in the process of inspection or needs to perform inspection, so the monitoring device can generate an inspection instruction.
[0233] In one embodiment of the present application, before the monitoring device detects the inspection time preset by the above request time, it indicates that the inspection device does not meet the preset inspection time condition, so the monitoring device can generate an inspection rejection instruction and send the inspection rejection instruction to the inspection device. The inspection rejection instruction is used to indicate that the inspection device cannot perform this inspection.
[0234] In this embodiment, after receiving the inspection rejection instruction sent by the monitoring device, the inspection device can determine that the preset inspection time condition is not met at this time, that is, the inspection device cannot control the inspection program to perform this inspection. Therefore, the inspection device can control the inspection program to stop or skip the current inspection according to the inspection rejection instruction, or directly control the inspection program to enter a dormant state. The current inspection specifically refers to the inspection corresponding to the inspection rejection instruction.
[0235] In S505, the inspection device receives the inspection instruction sent by the monitoring device.
[0236] In S506, the inspection device executes the inspection script according to the inspection instruction to obtain the inspection result.
[0237] Steps S505 to S506 in this embodiment are Figure 3 Steps S1011 to S1012 in the corresponding embodiments are the same. Please refer to the relevant descriptions in steps S1011 to S1012 for details, which will not be repeated here.
[0238] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0239] Corresponding to an inspection method in the above embodiment, Fig. 9 The structure diagram of a patrol inspection device provided by an embodiment of the present application is shown. For the convenience of explanation, only the part related to the embodiment of the present application is shown. Fig. 9 The inspection device 400 includes: a first sending unit 41, a first receiving unit 42 and a first control unit 43. Among them:
[0240] The first sending unit 41 is used to send a patrol request to the monitoring device when it is detected that the polling time has arrived.
[0241] The first receiving unit 42 is used to receive the inspection instruction sent by the monitoring device; the inspection instruction is generated by the monitoring device when it is determined that the request time corresponding to the inspection request meets the preset inspection time condition.
[0242] The first control unit 43 is used to execute the inspection script according to the inspection instruction to obtain the inspection result.
[0243] In one embodiment of the present application, the inspection device 400 further includes: a second receiving unit and a second control unit.
[0244] The second receiving unit is used to receive the inspection rejection instruction sent by the monitoring device; the inspection rejection instruction is generated by the monitoring device after receiving the inspection rejection information sent by the server; the inspection rejection information is generated by the server when it detects that the inspection program does not meet the inspection time condition after receiving the inspection inquiry information sent by the monitoring device.
[0245] The second control unit is used to stop or skip the current inspection, or enter a dormant state according to the inspection rejection instruction.
[0246] In one embodiment of the present application, the inspection device 400 further includes: an acquisition unit and an update unit; accordingly, the first control unit 42 specifically includes: a third control unit. Among them:
[0247] The acquisition unit is used to acquire the first version information of the inspection script and the second version information of the program package to be updated; the program package to be updated is used to represent the latest inspection script.
[0248] The updating unit is used for updating the inspection script based on the program package to be updated to obtain the target script if the first version information is inconsistent with the second version information.
[0249] The third control unit is used to control the inspection program to execute the target script to obtain the inspection result.
[0250] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0251] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0252] Fig.10 This is a schematic diagram of the structure of the inspection device provided in one embodiment of the present application. Fig.10 As shown, the inspection device 5 of this embodiment includes: at least one processor 50 ( Fig.10 Only one is shown in the figure) a processor, a memory 51, and a computer program 52 stored in the memory 51 and executable on at least one processor 50. When the processor 50 executes the computer program 52, the steps in any of the above-mentioned inspection method embodiments are implemented.
[0253] The inspection device 5 may include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art will appreciate that Fig.10It is only an example of the inspection device 5 and does not constitute a limitation on the inspection device 5. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0254] The processor 50 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0255] In some embodiments, the memory 51 may be an internal storage unit of the inspection device 5, such as the memory of the inspection device 5. In other embodiments, the memory 51 may also be an external storage device of the inspection device 5, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the inspection device 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the inspection device 5. The memory 51 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of a computer program. The memory 51 may also be used to temporarily store data that has been output or is to be output.
[0256] Corresponding to an inspection method in the above embodiment, Fig.11 The structure diagram of a monitoring device provided by an embodiment of the present application is shown. For the convenience of explanation, only the part related to the embodiment of the present application is shown. Fig.11 The monitoring device 600 includes: a first receiving unit 61, a first generating unit 62 and a first sending unit 63. Among them:
[0257] The first receiving unit 61 is used to receive an inspection request sent by an inspection device.
[0258] The first generating unit 62 is used as a first generating unit, and is used to generate a patrol instruction when it is determined that the request time corresponding to the patrol request meets the preset patrol time condition.
[0259] The first sending unit 63 is used to send the inspection instruction to the inspection device.
[0260] In one embodiment of the present application, the monitoring device 600 further includes: a second receiving unit, an encryption unit and a second sending unit.
[0261] The second receiving unit is used to receive the inspection result sent by the inspection device.
[0262] The encryption unit is used to encrypt the inspection result based on a preset encryption algorithm to obtain the encrypted inspection result.
[0263] The second sending unit is used to send the encrypted inspection result to the server.
[0264] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0265] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0266] Fig.12 This is a schematic diagram of the structure of a monitoring device provided in one embodiment of the present application. Fig.12 As shown, the monitoring device 7 of this embodiment includes: at least one processor 70 ( Fig.12 Only one is shown in the figure) a processor, a memory 71, and a computer program 72 stored in the memory 71 and executable on at least one processor 70, and when the processor 70 executes the computer program 72, the steps in any of the above-mentioned inspection method embodiments are implemented.
[0267] The monitoring device 7 may include, but is not limited to, a processor 70 and a memory 71. Those skilled in the art will appreciate that Fig.12It is only an example of the monitoring device 7 and does not constitute a limitation on the monitoring device 7. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0268] The processor 70 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0269] In some embodiments, the memory 71 may be an internal storage unit of the monitoring device 7, such as the memory of the monitoring device 7. In other embodiments, the memory 71 may also be an external storage device of the monitoring device 7, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the monitoring device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the monitoring device 7. The memory 71 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of a computer program. The memory 71 may also be used to temporarily store data that has been output or is to be output.
[0270] Corresponding to an inspection method in the above embodiment, Fig.13 The structure diagram of a server provided by an embodiment of the present application is shown. For the convenience of explanation, only the part related to the embodiment of the present application is shown. Fig.13 The server 800 includes: a first receiving unit 81, a first generating unit 82 and a sending unit 83. Among them:
[0271] The first receiving unit 81 is used to receive inspection inquiry information sent by the monitoring device.
[0272] The first generating unit 82 is configured to generate patrol response information if the inquiry time corresponding to the patrol inquiry information meets a preset patrol time condition.
[0273] The sending unit 83 is used to send the inspection response information to the monitoring device.
[0274] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0275] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0276] Fig.14 This is a schematic diagram of the structure of a server provided in an embodiment of the present application. Fig.14 As shown, the server 9 of this embodiment includes: at least one processor 90 ( Fig.14 Only one is shown in the figure) a processor, a memory 91, and a computer program 92 stored in the memory 91 and executable on at least one processor 90. When the processor 90 executes the computer program 92, the steps in any of the above-mentioned inspection method embodiments are implemented.
[0277] The server 9 may include, but is not limited to, a processor 90 and a memory 91. Those skilled in the art will appreciate that Fig.14 It is only an example of the server 9 and does not constitute a limitation on the server 9. The server 9 may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, etc.
[0278] The processor 90 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0279] In some embodiments, the memory 91 may be an internal storage unit of the server 9, such as the memory of the server 9. In other embodiments, the memory 91 may also be an external storage device of the server 9, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the server 9. Further, the memory 91 may also include both an internal storage unit of the server 9 and an external storage device. The memory 91 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of a computer program. The memory 91 may also be used to temporarily store data that has been output or is to be output.
[0280] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0281] An embodiment of the present application provides a computer program product. When the computer program product runs on an inspection system, the inspection device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0282] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to the inspection equipment, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0283] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0284] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A patrol inspection method, It is characterized in that Applied to inspection equipment, including: When it is detected that the polling time has arrived, a patrol request is sent to the monitoring device; Receiving the inspection instruction sent by the monitoring device; the inspection instruction is generated by the monitoring device when it is determined that the request time corresponding to the inspection request meets the preset inspection time condition; The inspection script is executed according to the inspection instruction to obtain the inspection result.
2. The inspection method according to claim 1, It is characterized in that After sending the inspection request to the monitoring device, the method further includes: receiving an inspection rejection instruction sent by the monitoring device; the inspection rejection instruction is generated by the monitoring device after receiving the inspection rejection information sent by the server; the inspection rejection information is generated by the server when it detects that the inspection program does not meet the inspection time condition after receiving the inspection inquiry information sent by the monitoring device; According to the inspection rejection instruction, the current inspection is stopped or skipped, or a sleep state is entered.
3. The inspection method according to claim 1, It is characterized in that After sending the inspection request to the monitoring device, the method further includes: Obtaining first version information of the inspection script and second version information of the program package to be updated; the program package to be updated is used to represent the latest inspection script; If the first version information does not match the second version information, the inspection script is updated based on the program package to be updated to obtain a target script.
4. The inspection method according to claim 1, It is characterized in that The inspection instruction is generated by the following steps: The monitoring device generates inspection query information based on the inspection request, and sends the inspection query information to the server; After receiving the inspection inquiry information, the server generates inspection response information if the inquiry time corresponding to the inspection inquiry information is within the preset inspection time, and sends the inspection response information to the monitoring device; After receiving the inspection response information, the monitoring device determines that the request time meets the inspection time condition and generates the inspection instruction.
5. The inspection method according to claim 1, It is characterized in that The inspection time condition includes: the request time is the same as or coincides with a preset inspection time, or the request time is after the inspection time.
6. A patrol inspection method, It is characterized in that Applied to monitoring equipment, including: Receive inspection requests sent by inspection equipment; When it is determined that the request time corresponding to the inspection request meets the preset inspection time condition, generating an inspection instruction; The inspection instruction is sent to the inspection device.
7. The inspection method according to claim 6, It is characterized in that After sending the inspection instruction to the inspection device, the method further includes: Receiving the inspection result sent by the inspection device; Encrypting the inspection result based on a preset encryption algorithm to obtain an encrypted inspection result; The encrypted inspection result is sent to the server.
8. A patrol inspection method, It is characterized in that Applicable to servers, including: Receive inspection inquiry information sent by monitoring equipment; If the inquiry time corresponding to the inspection inquiry information meets the preset inspection time condition, then generate inspection response information; The inspection response information is sent to the monitoring device.
9. An inspection device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the inspection method according to any one of claims 1 to 5 is implemented.
10. A patrol inspection system, It is characterized in that include: An inspection device, connected to the monitoring device, and used to perform the inspection method according to any one of claims 1 to 4; The monitoring device is used to execute the inspection method as described in any one of claims 5 to 6.
