Implementation method of workshop intelligent security check system

By distributing multiple monitoring equipment in the workshop, using request, response and switching messages to achieve the establishment and processing of data tables, the problems of low safety inspection in traditional workshops and data islands are solved, and the rapid acquisition and safe production of workshop environmental parameters are achieved.

CN120448391AActive Publication Date: 2025-08-08CHANGSHU INSTITUTE OF TECHNOLOGY

Patent Information

Application Number
CN202510884664.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-08-08
Estimated Expiration
2045-06-30

AI Technical Summary

Technical Problem

Traditional workshops have low efficiency in safety inspections, easy to miss key hidden dangers, passive response, data silos and strong subjectivity, and lack of standardized evaluation.

Method used

The workshop intelligent security inspection system is adopted, through multiple evenly distributed monitoring devices, the establishment and processing of data tables is achieved using request, response and switching messages to ensure real-time monitoring and early warning of data.

Benefits of technology

It realizes the rapid acquisition of workshop environmental parameters, ensures safe production, improves monitoring efficiency and real-time data, and reduces delays and costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120448391A_ABST
    Figure CN120448391A_ABST
Patent Text Reader

Abstract

The invention provides an implementation method of a workshop intelligent security check system, the system comprises a plurality of monitoring devices uniformly distributed in a workshop, and the monitoring devices send request messages to monitor workshop data. Through the implementation method of the workshop intelligent security check system, the real-time parameters of the workshop environment, such as workshop temperature and humidity, dust concentration, harmful gases such as CO and SO2, can be rapidly obtained, safe production is ensured, and the implementation method has a wide application prospect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of monitoring technology, and in particular to a method for implementing an intelligent workshop security inspection system. Background Art

[0002] Traditional workshop safety inspections rely primarily on manual inspections, regular maintenance, and post-event repairs. This approach has the following problems: (1) Low efficiency: Manual inspections are time-consuming and prone to missing critical hazards. (2) Passive response: Failures are handled only after they occur, resulting in downtime losses. (3) Data silos and scattered inspection records make it difficult to analyze the overall health status of equipment. (4) Highly subjective: Relying on experience and lacking standardized assessments.

[0003] This system is designed to achieve rapid monitoring and early warning of workshop data, replacing manual inspections (such as high temperature and high pressure environments) to achieve safe production. Summary of the Invention

[0004] Purpose of the invention: The technical problem to be solved by the present invention is to provide a method for implementing a workshop intelligent security inspection system in response to the shortcomings of the existing technology.

[0005] Technical solution: The present invention discloses a method for implementing a workshop intelligent security inspection system. The system includes multiple monitoring devices evenly distributed in the workshop. The method includes: The monitoring device sends a request message to monitor workshop data; If the device ID of the monitoring device that receives the request message is the same as the device ID in the request message, and there exists a data table item with a name equal to the name in the request message and coordinates included in the coordinate set of the request message, then create a request data table variable, add the data table item that meets the conditions to the request data table variable, and remove the coordinates of the selected data table item from the coordinate set of the request message; The monitoring device that receives the request message creates a coordinate set variable. For each coordinate in the coordinate set in the request message, if the monitoring device does not have a processing table entry with the same name as the one in the request message and the same coordinates as the coordinate, the monitoring device creates a corresponding processing table entry and adds the coordinate to the coordinate set variable. If the coordinate set variable is not empty, the monitoring device forwards the request message. The monitoring device sends a response message, and the monitoring device that receives the response message creates a response data table variable. For each data table item in the response message, if the monitoring device has a processing table item with the same name and coordinates as the data table item, the data table item is added to the response data table variable and the corresponding processing table item is removed; if the response data table variable is not empty, the response message is forwarded; when the monitoring device that sent the request message receives the response message, the data table in the response message is saved.

[0006] The method further comprises: If the processing table of the monitoring device is not empty and the location has moved, sending a switching message; When the device ID of the monitoring device that receives the switching message is consistent with the device ID in the switching message, and the monitoring device has a data table item with the same name as the name in the switching message and coordinates included in the coordinate set, create an initially empty switching data table variable, select a data table item that meets the conditions, add it to the switching data table variable, and remove the coordinates of the selected data table item from the coordinate set of the switching message; If the device ID of the monitoring device that receives the switching message is consistent with the device ID in the switching message, and its current coordinates are included in the coordinate set of the switching message, then create the data defined by the switching message name, and add a data table entry to its own data table and the switching data table variable respectively. The name of the data table entry is the same as the name in the switching message, the coordinates are its current coordinates, the data are newly created data, the life cycle is set to the maximum value, and the current coordinates of the monitoring device are removed from the coordinate set of the switching message. The monitoring device sends a response message with a message ID of 3, a name that is the same as the name in the switching message, and data table content that is the switching data table variable.

