Industrial equipment control method based on SpringBoot, electronic equipment and storage medium
Through background services based on the SpringBoot framework, remote control and real-time monitoring of industrial equipment are realized, solving the problems of low control efficiency and difficult data integration in traditional methods, improving work efficiency and ensuring data security.
Patent Information
- Application Number
- CN202411475911.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-01-24
AI Technical Summary
In the prior art, industrial equipment control efficiency is low, relying on specific hardware and complex software programming, it is difficult to achieve control management between different equipment, and work efficiency is low.
It uses background services based on the SpringBoot framework to provide data processing and control services through MVC architecture design, obtain control instructions and send them to target industrial equipment for control, monitor equipment status in real time and send data to the Web management interface.
Improve the efficiency and flexibility of industrial equipment control, reduce operation and maintenance costs, improve work efficiency, and achieve data security through Spring Security.
Smart Images

Figure CN119356254A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of industrial equipment control, and specifically relates to an industrial equipment control method, electronic equipment and storage medium based on SpringBoot. Background Art
[0002] With the continuous deepening of industrialization and the development of information technology, the Industrial Internet of Things has become a key force in promoting industrial intelligence and automation. Among them, the control of industrial equipment is one of the key factors in realizing the Industrial Internet of Things. The traditional control method of industrial equipment relies on specific hardware equipment and complex software programming to achieve.
[0003] In related technologies, the control method for industrial equipment is based on the industrial Internet and uses cloud computing and big data technologies to reduce dependence on specific hardware. However, due to complex software programming and difficult data integration, it is often impossible to achieve control and management between different devices, resulting in low work efficiency. Summary of the invention
[0004] In view of this, the present invention provides an industrial equipment control method, electronic device and storage medium based on SpringBoot to solve the problem of low control efficiency of industrial equipment existing in the prior art.
[0005] In the first aspect, the present invention provides an industrial equipment control method based on SpringBoot, comprising: a background service based on the SpringBoot framework obtains control instructions, the control instructions including start, stop and adjust parameters; the background service extracts the control information of the corresponding target industrial equipment according to the control instructions; the background service sends the control information to the target industrial equipment to control the target industrial equipment.
[0006] In some embodiments, the SpringBoot-based industrial equipment control method further includes: if the measurement point information of the control point needs to be communicated with the target industrial equipment, user authentication is performed; after the user authentication is passed, the control instruction is obtained.
[0007] In some embodiments, the background service extracts the control information of the corresponding target industrial equipment according to the control instruction, specifically including: the background service extracts the measurement point code of the control point in the control instruction; queries the measurement point basic information table of the MySQL relational database according to the measurement point code; obtains the connection information of the control point in the target industrial equipment according to the measurement point basic information table shown; wherein the control information includes the connection information.
[0008] In some implementations, the SpringBoot-based industrial equipment control method further includes: the background service monitors the target industrial equipment in real time and obtains real-time status data of the equipment; and sends the real-time status data of the equipment to a Web management interface.
[0009] In some embodiments, the background service monitors the target industrial equipment in real time and obtains real-time status data of the equipment, specifically including: the background service selects the corresponding device driver according to different target industrial equipment, and configures the equipment points, one target industrial equipment corresponds to multiple equipment points; configures point collection configuration information according to the equipment points, the point collection configuration information includes protocol configuration information, point unique identification number and point data type; collects the real-time status data according to the point collection configuration information.
[0010] In some embodiments, the real-time status data is collected according to the point collection configuration information, specifically including: the background service sends request information to the target industrial equipment at regular intervals through the device driver according to the point collection configuration information; based on the request information, the device driver obtains the real-time status data through the corresponding industrial protocol.
[0011] In some implementations, the background service receives the control instruction from the Web management interface.
[0012] In some embodiments, the SpringBoot-based industrial equipment control method also includes: sending the real-time status data of the equipment to a database for storage, specifically including: parsing the real-time status data of the equipment to obtain parsed data; formatting the parsed data to obtain converted data; processing the converted data to obtain valid data; and transferring the valid data to the database according to preset data standards.
[0013] In the second aspect, the present invention also provides an electronic device, comprising: at least one processor; a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: obtain control instructions based on the background service of the SpringBoot framework, the control instructions including start, stop and adjust parameters; the background service extracts the control information of the corresponding target industrial equipment according to the control instructions; the background service sends the control information to the target industrial equipment to control the target industrial equipment.
[0014] In a third aspect, the present invention provides a storage medium storing a computer program, wherein when the computer program is executed by a processor, the SpringBoot-based industrial equipment control method described in any one of the above is implemented.
[0015] The beneficial effects of the present invention are:
[0016] The background service adopted by the present invention is based on the SpringBoot framework, adopts the MVC architecture design, and provides data processing and control services. The SpringBoot framework has lightweight characteristics, which makes the system have lower resource consumption and higher operating efficiency. At the same time, the SpringBoot framework is also easy to expand, so that the system can easily integrate new functions and equipment. The SpringBoot framework also provides a wealth of tools and components, which can greatly shorten the development cycle and reduce development costs. Therefore, the industrial equipment control method based on SpringBoot utilizes the efficiency and network transmission technology of the SpringBoot framework, and realizes remote control and real-time monitoring of industrial equipment by writing corresponding control logic, and performs remote regulation as needed, reducing operation and maintenance costs and improving work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 This is a flow chart of an industrial equipment control method based on SpringBoot according to an embodiment of the present invention;
[0019] Figure 2 This is a flow chart of industrial data collection based on SpringBoot according to another embodiment of the present invention;
[0020] Figure 3 This is a SpringBoot-based industrial equipment control flow chart of another embodiment of the present invention;
[0021] Figure 4 The figure is a block diagram of an electronic device according to an embodiment of the present invention.
[0022] Description of reference numerals:
[0023] 110. Processor;
[0024] 120. Memory. DETAILED DESCRIPTION
[0025] With the continuous deepening of global industrialization and the rapid development of information technology, the Industrial Internet of Things has emerged and has become a key force in promoting industrial intelligence and automation. Among them, data acquisition and control of industrial equipment are key factors in realizing the Industrial Internet of Things. However, traditional data acquisition and control methods often rely on specific hardware equipment, complex software programming, difficult data integration, and insufficient real-time performance, making it difficult to meet the modern industry's needs for efficiency, flexibility, and intelligence. Therefore, exploring a new data acquisition and control method to improve the level of automation and intelligence in industrial production has important practical significance and application value.
[0026] At present, the data collection and control methods widely used in industry are traditional methods and methods based on the Industrial Internet. Traditional methods usually rely on specific hardware devices and complex software programming. Hardware devices are responsible for data collection, while software is responsible for data processing and control. However, due to the strong dependence on hardware, complex software programming, difficulty in data integration, and lack of real-time performance, its application scope and effect are limited, and data monitoring and management between different devices cannot be achieved.
[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0028] Combine the following Figures 1 to 4 , describing an embodiment of the present invention.
[0029] like Figure 1 As shown, according to an embodiment of the present invention, on the one hand, a SpringBoot-based industrial equipment control method is provided, comprising the following steps:
[0030] Step S101: The background service based on the SpringBoot framework obtains control instructions, which include starting, stopping and adjusting parameters.
[0031] Step S102: the background service extracts the control information of the target industrial equipment according to the control instruction.
[0032] Step S103: the background service sends the control information to the target industrial equipment to control the target industrial equipment.
[0033] In this embodiment, the overall architecture includes background services, which are based on the SpringBoot framework, adopt MVC architecture design, and provide data processing and control services. The industrial equipment control method based on SpringBoot is implemented through the overall architecture, data acquisition process and control process. The SpringBoot framework has lightweight characteristics, which makes the system have lower resource consumption and higher operating efficiency. At the same time, the SpringBoot framework is also easy to expand, so that the system can easily integrate new functions and equipment. The SpringBoot framework also provides a wealth of tools and components, which can greatly shorten the development cycle and reduce development costs. Therefore, the industrial equipment control method based on SpringBoot utilizes the efficiency and network transmission technology of the SpringBoot framework, and realizes remote control and real-time monitoring of industrial equipment by writing corresponding control logic, and performs remote regulation as needed, reducing operation and maintenance costs and improving work efficiency.
[0034] Furthermore, the SpringBoot industrial equipment control method also includes the following steps:
[0035] Step S104: If the measurement point information of the control point needs to be connected to the target industrial equipment, user authentication is performed.
[0036] Step S105: After passing the user verification, the control instruction is obtained.
[0037] Before issuing control instructions, we must first determine whether the measurement point information of the control point and the IP address of the target industrial equipment are connected. After confirming the information, use Spring Security to authenticate the user and issue control instructions to start or stop the ventilator. The control instructions are encapsulated in JSON format through the RESTful interface and transmitted to the background service for parsing.
[0038] The Industrial Internet-based approach uses cloud computing and big data technologies to reduce reliance on specific hardware. At the same time, the introduction of cloud computing also improves the scalability and flexibility of the system. However, due to challenges in network security and data privacy protection, there is a risk of data leakage and low security, so data security measures need to be taken.
[0039] The industrial equipment control method based on SpringBoot takes data security measures in the process of data collection and execution control. Data security measures mainly include data transmission security, user authentication and authority management. Among them, using SSL certificates to configure HTTPS can ensure that data is not stolen or tampered with during transmission. Use Spring Security for user authentication to ensure that only authorized users can access the system. Set user roles and permissions so that different users have different operation permissions. A total of three user roles are set: administrator, operator and technician, and three permissions are set at low, medium and high levels. Among them, the administrator corresponds to high-level permissions, can add and modify equipment information, issue control instructions, and can add, delete and modify user roles; the operator corresponds to medium-level permissions, can add and modify equipment information, and issue control instructions; the technician corresponds to low-level permissions, can only add and modify equipment information, and cannot issue control instructions.
[0040] By using Spring Security in the SpringBoot framework, it can be directly applied to industrial equipment data acquisition and control systems. SpringBoot provides a wealth of security tools and components to achieve powerful network security and data privacy protection functions. At the same time, due to its lightweight characteristics, it can quickly respond to new security threats and vulnerabilities. Through reasonable configuration, the encryption, integrity and access control security of data transmission can be ensured, effectively preventing data leakage and illegal access.
[0041] Based on step S102, the background service extracts the control information of the target industrial equipment according to the control instruction, specifically including:
[0042] Step S1021: the background service extracts the measuring point code of the control point in the control instruction.
[0043] Step S1023: query the measuring point basic information table of the MySQL relational database according to the measuring point code.
[0044] Step S1025: acquiring connection information of the control point in the target industrial equipment according to the measuring point basic information table; wherein the control information includes connection information.
[0045] In this embodiment, after receiving the control instruction, the background service first extracts the measurement point code of the control point in the control instruction, queries the measurement point basic information table of the MySQL relational database according to the measurement point code, and obtains the connection information of the point in the target industrial equipment. Finally, the control instruction is sent to the target industrial equipment through the configured gateway, and the data is judged whether it is successfully sent according to the returned quality stamp.
[0046] After the control is completed, the data acquisition system queries the super table corresponding to the target industrial equipment in the TDengine time series database to obtain whether the latest data of the measurement point has changed and is consistent with the data required after control, and finally determines whether the control of the ventilator is successful. The control results are encapsulated in JSON format through the RESTful interface and returned to the background service.
[0047] Furthermore, the industrial equipment control method based on SpringBoot also includes the following steps:
[0048] Step S106: The background service monitors the target industrial equipment in real time and obtains the real-time status data of the equipment.
[0049] Step S107: Send the real-time status data of the device to the Web management interface.
[0050] Device status changes generate real-time device status data. After completing the control of industrial equipment, the background service will promptly feed back the real-time device status data to the SpringBoot background service through the device driver. At the same time, the background service based on SpringBoot pushes the latest device status data to the Web management interface, through which the operating status and control results of the device can be viewed in real time.
[0051] The industrial equipment control system based on SpringBoot is divided into two parts: the front-end and the back-end. The front-end uses React.js to build a Web management interface, which provides equipment status monitoring, data display and control functions. At the same time, the Web management interface communicates with the back-end service based on SpringBoot through the Restful API. The back-end service is based on the SpringBoot framework, adopts the MVC architecture design, provides data processing and control services, uses Spring Data JPA for database operations, and supports MySQL and TDengine databases.
[0052] SpringBoot provides a solid foundation for data collection systems with its ability to quickly build independently run Spring applications. By defining appropriate interfaces and implementing corresponding methods, data collectors can directly access real-time data in industrial equipment and transmit it to designated locations efficiently and accurately, greatly improving the efficiency and accuracy of data collection, reducing manual intervention and errors, and achieving high efficiency of data collection capabilities. Through the real-time processing capabilities of the SpringBoot framework, the system can collect and display the operating data of industrial equipment in real time. At the same time, the system can monitor the operating status and fault information of the equipment in real time to ensure the safety and continuous operation of the equipment.
[0053] Based on step S106, the background service monitors the target industrial equipment in real time and obtains the real-time status data of the equipment, which specifically includes the following steps:
[0054] Step S1061: The background service selects the corresponding device driver according to different target industrial devices and configures the device points. One target industrial device corresponds to multiple device points.
[0055] Step S1062: configuring point acquisition configuration information according to the equipment points, the point acquisition configuration information includes protocol configuration information, point unique identification number and point data type.
[0056] Step S1063: Collect real-time status data according to the point collection configuration information.
[0057] Based on the SpringBoot industrial equipment control method, the background service can communicate with industrial equipment and collect industrial data. Use Java language for coding, and integrate industrial communication protocols into the driver in the form of plug-ins, including Modbus, OPC UA and other industrial communication protocols. Through unified communication protocols and data formats, the standardization and compatibility of data between devices can be achieved, which can improve the convenience of data integration and sharing. According to the different industrial equipment, select the corresponding driver and configure the points of the equipment. Then configure the point acquisition configuration information, which includes but is not limited to protocol configuration information, such as the function code, starting position, length, end position of the Modbus point, as well as the point unique identification number, the data type of the point, etc.
[0058] Based on step S1063, real-time status data is collected according to the point collection configuration information, which specifically includes the following steps:
[0059] Step S10631: The background service collects configuration information based on the points and sends request information to the target industrial equipment through the device driver at regular intervals.
[0060] Step S10632: Based on the request information, the device driver obtains real-time status data through the corresponding industrial protocol.
[0061] By using the driver to send requests to industrial equipment at regular intervals, the rhythm of information collection can be grasped, and real-time data of the equipment can be obtained through the corresponding industrial protocol, thus realizing data collection of industrial equipment.
[0062] SpringBoot, with its ability to quickly build independently run Spring applications, can provide a solid foundation for data collection. By defining appropriate interfaces and implementing corresponding methods, data collectors can directly access real-time data in industrial equipment and transmit it to designated locations efficiently and accurately, greatly improving the efficiency and accuracy of data collection, reducing manual intervention and errors, and thus having efficient data collection capabilities.
[0063] like Figure 2 and Figure 3 As shown, when implementing the industrial equipment control method based on SpringBoot, the JeecgBoot environment is initialized first, and then it is determined whether the industrial equipment is connected. If the industrial equipment is connected, industrial data is collected or equipment control parameters are configured. Otherwise, the equipment connection needs to be reconfigured or the equipment connection status needs to be checked, and then it is determined whether the connection status is normal. If the connection error is handled, the industrial data collection or control process ends. If the connection is correct, the normal data collection process or control process is entered.
[0064] In this embodiment, the data collection of underground mine ventilators is taken as an example for description.
[0065] The underground ventilator is an industrial equipment. The ventilator parameters are as follows: IP: 192.168.30.18, Port: 102, industrial protocol: Siemens S7-1200, point information: fan frequency conversion parameters, including speed, frequency, current, power, voltage, etc., fan temperature information, fan start and stop information, and fan alarm information.
[0066] When the ventilator network is in good condition, configure the acquisition gateway in the gateway module of the program according to its IP and Port. Then, create a Siemens S7-1200 acquisition channel in the configured acquisition gateway according to the industrial protocol information. Finally, configure the acquisition measurement points in the acquisition channel according to the point information to be collected to collect the original industrial data of the ventilator.
[0067] Use the kafka message queue to subscribe to the original industrial data. The subscription methods are divided into polling subscription and change subscription. Polling subscription: subscribe to industrial data on time according to the set frequency; change subscription: when the industrial data changes, subscribe to the data information of the measuring point. In order to maintain the real-time nature of the ventilator data, the polling subscription method is adopted here with a time interval of 1s. At the same time, the quality stamp of the collected data is filtered to verify the success of data acquisition and data accuracy. Finally, the subscription data is converted from the original format to a JSON format that is easier to process, and verified to ensure the accuracy and completeness of the data. Then the converted data is processed, mainly including duplicate data processing and abnormal data processing.
[0068] The processed ventilator data is stored in the MySQL relational database and the TDengine time series database. The MySQL relational database is used to store the basic information of the ventilator, including the system table "ke_warn_sys" and the basic information table of the measuring point "ke_warn_sight_std_book". The system table is used to save the equipment number, installation time, and location information of the ventilator. The primary key is the randomly generated non-repeating system number "ke_warn_sys_id", which is also used to associate with the basic information table of the measuring point. The basic information table of the measuring point is used to save the specific measuring point information of the ventilator, including connection information, measuring point code, measuring point name, measuring point location, measuring point type, and maintenance time. The measuring point code is unique. The TDengine time series database has the characteristics of high storage, high compression ratio, complex computing power, high availability, high reliability, and scalability. It is used to store the real-time data of each measuring point of the ventilator, and the real-time data of each equipment system is stored in an independent super table. The super table information maintains the system table of the MySQL relational database. The super table is associated with the basic information of the measuring point of the MySQL relational database through the measuring point code field "point_code". At this point, the measurement point information of the fan data and the real-time data are logically associated and stored separately, making it convenient to conduct real-time monitoring and early warning of the business operation status.
[0069] For the ventilator data saved in the database, a corresponding RESTful interface is provided for business access. The RESTful interface locates resources through a resource locator (URL), configures HTTPS based on an SSL certificate, and uses the JSON format definition to ensure that the data is not stolen or tampered with during the data transmission process. Businesses can query all or a single measurement point information by system number or measurement point code, and query the real-time or historical data information of the ventilator by measurement point code and time range.
[0070] Furthermore, the background service receives control instructions from the Web management interface.
[0071] Furthermore, the industrial equipment control method based on SpringBoot also includes the following steps:
[0072] Step S108: sending the real-time status data of the device to a database for storage, specifically comprising the following steps:
[0073] Step S1081: parse the real-time status data of the device to obtain parsed data.
[0074] Step S1082: convert the format of the parsed data to obtain converted data.
[0075] Step S1083: Process the converted data to obtain valid data.
[0076] Step S1084: Valid data is transferred to the database according to preset data standards.
[0077] The background service can parse and process the collected real-time status data of the equipment. The original industrial data collected in the above steps cannot be stored directly. The relevant protocol code is used for parsing to extract key information such as equipment status and production parameters. At the same time, the parsed data is converted from the original format to a JSON format that is easier to process and verified to ensure the accuracy and integrity of the data. Then the converted data is processed, mainly including restated data processing and abnormal data processing. Among them, duplicate data is filtered out by collecting time and point information, and only a set of valid data is retained, and redundant data is deleted. For abnormal value processing, it includes deleting abnormal values and replacing the average value. Data processing can ensure the validity of the processed industrial data in terms of data content. The processed industrial data is transferred according to the preset data standards. Through metadata information, industrial data is classified according to the system, and the data is divided into basic information and real-time data and stored in MySQL database and TDengine database respectively. Among them, the basic information of the equipment includes system type, equipment model, installation location and other information. The MySQL database mainly includes system data table and measurement point information table. TDengine database is a time series database, which is mainly used to store equipment operation logs and real-time data.
[0078] According to actual needs, the transferred industrial data can be opened to the public. Through the RestfulAPI interface of the SpringBoot background service, the transferred industrial data can be encapsulated into Json format according to data standards and opened to the public.
[0079] like Figure 4 As shown, the present invention also provides an electronic device, comprising: at least one processor 110; a memory 120 connected to the at least one processor in communication; wherein the memory 120 stores instructions executable by the at least one processor 110, and the instructions are executed by the at least one processor 110, so that the at least one processor 110 can implement the following steps:
[0080] Step S101: The background service based on the SpringBoot framework obtains control instructions, which include starting, stopping and adjusting parameters.
[0081] Step S102: the background service extracts the control information of the target industrial equipment according to the control instruction.
[0082] Step S103: the background service sends the control information to the target industrial equipment to control the target industrial equipment.
[0083] Electronic device is intended to refer to various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers.
[0084] Electronic devices may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples and are not intended to limit the implementation of the invention described and / or claimed herein.
[0085] The background service based on the SpringBoot framework obtains control instructions, including starting, stopping, and adjusting parameters.
[0086] Step S102: the background service extracts the control information of the target industrial equipment according to the control instruction.
[0087] Step S103: the background service sends the control information to the target industrial equipment to control the target industrial equipment.
[0088] The SpringBoot-based industrial equipment control method of the present invention is implemented by electronic equipment, and the electronic equipment may include three parts: overall architecture, data acquisition process and industrial equipment control process. Among them, React.js is used to build a Web management interface, based on the SpringBoot framework, the MVC architecture design is used to implement the background service of the system, and SSL certificates are used to configure HTTPS and Spring Security for user authentication. Then, through communication with industrial equipment, industrial raw data collection, data analysis and processing, and data standardization transfer are carried out to realize the data acquisition process of industrial equipment. At the same time, the control process of industrial equipment is realized by issuing and encapsulating control instructions, parsing and executing control instructions, and real-time feedback of industrial equipment.
[0089] According to an embodiment of the present invention, on the other hand, a storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, any one of the industrial equipment control methods based on SpringBoot is implemented.
[0090] Computers execute instructions that:
[0091] The background service based on the SpringBoot framework obtains control instructions, including starting, stopping, and adjusting parameters.
[0092] The background service extracts the control information of the target industrial equipment according to the control instructions.
[0093] The background service sends the control information to the target industrial equipment to control the target industrial equipment.
[0094] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0095] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A SpringBoot-based industrial equipment control method, characterized in that: include: The background service based on the SpringBoot framework obtains control instructions, which include starting, stopping and adjusting parameters; The background service extracts the control information of the corresponding target industrial equipment according to the control instruction; The background service sends the control information to the target industrial device to control the target industrial device.
2. The SpringBoot-based industrial equipment control method according to claim 1, characterized in that: Also includes: If the measurement point information of the control point needs to be connected to the target industrial equipment, user authentication is performed; After passing the user verification, the control instruction is obtained.
3. The SpringBoot-based industrial equipment control method according to claim 2 is characterized in that: The background service extracts the control information of the corresponding target industrial equipment according to the control instruction, specifically including: The background service extracts the measuring point code of the control point in the control instruction; According to the measuring point code, query the measuring point basic information table of the MySQL relational database; The connection information of the control point in the target industrial equipment is obtained according to the measuring point basic information table; wherein the control information includes the connection information.
4. The SpringBoot-based industrial equipment control method according to any one of claims 1 to 3, characterized in that: Also includes: The background service monitors the target industrial equipment in real time and obtains real-time status data of the equipment; The real-time status data of the device is sent to the Web management interface.
5. The SpringBoot-based industrial equipment control method according to claim 4 is characterized in that: The background service monitors the target industrial equipment in real time and obtains the real-time status data of the equipment, specifically including: The background service selects the corresponding device driver according to different target industrial devices and configures the device points. One target industrial device corresponds to multiple device points. Configure point acquisition configuration information according to the equipment point, wherein the point acquisition configuration information includes protocol configuration information, a point unique identification number and a point data type; The real-time status data is collected according to the point collection configuration information.
6. The SpringBoot-based industrial equipment control method according to claim 5 is characterized in that: Collecting the real-time status data according to the point collection configuration information specifically includes: The background service sends request information to the target industrial device at regular intervals through the device driver according to the point collection configuration information; Based on the request information, the device driver obtains the real-time status data through a corresponding industrial protocol.
7. The SpringBoot-based industrial equipment control method according to claim 4 is characterized in that: The background service receives the control instruction from the Web management interface.
8. The SpringBoot-based industrial equipment control method according to claim 4 is characterized in that: Also includes: Sending the real-time status data of the device to a database for storage specifically includes: Parsing the real-time status data of the device to obtain parsed data; Performing format conversion on the parsed data to obtain converted data; Performing data processing on the converted data to obtain valid data; The valid data is transferred to the database according to the preset data standard.
9. An electronic device, characterized in that: include: at least one processor (110); a memory (120) communicatively coupled to the at least one processor; The memory (120) stores instructions executable by the at least one processor (110), and the instructions are executed by the at least one processor (110) to enable the at least one processor (110) to: The background service based on the SpringBoot framework obtains control instructions, which include starting, stopping and adjusting parameters; The background service extracts the control information of the target industrial equipment according to the control instruction; The background service sends the control information to the target industrial device to control the target industrial device.
10. A storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the SpringBoot-based industrial equipment control method according to any one of claims 1 to 8 is implemented.