Real-time data acquisition system for textile workshops based on big data

By designing a textile workshop real-time data acquisition system based on big data, the problem of low reliability of real-time data acquisition in textile workshops is solved, and the data is high real-time and high reliability are achieved, and it is suitable for textile workshop environments with a large number of equipment.

CN119011630BActive Publication Date: 2025-04-18JIUJIANG HONGDE TEXTILE TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411456380.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2025-04-18
Estimated Expiration
2044-10-18

AI Technical Summary

Technical Problem

The real-time data acquisition reliability of existing textile workshops is not high, it takes a long time and has low data accuracy. It is difficult to ensure high real-time and high reliability of data, especially when there are many equipment.

Method used

A real-time data acquisition system for textile workshops based on big data is designed, including acquisition time period module, real-time data acquisition module and acquisition transmission control module. By setting the real-time data acquisition time period under different acquisition modes, periodic collection of relevant data in textile workshops, transmission and security control of collected data, ensuring high real-time and reliability of data.

Benefits of technology

It improves the reliability and accuracy of real-time data acquisition in textile workshops, and can ensure high real-time and high reliability of data when there are many equipment, solving the problem of long and low accuracy of data acquisition in the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011630B_ABST
    Figure CN119011630B_ABST
Patent Text Reader

Abstract

The present invention discloses a real-time data acquisition system for a textile workshop based on big data, comprising an acquisition time cycle module, a real-time data acquisition module, and an acquisition transmission control module, wherein the acquisition time cycle module is used to set the real-time data acquisition time cycle for different acquisition modes of the textile workshop; the real-time data acquisition module is used to perform periodic real-time acquisition operations on relevant data of the textile workshop; the acquisition transmission control module is used to transmit and safely control the data collected from the textile workshop. The present invention solves the problems of low reliability and low data accuracy of real-time data acquisition in existing textile workshops by setting the real-time data acquisition time cycle for different acquisition modes of the textile workshop; performing classification operations on data acquisition according to information attributes of textile equipment; performing periodic acquisition of relevant data of the textile workshop; and transmitting the collected data from the textile workshop while setting a data security protection mechanism.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of real-time data collection of textiles, and in particular to a real-time data collection system for textile workshops based on big data. Background Art

[0002] The networking and data collection of equipment in textile enterprises is the first step to realize intelligent production, and it is also the most basic step to build and realize digital factories. By using the on-site production data process flow in the form of real-time data collection and analysis to provide feedback on production conditions, that is, using the real-time collected equipment data and workshop production data for storage and analysis, the overall production status of the textile workshop is comprehensively reflected. When the production data is found to be unreasonable or there is a problem of textile equipment failure according to the analysis results, the control server sends instructions to coordinate and control the operation of the textile equipment. Therefore, the real-time collection of equipment and production data in the textile workshop is required to be higher. However, in the textile industry, the current equipment and data collection on the workshop site, due to the existence of a large number of decentralized production equipment, the coordination control and real-time interactive correlation between equipment and equipment are poor, which leads to the low reliability of real-time data collection in the existing workshop, and the problems of long time consumption and low data accuracy. Therefore, it is necessary to design a real-time data collection system for textile workshops based on big data with strong real-time data collection and high data collection reliability. Summary of the invention

[0003] The purpose of the present invention is to provide a real-time data acquisition system for a textile workshop based on big data to solve the problems raised in the above background technology.

[0004] In order to solve the above technical problems, the present invention provides the following technical solutions: a real-time data acquisition system for a textile workshop based on big data, comprising an acquisition time period module, a real-time data acquisition module, and an acquisition and transmission control module, characterized in that: the acquisition time period module is used to set the real-time data acquisition time period for different acquisition modes of the textile workshop; the real-time data acquisition module is used to perform periodic real-time acquisition operations on relevant data of the textile workshop; the acquisition and transmission control module is used to transmit and securely control the data collected from the textile workshop, and the acquisition time period module, the real-time data acquisition module, and the acquisition and transmission control module are interconnected through a network.