[0007] The method further comprises: If the coordinate set of the switching message is not empty, the monitoring device that receives the switching message creates a switching coordinate set variable with an initial value of empty. For each coordinate in the switching message coordinate set, if the monitoring device does not have a processing table entry with the same name as the name in the switching message and the same coordinates as this coordinate, it creates such a processing table entry and adds the coordinate to the switching coordinate set variable; if the switching coordinate set variable is not empty, the switching message is forwarded.

[0008] The method further comprises: The monitoring device that sends the switching message sets two processing table variables n1 and n2, where the value of n1 is its own processing table and n2 is initialized to an empty table; The monitoring device selects the first processing table entry from the processing table variable n1 and selects a device table entry whose coordinates are closest to the first processing table entry; For each processing table entry in the processing table variable n1, if the distance between its coordinates and the coordinates of the selected device table entry is less than or equal to the distance between its coordinates and the coordinates of all other device table entries, then add the processing table entry to the processing table variable n2; The monitoring device sends a switching message with a message ID of 5, where the device ID is the device ID of the selected device entry, and the processing table in the message is the processing table variable n2; The monitoring device deletes all processing table entries contained in the processing table variable n2 from the processing table variable n1, and resets the processing table variable n2 to an empty table.

[0009] The method further comprises: The initial values of the request data table variables and the response data table variables are both empty tables; If the device ID of the monitoring device receiving the request message is consistent with the device ID in the request message, and its current coordinates are included in the coordinate set of the request message, then create the data defined by the request message name, and add a data table item to its own data table and the request data table variable respectively. The name of the data table item is the same as the name in the request message, the coordinates are its current coordinates, the data are newly created data, the life cycle is set to the maximum value, and the coordinates are removed from the coordinate set of the request message.

[0010] The method further comprises: The monitoring device that receives the request message creates a coordinate set variable with an initial value of empty. In the request message forwarded by the monitoring device, the coordinate set is set to the coordinate set variable, and a device table entry is selected. The distance between the coordinates of the device table entry and the first coordinate in the coordinate set of the request message is the shortest, and the device ID in the request message is set to the device ID of the device table entry.

[0011] The method further comprises: If the monitoring device receiving the device message has a device table entry with a device ID identical to the device ID in the device message, its coordinates are updated to the coordinates in the device message and its lifecycle is set to the maximum value; otherwise, a new device table entry is created with its device ID equal to the device ID in the device message, its coordinates are set to the coordinates in the device message, and its lifecycle is set to the maximum value.

[0012] The method further comprises: After creating the data, the monitoring device determines whether there is a data table item in its data table with the same name as the data name and coordinates consistent with its own current coordinates; if so, the data of the data table item is updated to the newly created data, and the life cycle is set to the maximum value; otherwise, a new data table item is created with the same name as the data name, the coordinates are its own current coordinates, the data is the newly created data, and the life cycle is set to the maximum value.

[0013] The method further comprises: The monitoring device calculates the distance between its own coordinates and each coordinate in the preset coordinate set, and sorts the coordinate set from smallest to largest distance, where the first coordinate is the closest point and the last coordinate is the farthest point; The monitoring device selects a device table entry whose coordinates are the shortest distance from the first sorted coordinate; the monitoring device sends a request message with a message ID of 2, the device ID is the device ID of the selected device table entry, the name is the preset name, and the coordinate set is the sorted coordinate set.

[0014] The method further comprises: In the response message sent by the monitoring device that receives the request message, the message ID is 3, the name is the same as the name in the request message, and the data table is the requested data table variable; When the monitoring device receiving the response message forwards the response message, the data table content thereof is set as the response data table variable.

[0015] Beneficial effects: The present invention provides an implementation method of a workshop intelligent security inspection system. The implementation method of a workshop intelligent security inspection system provided by the present invention can quickly obtain real-time parameters of the workshop environment, such as workshop temperature and humidity, dust concentration, harmful gases CO, SO2, etc., to ensure safe production, and has broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, and the above and / or other advantages of the present invention will become more apparent.

