CN115421982A - Industrial production data backup method and device and server - Google Patents

Industrial production data backup method and device and server Download PDF

Info

Publication number
CN115421982A
CN115421982A CN202211191723.5A CN202211191723A CN115421982A CN 115421982 A CN115421982 A CN 115421982A CN 202211191723 A CN202211191723 A CN 202211191723A CN 115421982 A CN115421982 A CN 115421982A
Authority
CN
China
Prior art keywords
data
industrial production
industrial
production
production data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211191723.5A
Other languages
Chinese (zh)
Inventor
刘峰
徐琨璘
戚剑威
石唯
薛观强
曾扬文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Huadatong Gas Manufacturing Co ltd
Original Assignee
Huizhou Huadatong Gas Manufacturing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Huadatong Gas Manufacturing Co ltd filed Critical Huizhou Huadatong Gas Manufacturing Co ltd
Priority to CN202211191723.5A priority Critical patent/CN115421982A/en
Publication of CN115421982A publication Critical patent/CN115421982A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application is applicable to the technical field of industrial production, and provides an industrial production data backup method, an industrial production data backup device and a server, wherein the method comprises the following steps: receiving a plurality of pieces of industrial production data transmitted by each piece of industrial equipment, wherein each piece of industrial production data has data acquisition time; when a plurality of pieces of industrial production data are stored in a business database, determining a production batch to which each piece of industrial production data belongs according to the data acquisition time; storing a plurality of pieces of industrial production data to a data temporary storage unit according to the production batches; when the information of the production completion of the target production batch is received, extracting a plurality of pieces of target industrial production data belonging to the target production batch from the data temporary storage unit; and backing up and storing a plurality of pieces of target industrial production data. By adopting the method, the industrial production data can be backed up according to the production batch.

Description