[0005] According to the above technical solution, the collection time cycle module includes: a data collection mode division module, a collection cycle determination module, and a collection data total amount calculation module. The data collection mode division module is used to divide the data collection mode of the textile workshop into a normal operation collection mode and an abnormal event collection mode; the collection cycle determination module is used to use the main node to determine the collection cycle of equipment production data and equipment operation data; the collection data total amount calculation module is used to calculate the total amount of data that needs to be collected in real time in the textile workshop, and the data collection mode division module, the collection cycle determination module, and the collection data total amount calculation module are interconnected through a network.

[0006] According to the above technical solution, the real-time data acquisition module includes: a classification model module, a periodic acquisition module, a collection task queue module, and a collection command parsing module. The classification model module is used to map the information attributes of the textile equipment to the classification model for collection and classification; the periodic acquisition module is used to perform periodic collection operations on textile workshop-related data; the collection task queue module is used to store stored collection commands or connection requests together with the information of the collection terminal; the collection command parsing module is used to use the execution thread to parse and extract the collection commands, connection requests and the information of the collection terminal from the collection task queue, and the classification model module, the periodic acquisition module, the collection task queue module, and the collection command parsing module are interconnected through a network.

[0007] According to the above technical scheme, the acquisition and transmission control module includes a time period cycle iteration module: a time period cycle iteration module, a transmission control module, a data security protection mechanism module, and a data encryption judgment module. The time period cycle iteration module is used to perform iterative cycle calculations of the data transmission period based on a determined time period; the transmission control module is used to control the edge terminal of the acquisition terminal to perform transmission control through conditional thresholds while collecting real-time data of the equipment; the data security protection mechanism module is used to establish a data security protection mechanism for a textile workshop that controls acquisition and transmission; the data encryption judgment module is used to perform encryption and decryption judgments on each data information body of transmission monitoring, and the time period cycle iteration module, transmission control module, data security protection mechanism module, and data encryption judgment module are interconnected in a network.

[0008] According to the above technical solution, the operating method of the system includes the following steps:

[0009] Step 1: Set the real-time data collection time period and the total amount of collected data under different collection modes for the textile workshop;

[0010] Step 2: Classify data collection according to the information attributes of textile equipment;

[0011] Step 3: Perform periodic collection of textile workshop related data;

[0012] Step 4: Transmit the collected data from the textile workshop;

[0013] Step 5: Simultaneously establish a data security protection mechanism for the textile workshop to control collection and transmission.

[0014] According to the above technical solution, the method for setting the time period of real-time data collection in different collection modes of a textile workshop comprises the following steps:

[0015] Step 11: The data collection mode of the textile workshop is divided into: normal operation collection mode and abnormal event collection mode. The normal operation collection mode is for collecting all behavioral event data of the normal operation of the textile equipment set for real-time data collection in the textile workshop. The abnormal event collection mode is for the shutdown of the textile equipment caused by hardware or software failures in the textile workshop, and the behavioral events of the textile equipment resuming normal operation after the failure ends;

[0016] Step 12: number the master and slave nodes of all textile equipment corresponding to the textile section, set the master node of the textile equipment to perform regular collection at equal collection periods T in the normal operation collection mode, use the master node to determine the collection period T1 of the equipment production data and equipment operation data, and further determine the collection period T2 of each slave node based on the master node;

[0017] Step 13: When the master and slave nodes collect data, the collection time t must be greater than or equal to the longest time t required for the node to send the collected data in the normal operation collection mode max ,The smaller the collection period T determined by the node is, the shorter the time t for each node to collect data is;

[0018] Step 14: Synchronize the total number of textile workshops n, textile equipment x, the defined collection cycle T and the textile equipment state quantity k to be collected, the master and slave nodes m required for each state quantity k, and calculate the total amount of data N that the textile workshop needs to collect in real time. in is the unit conversion factor.

[0019] According to the above technical scheme, the classification operation of data collection according to the information attributes of textile equipment includes: mapping the information attributes of textile equipment into the classification model, and after the classification model uniformly collects the data information types of textile equipment, for each type of equipment, extracting general production information data according to data characteristics and concretizing the data structure, dividing each type of data into static attributes and dynamic attributes according to the characteristics of each type of data, and assigning a unique attribute code to the data item in each attribute set through the classification model, the server accesses the data item according to the attribute code, and finally using the data item mapping function to establish a mapping relationship between the textile equipment information attribute set, and then through the data collection terminal according to the specific path of different data type group objects, the node information with the mapping relationship established in the server is read and written interactively, and the collection cycle and frequency of the attribute data are controlled according to the attribute type.

[0020] According to the above technical solution, the periodic collection operation of textile workshop related data includes:

[0021] Step 31: The physical data of the textile equipment is collected through the data collection terminal in the sensor device, and the data to be collected of the textile equipment is collected from the data collection node of the textile equipment based on the collection program. The data collection terminals respectively establish communication connections with the textile equipment of the data to be collected based on the collection request, and the collection terminal establishes the IP address and port number information with the textile equipment to be connected, and saves it in the textile equipment list;

[0022] Step 32: When the acquisition terminal receives the acquisition command or connection request, it uses the request parser to parse the request, and stores the stored acquisition command or connection request together with the acquisition terminal information into the acquisition task queue through the main thread, and executes the corresponding acquisition task after waiting for idle time;

[0023] Step 33: The collection task queue adopts the first-in-first-out processing principle, and uses the execution thread to parse and extract the collection command, connection request and collection terminal information from the collection task queue. After the collection task is executed according to the collection command or connection request, the corresponding collection terminal information is synchronously added to the TCP communication protocol and transmitted to the corresponding collection terminal using the protocol.

[0024] According to the above technical scheme, the periodic collection operation of textile workshop related data also includes: using sensors to physically perceive the textile equipment data and production data of the textile workshop, the main control server of the system in the collection program sends a collection command to the collection terminal as required, and the collection terminal parses the collection command after receiving it, that is, using the master-slave node to parse the collection command, the master control node sends the corresponding perception command to the slave node, using the slave node to realize the collection of physical data, and sending the collected data to the master control node through the CAN bus, calculating the time period for collecting and sending data based on the synchronization command, and sending the collected physical data to the main control server through the CAN bus within the calculated time period. After the main control server receives the collected data, it stores the collected data in the database. During the multi-threaded program processing, when multiple threads concurrently request the collection operation of the same resource data, the main control server uses a thread lock to allow the thread that first collects the resource data to continue to access until the collection ends within the specified time period. Other collection threads can start requesting access.

[0025] According to the above technical solution, the method for transmitting the collected data of the textile workshop comprises the following steps:

[0026] Step 41: After the master node sends a synchronous acquisition command in the normal operation acquisition mode, all nodes send data in turn within their own determined time periods;

[0027] Step 42: The time for the first node to send data is (1-T / n). If its data is not sent completely within the time period, it stops sending data synchronously. The second node starts sending data at time T / n. The third node sends data at time 2T / n. The iterative cycle is performed based on the time period until the last node sends data completely.

[0028] Step 43: The edge terminal of the control acquisition terminal performs transmission control through conditional thresholds while collecting real-time data of the equipment, by calculating the periodic data with time-efficiency characteristics in the textile equipment;

[0029] Step 44: The sub-thread of the edge terminal polls the time-effectiveness list information of the textile equipment data and production data collected in the textile workshop by connecting to the cloud server, reads the cycle data of the textile equipment and sends it to the cloud server according to the textile equipment identification and feature identification. After receiving the time-effectiveness data of the textile equipment, the cloud server returns it to the corresponding textile equipment end and responds to the data collection and transmission;

[0030] The method for synchronously establishing a data security protection mechanism for a textile workshop that controls collection and transmission includes the following steps: during the data transmission process collected by textile equipment, during the interaction of the collected data information, a data security protection mechanism for the textile workshop that controls collection and transmission is established, the collected data is monitored on each textile equipment based on the security protection mechanism, each data information body of the transmission monitoring is encrypted, a data frame is constructed to generate a hash value through an encryption algorithm operation, a complete request is composed of the data frame and sent to a target terminal, the target terminal performs an encryption operation after receiving the request body to obtain a hash value, the calculated hash values ​​are compared to determine whether they are consistent, and when they are consistent, it is determined that the data is valid for subsequent analysis and processing.

[0031] Compared with the prior art, the beneficial effects achieved by the present invention are as follows: the present invention is provided with a collection time cycle module, a real-time data collection module, and a collection and transmission control module, wherein the collection time cycle module is used to set the real-time data collection time cycle for different collection modes of a textile workshop; the real-time data collection module is used to perform periodic real-time collection operations of relevant data of the textile workshop; the collection and transmission control module is used to transmit and safely control the data collected from the textile workshop. The present invention sets the real-time data collection time cycle for different collection modes of the textile workshop and calculates the total amount of data that needs to be collected in real time in the textile workshop; performs classification operations on data collection according to the information attributes of the textile equipment; then performs periodic collection of relevant data of the textile workshop, and finally transmits the collected data from the textile workshop while setting a data security protection mechanism, thereby solving the problems of low reliability and low data accuracy of real-time data collection in existing textile workshops, and at the same time ensures high real-time and high reliability of data collection when there are too many textile equipment in the textile workshop. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.

[0033] In the attached picture:

[0034] Figure 1 A schematic diagram of the module composition of a real-time data acquisition system for a textile workshop based on big data provided in Example 2 of the present invention. DETAILED DESCRIPTION

[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0036] Embodiment 1: This embodiment can be applied to the scenario of textile workshop data collection. The method can be executed by the textile workshop real-time data collection system based on big data provided by this embodiment. The method specifically includes the following steps:

[0037] Step 1: Set the real-time data collection time period and the total amount of collected data under different collection modes for the textile workshop;

[0038] Step 2: Classify data collection according to the information attributes of textile equipment;

[0039] Step 3: Perform periodic collection of textile workshop related data;

[0040] Step 4: Transmit the collected data from the textile workshop;

[0041] Step 5: Simultaneously establish a data security protection mechanism for the textile workshop to control collection and transmission.

[0042] In an embodiment of the present invention, a method for setting a time period for real-time data collection in different collection modes in a textile workshop includes the following steps:

[0043] Step 11: The data collection mode of the textile workshop is divided into: normal operation collection mode and abnormal event collection mode. The normal operation collection mode is for collecting all behavioral event data of the normal operation of the textile equipment set for real-time data collection in the textile workshop. The abnormal event collection mode is for the shutdown of the textile equipment caused by hardware or software failures in the textile workshop, and the behavioral events of the textile equipment resuming normal operation after the failure ends;

[0044] Step 12: number the master and slave nodes of all textile equipment corresponding to the textile section, set the master node of the textile equipment to perform regular collection at equal collection periods T in the normal operation collection mode, use the master node to determine the collection period T1 of the equipment production data and equipment operation data, and further determine the collection period T2 of each slave node based on the master node;

[0045] Step 13: When the master and slave nodes collect data, the collection time t must be greater than or equal to the longest time t required for the node to send the collected data in the normal operation collection mode max ,The smaller the collection period T determined by the node is, the shorter the time t for each node to collect data is;

[0046] Step 14: Synchronize the total number of textile workshops n, textile equipment x, the defined collection cycle T and the textile equipment state quantity k to be collected, the master and slave nodes m required for each state quantity k, and calculate the total amount of data N that the textile workshop needs to collect in real time. in is the unit conversion factor.

[0047] In this embodiment, the information attributes of the textile equipment are mapped to the classification model. After the classification model uniformly collects the data information types of the textile equipment, the general production information data is extracted for each type of equipment according to the data characteristics and the data structure is concretized. Each type of data is divided into static attributes and dynamic attributes according to the characteristics, and a unique attribute code is assigned to the data item in each attribute set through the classification model. The server accesses the data item according to the attribute code, and finally a mapping relationship is established between the textile equipment information attribute set using the data item mapping function. Then, the data acquisition terminal performs read and write interaction on the node information with the mapping relationship established in the server according to the specific paths of the objects of different data types, and the collection period and frequency of the attribute data are controlled according to the attribute type.

[0048] In an embodiment of the present invention, the periodic collection operation of textile workshop related data includes:

[0049] Step 31: The physical data of the textile equipment is collected through the data collection terminal in the sensor device, and the data to be collected of the textile equipment is collected from the data collection node of the textile equipment based on the collection program. The data collection terminals respectively establish communication connections with the textile equipment of the data to be collected based on the collection request, and the collection terminal establishes the IP address and port number information with the textile equipment to be connected, and saves it in the textile equipment list;

[0050] Step 32: When the acquisition terminal receives the acquisition command or connection request, it uses the request parser to parse the request, and stores the stored acquisition command or connection request together with the acquisition terminal information into the acquisition task queue through the main thread, and executes the corresponding acquisition task after waiting for idle time;

[0051] Step 33: The collection task queue adopts the first-in-first-out processing principle, and uses the execution thread to parse and extract the collection command, connection request and collection terminal information from the collection task queue. After the collection task is executed according to the collection command or connection request, the corresponding collection terminal information is synchronously added to the TCP communication protocol and transmitted to the corresponding collection terminal using the protocol;

[0052] Exemplarily, sensors are used to physically sense the textile equipment data and production data of a textile workshop. The main control server of the system in the collection program sends a collection command to the collection terminal as required. The collection terminal parses the collection command after receiving it, that is, the master-slave node parses the collection command, the master control node sends the corresponding perception command to the slave node, the slave node is used to realize the collection of physical data, and the collected data is sent to the main control node through the CAN bus. The time period for collecting and sending data is calculated based on the synchronization command. Within the calculated time period, the collection device sends the collected physical data to the main control server through the CAN bus. After receiving the collected data, the main control server stores the collected data in the database. During the multi-threaded program processing, when multiple threads concurrently request the collection operation of the same resource data, the main control server uses a thread lock to allow the thread that first collects the resource data to continue accessing until the collection ends within the specified time period. Other collection threads can start to request access.

[0053] In an embodiment of the present invention, the method for transmitting data collected from a textile workshop comprises the following steps:

[0054] Step 41: After the master node sends a synchronous acquisition command in the normal operation acquisition mode, all nodes send data in turn within their own determined time periods;

[0055] Step 42: The time for the first node to send data is (1-T / n). If its data is not sent completely within the time period, it stops sending data synchronously. The second node starts sending data at time T / n. The third node sends data at time 2T / n. The iterative cycle is performed based on the time period until the last node sends data completely.

[0056] Step 43: The edge terminal of the control acquisition terminal performs transmission control through conditional thresholds while collecting real-time data of the equipment, by calculating the periodic data with time-efficiency characteristics in the textile equipment;

[0057] Step 44: The sub-thread of the edge terminal polls the time-effectiveness list information of the textile equipment data and production data collected in the textile workshop by connecting to the cloud server, reads the cycle data of the textile equipment and sends it to the cloud server according to the textile equipment identification and feature identification. After receiving the time-effectiveness data of the textile equipment, the cloud server returns it to the corresponding textile equipment end and responds to the data collection and transmission;

[0058] In this embodiment, the method for synchronously establishing a data security protection mechanism for a textile workshop that controls collection and transmission includes the following steps: in the process of data transmission collected by textile equipment, during the interaction of collected data information, a data security protection mechanism for a textile workshop that controls collection and transmission is established, the collected data is monitored on each textile equipment based on the security protection mechanism, each data information body of the transmission monitoring is encrypted, a data frame is constructed to generate a hash value through an encryption algorithm, a complete request is composed of the data frame and sent to a target terminal, the target terminal receives the request body and performs an encryption operation to obtain a hash value, the calculated hash values ​​are compared to determine whether they are consistent, and when they are consistent, the data is determined to be valid for subsequent analysis and processing.

[0059] Embodiment 2: Embodiment 2 of the present invention provides a real-time data collection system for a textile workshop based on big data. Figure 1 The module composition diagram of the real-time data acquisition system for a textile workshop based on big data provided in the second embodiment of the present invention is as follows: Figure 1 As shown, the system includes:

[0060] The collection time cycle module is used to set the real-time data collection time cycle under different collection modes for the textile workshop;

[0061] Real-time data collection module, used for periodic real-time collection of textile workshop related data;

[0062] The acquisition and transmission control module is used to transmit and safely control the data collected in the textile workshop.

[0063] In some embodiments of the present invention, the acquisition time period module includes:

[0064] The data collection mode division module is used to divide the data collection mode of the textile workshop into the normal operation collection mode and the abnormal event collection mode;

[0065] A collection cycle determination module is used to determine the collection cycle of equipment production data and equipment operation data using the master node;

[0066] The total amount of collected data calculation module is used to calculate the total amount of data that needs to be collected in real time in the textile workshop.

[0067] In some embodiments of the present invention, the real-time data acquisition module includes:

[0068] A classification model module is used to map the information attributes of textile equipment to a classification model for collection and classification;

[0069] The periodic collection module is used to periodically collect data related to the textile workshop;

[0070] The acquisition task queue module is used to store the stored acquisition commands or connection requests together with the acquisition terminal information;

[0071] The acquisition command parsing module is used to parse and extract the acquisition command, connection request and acquisition terminal information from the acquisition task queue using the execution thread.

[0072] In some embodiments of the present invention, the acquisition transmission control module includes:

[0073] A time period loop iteration module, used for performing iterative loop calculation of a data transmission period based on a determined time period;

[0074] A transmission control module is used to control the edge terminal of the acquisition terminal to perform transmission control through conditional thresholds while collecting real-time data from the device;

[0075] Data security protection mechanism module, used to establish data security protection mechanism for textile workshops that control collection and transmission;

[0076] The data encryption judgment module is used to encrypt and decrypt each data information body of transmission monitoring.

[0077] 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.

[0078] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A real-time data acquisition system for textile workshops based on big data, including an acquisition time cycle module, a real-time data acquisition module, and an acquisition transmission control module, characterized in that: The acquisition time cycle module is used to set the real-time data acquisition time cycle under different acquisition modes for the textile workshop; the real-time data acquisition module is used to perform periodic real-time acquisition operations on the relevant data of the textile workshop; the acquisition transmission control module is used to transmit and safely control the data collected from the textile workshop, and the acquisition time cycle module, the real-time data acquisition module, and the acquisition transmission control module are interconnected through a network; The collection time cycle module includes: a data collection mode division module, a collection cycle determination module, and a collection data total amount calculation module. The data collection mode division module is used to divide the textile workshop data collection mode into a normal operation collection mode and an abnormal event collection mode; the collection cycle determination module is used to use the master node to determine the collection cycle of equipment production data and equipment operation data; the collection data total amount calculation module is used to calculate the total amount of data that needs to be collected in real time in the textile workshop, and the data collection mode division module, the collection cycle determination module, and the collection data total amount calculation module are interconnected through a network; The real-time data acquisition module includes: a classification model module, a periodic acquisition module, a collection task queue module, and a collection command parsing module. The classification model module is used to map the information attributes of the textile equipment to the classification model for collection and classification; the periodic acquisition module is used to perform periodic collection operations on the relevant data of the textile workshop; the collection task queue module is used to store the stored collection commands, connection requests and information of the collection terminal; the collection command parsing module is used to parse and extract the collection commands, connection requests and information of the collection terminal from the collection task queue using an execution thread, and the classification model module, the periodic acquisition module, the collection task queue module, and the collection command parsing module are interconnected through a network; The acquisition and transmission control module includes: a time period cycle iteration module, a transmission control module, a data security protection mechanism module, and a data encryption judgment module. The time period cycle iteration module is used to perform iterative cycle calculation of the data transmission cycle based on a determined time period; the transmission control module is used to control the edge terminal of the acquisition terminal to perform transmission control through a conditional threshold while acquiring real-time data of the equipment; the data security protection mechanism module is used to establish a data security protection mechanism for a textile workshop that controls acquisition and transmission; the data encryption judgment module is used to perform encryption and decryption judgment on each data information body of the transmission monitoring, and the time period cycle iteration module, the transmission control module, the data security protection mechanism module, and the data encryption judgment module are interconnected in a network; The operation method of the system comprises the following steps: Step 1: Set the real-time data collection time period and the total amount of collected data under different collection modes for the textile workshop; Step 2: Classify data collection according to the information attributes of textile equipment; Step 3: Perform periodic collection of textile workshop related data; Step 4: Transmit the collected data from the textile workshop; Step 5: Simultaneously establish a data security protection mechanism for the textile workshop that controls the collection and transmission; The method for setting the time period of real-time data collection in different collection modes of a textile workshop comprises the following steps: Step 11: The data collection mode of the textile workshop is divided into: normal operation collection mode and abnormal event collection mode. The normal operation collection mode is for collecting all behavioral event data of the normal operation of the textile equipment set for real-time data collection in the textile workshop. The abnormal event collection mode is for the shutdown of the textile equipment caused by hardware or software failures in the textile workshop, and the behavioral events of the textile equipment resuming normal operation after the failure ends; Step 12: number the master and slave nodes of all the corresponding textile equipment in the textile workshop, set the master node of the textile equipment to perform regular collection at equal collection periods T in the normal operation collection mode, use the master node to determine the collection period T1 of the equipment production data and equipment operation data, and further determine the collection period T2 of each slave node based on the master node; Step 13: When the master and slave nodes collect data, the collection time t must be greater than or equal to the longest time t required for the node to send the collected data in the normal operation collection mode max ,The smaller the collection period T determined by the node is, the shorter the time t for each node to collect data is; Step 14: Synchronize the total number of textile workshops n, textile equipment x, the defined collection cycle T and the textile equipment state quantity k to be collected, the master and slave nodes m required for each state quantity k, and calculate the total amount of data N that the textile workshop needs to collect in real time. in is the unit conversion factor.

2. The real-time data acquisition system for textile workshops based on big data according to claim 1 is characterized in that: The classification operation of data collection according to the information attributes of textile equipment includes: mapping the information attributes of textile equipment into a classification model, and after the classification model uniformly collects the data information types of textile equipment, extracting general production information data for each type of equipment according to data characteristics and concretizing the data structure, dividing each type of data into static attributes and dynamic attributes according to the characteristics of each type of data, and assigning a unique attribute code to each data item in the attribute set through the classification model, the server accesses the data item according to the attribute code, and finally using the data item mapping function to establish a mapping relationship for the textile equipment information attribute set, and then through the data collection terminal according to the specific path of different data type group objects, the node information with the mapping relationship established in the server is read and written interactively, and the collection cycle and frequency of the attribute data are controlled according to the attribute type.