[0017] Figure 1 This is a flow chart of a method for implementing the workshop intelligent security inspection system of the present invention; Figure 2 Create a flow chart for the equipment table.

[0018] Figure 3 Data flow chart for monitoring workshop.

[0019] Figure 4 Mobile support flow chart for monitoring equipment. DETAILED DESCRIPTION

[0020] To enable those skilled in the art to better understand the technical solutions of the present invention, the present invention is further described below in conjunction with the accompanying drawings and specific embodiments. It is apparent that the described embodiments are only a portion of the embodiments of the present invention, rather than all of them. Based on the described embodiments of the present invention, all other embodiments obtained by those skilled in the art without requiring creative effort are within the scope of protection of the present invention.

[0021] Figure 1 This is a flow chart of the implementation method of the workshop intelligent security inspection system of the present invention; Figure 2 Create a flow chart for the equipment table. The system consists of multiple monitoring devices evenly distributed in the workshop monitoring area. The monitoring devices can be robots or smart cars with mobility; The monitoring equipment covers the entire workshop monitoring area; One type of data is uniquely identified by a name, such as workshop temperature and humidity, dust concentration, harmful gases CO, SO2, etc.

[0022] Each monitoring device is uniquely identified by a device ID; Each monitoring device stores a device table, and a device table entry contains coordinates, device ID, and life cycle; Messages are uniquely identified by message IDs; The device message contains the message ID, device ID and coordinates; The monitoring device regularly performs the following operations: Step 101: Start; Step 102: The monitoring device sends a device message with a message ID of 1, and the device ID and coordinates are equal to its own device ID and coordinates respectively; Step 103: The monitoring device that receives the device message determines whether there is a device table entry whose device ID is equal to the device ID in the device message. If so, step 104 is executed; otherwise, step 105 is executed. Step 104: The monitoring device that receives the device message selects a device table entry whose device ID is equal to the device ID in the device message, sets the coordinates of the device table entry to the coordinates in the device message, sets the life cycle to the maximum value, and executes step 106; Step 105: The monitoring device that receives the device message creates a device table entry, where the device ID of the device table entry is equal to the device ID in the device message, sets the coordinates of the device table entry to the coordinates in the device message, and sets the life cycle to the maximum value; Step 106: End.

[0023] The monitoring device sends a device message through the above process to establish a device table entry in the monitoring device. In this way, the monitoring device can obtain the real-time coordinates and device IDs of other monitoring devices, establish the optimal routing path to monitor workshop data, and achieve efficient workshop environment monitoring.

[0024] Figure 3This is a data flow chart for monitoring a workshop. Each monitoring device stores a data table, where a data table item contains coordinates, name, data, and lifecycle. After a monitoring device creates data identified by the name NA1, it determines whether there is a data table item in the data table whose name is equal to NA1 and whose coordinates are equal to its current coordinates. If so, it updates the data in the data table item to the data it created and sets the lifecycle to the maximum value. Otherwise, it creates a data table item whose name is equal to NA1 and whose coordinates are equal to its current coordinates, sets the data in the data table item to the data it created, and sets the lifecycle to the maximum value. The monitoring device saves a processing table, and a processing table entry contains a name and coordinates; The request message contains the message ID, device ID, name and coordinate set; The response message contains the message ID and data table; Monitoring device MN1 wants to obtain data defined by name NA1 for each coordinate in coordinate set CS1, for example, the dust concentration at different locations in the workshop. If a monitoring device is deployed at each coordinate in coordinate set CS1, monitoring device MN1 performs the following operations to obtain data defined by name NA1 for each coordinate in data set CS1: Step 201: Start; Step 202: The monitoring device MN1 calculates the distance between its own coordinates and each element in the coordinate set CS1, and arranges each element in the set CS1 in ascending order according to the calculated distances, i.e., the monitoring device MN1 is closest to the first element and farthest from the last element. The monitoring device MN1 selects a device table entry whose coordinates are closest to the first element in the set CS1, and sends a request message with a message ID of 2, a device ID equal to the device ID in the device table entry, a name equal to NA1, and a coordinate set equal to the set CS1. Step 203: The monitoring device that receives the request message determines whether its own device ID is equal to the device ID in the request message. If so, step 204 is executed; otherwise, step 218 is executed. Step 204: If the current coordinates of the monitoring device that receives the request message are included in the coordinate set of the request message, or there is at least one data table entry whose name is equal to the name in the request message and whose coordinates are included in the coordinate set in the request message, then execute step 205; otherwise, execute step 209; Step 205: The monitoring device that receives the request message sets a request data table variable tp1. The initial value of the variable tp1 is an empty table. If the monitoring device has at least one data table item whose name is equal to the name in the request message and whose coordinates are included in the coordinate set in the request message, then all data table items whose names are equal to the name in the request message and whose coordinates are included in the coordinate set in the request message are selected, and the selected data table items are added to the data table variable tp1. For each selected data table item, the monitoring device deletes the coordinates of the data table item from the coordinate set in the request message. Step 206: If the current coordinates of the monitoring device that receives the request message are included in the coordinate set of the request message, then execute step 207; otherwise, execute step 208; Step 207: The monitoring device that receives the request message creates the data defined by the name of the request message, creates a data table entry in its own data table and variable tp1 respectively, with the name of the data table entry being equal to the name of the request message, the coordinates being equal to its own current coordinates, the data being equal to the created data, and the lifecycle being equal to the maximum value, and deletes its own current coordinates from the coordinate set in the request message. Step 208: The monitoring device that receives the request message sends a response message, wherein the message ID of the response message is 3, the name is equal to the name in the request message, and the data table is equal to the variable tp1; Step 209: The monitoring device that receives the request message determines whether the coordinate set of the request message is an empty set. If so, step 213 is executed; otherwise, step 210 is executed. Step 210: The monitoring device that receives the request message sets a coordinate set variable p2 to an empty set, and performs the following operation on each coordinate in the coordinate set in the request message: if a processing table entry does not exist, the name of the processing table entry is equal to the name in the request message, and the coordinates are equal to the coordinates, then creates a processing table entry with the name of the processing table entry equal to the name in the request message and the coordinates equal to the coordinates, and adds the coordinates to the variable p2; Step 211: The monitoring device that receives the request message determines whether the variable p2 is an empty set. If so, step 213 is executed; otherwise, step 212 is executed. Step 212: The monitoring device that receives the request message calculates the distance between its own coordinates and each element in variable p2, sorts each element in variable p2 in ascending order based on the calculated distances, sets the coordinate set of the request message to variable p2, selects a device table entry whose coordinates are closest to the first element in the coordinate set in the request message, sets the device ID of the request message to the device ID of the device table entry, forwards the request message, and executes step 203. Step 213: If the monitoring device MN1 receives the response message, execute step 217; otherwise, execute step 214; Step 214: The monitoring device that receives the response message sets a response data table variable tp2, the value of which is equal to an empty table, and performs the following operation for each data table item in the response message: determining whether there is a processing table item whose name and coordinates are respectively equal to the name and coordinates of the data table item; if so, adding the data table item to the variable tp2 and deleting the processing table item; otherwise, performing no operation; Step 215: The monitoring device that receives the response message determines whether the variable tp2 is an empty set. If so, step 218 is executed; otherwise, step 216 is executed. Step 216: The monitoring device that receives the response message sets the data table in the response message to the variable tp2, sends the response message, and executes step 213; Step 217: The monitoring device MN1 that receives the response message saves the data table in the response message and determines whether all data defined by each coordinate in the coordinate set CS1 and the name NA1 has been received, that is, whether all data table entries with coordinates equal to each coordinate in the set CS1 and names equal to NA1 have been received. If so, execute step 218; otherwise, execute step 213. Step 218: End.

[0025] The monitoring device obtains vehicle monitoring data through the above process, which has the following innovations: (1) The monitoring device MN1 can obtain workshop environment data at multiple locations through the above process. For example, the monitoring device can simultaneously obtain dust concentrations at different locations in the workshop. If it is found to exceed the standard, an early warning will be issued, effectively improving the efficiency of workshop environment monitoring; (2) Request aggregation is achieved by using the processing table, and the data is directly returned to the monitoring device MN1 without establishing a route; (3) The monitoring device MN1 obtains workshop environment data from the nearest monitoring device, which greatly reduces the delay and cost of monitoring workshop environment data and improves the efficiency of workshop security inspection.

[0026] Figure 4 Mobile support flow chart for monitoring equipment.