Industrial production data backup method and device and server
Technical Field
The embodiment of the application belongs to the technical field of industrial production, and particularly relates to an industrial production data backup method, device and server.
Background
In the field of industrial production technology, data generated during production plays an important role in monitoring production state, replicating production processes and improving production processes. Generally, in order to ensure the reliability of data, industrial production enterprises adopt a backup storage mode when storing industrial production data, that is: the collected industrial production data are copied into at least two identical copies, and the at least two copies of industrial production data are separately stored in different servers or databases. Thus, when a problem occurs in one piece of industrial production data, another piece of backup data which is already stored can be used.
However, in the prior art, backup storage of industrial production data generally directly stores two identical copies of data. When the backup data is used, the data volume of the backup data is often large, and the required data needs to be searched from a large amount of data, so that the operation is complicated.
Disclosure of Invention
In view of this, embodiments of the present application provide an industrial production data backup method, apparatus, and server, which can backup industrial production data according to a production batch when the data is generated, and facilitate subsequent search and use of the backed-up industrial production data.
A first aspect of an embodiment of the present application provides an industrial production data backup method, including:
receiving a plurality of pieces of industrial production data transmitted by each piece of industrial equipment, wherein each piece of industrial production data has data acquisition time;
when a plurality of pieces of industrial production data are stored in a business database, determining a production batch to which each piece of industrial production data belongs according to the data acquisition time;
storing a plurality of pieces of industrial production data to a data temporary storage unit according to the production batches;
when the information that the production of the products of the target production batch is finished is received, extracting a plurality of pieces of target industrial production data belonging to the target production batch from the data temporary storage unit;
and backing up and storing a plurality of pieces of target industrial production data.
Optionally, the determining, according to the data acquisition time, a production batch to which each piece of industrial production data belongs includes:
aiming at any piece of industrial production data, identifying industrial equipment for acquiring the industrial production data;
acquiring production information of the industrial equipment for acquiring the industrial production data at the data acquisition time;
and determining the production batch to which the industrial production data belongs according to the production information.
Optionally, the identifying, for any piece of the industrial production data, an industrial device that collects the industrial production data includes:
extracting equipment identification in the industrial production data aiming at any piece of industrial production data;
determining the industrial equipment for acquiring the industrial production data according to the equipment identification; and acquiring a plurality of pieces of industrial production data with the same equipment identification by the same industrial equipment.
Optionally, the storing the plurality of pieces of industrial production data to a data temporary storage unit according to the production batch includes:
and storing a plurality of pieces of industrial production data belonging to the same production batch into one or more subunits of the data temporary storage unit.
Optionally, the extracting, from the data temporary storage unit, a plurality of pieces of target industrial production data belonging to the target production batch includes:
determining the unit serial number of each subunit of the data temporary storage unit, wherein the unit serial number of one or more subunits corresponds to the unique information of the production batch;
and extracting a plurality of pieces of target industrial production data belonging to the target production batch from one or more subunits corresponding to the target production batch.
Optionally, the performing backup storage on the plurality of pieces of target industrial production data includes:
determining the production process to which each piece of target industrial production data belongs;
and backing up and storing a plurality of pieces of target industrial production data according to the production procedures.
Optionally, the backing up and storing the plurality of pieces of target industrial production data according to the production process includes:
writing a plurality of pieces of target industrial production data belonging to the same production process into the same node of a data chain;
and after all the target industrial production data are written into the corresponding nodes, storing the data chain, wherein the data head of the data chain is the target production batch.
A second aspect of an embodiment of the present application provides an industrial production data backup apparatus, including:
the receiving module is used for receiving a plurality of pieces of industrial production data transmitted by each piece of industrial equipment, and each piece of industrial production data has data acquisition time;
the determining module is used for determining the production batch to which each piece of industrial production data belongs according to the data acquisition time when the plurality of pieces of industrial production data are stored in a business database;
the temporary storage module is used for storing the industrial production data to a data temporary storage unit according to the production batch;
the extraction module is used for extracting a plurality of pieces of target industrial production data belonging to the target production batch from the data temporary storage unit when receiving the information that the production of the products of the target production batch is finished;
and the backup module is used for backing up and storing the target industrial production data.
Optionally, the determining module includes:
the industrial equipment identification submodule is used for identifying the industrial equipment for acquiring the industrial production data aiming at any piece of the industrial production data;
the production information acquisition submodule is used for acquiring the production information of the industrial equipment for acquiring the industrial production data at the data acquisition time;
and the production batch determining submodule is used for determining the production batch to which the industrial production data belongs according to the production information.
Optionally, the industrial device identification submodule includes:
the equipment identification extracting unit is used for extracting the equipment identification in the industrial production data aiming at any piece of the industrial production data;
the industrial equipment determining unit is used for determining the industrial equipment for acquiring the industrial production data according to the equipment identification; and acquiring a plurality of pieces of industrial production data with the same equipment identification by the same industrial equipment.
Optionally, the staging module includes:
and the storage sub-module is used for storing a plurality of pieces of industrial production data belonging to the same production batch into one or more sub-units of the data temporary storage unit.
Optionally, the extraction module includes:
a unit serial number determining submodule, configured to determine a unit serial number of each subunit of the data temporary storage unit, where the unit serial number of one or more subunits corresponds to unique information of the production lot;
and the target industrial production data extraction submodule is used for extracting a plurality of pieces of target industrial production data belonging to the target production batch from one or more subunits corresponding to the target production batch.
Optionally, the backup module includes:
the production procedure determining submodule is used for determining the production procedure to which each piece of target industrial production data belongs;
and the target industrial production data backup submodule is used for backing up and storing a plurality of pieces of target industrial production data according to the production procedures.
Optionally, the target industrial production data backup sub-module includes:
the target industrial production data writing unit is used for writing a plurality of pieces of target industrial production data belonging to the same production process into the same node of the data chain;
and the data chain storage unit is used for storing the data chain after all the target industrial production data are written into the corresponding nodes, and the data head of the data chain is the target production batch.
A third aspect of embodiments of the present application provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the industrial production data backup method according to the first aspect.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the industrial production data backup method according to the first aspect.
A fifth aspect of embodiments of the present application provides a computer program product, which when run on a computer, causes the computer to execute the industrial production data backup method of the first aspect.
Compared with the prior art, the embodiment of the application has the following advantages:
according to the embodiment of the application, by receiving the plurality of pieces of industrial production data transmitted by the industrial equipment, the server can store the plurality of pieces of industrial production data into the service database and determine the production batch to which each piece of industrial production data belongs according to the data acquisition time of each piece of industrial production data. Then, the server can store a plurality of pieces of industrial production data to the data temporary storage unit for temporary storage according to the production batches. When the server receives the information that the production of the target production batch is finished, the server can extract a plurality of pieces of target industrial production data belonging to the target production batch from the data temporary storage unit and backup and store the plurality of pieces of target industrial production data. According to the embodiment of the application, when the industrial production data is backed up, the data temporary storage unit is used for temporarily storing the data generated in real time in the production process, and after all industrial products of a certain production batch are produced, all the industrial production data of the production batch are extracted from the data temporary storage unit, so that the industrial production data can be backed up according to the production batch, and the data of the corresponding production batch can be quickly found when the backed-up industrial production data is used subsequently.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
FIG. 1 is a schematic diagram of an industrial data backup method provided by an embodiment of the present application;
fig. 2 is a schematic diagram of an implementation manner of S102 in an industrial production data backup method according to an embodiment of the present application;
fig. 3 is a schematic diagram of an implementation manner of S104 in an industrial production data backup method according to an embodiment of the present application;
fig. 4 is a schematic diagram of an implementation manner of S105 in an industrial production data backup method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a data chain for backing up industrial production data according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of an industrial production data backup device according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a server according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
The technical solution of the present application will be described below by way of specific examples.
Referring to fig. 1, a schematic diagram illustrating an industrial production data backup method provided in an embodiment of the present application is shown, which specifically includes the following steps:
s101, receiving a plurality of pieces of industrial production data transmitted by each industrial device, wherein each piece of industrial production data has data acquisition time.
The method can be applied to the technical field of industrial production. For example, in the field of industrial gas production. Industrial gas production enterprises and the like can use the scheme to backup industrial production data acquired in the production process, and the safety of the industrial production data is ensured. The execution main body of the method can be a server, that is, each step described in the embodiment of the present application can be executed by the server, so as to implement backup storage of industrial production data.
In an embodiment of the present application, industrial production data may be generated by an industrial device during a production process and transmitted to a server. For example, each industrial device that produces an industrial product such as an industrial gas can transmit generated industrial production data to a server in real time, and receive and process the data by the server. Generally, in the production of industrial products, the number of industrial devices to be used may include a plurality of industrial devices, each industrial device may generate corresponding industrial production data, and the number of industrial production data transmitted by each industrial device may include a plurality of pieces.
In one possible implementation, each piece of industrial production data may carry a specific data acquisition time, and the data acquisition time may be used to indicate a time when the piece of industrial production data is generated or acquired by the industrial production equipment. In another possible implementation manner, each piece of industrial production data may further carry data transmission time, and the data transmission time may be used for a time when the industrial production device transmits the piece of industrial production data to the server. In one example, the data collection time and the data transmission time of each piece of industrial production data can be the same, which can mean that the industrial equipment transmits the industrial production data to the server in real time as it collects the industrial production data. In another example, the data collection time and the data transmission time of each piece of industrial production data may be different, which may indicate that the industrial equipment does not transmit the industrial production data to the server in real time when collecting the industrial production data.
S102, when the industrial production data are stored in a business database, determining a production batch to which each piece of industrial production data belongs according to the data acquisition time.
When the server receives a plurality of pieces of industrial production data transmitted by each industrial device, on one hand, the server can store the plurality of pieces of industrial production data to the service database, and the service database can be a database for normally storing the industrial production data. On the other hand, the server also needs to perform backup storage on a plurality of pieces of industrial production data.
In the embodiment of the application, in order to facilitate subsequent extraction and use of the backed-up industrial production data, the industrial production data can be backed up according to a specific production batch of industrial products. That is, a plurality of pieces of industrial production data belonging to the same production lot are stored together for different production lots.
In order to achieve the above purpose, when the server performs backup storage on the industrial production data, the server may first determine a production batch to which each piece of industrial production data belongs according to the data acquisition time.
In a possible implementation manner of the embodiment of the present application, as shown in fig. 2, the determining, according to the data acquisition time in S102, the production lot to which each piece of industrial production data belongs may specifically include the following steps S1021 to S1023:
and S1021, aiming at any piece of industrial production data, identifying the industrial equipment for collecting the industrial production data.
In the embodiment of the application, any piece of industrial production data should be acquired by a certain industrial device. When determining the production lot, the industrial device that collected the piece of industrial production data may be first identified, and the production lot to which the industrial production data belongs may be determined by determining the industrial production activities performed by the industrial device in the time period corresponding to the data collection time.
Specifically, for any piece of industrial production data, the equipment identifier in the piece of industrial production data can be extracted; and determining the industrial equipment for acquiring the industrial production data according to the equipment identification. Generally, a plurality of pieces of industrial production data having the same equipment identification are collected by the same industrial equipment.
In one example, the device identification of each industrial device is different, and one industrial device can be uniquely determined by a certain device identification. When industrial production data is collected in the production and operation process of the industrial equipment, the equipment identifier of the equipment can be added into the industrial production data, and then the industrial production data added with the equipment identifier is transmitted to the server. Therefore, after receiving the industrial production data, the server can determine which industrial equipment the data is collected by according to the equipment identification carried in the data.
S1022, acquiring production information of the industrial equipment for acquiring the industrial production data during the data acquisition time.
In an embodiment of the present application, production information for an industrial device can be used to indicate what the particular production activity being performed by the piece of industrial device is at different time periods. For example, what is the industrial product currently being produced, what production process the industrial product is currently in, what is the production lot of the industrial product, and so forth.
Therefore, when the server can determine the production batch to which the industrial production data belongs, the server can acquire the production information of the industrial equipment at the corresponding data acquisition time according to the data acquisition time carried in the data.
And S1023, determining the production batch to which the industrial production data belongs according to the production information.
In one possible implementation manner, the production information may include information of production batches, production processes, and the like of industrial products produced by the industrial equipment in each time period. Therefore, the server can determine the production batch to which each piece of industrial production data belongs according to the production information.
S103, storing the industrial production data to a data temporary storage unit according to the production batch.
In the embodiment of the application, because the amount of data belonging to the same production batch is large, the plurality of pieces of industrial production data received by the server may only include data of a middle stage, so that the server may store the plurality of pieces of currently received industrial production data to the data temporary storage unit according to the production batch before performing backup storage on the industrial production data according to the production batch. The data temporary storage unit can be a unit specially used for temporarily storing industrial production data in the server.
Generally, the plurality of pieces of industrial production data received by the server may include data of a plurality of production lots. For example, for an industrial device a and an industrial device b, if the industrial device a is producing a first batch of industrial products and the industrial device b is producing a second batch of industrial products in the same time period, the industrial production data collected by the industrial device a and the industrial device b at the same time belong to different production batches. The plurality of industrial production data transmitted to the server by the industrial equipment a and the industrial equipment b belong to different production batches.
In view of the foregoing problems, in a possible implementation manner of the embodiment of the present application, the data temporary storage unit in the server may be divided into a plurality of sub-units, and different sub-units may be used to temporarily store industrial production data belonging to different production batches. Therefore, the step of storing the plurality of industrial production data into the data temporary storage unit according to the production lot in S103 may refer to: and storing a plurality of pieces of industrial production data belonging to the same production batch into one or more subunits of the data temporary storage unit.
For example, if the data temporary storage unit is divided into 7 sub-units a-g, the sub-unit a may be used to store industrial production data of a first batch, the sub-units b and c may be used to store industrial production data of a second batch, and the sub-units d, e, f and g may be used to store industrial production data of a third batch.
S104, when the information of the production completion of the target production batch is received, extracting a plurality of pieces of target industrial production data belonging to the target production batch from the data temporary storage unit.
In the embodiment of the present application, the target production lot may be any one of a plurality of production lots. The information that the production of the target production batch is finished can be sent to the server by the production system. For example, when the production system completes production of any batch of industrial products, the production system may send information that production of the batch of industrial products is completed to the server. After receiving the information, the server can process the data temporarily stored in the data temporary storage unit to complete the backup storage of the industrial production data.
In one example, when the server receives the information that the production of the target production batch is completed, the server may extract a plurality of pieces of target industrial production data belonging to the target batch from the data temporary storage unit. For example, if the server determines that the production of the industrial products of the first lot is completed according to the received information, the server may extract the industrial production data belonging to the first lot from the data temporary storage unit.
In a possible implementation manner of the embodiment of the present application, as shown in fig. 3, the step of extracting, in S104, a plurality of pieces of target industrial production data belonging to a target production batch from the data temporary storage unit may specifically include the following substeps S1041-S1042:
s1041, determining a unit serial number of each subunit of the data temporary storage unit, wherein the unit serial number of one or more subunits corresponds to the unique information of the production batch.
As mentioned above, the data temporary storage unit may be divided into a plurality of sub-units, and each sub-unit may be used to store industrial production data of different production batches. Therefore, when the server extracts the target industrial production data from the data temporary storage unit, the unit numbers of the sub-units of the data temporary storage unit can be determined first, and the target sub-unit for storing the industrial production data of the target production batch is determined according to the unit numbers of the sub-units.
S1042, extracting a plurality of pieces of target industrial production data belonging to the target production batch from one or more subunits corresponding to the target production batch.
After determining the sub-units for storing the industrial production data of the target production batch, the server may extract a plurality of pieces of target industrial production data belonging to the target production batch from the sub-units. It should be noted that, since a single sub-unit may not be able to store enough industrial production data, the sub-unit storing the industrial production data of the target production lot may also include a plurality of sub-units.
And S105, backing up and storing the plurality of pieces of target industrial production data.
The server extracts a plurality of pieces of industrial production data from the data temporary storage unit at a certain moment, and the industrial production data belong to the same production batch, for example, the industrial production data extracted by the server all belong to a target production batch. The server can uniformly backup and store a plurality of pieces of industrial production data belonging to the same production batch. In this way, the backup industrial production data can be stored together in production lot units.
In a possible implementation manner of the embodiment of the present application, as shown in fig. 4, the backing up and storing the plurality of pieces of target industrial production data in S105 may specifically include the following steps S1051 to S1052:
s1051, determining the production process of each target industrial production data.
And S1052, backing up and storing the target industrial production data according to the production process.
Generally, the completion of the entire production process of an industrial product requires a plurality of production processes. According to the embodiment of the application, when the industrial production data are backed up and stored according to production batches, the industrial production data belonging to the same batch can be further divided into finer granularity. For example, all the industrial production data of the batch are divided into a plurality of groups according to different production processes, so that a plurality of pieces of industrial production data contained in each group belong to the same production process.
Therefore, in the embodiment of the application, when the server performs backup storage on the industrial production data, the server may first determine the production process to which each piece of industrial production data belongs, and then perform backup storage on a plurality of pieces of industrial production data according to the production processes. For example, if the industrial production data to be stored currently is all industrial production data of the target production batch, that is, the target industrial production data, the server may first determine a production process to which each piece of target industrial production data belongs, and then backup-store a plurality of pieces of target industrial production data according to the production processes.
In a possible implementation manner of the embodiment of the present application, the backup storage of the industrial production data of the same production batch by the server may be implemented by a data chain. Therefore, the server can write a plurality of pieces of target industrial production data belonging to the same production process into the same node of the data chain; and after all the target industrial production data are written into the corresponding nodes, storing the data chain.
As shown in fig. 5, which is an exemplary diagram of a data chain according to an embodiment of the present application, the data chain in fig. 5 includes a data header, a data trailer, and a plurality of data nodes, such as node 1, node 2, node 3, … … node n, and so on, shown in fig. 5. Different data nodes may be used to store data for different production processes. For example, node 1 in fig. 5 may be used to store first production process data, node 2 may be used to store second production process data, node 3 may be used to store third production process data, and so on. The first production process data is all industrial production data collected by the industrial equipment in the first production process, and the second production process data is all industrial production data collected by the industrial equipment in the second production process.
After the industrial production data of each production process is written into each node of the data chain, a specific production batch, such as a target production batch, can be written into the data head of the data chain. In this way, the data chain backup can quickly know which production batch of industrial production data is stored by referring to the data head.
It should be noted that, since the data amount of the industrial production data collected by each industrial device in different production processes may be different, the data amount of the industrial production data stored in different nodes belonging to the same data chain may also be different.
In the embodiment of the application, by receiving the plurality of pieces of industrial production data transmitted by the respective industrial devices, the server can determine the production batch to which each piece of industrial production data belongs according to the data acquisition time of each piece of industrial production data while storing the plurality of pieces of industrial production data in the service database. Then, the server can store the plurality of pieces of industrial production data to the data temporary storage unit for temporary storage according to the production batches. When the server receives the information that the production of the target production batch is finished, the server can extract a plurality of pieces of target industrial production data belonging to the target production batch from the data temporary storage unit and backup and store the plurality of pieces of target industrial production data. According to the embodiment of the application, when the industrial production data is backed up, the data temporary storage unit is used for temporarily storing the data generated in real time in the production process, and after all industrial products of a certain production batch are produced, all the industrial production data of the production batch are extracted from the data temporary storage unit, so that the industrial production data can be backed up according to the production batch, and the data of the corresponding production batch can be quickly found when the backed-up industrial production data is used subsequently.
It should be noted that, the sequence numbers of the steps in the foregoing embodiments do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Referring to fig. 6, a schematic diagram of an industrial production data backup apparatus provided in an embodiment of the present application is shown, and specifically may include a receiving module 601, a determining module 602, a staging module 603, an extracting module 604, and a backup module 605, where:
the receiving module 601 is configured to receive multiple pieces of industrial production data transmitted by each industrial device, where each piece of industrial production data has data acquisition time;
a determining module 602, configured to determine, according to the data acquisition time, a production batch to which each piece of industrial production data belongs when the plurality of pieces of industrial production data are stored in a business database;
a temporary storage module 603, configured to store the plurality of pieces of industrial production data to a data temporary storage unit according to the production batch;
the extracting module 604 is configured to, when receiving information that production of a target production batch is completed, extract a plurality of pieces of target industrial production data belonging to the target production batch from the data temporary storage unit;
the backup module 605 is configured to perform backup storage on the plurality of pieces of target industrial production data.
In a possible implementation manner of the embodiment of the present application, the determining module 602 may be specifically configured to: identifying the industrial equipment for acquiring the industrial production data aiming at any piece of industrial production data; acquiring production information of the industrial equipment for acquiring the industrial production data at the data acquisition time; and determining the production batch to which the industrial production data belongs according to the production information.
In this embodiment of the application, the determining module 602 may further be configured to: extracting equipment identification in the industrial production data aiming at any piece of industrial production data; determining the industrial equipment for acquiring the industrial production data according to the equipment identification; and acquiring a plurality of pieces of industrial production data with the same equipment identification by the same industrial equipment.
In a possible implementation manner of the embodiment of the present application, the temporary storage module 603 may be specifically configured to: and storing a plurality of pieces of industrial production data belonging to the same production batch into one or more subunits of the data temporary storage unit.
In a possible implementation manner of the embodiment of the present application, the extracting module 604 may be specifically configured to: determining the unit serial number of each subunit of the data temporary storage unit, wherein the unit serial number of one or more subunits corresponds to the unique information of the production batch; and extracting a plurality of pieces of target industrial production data belonging to the target production batch from one or more subunits corresponding to the target production batch.
In a possible implementation manner of the embodiment of the present application, the backup module 605 may specifically be configured to: determining the production process to which each piece of target industrial production data belongs; and backing up and storing a plurality of pieces of target industrial production data according to the production process.
In a possible implementation manner of the embodiment of the present application, the backup module 605 may be further configured to: writing a plurality of pieces of target industrial production data belonging to the same production process into the same node of a data chain; and after all the target industrial production data are written into the corresponding nodes, storing the data chain, wherein the data head of the data chain is the target production batch.
The embodiment of the application also provides an industrial production data backup device, and the device can be used for realizing the steps executed by the server in the method embodiments.
For the apparatus embodiment, since it is substantially similar to the method embodiment, it is described relatively simply, and reference may be made to the description of the method embodiment section for relevant points.
Referring to fig. 7, a schematic diagram of a server provided in an embodiment of the present application is shown. As shown in fig. 7, a server 700 in the embodiment of the present application includes: a processor 710, a memory 720, and a computer program 721 stored in said memory 720 and operable on said processor 710. The processor 710, when executing the computer program 721, implements the steps of the above-mentioned industrial production data backup method in various embodiments, such as the steps S101 to S105 shown in fig. 1. Alternatively, the processor 710, when executing the computer program 721, implements the functions of each module/unit in each device embodiment described above, for example, the functions of the modules 601 to 605 shown in fig. 6.
Illustratively, the computer program 721 may be divided into one or more modules/units, which are stored in the memory 720 and executed by the processor 710 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing certain functions, which may be used to describe the execution of the computer program 721 in the server 700. For example, the computer program 721 may be divided into a receiving module, a determining module, a temporary storage module, an extracting module and a backup module, and the specific functions of each module are as follows:
the receiving module is used for receiving a plurality of pieces of industrial production data transmitted by each piece of industrial equipment, and each piece of industrial production data has data acquisition time;
the determining module is used for determining the production batch to which each piece of industrial production data belongs according to the data acquisition time when the plurality of pieces of industrial production data are stored in a business database;
the temporary storage module is used for storing the industrial production data to a data temporary storage unit according to the production batch;
the extraction module is used for extracting a plurality of pieces of target industrial production data belonging to the target production batch from the data temporary storage unit when receiving the information that the production of the products of the target production batch is finished;
and the backup module is used for backing up and storing the target industrial production data.
The server 700 may be a server that implements the steps in the foregoing method embodiments, and the server 700 may be a desktop computer, a cloud server, or other computing devices. The server 700 may include, but is not limited to, a processor 710, a memory 720. Those skilled in the art will appreciate that fig. 7 is merely an example of a server 700 and does not constitute a limitation on server 700 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., server 700 may also include input-output devices, network access devices, buses, etc.
The Processor 710 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 720 may be an internal storage unit of the server 700, such as a hard disk or a memory of the server 700. The memory 720 may also be an external storage device of the server 700, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the server 700. Further, the memory 720 may also include both an internal storage unit of the server 700 and an external storage device. The memory 720 is used for storing the computer program 721 and other programs and data required by the server 700. The memory 720 may also be used to temporarily store data that has been output or is to be output.
The embodiment of the application also discloses a server, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program to realize the industrial production data backup method according to the foregoing embodiments.
The embodiment of the application also discloses a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the industrial production data backup method according to the foregoing embodiments.
The embodiment of the application also discloses a computer program product, and when the computer program product runs on a computer, the computer is enabled to execute the industrial production data backup method of the previous embodiments.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same. Although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. An industrial production data backup method is characterized by comprising the following steps:
receiving a plurality of pieces of industrial production data transmitted by each piece of industrial equipment, wherein each piece of industrial production data has data acquisition time;
when a plurality of pieces of industrial production data are stored in a business database, determining a production batch to which each piece of industrial production data belongs according to the data acquisition time;
storing a plurality of pieces of industrial production data to a data temporary storage unit according to the production batches;
when the information of the production completion of the target production batch is received, extracting a plurality of pieces of target industrial production data belonging to the target production batch from the data temporary storage unit;
and backing up and storing a plurality of pieces of target industrial production data.
2. The method of claim 1, wherein said determining the production lot to which each piece of industrial production data belongs according to the data collection time comprises:
identifying the industrial equipment for acquiring the industrial production data aiming at any piece of industrial production data;
acquiring production information of the industrial equipment for acquiring the industrial production data at the data acquisition time;
and determining the production batch to which the industrial production data belongs according to the production information.
3. The method of claim 2, wherein identifying, for any piece of the industrial production data, an industrial device that collected the industrial production data comprises:
aiming at any piece of industrial production data, extracting an equipment identifier in the industrial production data;
determining the industrial equipment for acquiring the industrial production data according to the equipment identification; and acquiring a plurality of pieces of industrial production data with the same equipment identification by the same industrial equipment.
4. The method according to any one of claims 1 to 3, wherein the storing a plurality of pieces of the industrial production data to a data temporary storage unit according to the production batch comprises:
and storing a plurality of pieces of industrial production data belonging to the same production batch into one or more subunits of the data temporary storage unit.
5. The method as claimed in claim 4, wherein the extracting the plurality of target industrial production data belonging to the target production lot from the data staging unit comprises:
determining the unit serial number of each subunit of the data temporary storage unit, wherein the unit serial number of one or more subunits corresponds to the unique information of the production batch;
and extracting a plurality of pieces of target industrial production data belonging to the target production batch from one or more subunits corresponding to the target production batch.
6. The method of any one of claims 1-3 or 5, wherein the backup storing of the plurality of pieces of target industrial production data comprises:
determining the production process to which each piece of target industrial production data belongs;
and backing up and storing a plurality of pieces of target industrial production data according to the production procedures.
7. The method according to claim 6, wherein the backup storing of the plurality of pieces of target industrial production data according to the production process comprises:
writing a plurality of pieces of target industrial production data belonging to the same production process into the same node of a data chain;
and after all the target industrial production data are written into the corresponding nodes, storing the data chain, wherein the data head of the data chain is the target production batch.
8. An industrial production data backup device, comprising:
the receiving module is used for receiving a plurality of pieces of industrial production data transmitted by each piece of industrial equipment, and each piece of industrial production data has data acquisition time;
the determining module is used for determining the production batch to which each piece of industrial production data belongs according to the data acquisition time when the plurality of pieces of industrial production data are stored in a business database;
the temporary storage module is used for storing the industrial production data to a data temporary storage unit according to the production batch;
the extraction module is used for extracting a plurality of pieces of target industrial production data belonging to the target production batch from the data temporary storage unit when receiving the information that the production of the products of the target production batch is finished;
and the backup module is used for backing up and storing the target industrial production data.
9. A server comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program implements the industrial production data backup method of any one of claims 1-7.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out a method for industrial production data backup according to any one of claims 1 to 7.
CN202211191723.5A 2022-09-28 2022-09-28 Industrial production data backup method and device and server Pending CN115421982A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211191723.5A CN115421982A (en) 2022-09-28 2022-09-28 Industrial production data backup method and device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211191723.5A CN115421982A (en) 2022-09-28 2022-09-28 Industrial production data backup method and device and server