3. The real-time data acquisition system for textile workshops based on big data according to claim 2 is characterized in that: The periodic collection operation of textile workshop related data includes: Step 31: The physical data of the textile equipment is collected through the data collection terminal in the sensor device, and the data to be collected of the textile equipment is collected from the data collection node of the textile equipment based on the collection program. The data collection terminals respectively establish communication connections with the textile equipment of the data to be collected based on the collection request, and the collection terminal establishes the IP address and port number information with the textile equipment to be connected, and saves it in the textile equipment list; Step 32: When the acquisition terminal receives the acquisition command or connection request, it uses the request parser to parse the request, stores the stored acquisition command, connection request and acquisition terminal information into the acquisition task queue through the main thread, and executes the corresponding acquisition task after waiting for idle time; Step 33: The collection task queue adopts the first-in-first-out processing principle, and uses the execution thread to parse and extract the collection command, connection request and collection terminal information from the collection task queue. After the collection task is executed according to the collection command or connection request, the corresponding collection terminal information is synchronously added to the TCP communication protocol and transmitted to the corresponding collection terminal using the protocol.

4. The real-time data acquisition system for textile workshops based on big data according to claim 3 is characterized in that: The periodic collection operation of textile workshop related data also includes: using sensors to physically sense the textile equipment data and production data of the textile workshop, the main control server of the system in the collection program sends a collection command to the collection terminal as required, and the collection terminal parses the collection command after receiving it, that is, using the master-slave node to parse the collection command, the master control node sends the corresponding perception command to the slave node, using the slave node to realize the collection of physical data, and sending the collected data to the main control node through the CAN bus, calculating the time period for collecting and sending data based on the synchronization command, and sending the collected physical data to the main control server through the CAN bus within the calculated time period. After receiving the collected data, the main control server stores the collected data in the database, and when multiple threads concurrently request the collection operation of the same resource data during the multi-threaded program processing of the main control server, the thread lock is used to allow the thread that first collects the resource data to continue to access until the collection is completed within the specified time period. Other collection threads can start to request access.

5. The real-time data acquisition system for textile workshops based on big data according to claim 4 is characterized in that: The method for transmitting the collected data from a textile workshop comprises the following steps: Step 41: After the master node sends a synchronous acquisition command in the normal operation acquisition mode, all nodes send data in turn within their own determined time periods; Step 42: The time for the first node to send data is (1-T / n). If its data is not sent completely within the time period, it stops sending data synchronously. The second node starts sending data at time T / n. The third node sends data at time 2T / n. The iterative cycle is performed based on the time period until the last node sends data completely. Step 43: The edge terminal of the control acquisition terminal performs transmission control through conditional thresholds while collecting real-time data of the equipment, and calculates periodic data with timeliness characteristics in the textile equipment; Step 44: The sub-thread of the edge terminal polls the time-effectiveness list information of the textile equipment data and production data collected in the textile workshop by connecting to the cloud server, reads the cycle data of the textile equipment and sends it to the cloud server according to the textile equipment identification and feature identification. After receiving the time-effectiveness data of the textile equipment, the cloud server returns it to the corresponding textile equipment end and responds to the data collection and transmission; The method for synchronously establishing a data security protection mechanism for a textile workshop that controls collection and transmission includes the following steps: during the data transmission process collected by textile equipment, during the interaction of the collected data information, a data security protection mechanism for the textile workshop that controls collection and transmission is established, the collected data is monitored on each textile equipment based on the security protection mechanism, each data information body of the transmission monitoring is encrypted, a data frame is constructed to generate a hash value through an encryption algorithm operation, a complete request is composed of the data frame and sent to a target terminal, the target terminal performs an encryption operation after receiving the request body to obtain a hash value, the calculated hash values ​​are compared to determine whether they are consistent, and when they are consistent, it is determined that the data is valid for subsequent analysis and processing.

Citation Information

Patent Citations

  • Loom production information transmission method, apparatus and system

    CN107844107A