A workshop-level data collection and monitoring method, device, equipment and storage medium
By combining multi-threaded data collection and asynchronous storage technology with the WebSocket protocol, the problems of device diversity and complex storage structures in workshop data collection and interaction are solved, achieving fast and low-latency collection and release of workshop data, and improving workshop digitization and Informatization level.
Patent Information
- Application Number
- CN202211031031.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-26
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-08-26
AI Technical Summary
There are many problems in workshop data collection and interaction, such as many types of equipment, inconsistent data formats, few low-latency data interaction methods, complex and unscalable traditional data storage structures, and poor real-time performance of interaction protocols.
Multi-threaded data acquisition technology is used to integrate data in different formats, and data is recorded through asynchronous storage technology. WebSocket technology is used to publish the data to the front-end visualization module to realize workshop-level data collection, processing and storage, shield device protocol differences, and improve the efficiency of data interaction. real-time.
It achieves fast and low-latency collection and release of workshop data, improves the digitalization and informatization of the workshop, simplifies the data processing and storage process, and improves the real-time and scalability of data.
Smart Images

Figure CN115412539B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing of heterogeneous equipment, and in particular to a workshop-level data collection and monitoring method, device, equipment and storage medium. Background Art
[0002] With the rise of technologies such as the Internet of Things, big data, cloud computing, and artificial intelligence and their application in the manufacturing industry, traditional production management methods are no longer suitable for the current rapid production pace of enterprises. Developing intelligent manufacturing and building digital factories are the future development trends of the manufacturing industry. As the basic organization for enterprises to carry out production activities, the development of digital technology is the basis for promoting its realization of intelligent manufacturing. Using technologies such as data collection, data fusion, and data interaction to monitor and analyze the manufacturing status of the workshop in real time, thereby realizing the dynamic scheduling and optimization of manufacturing resources and realizing the integration of physical world data and information world data, is an important way to improve the manufacturing level of enterprises.
[0003] At present, there are many cases of workshop data collection, processing and interaction. The relevant research results have been implemented and verified in many fields and have achieved good application results. However, there are few methods and cases related to low-latency data interaction due to the large variety of equipment, non-uniform data formats, and low latency. In addition, traditional workshop data collection is often only for digital equipment or third-party software with interfaces. For data sources such as tools, tooling, and form programs without data interfaces, relatively few collection methods are provided. Moreover, the current workshop data storage is generally stored in tables according to the equipment, resulting in a complex storage structure and poor scalability. In addition, the interaction between the acquisition module and the visualization module often sends all the interaction data at once, and the interaction protocol is generally OPCUA with poor real-time performance, resulting in large information delays and poor display effects.
[0004] The establishment of a digital workshop solves the problems faced by the workshop, such as real-time monitoring of the production process, improvement of production efficiency, standardized operation and maintenance of expensive equipment, and traceability of the manufacturing process. In addition, the digital workshop provides management users with real-time and accurate grasp of the workshop status, improves lean production capabilities, and provides convenient and fast guidance and services to operators. Through the unified data acquisition module in the equipment status monitoring software, various information of the equipment in the workshop is collected, and operations such as storage, processing, analysis and application are performed. Through corresponding technical means, the above process accompanies the entire life cycle of the product and equipment. The workshop data generated during the whole process is processed through a complete set of data processing processes, and the high-value final information generated is used for internal management and equipment maintenance of the enterprise workshop.
[0005] At present, there are a large number of heterogeneous equipment in the printing workshop. Different equipment has its own independent communication protocol, and the upper management system and the underlying equipment often use point-to-point end-to-end data exchange, which cannot form an information closed loop. In response to the above problems, some scholars have proposed to build a workshop-level data management center based on the OPC UA communication protocol, realize the unified data collection of heterogeneous equipment, shield the differences of equipment of different brands, and use machine learning related algorithms to achieve data fusion. It also provides the necessary access interface to the outside world, solves the problem of information islands, and enables data to reach decision makers conveniently, preparedly and safely. Finally, in response to the workshop monitoring center's requirement for remote monitoring of the entire workshop's operating status, a data communication system for monitoring equipment operation was established to build a monitoring dashboard function for the workshop's operating status.
[0006] Traditional manufacturing workshops have problems such as message lag, information islands, disconnection between production and planning, chaotic process management, and low production efficiency. In order to improve the level of workshop intelligence and better adapt to the needs of future industries, the emergence of smart workshops has provided a solution for smart manufacturing. Its emergence has realized the automatic collection and monitoring of real-time data on the workshop site, promoted the development of automation and information capabilities in the field of industrial production, and has become a key research direction for modern industrial production.
[0007] At present, many new methods and technologies have emerged in the process of digitalization, informatization and intelligentization of workshops. In order to solve the problem of fusion of multi-source heterogeneous data, machine learning algorithms such as data-level fusion, feature-level fusion, and decision-level fusion are often used at this stage. Although such algorithms can handle the fusion of data in different formats well and reduce data redundancy to a certain extent, the algorithm design is complex and the processing time is long, which is not suitable for the real-time monitoring environment of workshops with rapid information response.
[0008] In terms of data interaction and publishing, the most widely used and relatively mature technology is to build a data transfer platform based on the OPC UA protocol, providing the required data to each system in a client-server manner. This method can transmit and forward data in a relatively stable and secure manner. However, the process of building an OPC UA server is complicated, and the real-time performance of data interaction is low, which cannot meet the needs of convenient and fast workshop-level data communication scenarios. Summary of the invention
[0009] In view of the above problems, the present invention provides a workshop-level data collection and monitoring method, device, equipment and storage medium for overcoming the above problems or at least partially solving the above problems. It solves the problems of complicated data collection protocols, unreasonable storage structure, high interaction delay, etc. in the workshop. It uses mature multi-threaded data collection technology to use a single signal as the basic unit, merges data of different formats at the collection layer, and uses asynchronous storage technology to complete data recording. At the same time, it uses WebSocket technology to publish data to the front-end visualization interface, thereby realizing workshop-level data collection, processing, storage and publishing, and improving the degree of digitization and informatization of the workshop.
[0010] The present invention provides the following scheme:
[0011] A workshop-level data collection and monitoring method, device, equipment and storage medium, including:
[0012] Collecting a number of data values corresponding to a number of data collection items included in the target heterogeneous device through a network connection established with the target heterogeneous device;
[0013] Obtaining necessary configuration information corresponding to the target heterogeneous device stored in a device basic information table; the device basic information table is a pre-configured data table storing some necessary configuration information of the target heterogeneous device;
[0014] Acquire attribute information of each of the data values and determine target signals corresponding to each of the data values in combination with a signal data table; the signal data table is a pre-configured storage of a plurality of signals corresponding to all the data acquisition items included in the target heterogeneous device; the attributes and data formats of the plurality of signals are consistent;
[0015] Coupling the data values, the attribute information of the data values, the necessary configuration information and the corresponding target signals to obtain and store the target data;
[0016] The WebSocket server is used to periodically broadcast some of the target data to the WebSocket client.
[0017] Preferably: a network connection is established with the target heterogeneous device according to the relevant communication information in the device basic information table; and some of the necessary configuration information includes the relevant communication information.
[0018] Preferably: the necessary configuration information corresponding to the target heterogeneous device stored in the device basic information table and the device configuration table is obtained; the device configuration table pre-stores the supplementary necessary configuration information of the target heterogeneous device that is not recorded in the device basic information table.
[0019] Preferably: the device basic information table, the device configuration table and the signal data table are all stored in a MySQL 8.0 database.
[0020] Preferably, the attributes of the signal include signal number, device number, signal name, signal code, data type, signal value, update time, signal description, release frequency and status identification.
[0021] Preferably, the method of periodically broadcasting the target data to the WebSocket client using the WebSocket server includes:
[0022] The WebSocket server uses the Fleck class and the WebSocket component to define functions or events for starting services, sending data, changing states, and receiving data; initializes services in the main thread and adds state change events; and uses asynchronous functions to perform data broadcast operations.
[0023] Preferably: the WebSocket client is determined based on the Fleck class opening in the visualization module, and the WebSocket client defines a data receiving and processing function so as to parse and display the received target data.
[0024] A workshop-level data collection and monitoring device, the device comprising:
[0025] A collection unit, used for collecting a number of data values corresponding to a number of data collection items included in the target heterogeneous device through a network connection established with the target heterogeneous device;
[0026] A configuration information acquisition unit, used to acquire necessary configuration information corresponding to the target heterogeneous device stored in a device basic information table; the device basic information table is a pre-configured data table storing some necessary configuration information of the target heterogeneous device;
[0027] a target signal acquisition unit, used to acquire attribute information of each of the data values and determine target signals corresponding to each of the data values in combination with a signal data table; the signal data table is a pre-configured storage of a plurality of signals corresponding to all the data acquisition items included in the target heterogeneous device; the attributes and data formats of the plurality of signals are consistent;
[0028] A data processing unit, used for coupling the data values, the attribute information of the data values, the necessary configuration information and the corresponding target signals to obtain and store the target data;
[0029] The data broadcast unit is used to use the WebSocket server to periodically broadcast some of the target data to the WebSocket client.
[0030] A workshop-level data collection and monitoring device, the device comprising a processor and a memory:
[0031] The memory is used to store program code and transmit the program code to the processor;
[0032] The processor is used to execute the above-mentioned workshop-level data collection and monitoring method according to the instructions in the program code.
[0033] A computer-readable storage medium is used to store program codes, and the program codes are used to execute the above-mentioned workshop-level data collection and monitoring method.
[0034] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0035] The embodiment of the present application provides a workshop-level data collection and monitoring method, device, equipment and storage medium. The method designs a signal model based on the relationship between the equipment and its parameters. The model can shield the differences between different protocol equipment and quickly format the parameters from different data sources, thereby establishing a unified data processing, publishing and storage module. The WebSocket technology is applied to the workshop-level data collection and publishing system, and a simple and low-latency data publishing method is successfully implemented, which improves the real-time performance of the data generation and visualization process.
[0036] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0038] Figure 1 is a flow chart of a workshop-level data collection and monitoring method provided by an embodiment of the present invention;
[0039] Figure 2 It is a flow chart of heterogeneous device data collection and release provided by an embodiment of the present invention;
[0040] Figure 3 is a schematic diagram of a signal model provided by an embodiment of the present invention;
[0041] Figure 4It is a schematic diagram of a workshop-level data collection and monitoring device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all of the embodiments. Based on the embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.
[0043] See also Figure 1 , is a workshop-level data collection and monitoring method provided by an embodiment of the present invention, such as Figure 1 As shown, the method may include:
[0044] S101: Collect several data values corresponding to several data collection items contained in the target heterogeneous device through the network connection established with the target heterogeneous device; specifically, establish a network connection with the target heterogeneous device according to the relevant communication information in the device basic information table; several necessary configuration information include the relevant communication information. Further, obtain the necessary configuration information corresponding to the target heterogeneous device stored in the device basic information table and the device configuration table; the device configuration table pre-stores the supplementary necessary configuration information of the target heterogeneous device that is not recorded in the device basic information table. The device basic information table, the device configuration table and the signal data table are all stored in the MySQL8.0 database.
[0045] S102: Obtain necessary configuration information corresponding to the target heterogeneous device stored in a device basic information table; the device basic information table is a pre-configured data table storing some necessary configuration information of the target heterogeneous device;
[0046] S103: Obtain attribute information of each of the data values and determine the target signals corresponding to each of the data values in combination with a signal data table; the signal data table is a pre-configured storage of a plurality of signals corresponding to all the data acquisition items contained in the target heterogeneous device; the attributes and data formats of the plurality of signals are consistent; further, the attributes of the signal include signal number, device number, signal name, signal code, data type, signal value, update time, signal description, release frequency and status identification.
[0047] S104: coupling the data values, the attribute information of the data values, the necessary configuration information and the corresponding target signals to obtain and store target data;
[0048] S105: Use the WebSocket server to periodically broadcast the target data to the WebSocket client. Specifically, the WebSocket server uses the Fleck class and the WebSocket component to define the start service, send data, change state, receive data functions or events; initialize the service in the main thread, add the state change event; and use the asynchronous function to perform the data broadcast operation. The WebSocket client is determined based on the Fleck class in the visualization module, and the WebSocket client defines the data receiving and processing functions to parse and display the received target data.
[0049] The workshop-level data collection and monitoring method provided in the embodiment of the present application is aimed at the related problems existing in the current workshop-level data collection and interaction technology.
[0050] Taking signals as the basic unit of collection and interaction, the association between signals and devices is weakened, thereby shielding the differences between underlying devices, and then structuring data conveniently and quickly, ensuring the consistency of data format, and facilitating data storage and sharing; using WebSocket technology to build a data transfer server, format the data to be published, and broadcast data to each client at a fixed period. After the client successfully connects to the server, it receives the data, parses it, and obtains relevant information, thereby realizing the rapid publication and display of data.
[0051] The process of collecting and publishing data from heterogeneous devices is as follows: Figure 2 shown.
[0052] The specific implementation process can be summarized as follows: First, four data tables are designed in the database, namely, the equipment basic information data table, the equipment configuration data table, the signal data table, and the equipment data storage table; before the system is run, the basic information of the equipment such as the IP address, communication protocol, and acquisition frequency are configured, and the information is saved in the equipment basic information table. Similarly, the signals of all devices are configured and saved;
[0053] When the system is initialized, a connection is established with the device based on the relevant data in the device basic information table, and the signal data value is obtained in the device based on the data address and other information in the signal data table. Then the data is formatted, a WebSocket server is built, and the formatted data is published at a fixed period. Then a WebSocket client is built in the visualization module, and a connection is established with the server to receive the data published by the server and parse it for visualization.
[0054] Signal model establishment: For multi-source heterogeneous devices, in order to achieve unified data processing and management and shield the differences between protocols, it is necessary to establish a unified device signal model, couple the device information with its signal data, weaken the concept of managing data as a basic unit of the device, bind the device number, signal address, signal data type, etc. with the signal, and use the signal as the basic data collection unit, thereby forming a unified data collection, processing, publishing, and storage. Figure 3 shown.
[0055] The above ten attributes can accurately describe a signal in the workshop-level data acquisition and status monitoring system. The acquisition, processing, release and storage of the signal are all realized based on the above attributes.
[0056] Data collection: The collection of data on people, machines, objects, and the environment requires different hardware devices and different implementation methods. The collection of environmental data is mainly achieved by installing sensor equipment at different locations in the assembly plant to monitor the environmental data in real time; the collection of personnel identity information is achieved by distributing personnel identity cards and using card readers to read the identification card data before entering the work area; the optimization of sensor network deployment is mainly based on user business needs and combined with plant layout to design and optimize sensor network deployment.
[0057] Data storage: All collected data and calculation result data of the system are stored in the database, and the database uses MySQL8.0. The stored data includes basic equipment information, equipment configuration information, basic signal information, data collection results and other data. The application of the database facilitates the centralized management of data and has a high guarantee for data security.
[0058] Data publishing and visualization: Data is visualized using a two-dimensional interface. The collected data is processed in memory and converted into a unified format. The data required by the visualization interface is then converted into a JSON string. A WebSocket server is built to send the data. Finally, the WebSocket client of the visualization module establishes a connection with the server, receives the data, and performs parsing and display. Compared with OPC UA data interaction technology, WebSocket data communication technology has less development difficulty and faster data interaction speed. It can significantly reduce system complexity, reduce communication delays, and enable data to reach the information end quickly, accurately, and safely.
[0059] When implementing:
[0060] Data table design: The data storage and processing of the workshop-level data acquisition and status monitoring system involves four data tables, namely the equipment basic information data table, the equipment configuration data table, the signal data table, and the equipment data storage table. The table structures are shown in Table 1, Table 2, Table 3, and Table 4:
[0061] Table 1 Equipment basic information data table
[0062] Serial number Data Columns Data Types illustrate 1 EquipmentId varchar Device ID, primary key 2 EquipmentName varchar Device Name 3 EquipmentCode varchar Device Code 4 EquipmentNo varchar Equipment No. 5 SignalSource varchar Device signal source 6 SignalTypeName varchar Device signal type 7 EquipmentType varchar Device Type 8 EquipmentLocation varchar Device location information
[0063] The above table records the necessary configuration information of the acquisition equipment in the system. When the system performs data acquisition, it first reads the device signal source and other information in the table and establishes a network connection with the device based on the relevant communication information.
[0064] Table 2 Equipment configuration data table
[0065] Serial number Data Columns Data Types illustrate 1 ConfigId int Device Configuration ID 2 EquipmentId varchar Device ID 3 ConfigItemName varchar Configuration Name 4 ConfigItemValue varchar Configuration Values 5 IsProtected tinyint Is it a required configuration?
[0066] The device configuration data table is a supplement to the device basic information table. For devices with more necessary fields, necessary configurations can be added to this table.
[0067] Table 3 Signal data table
[0068]
[0069] The signal data table saves the data collection items of all devices, extracts and models the key necessary fields of the data in the device, and forms a signal data model, thereby shielding the differences between devices and forming a unified data format to facilitate subsequent data processing, publishing and storage.
[0070] Table 4 Equipment data storage table
[0071]
[0072]
[0073] The device data storage table is used to record device data. After the formatted data is collected, a signal structure is formed with the device as the basic unit. The structure is converted into a string and saved in the table.
[0074] Collection equipment management: Collection equipment management defines the device name, communication interface, communication protocol type and other information for the data collection system through device basic information, device interface information, and device communication parameter settings to determine the device data collection method.
[0075] The control system brands and equipment manufacturers of production experimental equipment are different. In order to achieve good transformation effects, the equipment must support interaction with third-party systems. The content of the interaction includes but is not limited to equipment operating status, equipment operating parameters, equipment operating statistics, etc.
[0076] The data acquisition system supports access management of devices from different manufacturers and brands, and can flexibly configure device information to achieve system access through the device management function. Device information includes basic device information and device configuration information. Basic device information includes general information such as device name, code, type, number, signal source, signal type, etc. Device configuration information includes device data storage path, device IP address, protocol path, and other extensible information. The protocol interfaces supported by the data acquisition system include:
[0077] Supported controller protocols include Modbus RTU, Modbus TCP, ADS, OPC DA / OPC UA, S7, etc.
[0078] Supported communication interfaces include RJ45, RS232, RS485, COM, etc.
[0079] Supported network protocols include SOCKET, HTTP, WEBAPI, MQTT, etc.
[0080] Acquisition parameter management: Acquisition parameter management manages all parameters that need to be collected by each instrument and defines the parameter collection equipment, data category, data type, collection frequency and other information for the data acquisition system to determine the parameter data collection and storage method.
[0081] In order to achieve the flexibility of data acquisition function, all devices to collect or send data are managed through the configuration program. The management content includes the device name, number, signal name, code, data type, corresponding variable address, etc. to be collected or sent by each device. The device number and signal code must be consistent with the device management system to facilitate information interaction. The storage of configuration information does not use a database, but is saved in a local configuration file. Use the configuration function to set it before starting the software, and load it when the program starts.
[0082] Data transfer and visualization: To realize the flow of data from the device to the visualization interface, you must first build a WebSocket server, use the Fleck class, use the WebSocket component, define functions or events such as starting the service, sending data, state change, and receiving data, then initialize the service in the main thread, add state change events, and use asynchronous functions to publish data. Finally, in the visualization module, based on the Fleck class, develop a WebSocket client, define data receiving and processing functions, and parse and display the data.
[0083] To sum up, based on the existing network communication technology, the present invention aims at the multi-source heterogeneity of workshop equipment and designs and implements a fast data acquisition and processing system that shields the differences in equipment communication protocols and has a consistent signal acquisition model. At the same time, the system uses the WebSocket protocol to achieve a simple and fast data transmission function, thereby realizing the integration of physical world data and information world data, and improving the perception ability of workshop production status.
[0084] Currently, the collection and processing of multi-source heterogeneous data often use more complex machine learning algorithms, which leads to high system complexity, long processing time, and obvious data delay. The data publishing platform built based on the OPC UA protocol often increases the difficulty of development and the time of the data publishing process, and is not suitable for use in environments that require rapid response.
[0085] The method provided in the embodiment of the present application designs a signal model based on the relationship between the device and its parameters. The model can shield the differences between devices with different protocols and quickly format the parameters from different data sources, thereby establishing a unified data processing, publishing, and storage module. The WebSocket technology is applied to the workshop-level data collection and publishing system, and a simple, low-latency data publishing method is successfully implemented, which improves the real-time performance of the data generation and visualization process.
[0086] At the same time, in view of the multi-source and heterogeneous characteristics of workshop data, the data collection and processing method designed based on the correlation between equipment and its parameters has a simple process. Since it does not involve complex machine learning algorithms, the system complexity is low. Moreover, this method has a unified data format, which facilitates data publishing and storage, reduces processing time, and enhances the real-time performance of the system.
[0087] In addition, the data publishing and receiving module based on WebSocket communication technology, because its core method is implemented based on the Socket communication protocol, and the biggest advantage of Socket communication is its speed and simplicity, the system data publishing and receiving module can significantly reduce the delay in data transmission, so that data can be used faster and more concisely.
[0088] like Figure 4 As shown, the embodiment of the present application can also provide a workshop-level data collection and monitoring device, the device comprising:
[0089] A collection unit 401 is used to collect a number of data values corresponding to a number of data collection items included in the target heterogeneous device through a network connection established with the target heterogeneous device;
[0090] The configuration information acquisition unit 402 is used to acquire necessary configuration information corresponding to the target heterogeneous device stored in a device basic information table; the device basic information table is a pre-configured data table storing some necessary configuration information of the target heterogeneous device;
[0091] The target signal acquisition unit 403 is used to acquire the attribute information of each of the data values and determine the target signals corresponding to each of the data values in combination with the signal data table; the signal data table is a pre-configured storage of the signals corresponding to all the data acquisition items included in the target heterogeneous device; the attributes and data formats of the signals are consistent;
[0092] A data processing unit 404 is used to couple the data values, the attribute information of the data values, the necessary configuration information and the corresponding target signals to obtain and store target data;
[0093] The data broadcast unit 405 is used to use the WebSocket server to periodically broadcast some of the target data to the WebSocket client.
[0094] The embodiment of the present application may also provide a workshop-level data collection and monitoring device, the device comprising a processor and a memory:
[0095] The memory is used to store program code and transmit the program code to the processor;
[0096] The processor is used to execute the above-mentioned workshop-level data collection and monitoring method according to the instructions in the program code.
[0097] An embodiment of the present application may also provide a computer-readable storage medium, characterized in that the computer-readable storage medium is used to store program code, and the program code is used to execute the above-mentioned workshop-level data collection and monitoring method.
[0098] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0099] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.
[0100] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0101] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A workshop-level data collection and monitoring method, characterized in that: The method comprises: Collecting a number of data values corresponding to a number of data collection items included in the target heterogeneous device through a network connection established with the target heterogeneous device; Obtaining necessary configuration information corresponding to the target heterogeneous device stored in a device basic information table and a device configuration table; the device basic information table is a pre-configured data table storing some necessary configuration information of the target heterogeneous device; the device configuration table pre-stores the necessary configuration information of the target heterogeneous device for supplementing the necessary configuration information of the target heterogeneous device not recorded in the device basic information table; Acquire attribute information of each of the data values and determine target signals corresponding to each of the data values in combination with a signal data table; the signal data table is a pre-configured storage of a plurality of signals corresponding to all the data acquisition items included in the target heterogeneous device; the attributes and data formats of the plurality of signals are consistent; Coupling the data values, the attribute information of the data values, the necessary configuration information and the corresponding target signals to obtain and store the target data; The WebSocket server is used to periodically broadcast some of the target data to the WebSocket client.
2. The workshop-level data collection and monitoring method according to claim 1 is characterized in that: Establish a network connection with the target heterogeneous device according to the relevant communication information in the device basic information table; some of the necessary configuration information includes the relevant communication information.
3. The workshop-level data collection and monitoring method according to claim 1 is characterized in that: The device basic information table, the device configuration table and the signal data table are all stored in the MySQL 8.0 database.
4. The workshop-level data collection and monitoring method according to claim 1 is characterized in that: The attributes of the signal include signal number, device number, signal name, signal code, data type, signal value, update time, signal description, release frequency and status identification.
5. The workshop-level data collection and monitoring method according to claim 1 is characterized in that: The WebSocket server is used to periodically broadcast the target data to the WebSocket client, including: The WebSocket server uses the Fleck class and the WebSocket component to define functions or events for starting services, sending data, changing states, and receiving data; initializes services in the main thread and adds state change events; and uses asynchronous functions to perform data broadcast operations.
6. The workshop-level data collection and monitoring method according to claim 5 is characterized in that: The WebSocket client is determined based on the Fleck class opening in the visualization module, and the WebSocket client defines a data receiving and processing function so as to parse and display the received target data.
7. A workshop-level data collection and monitoring device, characterized in that: The device comprises: A collection unit, used for collecting a number of data values corresponding to a number of data collection items included in the target heterogeneous device through a network connection established with the target heterogeneous device; A configuration information acquisition unit, used to acquire necessary configuration information corresponding to the target heterogeneous device stored in the device basic information table and the device configuration table; the device basic information table is a pre-configured data table storing several necessary configuration information of the target heterogeneous device; the device configuration table pre-stores the necessary configuration information of the target heterogeneous device that is used to supplement the device basic information table; a target signal acquisition unit, used to acquire attribute information of several data values and determine target signals corresponding to several data values in combination with a signal data table; the signal data table is a pre-configured data table storing several signals corresponding to all the data collection items contained in the target heterogeneous device; the attributes and data formats of several signals are consistent; A data processing unit, used for coupling the data values, the attribute information of the data values, the necessary configuration information and the corresponding target signals to obtain and store the target data; The data broadcast unit is used to use the WebSocket server to periodically broadcast some of the target data to the WebSocket client.
8. A workshop-level data collection and monitoring device, characterized in that: The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the workshop-level data collection and monitoring method described in any one of claims 1-6 according to the instructions in the program code.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program code, and the program code is used to execute the workshop-level data collection and monitoring method according to any one of claims 1-6.