[0027] The switching message contains the message ID, device ID and processing table; If the processing table of the monitoring device MN2 is not empty and the location has moved, the following operations are performed: Step 301: Start; Step 302: The monitoring device MN2 sets two processing table variables n1 and n2. The value of variable n1 is its own processing table, and the value of variable n2 is an empty table. Step 303: The monitoring device MN2 selects the first processing entry from the variable n1, and selects a device entry NE1 whose coordinates are closest to the coordinates of the processing entry. For each processing entry in the variable n1, the monitoring device MN2 performs the following operations: It determines whether the coordinates of the processing entry are closest to the coordinates of the device entry NE1 among all the device entries. If so, it adds the processing entry to the variable n2. Step 304: The monitoring device MN2 sends a handover message, the message ID of which is 5, the device ID is equal to the device ID of the device table entry NE1, and the processing table is equal to the variable n2; Step 305: The monitoring device MN2 deletes all processing table entries contained in the variable n2 from the variable n1, sets the variable n2 to an empty table, and determines whether the variable n1 is an empty table. If so, the monitoring device MN2 executes step 306; otherwise, the monitoring device MN2 executes step 303. Step 306: The monitoring device that receives the switching message determines whether its own device ID is equal to the device ID in the switching message. If so, step 307 is executed; otherwise, step 319 is executed. Step 307: If the current coordinates of the monitoring device that receives the switching message are included in the coordinate set of the switching message, or there is at least one data table entry whose name is equal to the name in the switching message and whose coordinates are included in the coordinate set in the switching message, then execute step 308; otherwise, execute step 313; Step 308: The monitoring device that receives the switching message sets a switching data table variable tp3, where the initial value of the variable tp3 is an empty table. If the monitoring device has at least one data table entry whose name is equal to the name in the switching message and whose coordinates are included in the coordinate set in the switching message, all data table entries whose names are equal to the name in the switching message and whose coordinates are included in the coordinate set in the switching message are selected, and the selected data table entries are added to the variable tp3. For each selected data table entry, the monitoring device deletes the coordinates of the data table entry from the coordinate set in the switching message. Step 309: If the current coordinates of the monitoring device that receives the switching message are included in the coordinate set of the switching message, then execute step 310; otherwise, execute step 311; Step 310: The monitoring device that receives the switching message creates data defined by the name of the switching message, creates a data table entry in its own data table and variable tp3 respectively, with the name of the data table entry being equal to the name of the switching message, the coordinates being equal to its current coordinates, the data being equal to the created data, and the lifecycle being equal to the maximum value, and deletes its current coordinates from the coordinate set in the switching message. Step 311: The monitoring device that receives the switching message sends a response message, wherein the message ID of the response message is 3, the name is equal to the name in the switching message, and the data table is equal to the variable tp3; Step 312: The monitoring device that receives the switching message determines whether the coordinate set of the switching message is an empty set. If so, step 319 is executed; otherwise, step 313 is executed. Step 313: The monitoring device that receives the switching message sets two coordinate set variables, q1 and q2. The value of variable q1 is equal to the coordinate set in the switching message, and the value of variable q2 is an empty set. For each coordinate in variable q1, the following operation is performed: if a processing table entry does not exist, the name of the processing table entry is equal to the name in the switching message, and the coordinates are equal to the coordinates, then a processing table entry is created, the name of the processing table entry is equal to the name in the switching message, and the coordinates are equal to the coordinates, and the coordinates are added to variable q2. Step 314: The monitoring device that receives the switching message determines whether the variable q2 is an empty set. If so, step 319 is executed; otherwise, step 315 is executed. Step 315: The monitoring device that receives the switching message sets two processing table variables t1 and t2. The value of variable t1 is equal to variable q2, and the value of variable t2 is an empty table. Step 316: The monitoring device that receives the switching message selects the first processing entry from variable t1, and selects a device entry NE2 whose coordinates are closest to the coordinates of the processing entry. For each processing entry in variable t1 (including the first processing entry), the monitoring device determines whether the coordinates of the processing entry are closest to the coordinates of the device entry NE2 among all the device entries. If so, the monitoring device adds the processing entry to variable t2. Step 317: The monitoring device that receives the handover message sets the device ID in the handover message to the device ID of the device table entry NE2, sets the processing table to variable t2, and forwards the handover message. Step 318: The monitoring device that receives the switching message deletes all processing table entries contained in variable t2 from variable t1, sets variable t2 to an empty table, and determines whether variable t1 is an empty table. If so, execute step 306; otherwise, execute step 316. Step 319: End.