Publications (1)

Publication Number Publication Date
CN115421982A true CN115421982A (en) 2022-12-02

Family

ID=84205564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211191723.5A Pending CN115421982A (en) 2022-09-28 2022-09-28 Industrial production data backup method and device and server

Country Status (1)

Country Link
CN (1) CN115421982A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116611679A (en) * 2023-07-21 2023-08-18 深圳市尚格实业有限公司 Electronic component production data management system and method based on artificial intelligence

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116611679A (en) * 2023-07-21 2023-08-18 深圳市尚格实业有限公司 Electronic component production data management system and method based on artificial intelligence
CN116611679B (en) * 2023-07-21 2024-01-16 深圳市尚格实业有限公司 Electronic component production data management system and method based on artificial intelligence

Similar Documents

Publication Publication Date Title
CN107870845B (en) Management method and system for micro-service architecture application
CN108536752B (en) Data synchronization method, device and equipment
CN110225078B (en) Application service updating method, system and terminal equipment
CN108121774B (en) Data table backup method and terminal equipment
CN115421982A (en) Industrial production data backup method and device and server
CN109408309B (en) Multi-terminal testing method and device
CN105808619A (en) Task redoing method based on influence analysis, influence analysis calculation device and one-key reset device
WO2015183241A1 (en) Distributed compilation of statically typed languages
CN109241042B (en) Data processing method and device and electronic equipment
CN102201922B (en) Data charging method and relevant apparatus
CN109522305B (en) Big data deduplication method and device
US9483485B1 (en) Restore database from backup system where full and incremental backups are performed simultaneously
CN110059077A (en) A kind of verification of data method, apparatus, equipment and storage medium
CN103092955B (en) Checkpointed method, Apparatus and system
US9791509B2 (en) Monitoring microprocessor interface information for a preset service using an address based filter
CN116009889A (en) Deep learning model deployment method and device, electronic equipment and storage medium
CN116467085A (en) Task processing method, system, electronic device and storage medium
CN113992597B (en) Cable monitoring data reporting method, device, equipment and storage medium
CN110851437A (en) Storage method, device and equipment
CN114385188A (en) Code workload statistical method and device and electronic equipment
CN113297149A (en) Method and device for monitoring data processing request
CN114297217A (en) Transaction concurrency control method and device, electronic equipment and readable storage medium
CN109800823B (en) Clustering method and device for POS terminals
CN112463457A (en) Data protection method, device, medium and system for guaranteeing application consistency
CN112905602B (en) Data comparison method, computing device and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination