Control and communication method for mine edge embedded substation
By configuring measurement point information and control rule files in the edge embedded substation for mining, the problem of poor versatility of monitoring substations is solved, enabling online configuration and flexible adjustment, reducing R&D and maintenance costs, and improving the versatility and real-time control of the equipment.
Patent Information
- Application Number
- CN202310932870.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-26
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2043-07-26
AI Technical Summary
Existing mine monitoring substations have poor versatility, resulting in high R&D and maintenance costs, and require customized development for different coal mining enterprises.
This paper provides a control and communication method for a mining edge embedded substation. By configuring measurement point information files and control rule information files on a web microservice terminal, the online configuration and flexible function adjustment of measurement point devices and controlled devices are realized. TCP client and server are used for data transmission and execution of control rules.
It enables online configuration and flexible modification of measuring devices and controlled devices, improves versatility, reduces development and maintenance costs, supports parallel control of multiple controlled devices, and has high real-time performance and fast data reading capabilities.
Smart Images

Figure CN116800849B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mining equipment, and in particular to a control and communication method for a mining edge embedded substation. Background Art
[0002] The coal mine safety monitoring system is a system designed specifically for coal mine safety monitoring requirements, and the monitoring substation is the key equipment of the system. This equipment can realize data collection of various signal sensors and control of execution equipment on various working surfaces.
[0003] However, the existing monitoring substations are customized according to the needs of coal mining enterprises. This means that R&D companies need to develop customized monitoring substations for different coal mining enterprises. If the on-site functional requirements change, R&D personnel are also required to modify the program. This not only leads to a huge workload for R&D personnel, but also high development and maintenance costs. Summary of the Invention
[0004] The technical problem to be solved by the present invention is that the existing mining monitoring substations have poor versatility. To this end, the present invention provides a control and communication method for a mining edge embedded substation, which can flexibly configure functions according to needs and has strong versatility.
[0005] The technical solution adopted by the present invention to solve its technical problems is: a control and communication method for an edge embedded substation for a mine, comprising: S1, configuring a measurement point information file and a control rule information file on a web microservice end, and saving the two configured files to a memory; S2, a data acquisition and parsing unit reads and parses the measurement point information file from the memory to obtain measurement point information; S3, the TCP client requests the TCP server to read the real-time cached data of the measurement point according to the parsed measurement point information; S4, the TCP server reads the real-time cached data of the measurement point from the memory according to the request of the TCP client, and sends the read real-time cached data to the TCP client, and the TCP client sends it to the data acquisition and parsing unit; S5, the data acquisition and parsing unit reads and parses the control rule information file from the memory, and compares the real-time cached data with the control rule, and triggers the controlled device to perform corresponding operations according to the comparison result.
[0006] Furthermore, configure the measurement point information file on the web microservice side, including:
[0007] Add N measuring point devices and M controlled devices;
[0008] sequentially setting the serial numbers, measuring point device addresses, measuring point device register start addresses, and measuring point device register lengths of N measuring point devices;
[0009] The serial numbers, controlled device addresses, controlled device register start addresses, controlled device register lengths, output control values, and rule satisfaction numbers of the M controlled devices are sequentially set.
[0010] Furthermore, the control rule information file is configured on the web microservice side, including:
[0011] Select the controlled device and add at least one control rule under the controlled device column;
[0012] adding a control condition under each of the control rules;
[0013] The control conditions include the measuring point device address and the monitoring data threshold.
[0014] Furthermore, when the real-time monitoring data of the measuring point meets the control condition and the rule satisfaction number, the controlled device is triggered to perform a corresponding operation.
[0015] Furthermore, when multiple control rules are added, the multiple control rules are combined using logical AND or logical OR operations.
[0016] Furthermore, the measuring point device register is used to store real-time monitoring data of the measuring point, and the length of the measuring point device register indicates the number of registers used for the real-time monitoring data; the controlled device register is used to store the output control value, and the length of the controlled device register indicates the number of registers used for the output control value.
[0017] Furthermore, the measuring point information file and the control rule information file can be edited and modified online.
[0018] Furthermore, a two-dimensional data linked list is stored in the memory, and the two-dimensional data linked list contains multiple one-dimensional arrays, and the multiple one-dimensional arrays are arranged in sequence, wherein each of the one-dimensional arrays contains a device address and multiple register addresses, and the register addresses are arranged in ascending order.
[0019] Furthermore, according to the configured measuring point device register start address and measuring point device register length, the real-time monitoring data collected by the measuring point is sent to the modbus RTU driver unit via the RS485 bus, and the modbus RTU driver unit then stores the real-time monitoring data in the corresponding position of the two-dimensional data linked list.
[0020] Furthermore, when real-time monitoring data is stored, the monitoring data collected by the current frame will overwrite the monitoring data collected by the previous frame. When the register in the two-dimensional data linked list has not received new monitoring data within the set time, the register will automatically add the identifier "None".
[0021] The beneficial effects of the present invention are that the control and communication method for a mining edge embedded substation enables online configuration of measuring point devices and controlled devices, and allows online modification of measuring point configuration and control logic based on different application scenarios. It is flexible and versatile. It can control multiple controlled devices in parallel, achieving high real-time control performance. Real-time monitoring data is independently cached and timeout diagnosed, making it faster to read. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The present invention will be further described below with reference to the accompanying drawings and examples.
[0023] Figure 1 This is a workflow diagram of the mine edge embedded substation of the present invention.
[0024] Figure 2 It is a schematic diagram of the interface of the measurement point information configuration of the present invention.
[0025] Figure 3 This is a schematic diagram of the interface for configuring the control rules of the present invention. DETAILED DESCRIPTION
[0026] The present invention will now be described in further detail with reference to the accompanying drawings, which are simplified schematic diagrams that illustrate the basic structure of the present invention in a schematic manner.
[0027] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, features defined as "first" or "second" may explicitly or implicitly include one or more of such features. In the description of the present invention, unless otherwise specified, "multiple" means two or more.
[0028] In the description of the present invention, it should be noted that, unless otherwise expressly specified or limited, the terms "mounted," "connected," and "connected" should be understood in a broad sense. For example, they may refer to fixed, detachable, or integral connections; mechanical or electrical connections; direct or indirect connections through an intermediate medium; and internal communication between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on the specific circumstances.
[0029] like Figures 1 to 3 As shown, the present invention provides a control and communication method for a mining edge embedded substation, including: S1, configuring a measuring point information file and a control rule information file on a web microservice end, and saving the configured two files to a memory; S2, a data acquisition and parsing unit reads and parses the measuring point information file from the memory to obtain measuring point information; S3, the TCP client requests the TCP server to read the real-time cached data of the measuring point according to the parsed measuring point information; S4, the TCP server reads the real-time cached data of the measuring point from the memory according to the request of the TCP client, and sends the read real-time cached data to the TCP client, and the TCP client sends it to the data acquisition and parsing unit; S5, the data acquisition and parsing unit reads and parses the control rule information file from the memory, and compares the real-time cached data with the control rule, and triggers the controlled device to perform corresponding operations according to the comparison result.
[0030] It should be noted that the mining edge embedded substation of the present invention includes modules such as a TCP server, a memory, a TCP client, a web micro-service end, a memory, a data acquisition and parsing unit, a cache management unit, and a modbus RTU driver unit. When in use, the staff can configure the measuring point information file and the control rule information file on the web micro-service end according to the on-site needs. The measuring point represents the monitoring point of the sensor, the measuring point information file is used to understand the relevant information of the measuring point, and the control rule information file is used to understand the control logic. After configuring these two files, they can be stored in the memory in JSON format. The data acquisition and parsing unit can read these two files from the memory and parse out the relevant information and control rules of the measuring point. After the TCP client requests the TCP server to read the real-time monitoring data of the measuring point, the TCP server sends an instruction to the modbus RTU driver unit to obtain the real-time data of the corresponding measuring point device. After the modbus RTU driver unit obtains the real-time data of the measuring point device, it first stores it in the internal memory. For example, the modbus RTU driver unit is connected to the measuring point device and the controlled device in the well via the RS485 bus. The real-time monitoring data collected by the measuring point device can be transmitted to the modbus RTU driver unit via the RS485 bus, and then the modbus RTU driver unit transmits the data to the internal memory. Since the data transmission inside the monitoring substation is carried out via Ethernet, the measuring point device is carried out via the RS485 bus, and the output rate of Ethernet is different from that of RS485. The transmission rate of Ethernet is higher to ensure the real-time performance of the monitoring substation processing. Therefore, the present invention is provided with a modbus RTU driver unit to communicate with the measuring point device and store the collected real-time monitoring data in the internal memory.
[0031] The present invention can directly modify the measurement point information file and the control rule information file online on the web microservice end according to different application scenarios of the coal mine, without the need for R&D personnel to re-modify the program code. It can not only significantly improve the versatility of the mine edge embedded substation, but also significantly reduce the development and maintenance costs.
[0032] It should be noted that sensors (such as methane sensors, carbon monoxide sensors, temperature sensors, humidity sensors, etc.), actuators (such as valves), alarms, and other equipment in coal mines can be connected to the mine edge embedded substation via the RS485 bus. The mine edge embedded substation can communicate with the host computer above the mine via Ethernet, allowing the workstation above the mine to understand the working status of the mine in real time.
[0033] Specifically, the measuring point information file is configured on the web microservice end, including: adding N measuring point devices and M controlled devices; setting the serial number, measuring point device address, measuring point device register starting address and measuring point device register length of the N measuring point devices in sequence; setting the serial number, controlled device address, controlled device register starting address, controlled device register length, output control value and rule satisfaction number of the M controlled devices in sequence.
[0034] For example, suppose a coal mine has six measuring point devices and two controlled devices. Open the measuring point setup interface on the web microservice and add the six measuring point devices and two controlled devices in the table column. The six measuring point devices are numbered, for example, 1 to 6, and the two controlled devices are numbered, for example, 7 to 8. Then, set the measuring point device address, register start address, and register length for each measuring point device, as well as the controlled device address, register start address, register length, output control value, and number of rules satisfied for each controlled device. For example, measuring point device 1 has address 5, register start address 0, and register length 1; measuring point device 2 has address 4, register start address 1, and register length 2, and so on. For example, controlled device 7 has address 7, register start address 8, register length 1, output control value 100, and number of rules satisfied, and so on. Measuring point device registers store real-time monitoring data for the measuring point. The register length indicates the number of registers used for real-time monitoring data. Controlled device registers store output control values. The register length indicates the number of registers used for output control values. For example, if the register starting address is 1 and the register length is 2, the monitoring data for the measuring point device occupies registers 1 and 2. The complete monitoring data is formed by combining the data stored in registers 1 and 2.
[0035] In other words, when configuring the measurement point information file, the staff can flexibly set it according to the actual situation in the current well. In terms of operation, they only need to perform steps such as adding, editing, selecting, and deleting. Even staff who do not understand programming can operate it, and it is very convenient to use.
[0036] After configuring the measurement point information file, you can configure the control rule information file. The control rule information file is the control logic. For example, the sensor is the measurement point device, and the actuator and alarm are the controlled devices. When the data monitored by the sensor exceeds a certain level, the actuator and / or alarm needs to be turned on. This link is achieved through control logic.
[0037] For example, configuring a control rule information file on a web microservice involves: selecting a controlled device and adding at least one control rule under the controlled device column; adding control conditions under each control rule; control conditions include the device address of the measuring point and the monitoring data threshold. When the real-time monitoring data at the measuring point meets the control conditions and the rule satisfaction threshold, the controlled device is triggered to perform the corresponding operation. When multiple control rules are added, they are combined using logical AND or logical OR operations. For example, after clicking the controlled device column, options such as "Add New Rule" and "Delete This Rule" appear below. After clicking "Add New Rule," the corresponding control conditions can be set. For example, two control rules (denoted as Control Rule 1 and Control Rule 2) are set for controlled device 7. Control Rule 1 contains the control conditions: value ≥ 10 and address = 5, while Control Rule 2 contains the control conditions: value = 1 and address = 4. That is, when the monitoring data of the measuring point device at address 5 reaches 10 or more, it can trigger the execution of the operation on controlled device 7; when the monitoring data of the measuring point device at address 4 reaches 1, it can also trigger the execution of the operation on controlled device 7. If the number of rules satisfied by controlled device 7 is 1, then the execution of the operation on controlled device 7 can be triggered by satisfying either control rule 1 or control rule 2. If the number of rules satisfied by controlled device 7 is 2, then the execution of the operation on controlled device 7 can only be triggered by satisfying both control rule 1 and control rule 2.
[0038] In other words, the control rule information file of the present invention can be flexibly configured and edited at any time based on actual conditions or functional requirements. This means that the mine-use edge embedded substation of the present invention has an editable configuration function and is flexible in its application. It can modify not only the measuring point equipment and controlled equipment, but also the control rules. This makes it highly versatile and applicable to various scenarios.
[0039] It should be noted that after the data acquisition and parsing unit receives the cached data transmitted by the TCP client, the data acquisition and parsing unit opens the control rule information file and parses it, and compares the real-time affected area data with the control rules. If the control rules are met, the data acquisition and parsing unit sends a control instruction to the TCP client, the TCP client sends the control instruction to the TCP server, and the TCP server sends the control instruction to the modbus RTU driver unit. The modbus RTU driver unit outputs the charging instruction to the corresponding controlled device, and the controlled device performs the corresponding operation.
[0040] For example, a two-dimensional data linked list is stored in memory. The two-dimensional data linked list contains multiple one-dimensional arrays, which are arranged in sequence. Each one-dimensional array contains a measuring point device address and multiple register addresses, with the register addresses arranged in ascending order. An example of a two-dimensional data linked list is shown in Table 1. It should be noted that the number of register addresses corresponding to each measuring point device address in the two-dimensional data linked list is set according to the maximum register address contained in the measuring point information file. For example, if the maximum register address in the measuring point information file is 10, then the register addresses in each row of the two-dimensional data linked list are 0 to 10. This improves the neatness of the two-dimensional data linked list and prevents the timely storage of monitoring data due to missing registers. The two-dimensional data linked list can cache the real-time monitoring data collected by the sensor (i.e., the cached data in Table 1), arranged horizontally by register address sequence and vertically by device address number. The corresponding cached data in the two-dimensional data linked list can be retrieved using the register address and measuring point device address.
[0041] Table 1
[0042] Register Address 0 Register Address 1 Register Address 2 ... Register address x Measuring point device address 1 Cache data 0 Cache data 1 Cache data 2 ... Cache data x Measuring point device address 2 Cache data 0 Cache data 1 Cache data 2 ... Cache data x Measuring point device address 3 Cache data 0 Cache data 1 Cache data 2 ... Cache data x Measuring point device address 4 Cache data 0 Cache data 1 Cache data 2 ... Cache data x ... ... ... ... ... ...
[0043] Specifically, the real-time monitoring data collected by the measuring point is stored in the corresponding position of the two-dimensional data linked list according to the configured measuring point device register starting address and measuring point device register length. After the data acquisition and parsing unit parses the measuring point information, the corresponding real-time cache data (real-time cache data is real-time monitoring data) can be obtained from the two-dimensional data linked list according to the measuring point information. For example, the measuring point information file is configured with the measuring point device address of 1, the register starting address of 1, and the register length of 2, then the measuring point information is: the measuring point device address is 1, and the register addresses are 1 and 2. When the TCP client requests the TCP server, it requests to read the cache data of the register addresses 1 and 2 corresponding to the measuring point device address of 1. When storing real-time monitoring data, the monitoring data collected by the current frame will overwrite the monitoring data collected by the previous frame. When the register in the two-dimensional data linked list has not received new monitoring data within the set time, the register will automatically add the identifier "None". In other words, the cache management unit manages a two-dimensional data linked list. If a register address in the two-dimensional data linked list has not received new data for a set period of time (for example, 30 seconds), the cache management unit clears the data corresponding to that register address and marks it with the identifier "None." This way, when a host computer or TCP client requests data from the TCP server, these registers marked "None" will not respond (i.e., will not return data).
[0044] For example, if the monitoring data collected by the sensor at measuring point device address 1 in the measuring point information file is configured with a register starting address of 5 and a register length of 1, the real-time monitoring data collected by this measuring point will be stored in register address 5 in the row of address 1 in the two-dimensional data linked table. The other register addresses will be left blank. In other words, the data storage in the two-dimensional data linked table corresponds to the configuration in the measuring point information file. The monitoring substation can periodically inspect the sensors via the bus and store the latest monitoring data in the two-dimensional data linked table.
[0045] Taking an underground fire sprinkler fire extinguishing scenario as an example, the sensors are temperature sensors, smoke sensors, and gas concentration sensors (i.e., measuring point devices), and the actuators are sprinkler control valves and alarms (i.e., controlled devices). First, on the web microservice, the staff adds the three sensors and two controlled devices to the measuring point information file and configures the sensor and controlled device addresses, register starting addresses, register lengths, output control values, and rule satisfaction counts for the controlled devices. The control rules for each controlled device are then configured. The data acquisition and parsing unit opens the measuring point information file and parses the configured measuring point information. Based on the measuring point information, the TCP client then requests the TCP server to read the corresponding sensor's real-time cached data. The TCP server reads the corresponding cached data from a two-dimensional data linked list and transmits it back to the TCP client, which then transmits it back to the data acquisition and parsing unit. The data acquisition and parsing unit then opens the control rule information file and parses it, comparing the cached data with the control rules. If the control rules are satisfied, the control valve and alarm are opened.
[0046] In summary, the control and communication method for the edge-embedded mining substation of the present invention enables online configuration of measuring point devices and controlled devices, and allows online modification of measuring point configuration and control logic based on different application scenarios. It is flexible and versatile. It can control multiple controlled devices in parallel, achieving high real-time control. Real-time monitoring data is independently cached and timeout diagnosed, making it faster to read.
[0047] With the above-described preferred embodiments of the present invention as a guide, and with reference to the above description, relevant personnel are fully capable of making various changes and modifications without departing from the technical spirit of this invention. The technical scope of this invention is not limited to the contents of the specification, but must be determined according to the scope of the claims.
Claims
1. A control and communication method for a mining edge embedded substation, characterized in that: include: The mining edge embedded substation includes a TCP server, storage, TCP client, web micro-service end, memory, data acquisition and parsing unit, cache management unit and modbus RTU driver unit. S1. Configure the measurement point information file and the control rule information file on the web microservice end, and save the two configured files to the memory; S2. The data acquisition and analysis unit reads and analyzes the measuring point information file from the memory to obtain measuring point information; S3, the TCP client requests the TCP server to read the real-time cache data of the measuring point according to the parsed measuring point information; S4, the TCP server reads the real-time cache data of the measuring point from the memory according to the request of the TCP client, and sends the read real-time cache data to the TCP client, and the TCP client sends it to the data acquisition and analysis unit; S5, the data acquisition and parsing unit reads and parses the control rule information file from the memory, compares the real-time cache data with the control rule, and triggers the controlled device to perform a corresponding operation according to the comparison result; Configure the measurement point information file on the web microservice side, including: Add N measuring point devices and M controlled devices; sequentially setting the serial numbers, measuring point device addresses, measuring point device register start addresses, and measuring point device register lengths of N measuring point devices; sequentially setting the serial numbers, controlled device addresses, controlled device register start addresses, controlled device register lengths, output control values, and rule satisfaction numbers of the M controlled devices; Configure the control rule information file on the web microservice side, including: Select the controlled device and add at least one control rule under the controlled device column; adding a control condition under each of the control rules; The control conditions include the measuring point device address and monitoring data threshold; When the real-time monitoring data of the measuring point meets the control condition and the rule satisfaction number, the controlled device is triggered to perform the corresponding operation; When multiple control rules are added, the multiple control rules are combined using logical AND or logical OR operations.
2. The control and communication method of the mine edge embedded substation according to claim 1, characterized in that: The measuring point device register is used to store the real-time monitoring data of the measuring point, and the measuring point device register length indicates the number of registers used for the real-time monitoring data; the controlled device register is used to store the output control value, and the controlled device register length indicates the number of registers used for the output control value.
3. The control and communication method of the mine edge embedded substation according to claim 1, characterized in that: The measuring point information file and the control rule information file can be edited and modified online.
4. The control and communication method of the mine edge embedded substation according to claim 1, characterized in that: The memory stores a two-dimensional data linked list, which includes multiple one-dimensional arrays. The multiple one-dimensional arrays are arranged in sequence, wherein each of the one-dimensional arrays includes a measuring point device address and multiple register addresses, and the register addresses are arranged in ascending order.
5. The control and communication method of the mine edge embedded substation according to claim 4, characterized in that: According to the configured measuring point device register start address and measuring point device register length, the real-time monitoring data collected by the measuring point is sent to the Modbus RTU driver unit through the RS485 bus, and the Modbus RTU driver unit then stores the real-time monitoring data in the corresponding position of the two-dimensional data linked list.
6. The control and communication method of the mine edge embedded substation according to claim 5, characterized in that: When storing real-time monitoring data, the monitoring data collected in the current frame will overwrite the monitoring data collected in the previous frame. When the register in the two-dimensional data linked table has not received new monitoring data within the set time, the register will automatically add the identifier "None".
Citation Information
Patent Citations
Coal mine potential safety hazard troubleshooting and early warning method
CN112235295A
Method for improving communication effect of underground coal mine bus
CN114793303A