[0028] The monitoring equipment realizes mobile switching through the above process. Its innovations include: (1) ensuring that the monitoring node returns data to the monitoring node that requests data through the processing table; (2) when the monitoring node moves, the monitoring node that requests data can still obtain the workshop environment data at different locations, ensuring the real-time and effectiveness of workshop security inspections; (3) the above switching process supports the mobility of the monitoring equipment, effectively improving the safety and reliability of workshop security inspections. For example, the monitoring equipment can simultaneously obtain the dust concentration at different locations in the workshop, and issue an early warning if it is found to exceed the standard.

[0029] Example 1 Based on the simulation parameters in Table 1, this embodiment simulates an implementation method of a workshop intelligent security inspection system according to the present invention. The performance analysis is as follows: when the workshop area is large, the success rate of obtaining real-time workshop environment data decreases. When the workshop area is small, the success rate of obtaining real-time workshop environment data increases. The average success rate of remote monitoring of workshop environment data is 98.76%.

[0030] Table 1

[0031] This invention provides a method for implementing an intelligent workshop security inspection system. Numerous methods and approaches exist for implementing this technical solution. The foregoing merely represents a preferred embodiment of the invention. It should be noted that those skilled in the art may make improvements and modifications without departing from the principles of the invention, and such improvements and modifications are considered within the scope of protection of this invention. Any components not specified in this embodiment may be implemented using existing technologies.

Claims

1. A method for implementing a workshop intelligent security inspection system, characterized in that: The system includes a plurality of monitoring devices evenly distributed in a workshop, and the method includes: The monitoring device sends a request message to monitor workshop data; If the device ID of the monitoring device that receives the request message is the same as the device ID in the request message, and there exists a data table item with a name equal to the name in the request message and coordinates included in the coordinate set of the request message, then create a request data table variable, add the data table item that meets the conditions to the request data table variable, and remove the coordinates of the selected data table item from the coordinate set of the request message; The monitoring device that receives the request message creates a coordinate set variable. For each coordinate in the coordinate set in the request message, if the monitoring device does not have a processing table entry with the same name as the one in the request message and the same coordinates as the coordinate, the monitoring device creates a corresponding processing table entry and adds the coordinate to the coordinate set variable. If the coordinate set variable is not empty, the monitoring device forwards the request message. The monitoring device sends a response message, and the monitoring device that receives the response message creates a response data table variable. For each data table item in the response message, if the monitoring device has a processing table item with the same name and coordinates as the data table item, the data table item is added to the response data table variable and the corresponding processing table item is removed; if the response data table variable is not empty, the response message is forwarded; when the monitoring device that sent the request message receives the response message, the data table in the response message is saved.

2. The method for implementing a workshop intelligent security inspection system according to claim 1, characterized in that: The method further comprises: If the processing table of the monitoring device is not empty and the location has moved, sending a switching message; When the device ID of the monitoring device that receives the switching message is consistent with the device ID in the switching message, and the monitoring device has a data table item with the same name as the name in the switching message and coordinates included in the coordinate set, create an initially empty switching data table variable, select a data table item that meets the conditions, add it to the switching data table variable, and remove the coordinates of the selected data table item from the coordinate set of the switching message; If the device ID of the monitoring device that receives the switching message is consistent with the device ID in the switching message, and its current coordinates are included in the coordinate set of the switching message, then create the data defined by the switching message name, and add a data table entry to its own data table and the switching data table variable respectively. The name of the data table entry is the same as the name in the switching message, the coordinates are its current coordinates, the data are newly created data, the life cycle is set to the maximum value, and the current coordinates of the monitoring device are removed from the coordinate set of the switching message. The monitoring device sends a response message with a message ID of 3, a name that is the same as the name in the switching message, and data table content that is the switching data table variable.

3. The method for implementing a workshop intelligent security inspection system according to claim 2, characterized in that: The method further comprises: If the coordinate set of the switching message is not empty, the monitoring device that receives the switching message creates a switching coordinate set variable with an initial value of empty. For each coordinate in the switching message coordinate set, if the monitoring device does not have a processing table entry with the same name as the name in the switching message and the same coordinates as this coordinate, it creates such a processing table entry and adds the coordinate to the switching coordinate set variable; if the switching coordinate set variable is not empty, the switching message is forwarded.

