WO2024032766A1 - 生产数据的存储和读取方法、***及计算机可读介质 - Google Patents

生产数据的存储和读取方法、***及计算机可读介质 Download PDF

Info

Publication number
WO2024032766A1
WO2024032766A1 PCT/CN2023/112542 CN2023112542W WO2024032766A1 WO 2024032766 A1 WO2024032766 A1 WO 2024032766A1 CN 2023112542 W CN2023112542 W CN 2023112542W WO 2024032766 A1 WO2024032766 A1 WO 2024032766A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
production
production data
time
binary file
Prior art date
Application number
PCT/CN2023/112542
Other languages
English (en)
French (fr)
Inventor
李勇
李鸿利
Original Assignee
安徽新永拓新材料有限公司
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 安徽新永拓新材料有限公司 filed Critical 安徽新永拓新材料有限公司
Publication of WO2024032766A1 publication Critical patent/WO2024032766A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • G06F16/183Provision of network file services by network file servers, e.g. by using NFS, CIFS

Definitions

  • the present invention mainly relates to the field of data storage, and in particular, to a method, system and computer-readable medium for storing and reading production data.
  • the technical problem to be solved by the present invention is to provide a method, system and computer-readable medium for storing and reading production data, and to solve the problems of high cost and long reading time of using a database to store massive production data.
  • the present invention provides a method for storing and reading production data, which includes the following steps: during the production process, collecting production data through multiple sensors in one or more processes of producing products; The production data collected by each sensor is stored in a memory data structure according to time series, and the memory data structure is contained in an object; when a data storage signal is detected, the memory data in the object is stored The production data contained in the structure is automatically serialized into a binary file; the binary file is stored in the server; and when the production data needs to be read, the binary file is obtained from the server and the binary file is The file is deserialized into an object, thereby reading the production data in the in-memory data structure contained by the object.
  • the server includes an object storage server or a file storage server.
  • the production data is collected through the sensor at preset time intervals, and the preset time ranges from 50 to 500 ms.
  • the product includes an entire roll of separator
  • the data storage signal includes an automatic roll change signal generated when any entire roll of separator is wound up.
  • the production data includes process data and time data, wherein the process data includes process parameters of the process in which each sensor is located when producing the product; and the time data includes when each sensor collects the product. Collection time of process parameters.
  • the time data includes the collection time and the production completion time
  • the method further includes calculating the production completion time, specifically including adding the collection time of any sensor to the time required for production after any sensor, so that Obtain the production completion time.
  • the production data also includes process parameters corresponding to good products during the product sampling process before producing the product.
  • the present invention provides a production data storage and reading system.
  • the system includes: multiple sensors, arranged in one or more processes of producing products, and the sensors are suitable for collecting production data;
  • a data storage module configured to store the production data collected by each sensor in a memory data structure in a time series, and the memory data structure is included in an object; when a data storage signal is detected, The production data contained in the memory data structure in the object is automatically serialized into a binary file; the binary file is stored in the server; and a data reading module is configured to automatically read the production data when the production data needs to be read.
  • the server obtains the binary file and deserializes the binary file into an object, thereby reading the production data in the memory data structure contained in the object.
  • the present invention provides a production data storage system, including: a memory, used to store instructions that can be executed by a processor; and a processor, used to execute the instructions to implement any of the above. How to store and read production data.
  • the present invention provides a computer-readable medium storing computer program code.
  • the computer program code implements any one of the production data storage and reading methods when executed by a processor.
  • the present invention has the following advantages:
  • the production data storage and reading method of the present invention is aimed at the characteristics that industrial production data cannot be changed after collection. It uses the object storage method to store massive industrial production data, and the storage cost is low; the object storage method stores production data, When production data needs to be read, millions of data associated with a single product can be read at one time, with high reading efficiency.
  • Figure 1 is a flow chart of a method for storing and reading production data according to an embodiment of the present invention
  • FIG. 2 is a production process sequence diagram according to an embodiment of the present invention.
  • Figure 3 is a system block diagram of a production data storage and reading system according to an embodiment of the present invention.
  • Figure 4 is a system block diagram of a production data storage system according to an embodiment of the present invention.
  • spatially relative terms can be used here, such as “on", “on", “on the upper surface of", “above”, etc., to describe what is shown in the figure.
  • the exemplary term “over” may include both orientations “above” and “below.”
  • the device may be otherwise oriented (rotated 90 degrees or at other orientations) and the spatially relative descriptors used herein interpreted accordingly.
  • Figure 1 is a flow chart of a method for storing and reading production data according to an embodiment of the present invention.
  • the production data storage and reading method 100 includes the following steps:
  • Step S110 During the production process, collect data through multiple sensors in one or more processes of producing the product. Production Data;
  • Step S120 Store the production data collected by each sensor in a memory data structure according to time series, and the memory data structure is included in an object;
  • Step S130 When the data storage signal is detected, the production data contained in the memory data structure in the object is automatically serialized into a binary file;
  • Step S140 store the binary file in the server.
  • Step S150 When it is necessary to read production data, obtain the binary file from the server and deserialize the binary file into an object, thereby reading the production data in the memory data structure contained in the object.
  • Steps S110 to S150 will be described in detail below.
  • the production process may be a continuous production process.
  • the production of the product includes multiple processes, and the processes are continuously switched.
  • common separator production includes raw material melting, extrusion process, film stretching process and micropore preparation process. Specifically, the polyolefin resin is first melted, extruded and blown to form a crystalline polymer film, then crystallized heat treatment and annealing operations are performed to obtain a highly oriented film structure, and then stretched at high temperature to test the crystallization The cross-sections are separated to form a porous structure battery separator.
  • Each process will generate a large amount of production data, and multiple sensors can be set up in one or more processes to collect production data.
  • production data is collected through sensors at preset intervals, and the preset time ranges from 50 to 500 ms.
  • the production data of each process is collected through various sensors every 100ms.
  • the value of the preset time can be set as needed within the range.
  • production data includes process data and time data.
  • the process data includes the process parameters of each sensor process when producing products.
  • Process parameters include but are not limited to temperature, pressure, rotation speed, current, etc.
  • Time data includes the acquisition time of each sensor when collecting process parameters.
  • the time data includes acquisition time and production completion time.
  • the collection time refers to the time when each sensor collects process parameters
  • the production completion time is the estimated time for the product whose current sensor collects process parameters to complete all processes.
  • the method of storing and reading production data also includes calculating the production completion time, which specifically includes adding the acquisition time of any sensor to the time required for production after any sensor to obtain the production completion time.
  • T is the production completion time
  • t is the acquisition time
  • ⁇ t is the time required for production after the current sensor.
  • ⁇ t4 is the time required for the production process 24
  • ⁇ t5 is the time required for the production process 25.
  • L 4 is the distance of the production process 24
  • L 5 is the distance of the production process 25
  • V 4 is the running speed of the production process 24.
  • V 5 is the running speed of production process 25.
  • the production data also includes process parameters corresponding to good products in the product sampling process before producing the product.
  • the time series is a set of data point sequences arranged in order of occurrence.
  • the time interval of the time series is the preset time for the sensor to collect production data (for example, 100 ms).
  • the production data collected by each sensor is stored in a memory data structure in time series, and the memory data structure is contained in an object.
  • the object may be a java object or an object generated according to other programming languages.
  • the following examples use Java objects as examples.
  • the product ID is used as the key of the java object
  • the production data collected by the sensor and stored in time series is used as the data of the java object
  • the production data related to the product is stored in the java object.
  • serialization is a process of converting the object's state information into a form that can be stored or transmitted.
  • the object can be Read or deserialize the object's state information from storage to recreate the object.
  • serialization breaks data into a stream of bytes for storage in a file or for transmission over a network.
  • the production data contained in the in-memory data structure in the Java object is automatically serialized into a binary file.
  • automatic serialization of production data contained in memory data structures in Java objects into binary files can be implemented through the serialize interface.
  • the serialize interface is an interface for object serialization.
  • the product includes a full roll of separator
  • the data storage signal includes an automatic roll change signal generated when winding of any full roll of separator is completed. Specifically, when the winding of any full roll of separator is completed, the automatic roll change signal will be triggered.
  • Each full roll of separator has an ID.
  • the automatic roll change signal is received, it means that the ID changes.
  • the java object changes. , the production data contained in the memory data structure of the previous java object needs to be automatically serialized into a binary file.
  • production data contained in an in-memory data structure in a Java object is automatically serialized into a byte array or a JSON string or an XML string.
  • step S140 the binary file is stored in the server.
  • the server can be an object storage server or a file storage server.
  • step S150 deserialization is the process of opening the byte stream and reconstructing the object.
  • you need to read production data obtain the binary file from the server and deserialize the binary file into a Java object.
  • Deserialization of the binary file into a Java object can be implemented through the deserialization interface, thereby reading the memory data structure contained in the Java object. production data in .
  • the production data storage and reading method of the present invention is aimed at the characteristics that industrial production data cannot be changed after collection. It uses the object storage method to store massive industrial production data, and the storage cost is low; the object storage method stores production data, When production data needs to be read, millions of data associated with a single product can be read at one time, with high reading efficiency.
  • An embodiment of the present invention also provides a production data storage and reading system 300 as shown in FIG. 3 .
  • the production data storage and reading system 300 includes: a plurality of sensors 31 , a data storage module 32 and a data reading module 33 .
  • multiple sensors 31 are arranged in one or more processes of producing products, and the multiple sensors 31 are suitable for collecting production data.
  • production data is collected through multiple sensors 31 at preset intervals, and the preset time ranges from 50 to 500 ms. For example, during the production process, each sensor collects data every 100ms. Collect production data for each process. The value of the preset time can be set as needed within the range.
  • production data includes process data and time data.
  • the process data includes the process parameters of each sensor process when producing products.
  • Process parameters include but are not limited to temperature, pressure, rotation speed, current, etc.
  • Time data includes the acquisition time of each sensor when collecting process parameters.
  • the data storage module 32 is configured to store the production data collected by each sensor in a memory data structure in time series, and the memory data structure is contained in a java object.
  • the production data contained in the memory data structure in the Java object is automatically serialized into a binary file and the binary file is stored in the server.
  • Serialization is the breaking down of data into a stream of bytes for storage in a file or transmission over a network.
  • production data contained in an in-memory data structure in a Java object is automatically serialized into a byte array or a JSON string or an XML string.
  • the product includes a full roll of separator
  • the data storage signal includes an automatic roll change signal generated when winding of any full roll of separator is completed. Specifically, when the winding of any full roll of separator is completed, the automatic roll change signal will be triggered.
  • Each full roll of separator has an ID.
  • the automatic roll change signal is received, it means that the ID changes.
  • the java object changes. , the production data contained in the memory data structure of the previous java object needs to be automatically serialized into a binary file.
  • the data reading module 33 is configured to obtain a binary file from the server when it is necessary to read production data and deserialize the binary file into a Java object, thereby reading the production data in the memory data structure contained in the Java object.
  • the production data storage and reading system of the present invention is aimed at the characteristics that industrial production data cannot be changed after collection. It uses the data storage module to store massive industrial production data in an object storage mode, and the storage cost is low.
  • An embodiment of the present invention also provides a production data storage system 400 as shown in FIG. 4 .
  • the production data storage system 400 may include an internal communication bus 41 , a processor (Processor) 42 , a read-only memory (ROM) 43 , a random access memory (RAM) 44 , and a communication port 45 .
  • the production data storage system 400 may also include a hard disk 46 .
  • the internal communication bus 41 can realize data communication between components of the production data storage system 400 .
  • the processor 42 can make judgments and issue prompts.
  • processor 42 may consist of one or more processors.
  • the communication port 45 can realize data communication between the production data storage system 400 and external data.
  • production data storage system 400 may send and receive information and data from the network through communication port 45 .
  • the production data storage system 400 may also include different forms of program storage units and data storage units, such as hard disk 46, read-only memory (ROM) 43 and random access memory (RAM) 44, capable of storing computer processing and/or communication use various data files, and possible program instructions executed by processor 42.
  • the processor executes these instructions to implement the main part of the method.
  • the results processed by the processor are transmitted to the user device through the communication port and displayed on the user interface.
  • another aspect of the present invention also provides a computer-readable medium storing computer program code.
  • the computer program code implements the above-mentioned storage and reading method of production data when executed by a processor.
  • aspects of the application may be executed entirely by hardware, may be entirely executed by software (including firmware, resident software, microcode, etc.), or may be executed by a combination of hardware and software.
  • the above hardware or software may be referred to as “data block”, “module”, “engine”, “unit”, “component” or “system”.
  • the processor may be one or more Application Specific Integrated Circuits (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DAPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), Processor , controller, microcontroller, microprocessor or combination thereof.
  • aspects of the present application may be embodied as a computer product including computer-readable program code located on one or more computer-readable media.
  • computer-readable media may include, but are not limited to, magnetic storage devices (e.g., hard disks, floppy disks, magnetic tapes, etc.), optical disks (e.g., compact disks, CDs, digital versatile disks, DVDs, etc.), smart cards, and flash memory devices (for example, cards, sticks, key drives).
  • magnetic storage devices e.g., hard disks, floppy disks, magnetic tapes, etc.
  • optical disks e.g., compact disks, CDs, digital versatile disks, DVDs, etc.
  • smart cards e.g., cards, sticks, key drives
  • the computer-readable medium may contain a propagated data signal embodying the computer program code, such as on baseband or as part of a carrier wave.
  • the propagation signal may have multiple manifestations, including electromagnetic form, optical form, etc., or a suitable combination.
  • Computer-readable media can be any computer-readable media other than computer-readable storage media that can communicate, propagate, or transport a program for use in connection with an instruction execution system, apparatus, or device.
  • Program code located on a computer-readable medium may be transmitted via any suitable medium, including radio, electrical cable, fiber optic cable, radio frequency signal, or similar medium, or combination of any of the foregoing.
  • numbers are used to describe the quantities of components and properties. It should be understood that such numbers used to describe the embodiments are modified by the modifiers "about”, “approximately” or “substantially” in some examples. Grooming. Unless otherwise stated, “about,” “approximately,” or “substantially” means that the stated number is allowed to vary by ⁇ 20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximations that may vary depending on the desired features of the individual embodiment. In some embodiments, numerical parameters should account for the specified number of significant digits and use general digit preservation methods. Although the numerical fields and parameters used to confirm the breadth of the ranges in some embodiments of the present application are approximations, in specific embodiments, such numerical values are set as accurately as feasible.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Factory Administration (AREA)

Abstract

本发明提供了一种生产数据的存储和读取方法、***及计算机可读介质。方法包括如下的步骤:在生产过程中,通过生产产品的一个或多个工序中的多个传感器采集生产数据;将每个传感器采集的生产数据按照时间序列存储在一个内存数据结构中,且内存数据结构包含在一个对象中;当检测到数据存储信号时,将对象中的内存数据结构中包含的生产数据自动序列化为二进制文件;将二进制文件存储在服务器中;以及在需要读取生产数据时,自服务器获取二进制文件并将二进制文件反序列化为对象,从而读取对象所包含的内存数据结构中的生产数据。本发明通过对象存储的存储方式来存储海量的工业生产数据,占用存储空间小,成本低。

Description

生产数据的存储和读取方法、***及计算机可读介质 技术领域
本发明主要涉及数据存储领域,尤其涉及一种生产数据的存储和读取方法、***及计算机可读介质。
背景技术
在工业生产过程中,一个产品常常需要经过多个生产工艺。例如电池隔膜作为新能源汽车电池的重要组成部分,常见的隔膜生产包括原材料熔融、挤出工艺、薄膜拉伸工艺和微孔制备工艺等工艺。每一个隔膜单元的质量都由一千多个生产工艺参数决定,一卷隔膜的质量由百万个生产工艺参数决定。
针对工业生产数据的存储,现有的方案以结构化存储的方式将采集的生产数据按照时间序列存储到数据库中,这种方式存储生产数据需要占用巨大的存储空间,成本较高,而且读取生产数据的速度很慢。
发明内容
本发明要解决的技术问题是提供一种生产数据的存储和读取方法、***及计算机可读介质,解决用数据库存储海量生产数据成本高和读取时间长的问题。
为解决上述技术问题,本发明提供了一种生产数据的存储和读取方法,包括如下的步骤:在生产过程中,通过生产产品的一个或多个工序中的多个传感器采集生产数据;将每个所述传感器采集的所述生产数据按照时间序列存储在一个内存数据结构中,且所述内存数据结构包含在一个对象中;当检测到数据存储信号时,将所述对象中的内存数据结构中包含的所述生产数据自动序列化为二进制文件;将所述二进制文件存储在服务器中;以及在需要读取所述生产数据时,自所述服务器获取所述二进制文件并将所述二进制文件反序列化为对象,从而读取所述对象所包含的内存数据结构中的所述生产数据。
可选地,所述服务器包括对象存储服务器或文件存储服务器。
可选地,在所述生产过程中,每间隔预设时间通过所述传感器采集所述生产数据,且所述预设时间的范围为50~500ms。
可选地,所述产品包括整卷隔膜,且所述数据存储信号包括当任一整卷隔膜收卷完成后生成的自动换卷信号。
可选地,所述生产数据包括工艺数据和时间数据,其中,所述工艺数据包括每个传感器所在工序在生产所述产品时的工艺参数;以及所述时间数据包括每个传感器在采集所述工艺参数时的采集时间。
可选地,所述时间数据包括所述采集时间和生产完成时间,所述方法还包括计算生产完成时间,具体包括将任一传感器的采集时间加上所述任一传感器之后生产所需时间从而获得所述生产完成时间。
可选地,所述生产数据还包括在生产所述产品之前的产品打样过程中的良品所对应的工艺参数。
为解决上述技术问题,本发明提供了一种生产数据的存储和读取***,***包括:多个传感器,排布在生产产品的一个或多个工序中,所述传感器适于采集生产数据;数据存储模块,配置为将每个所述传感器采集的所述生产数据按照时间序列存储在一个内存数据结构中,且所述内存数据结构包含在一个对象中;当检测到数据存储信号时,将所述对象中的内存数据结构中包含的生产数据自动序列化为二进制文件;将所述二进制文件存储在服务器中;以及数据读取模块,配置为在需要读取所述生产数据时,自所述服务器获取所述二进制文件并将所述二进制文件反序列化为对象,从而读取所述对象所包含的内存数据结构中的所述生产数据。
为解决上述技术问题,本发明提供了一种生产数据的存储***,包括:存储器,用于存储可由处理器执行的指令;以及处理器,用于执行所述指令以实现任一项所述的生产数据的存储和读取方法。
为解决上述技术问题,本发明提供了一种存储有计算机程序代码的计算机可读介质,所述计算机程序代码在由处理器执行时实现任一项所述的生产数据的存储和读取方法。
与现有技术相比,本发明具有以下优点:
本发明的生产数据的存储和读取方法针对工业生产数据采集后不可更改的特点,通过对象存储的存储方式来存储海量的工业生产数据,存储成本低;通过对象存储的存储方式存储生产数据,需要读取生产数据时,一次性可读取单个产品关联的数百万个数据,读取效率高。
附图说明
包括附图是为提供对本申请进一步的理解,它们被收录并构成本申请的一部分,附图示出了本申请的实施例,并与本说明书一起起到解释本发明原理的作用。附图中:
图1是根据本发明一实施例的生产数据的存储和读取方法的流程图;
图2是根据本发明一实施例的生产过程时序图;
图3是根据本发明一实施例的生产数据的存储和读取***的***框图;
图4是根据本发明一实施例的生产数据的存储***的***框图。
具体实施方式
为了更清楚地说明本申请的实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单的介绍。显而易见地,下面描述中的附图仅仅是本申请的一些示例或实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图将本申请应用于其他类似情景。除非从语言环境中显而易见或另做说明,图中相同标号代表相同结构或操作。
如本申请和权利要求书中所示,除非上下文明确提示例外情形,“一”、“一个”、“一种”和/或“该”等词并非特指单数,也可包括复数。一般说来,术语“包括”与“包含”仅提示包括已明确标识的步骤和元素,而这些步骤和元素不构成一个排它性的罗列,方法或者设备也可能包含其他的步骤或元素。
除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表 达式和数值不限制本申请的范围。同时,应当明白,为了便于描述,附图中所示出的各个部分的尺寸并不是按照实际的比例关系绘制的。对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为授权说明书的一部分。在这里示出和讨论的所有示例中,任何具体值应被解释为仅仅是示例性的,而不是作为限制。因此,示例性实施例的其它示例可以具有不同的值。应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。
在本申请的描述中,需要理解的是,方位词如“前、后、上、下、左、右”、“横向、竖向、垂直、水平”和“顶、底”等所指示的方位或位置关系通常是基于附图所示的方位或位置关系,仅是为了便于描述本申请和简化描述,在未作相反说明的情况下,这些方位词并不指示和暗示所指的装置或元件必须具有特定的方位或者以特定的方位构造和操作,因此不能理解为对本申请保护范围的限制;方位词“内、外”是指相对于各部件本身的轮廓的内外。
为了便于描述,在这里可以使用空间相对术语,如“在……之上”、“在……上方”、“在……上表面”、“上面的”等,用来描述如在图中所示的一个器件或特征与其他器件或特征的空间位置关系。应当理解的是,空间相对术语旨在包含除了器件在图中所描述的方位之外的在使用或操作中的不同方位。例如,如果附图中的器件被倒置,则描述为“在其他器件或构造上方”或“在其他器件或构造之上”的器件之后将被定位为“在其他器件或构造下方”或“在其他器件或构造之下”。因而,示例性术语“在……上方”可以包括“在……上方”和“在……下方”两种方位。该器件也可以其他不同方式定位(旋转90度或处于其他方位),并且对这里所使用的空间相对描述作出相应解释。
此外,需要说明的是,使用“第一”、“第二”等词语来限定零部件,仅仅是为了便于对相应零部件进行区别,如没有另行声明,上述词语并没有特殊含义,因此不能理解为对本申请保护范围的限制。此外,尽管本申请中所使用的术语是从公知公用的术语中选择的,但是本申请说明书中所提及的一些术语可能是申请人按他或她的判断来选择的,其详细含义在本文的描述的相关部分中说明。此外,要求不仅仅通过所使用的实际术语,而是还要通过每个术语所蕴含的意义来理解本申请。
应当理解,当一个部件被称为“在另一个部件上”、“连接到另一个部件”、“耦合于另一个部件”或“接触另一个部件”时,它可以直接在该另一个部件之上、连接于或耦合于、或接触该另一个部件,或者可以存在***部件。相比之下,当一个部件被称为“直接在另一个部件上”、“直接连接于”、“直接耦合于”或“直接接触”另一个部件时,不存在***部件。同样的,当第一个部件被称为“电接触”或“电耦合于”第二个部件,在该第一部件和该第二部件之间存在允许电流流动的电路径。该电路径可以包括电容器、耦合的电感器和/或允许电流流动的其它部件,甚至在导电部件之间没有直接接触。
本申请中使用了流程图用来说明根据本申请的实施例的***所执行的操作。应当理解的是,前面或下面操作不一定按照顺序来精确地执行。相反,可以按照倒序或同时处理各种步骤。同时,或将其他操作添加到这些过程中,或从这些过程移除某一步或数步操作。
图1是根据本发明一实施例的生产数据的存储和读取方法的流程图。
如图1所示,生产数据的存储和读取方法100包括如下步骤:
步骤S110:在生产过程中,通过生产产品的一个或多个工序中的多个传感器采集 生产数据;
步骤S120:将每个传感器采集的生产数据按照时间序列存储在一个内存数据结构中,且内存数据结构包含在一个对象中;
步骤S130:当检测到数据存储信号时,将对象中的内存数据结构中包含的生产数据自动序列化为二进制文件;
步骤S140:将二进制文件存储在服务器中;以及
步骤S150:在需要读取生产数据时,自服务器获取二进制文件并将二进制文件反序列化为对象,从而读取对象所包含的内存数据结构中的生产数据。
以下对步骤S110~S150进行详细说明。
在步骤S110中,生产过程可以是连续生产的过程,产品的生产包括多个工序,工序之间连续切换。例如常见的隔膜生产包括原材料熔融、挤出工艺、薄膜拉伸工艺和微孔制备工艺。具体地,先对聚烯烃树脂进行熔融、挤压和吹制操作,形成结晶性高分子薄膜,然后进行结晶化热处理和退火操作,获得高度取向的薄膜结构,然后在高温中拉伸,测试结晶截面分离,形成多孔结构电池隔膜。每个工序会产生大量的生产数据,可以在一个或多个工序中设置多个传感器采集生产数据。
在一些实施例中,在生产过程中,每间隔预设时间通过传感器采集生产数据,且预设时间的范围为50~500ms。例如,在生产过程中,每间隔100ms通过各个传感器采集各个工序的生产数据。预设时间的值可以在范围内按需设置。
在一些实施例中,生产数据包括工艺数据和时间数据。其中,工艺数据包括每个传感器所在工序在生产产品时的工艺参数。工艺参数包括但不限于是温度、压力、转速、电流等。时间数据包括每个传感器在采集工艺参数时的采集时间。
在一些实施例中,时间数据包括采集时间和生产完成时间。其中采集时间是指每个传感器在采集工艺参数时的时间,生产完成时间是当前传感器采集工艺参数的产品完成所有工艺的预计时间。生产数据的存储和读取方法还包括计算生产完成时间,具体包括将任一传感器的采集时间加上任一传感器之后生产所需时间从而获得生产完成时间。图2是根据本发明一实施例的生产过程时序图。如图2所示,生产过程包括生产工序21、生产工序22、生产工序22、生产工序24和生产工序25。在生产工序23上设置传感器231,假设传感器231采集生产工序23上的工艺参数时的时间为t,传感器231之后生产所需时间为Δt,则生产完成时间的计算方式为:
T=t+Δt
其中,T为生产完成时间,t为采集时间,Δt为当前传感器之后生产所需时间。在此实施例中,如图2所示,生产工序23之后还包括生产工序24和生产工序25,则传感器231之后生产所需时间等于生产工序24所需的时间和生产工序25所需的时间,用公式可表示为:
Δt=Δt4+Δt5
其中,Δt4为生产工序24所需的时间,Δt5为生产工序25所需的时间。其中生产工序24所需的时间和生产工序25所需的时间可以通过下列公式计算得到。
Δt4=L4/V4
Δt5=L5/V5
其中,L4为生产工序24的距离,L5为生产工序25的距离,V4为生产工序24的运行速 度,V5为生产工序25的运行速度。
在一些实施例中,生产数据还包括在生产产品之前的产品打样过程中的良品所对应的工艺参数。
在步骤S120中,时间序列(time series)是一组按照时间发生先后顺序进行排列的数据点序列。在本实施例中,时间序列的时间间隔即为传感器的采集生产数据的预设时间(例如100ms)。将每个传感器采集的生产数据按照时间序列存储在一个内存数据结构中,且内存数据结构包含在一个对象中。在一些实施例中,对象可以是java对象或者根据其他编程语言生成的对象。后文举例都以java对象为例进行说明。以产品的ID为java对象的Key,以传感器采集的按照时间序列存储的生产数据作为java对象的Data,将和产品相关的生产数据都存储在java对象中。
在步骤S130中,序列化是将对象的状态信息转换为可以存储或传输的形式的过程,在序列化期间,对象将其当前状态写入到临时存储区或持久性存储区之后,便可以通过从存储区中读取或反序列化对象的状态信息,来重新创建该对象。换而言之,序列化将数据分解成字节流,以便存储在文件中或在网络上传输。当检测到数据存储信号时,将java对象中的内存数据结构中包含的生产数据自动序列化为二进制文件。在一些实施例中,将java对象中的内存数据结构中包含的生产数据自动序列化为二进制文件可以通过serialize接口实现。serialize接口是一个对象序列化的接口。
在一些实施例中,产品包括整卷隔膜,且数据存储信号包括当任一整卷隔膜收卷完成后生成的自动换卷信号。具体地,当任一整卷隔膜收卷完成后会触发自动换卷信号,每个整卷隔膜都有一个ID,当接收到自动换卷信号时表示ID发生变化,进一步地,java对象发生变化,需要将前一个java对象的中的内存数据结构中包含的生产数据自动序列化为二进制文件。
在一些实施例中,将java对象中的内存数据结构中包含的生产数据自动序列化为字节数组或json字符串或xml字符串。
在步骤S140中,将二进制文件存储在服务器中。服务器可以是对象存储服务器或文件存储服务器。
在步骤S150中,反序列化就是打开字节流并重构对象的过程。在需要读取生产数据时,自服务器获取二进制文件并将二进制文件反序列化为java对象,将二进制文件反序列化为java对象可以通过deseriallization接口实现,从而读取java对象所包含的内存数据结构中的生产数据。
本发明的生产数据的存储和读取方法针对工业生产数据采集后不可更改的特点,通过对象存储的存储方式来存储海量的工业生产数据,存储成本低;通过对象存储的存储方式存储生产数据,需要读取生产数据时,一次性可读取单个产品关联的数百万个数据,读取效率高。
本发明的一实施例还提出了一种如图3所示的生产数据的存储和读取***300。如图3所示,生产数据的存储和读取***300包括:多个传感器31、数据存储模块32和数据读取模块33。其中,多个传感器31排布在生产产品的一个或多个工序中,多个传感器31适于采集生产数据。在一些实施例中,在生产过程中,每间隔预设时间通过多个传感器31采集生产数据,且预设时间的范围为50~500ms。例如,在生产过程中,每间隔100ms通过各个传感器采 集各个工序的生产数据。预设时间的值可以在范围内按需设置。在一些实施例中,生产数据包括工艺数据和时间数据。其中,工艺数据包括每个传感器所在工序在生产产品时的工艺参数。工艺参数包括但不限于是温度、压力、转速、电流等。时间数据包括每个传感器在采集工艺参数时的采集时间。
数据存储模块32配置为将每个传感器采集的生产数据按照时间序列存储在一个内存数据结构中,且内存数据结构包含在一个java对象中。当检测到数据存储信号时,将java对象中的内存数据结构中包含的生产数据自动序列化为二进制文件,将二进制文件存储在服务器中。序列化是将数据分解成字节流,以便存储在文件中或在网络上传输。
在一些实施例中,将java对象中的内存数据结构中包含的生产数据自动序列化为字节数组或json字符串或xml字符串。
在一些实施例中,产品包括整卷隔膜,且数据存储信号包括当任一整卷隔膜收卷完成后生成的自动换卷信号。具体地,当任一整卷隔膜收卷完成后会触发自动换卷信号,每个整卷隔膜都有一个ID,当接收到自动换卷信号时表示ID发生变化,进一步地,java对象发生变化,需要将前一个java对象的中的内存数据结构中包含的生产数据自动序列化为二进制文件。
数据读取模块33配置为在需要读取生产数据时,自服务器获取二进制文件并将二进制文件反序列化为java对象,从而读取java对象所包含的内存数据结构中的生产数据。
本发明的生产数据的存储和读取***针对工业生产数据采集后不可更改的特点,通过数据存储模块以对象存储的存储方式来存储海量的工业生产数据,存储成本低。
本发明的一实施例还提出了一种如图4所示的生产数据的存储***400。根据图4,生产数据的存储***400可包括内部通信总线41、处理器(Processor)42、只读存储器(ROM)43、随机存取存储器(RAM)44、以及通信端口45。当应用在个人计算机上时,生产数据的存储***400还可以包括硬盘46。
内部通信总线41可以实现生产数据的存储***400组件间的数据通信。处理器42可以进行判断和发出提示。在一些实施例中,处理器42可以由一个或多个处理器组成。通信端口45可以实现生产数据的存储***400与外部的数据通信。在一些实施例中,生产数据的存储***400可以通过通信端口45从网络发送和接受信息以及数据。
生产数据的存储***400还可以包括不同形式的程序储存单元以及数据储存单元,例如硬盘46,只读存储器(ROM)43和随机存取存储器(RAM)44,能够存储计算机处理和/或通信使用的各种数据文件,以及处理器42所执行的可能的程序指令。处理器执行这些指令以实现方法的主要部分。处理器处理的结果通过通信端口传给用户设备,在用户界面上显示。
除此之外,本发明另一方面还提出了一种存储有计算机程序代码的计算机可读介质,计算机程序代码在由处理器执行时实现上述的生产数据的存储和读取方法。
上文已对基本概念做了描述,显然,对于本领域技术人员来说,上述发明披露仅仅作为示例,而并不构成对本申请的限定。虽然此处并没有明确说明,本领域技术人员可能会对本申请进行各种修改、改进和修正。该类修改、改进和修正在本申请中被建议,所以该类修改、改进、修正仍属于本申请示范实施例的精神和范围。
同时,本申请使用了特定词语来描述本申请的实施例。如“一个实施例”、“一实施 例”、和/或“一些实施例”意指与本申请至少一个实施例相关的某一特征、结构或特点。因此,应强调并注意的是,本说明书中在不同位置两次或多次提及的“一实施例”或“一个实施例”或“一替代性实施例”并不一定是指同一实施例。此外,本申请的一个或多个实施例中的某些特征、结构或特点可以进行适当的组合。
本申请的一些方面可以完全由硬件执行、可以完全由软件(包括固件、常驻软件、微码等)执行、也可以由硬件和软件组合执行。以上硬件或软件均可被称为“数据块”、“模块”、“引擎”、“单元”、“组件”或“***”。处理器可以是一个或多个专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理器件(DAPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器或者其组合。此外,本申请的各方面可能表现为位于一个或多个计算机可读介质中的计算机产品,该产品包括计算机可读程序编码。例如,计算机可读介质可包括,但不限于,磁性存储设备(例如,硬盘、软盘、磁带……)、光盘(例如,压缩盘CD、数字多功能盘DVD……)、智能卡以及闪存设备(例如,卡、棒、键驱动器……)。
计算机可读介质可能包含一个内含有计算机程序编码的传播数据信号,例如在基带上或作为载波的一部分。该传播信号可能有多种表现形式,包括电磁形式、光形式等等、或合适的组合形式。计算机可读介质可以是除计算机可读存储介质之外的任何计算机可读介质,该介质可以通过连接至一个指令执行***、装置或设备以实现通讯、传播或传输供使用的程序。位于计算机可读介质上的程序编码可以通过任何合适的介质进行传播,包括无线电、电缆、光纤电缆、射频信号、或类似介质、或任何上述介质的组合。
同理,应当注意的是,为了简化本申请披露的表述,从而帮助对一个或多个发明实施例的理解,前文对本申请实施例的描述中,有时会将多种特征归并至一个实施例、附图或对其的描述中。但是,这种披露方法并不意味着本申请对象所需要的特征比权利要求中提及的特征多。实际上,实施例的特征要少于上述披露的单个实施例的全部特征。
一些实施例中使用了描述成分、属性数量的数字,应当理解的是,此类用于实施例描述的数字,在一些示例中使用了修饰词“大约”、“近似”或“大体上”来修饰。除非另外说明,“大约”、“近似”或“大体上”表明所述数字允许有±20%的变化。相应地,在一些实施例中,说明书和权利要求中使用的数值参数均为近似值,该近似值根据个别实施例所需特点可以发生改变。在一些实施例中,数值参数应考虑规定的有效数位并采用一般位数保留的方法。尽管本申请一些实施例中用于确认其范围广度的数值域和参数为近似值,在具体实施例中,此类数值的设定在可行范围内尽可能精确。
虽然本申请已参照当前的具体实施例来描述,但是本技术领域中的普通技术人员应当认识到,以上的实施例仅是用来说明本申请,在没有脱离本申请精神的情况下还可作出各种等效的变化或替换,因此,只要在本申请的实质精神范围内对上述实施例的变化、变型都将落在本申请的权利要求书的范围内。

Claims (10)

  1. 一种生产数据的存储和读取方法,其特征在于,包括如下的步骤:
    在生产过程中,通过生产产品的一个或多个工序中的多个传感器采集生产数据;
    将每个所述传感器采集的所述生产数据按照时间序列存储在一个内存数据结构中,且所述内存数据结构包含在一个对象中;
    当检测到数据存储信号时,将所述对象中的内存数据结构中包含的所述生产数据自动序列化为二进制文件;
    将所述二进制文件存储在服务器中;以及
    在需要读取所述生产数据时,自所述服务器获取所述二进制文件并将所述二进制文件反序列化为所述对象,从而读取所述对象所包含的内存数据结构中的所述生产数据。
  2. 如权利要求1所述的方法,其特征在于,所述服务器包括对象存储服务器或文件存储服务器。
  3. 如权利要求1所述的方法,其特征在于,在所述生产过程中,每间隔预设时间通过所述传感器采集所述生产数据,且所述预设时间的范围为50~500ms。
  4. 如权利要求1任一项所述的方法,其特征在于,所述产品包括整卷隔膜,且所述数据存储信号包括当任一整卷隔膜收卷完成后生成的自动换卷信号。
  5. 如权利要求1~4任一项所述的方法,其特征在于,所述生产数据包括工艺数据和时间数据,其中,
    所述工艺数据包括每个传感器所在工序在生产所述产品时的工艺参数;以及
    所述时间数据包括每个传感器在采集所述工艺参数时的采集时间。
  6. 如权利要求5所述的方法,其特征在于,所述时间数据包括所述采集时间和生产完成时间,所述方法还包括计算生产完成时间,具体包括将任一传感器的采集时间加上所述任一传感器之后生产所需时间从而获得所述生产完成时间。
  7. 如权利要求5所述的方法,其特征在于,所述生产数据还包括在生产所述产品之前的产品打样过程中的良品所对应的工艺参数。
  8. 一种生产数据的存储和读取***,其特征在于,包括:
    多个传感器,排布在生产产品的一个或多个工序中,所述传感器适于采集生产数据;
    数据存储模块,配置为将每个所述传感器采集的所述生产数据按照时间序列存储在一个内存数据结构中,且所述内存数据结构包含在一个对象中;当检测到数据存储信号时,将所述对象中的内存数据结构中包含的生产数据自动序列化为二进制文件;将所述二进制文件存储在服务器中;以及
    数据读取模块,配置为在需要读取所述生产数据时,自所述服务器获取所述二进制文件并将所述二进制文件反序列化为对象,从而读取所述对象所包含的内存数据结构中的所述生产数据。
  9. 一种生产数据的存储***,包括:
    存储器,用于存储可由处理器执行的指令;以及处理器,用于执行所述指令以实现如权利要求1-7任一项所述的方法。
  10. 一种存储有计算机程序代码的计算机可读介质,所述计算机程序代码在由处理器执行时实现如权利要求1-7任一项所述的方法。
PCT/CN2023/112542 2022-08-12 2023-08-11 生产数据的存储和读取方法、***及计算机可读介质 WO2024032766A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210969538.8 2022-08-12
CN202210969538.8A CN115221140A (zh) 2022-08-12 2022-08-12 生产数据的存储和读取方法、***及计算机可读介质

Publications (1)

Publication Number Publication Date
WO2024032766A1 true WO2024032766A1 (zh) 2024-02-15

Family

ID=83615650

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/112542 WO2024032766A1 (zh) 2022-08-12 2023-08-11 生产数据的存储和读取方法、***及计算机可读介质

Country Status (2)

Country Link
CN (1) CN115221140A (zh)
WO (1) WO2024032766A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115221140A (zh) * 2022-08-12 2022-10-21 芜湖云一新材料科技有限公司 生产数据的存储和读取方法、***及计算机可读介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190026349A1 (en) * 2017-07-20 2019-01-24 Airmagnet, Inc. Efficient storage and querying of time series metrics
CN109614372A (zh) * 2018-10-26 2019-04-12 阿里巴巴集团控股有限公司 一种对象存储、读取方法、装置、及业务服务器
CN111931200A (zh) * 2020-07-13 2020-11-13 车智互联(北京)科技有限公司 一种数据序列化方法、移动终端和可读存储介质
CN112214516A (zh) * 2020-10-29 2021-01-12 株洲中车时代电气股份有限公司 数据序列化和反序列化的方法及装置
CN115221140A (zh) * 2022-08-12 2022-10-21 芜湖云一新材料科技有限公司 生产数据的存储和读取方法、***及计算机可读介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190026349A1 (en) * 2017-07-20 2019-01-24 Airmagnet, Inc. Efficient storage and querying of time series metrics
CN109614372A (zh) * 2018-10-26 2019-04-12 阿里巴巴集团控股有限公司 一种对象存储、读取方法、装置、及业务服务器
CN111931200A (zh) * 2020-07-13 2020-11-13 车智互联(北京)科技有限公司 一种数据序列化方法、移动终端和可读存储介质
CN112214516A (zh) * 2020-10-29 2021-01-12 株洲中车时代电气股份有限公司 数据序列化和反序列化的方法及装置
CN115221140A (zh) * 2022-08-12 2022-10-21 芜湖云一新材料科技有限公司 生产数据的存储和读取方法、***及计算机可读介质

Also Published As

Publication number Publication date
CN115221140A (zh) 2022-10-21

Similar Documents

Publication Publication Date Title
WO2024032766A1 (zh) 生产数据的存储和读取方法、***及计算机可读介质
WO2022151819A1 (zh) 一种基于聚类分析的电池***在线故障诊断方法和***
CN108108822B (zh) 并行训练的异策略深度强化学习方法
US20150095381A1 (en) Method and apparatus for managing time series database
CN107221326A (zh) 基于人工智能的语音唤醒方法、装置和计算机设备
EP3690663A1 (en) Application cleaning method and apparatus, storage medium and electronic device
US8358842B2 (en) Electronic device with function of separating panels of digital comic strip and method thereof
US20220121641A1 (en) Multi-sensor-based state estimation method and apparatus and terminal device
CN109009084A (zh) 多导联心电信号的qrs波群校验方法、装置及设备、介质
US10432731B2 (en) Electronic device and method of controlling sensors connected through network
US11360148B2 (en) Method for updating capacity of battery, device for updating capacity of battery, electronic device, and storage unit
WO2019120007A1 (zh) 用户性别预测方法、装置及电子设备
CN110321189A (zh) 一种在宿主程序中呈现寄宿程序的方法与设备
CN106663053A (zh) 数据操作方法和电子设备
CN110674080B (zh) 一种基于NiFi的大数据量非结构文件采集方法及***
JP2022013579A (ja) 画像処理方法、装置、電子機器および記憶媒体
CN113033813A (zh) 数据处理方法、装置、计算机设备和存储介质
CN109101595B (zh) 一种信息查询方法、装置、设备及计算机可读存储介质
CN115421046A (zh) 动力电池梯度利用筛选方法、装置、设备及存储介质
CN104796754A (zh) 一种收藏页面的显示方法及装置
CN104652903A (zh) 一种智能车库监控***
CN112603324B (zh) 基于改进损失函数的神经网络的训练方法
CN115620484A (zh) 疲劳驾驶的报警方法、装置、车机***、车辆和介质
CN115291793A (zh) 属性数据的转换方法和装置、存储介质及电子装置
CN113626647A (zh) 一种智慧小区的数据保存方法及***

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23851986

Country of ref document: EP

Kind code of ref document: A1