4. The method for implementing a workshop intelligent security inspection system according to any one of claims 1 to 3, characterized in that: The monitoring device that sends the switching message sets two processing table variables n1 and n2, where the value of n1 is its own processing table and n2 is initialized to an empty table; The monitoring device selects the first processing table entry from the processing table variable n1 and selects a device table entry whose coordinates are closest to the first processing table entry; For each processing table entry in the processing table variable n1, if the distance between its coordinates and the coordinates of the selected device table entry is less than or equal to the distance between its coordinates and the coordinates of all other device table entries, then add the processing table entry to the processing table variable n2; The monitoring device sends a switching message with a message ID of 5, where the device ID is the device ID of the selected device entry, and the processing table in the message is the processing table variable n2; The monitoring device deletes all processing table entries contained in the processing table variable n2 from the processing table variable n1, and resets the processing table variable n2 to an empty table.

5. The method for implementing a workshop intelligent security inspection system according to any one of claims 1 to 3, characterized in that: The method further comprises: The initial values of the request data table variables and the response data table variables are both empty tables; If the device ID of the monitoring device receiving the request message is consistent with the device ID in the request message, and its current coordinates are included in the coordinate set of the request message, then create the data defined by the request message name, and add a data table item to its own data table and the request data table variable respectively. The name of the data table item is the same as the name in the request message, the coordinates are its current coordinates, the data are newly created data, the life cycle is set to the maximum value, and the coordinates are removed from the coordinate set of the request message.

6. The method for implementing a workshop intelligent security inspection system according to any one of claims 1 to 3, characterized in that: The method further comprises: The monitoring device that receives the request message creates a coordinate set variable with an initial value of empty. In the request message forwarded by the monitoring device, the coordinate set is set to the coordinate set variable, and a device table entry is selected. The distance between the coordinates of the device table entry and the first coordinate in the coordinate set of the request message is the shortest, and the device ID in the request message is set to the device ID of the device table entry.

7. The method for implementing a workshop intelligent security inspection system according to any one of claims 1 to 3, characterized in that: The method further comprises: If the monitoring device receiving the device message has a device table entry with a device ID identical to the device ID in the device message, its coordinates are updated to the coordinates in the device message and its lifecycle is set to the maximum value; otherwise, a new device table entry is created with its device ID equal to the device ID in the device message, its coordinates are set to the coordinates in the device message, and its lifecycle is set to the maximum value.

8. The method for implementing a workshop intelligent security inspection system according to any one of claims 1 to 3, characterized in that: The method further comprises: After creating the data, the monitoring device determines whether there is a data table item in its data table with the same name as the data name and coordinates consistent with its own current coordinates; if so, the data of the data table item is updated to the newly created data, and the life cycle is set to the maximum value; otherwise, a new data table item is created with the same name as the data name, the coordinates are its own current coordinates, the data is the newly created data, and the life cycle is set to the maximum value.

9. The method for implementing a workshop intelligent security inspection system according to any one of claims 1 to 3, characterized in that: The monitoring device calculates the distance between its own coordinates and each coordinate in the preset coordinate set, and sorts the coordinate set from smallest to largest distance, where the first coordinate is the closest point and the last coordinate is the farthest point; The monitoring device selects a device table entry whose coordinates are the shortest distance from the first sorted coordinate; the monitoring device sends a request message with a message ID of 2, the device ID is the device ID of the selected device table entry, the name is the preset name, and the coordinate set is the sorted coordinate set.

10. The method for implementing a workshop intelligent security inspection system according to any one of claims 1 to 3, characterized in that: In the response message sent by the monitoring device that receives the request message, the message ID is 3, the name is the same as the name in the request message, and the data table is the requested data table variable; When the monitoring device receiving the response message forwards the response message, the data table content thereof is set as the response data table variable.

Citation Information

Patent Citations

  • Method and system for grouping wireless sensor networks, as well as sensor and data sink node

    CN102333388A

  • Workshop-level data acquisition and monitoring method, apparatus and device, and storage medium

    CN115412539A

  • Production line data acquisition control method and system for intelligent workshop

    CN118311914A

  • Implementation method of agricultural greenhouse monitoring and early warning system

    CN118785295A

  • Data synchronization method and system between devices

    US20090198772A1

Cited By

  • Implementation method of intelligent coal mine monitoring data transmission system

    CN120676364A

  • Implementation method of intelligent coal mine monitoring data transmission system

    CN120676364B