CN110609815B - Data file storage and sharing method and terminal equipment - Google Patents

Data file storage and sharing method and terminal equipment Download PDF

Info

Publication number
CN110609815B
CN110609815B CN201910695651.XA CN201910695651A CN110609815B CN 110609815 B CN110609815 B CN 110609815B CN 201910695651 A CN201910695651 A CN 201910695651A CN 110609815 B CN110609815 B CN 110609815B
Authority
CN
China
Prior art keywords
data
data file
configuration information
configuration
file
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.)
Expired - Fee Related
Application number
CN201910695651.XA
Other languages
Chinese (zh)
Other versions
CN110609815A (en
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.)
Chengde Iron And Steel Engineering Technology Co ltd
HBIS Co Ltd Chengde Branch
Original Assignee
Chengde Iron And Steel Engineering Technology Co ltd
HBIS Co Ltd Chengde Branch
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 Chengde Iron And Steel Engineering Technology Co ltd, HBIS Co Ltd Chengde Branch filed Critical Chengde Iron And Steel Engineering Technology Co ltd
Priority to CN201910695651.XA priority Critical patent/CN110609815B/en
Publication of CN110609815A publication Critical patent/CN110609815A/en
Application granted granted Critical
Publication of CN110609815B publication Critical patent/CN110609815B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • 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/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention is suitable for the technical field of automatic instrument control, and particularly relates to a data file storage and sharing method and terminal equipment, wherein the data file storage method comprises the following steps: acquiring original data of a data source and configuration information corresponding to the data source; generating a corresponding data file according to the original data of the data source and the corresponding configuration information; the configuration information is located at a preset position in the data file; and storing the data file. The data file storage method can realize data storage, can automatically acquire data according to configuration information after the configuration information is configured once, has a quick acquisition and storage function because a single data file contains both the configuration information and the data information, and is suitable for data acquisition, storage and forwarding and continuous fault data analysis of a small industrial system.

Description

Data file storage and sharing method and terminal equipment
Technical Field
The invention belongs to the technical field of automatic instrument control, and particularly relates to a data file storage and sharing method and terminal equipment.
Background
In the industrial control process, data storage and transmission aiming at continuously changing data such as analog quantity are an extremely important part of industrial process control, and timely and accurate data storage and data transmission are the basis of industrial automation. In the field of industrial automatic process control, high-speed process data acquisition and storage are beneficial to searching key data in an automatic process, so that workers can trace the source of equipment faults according to the reasons, and the optimization of industrial automatic process control is more facilitated.
The existing industrial production line and industrial control system have the problem of inconvenient data acquisition and are difficult to realize cross-platform data sharing.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data file storage method, a data file sharing method, and a terminal device, so as to solve the problem that industrial data is difficult to collect and inconvenient to share when the industrial data is collected and shared in the prior art.
A first aspect of an embodiment of the present invention provides a data file storage method, including:
acquiring original data of a data source and configuration information corresponding to the data source;
generating a corresponding data file according to the original data of the data source and the corresponding configuration information; the configuration information is located at a preset position in the data file;
and storing the data file.
Optionally, the generating a corresponding data file according to the original data of the data source and the corresponding configuration information includes:
sequencing original data of the data source according to a preset sequence, and generating a corresponding data set;
sequencing the configuration information corresponding to the data source according to a preset sequence, and generating a corresponding basic configuration parameter body;
merging the data set and the basic configuration parameter body to generate a corresponding data file; the data file comprises a configuration starting mark and a configuration ending mark, and the configuration information is positioned between the configuration starting mark and the configuration ending mark in the data file;
correspondingly, the configuration information is located at a preset position in the data file, and includes:
the configuration basic parameter body is located at a preset position in the data file.
Optionally, the data file storage method further includes:
and forwarding the data file to a local area network.
A second aspect of an embodiment of the present invention provides a data file sharing method, including:
sending a data request and receiving a data file corresponding to the data request; the data file is generated by the data file storage method in the data file storage method according to the first aspect of the embodiment;
extracting original data and configuration information in the data file;
and matching the original data with the configuration information according to a preset sequence to obtain corresponding data information.
Optionally, the extracting the original data and the configuration information in the data file includes:
extracting data of a preset position in the data file, and taking the data of the preset position in the data file as the configuration information;
and taking the data except the preset position in the data file as the original data.
Optionally, the extracting data at a preset position in the data file, and using the data at the preset position in the data file as the configuration information includes:
identifying a configuration starting mark and a configuration ending mark in the data file;
and taking the data between the configuration starting mark and the configuration ending mark in the data file as the configuration information.
A third aspect of an embodiment of the present invention provides a data file storage apparatus, including:
the information acquisition module is used for acquiring original data of a data source and configuration information corresponding to the data source;
the data generating module is used for generating a corresponding data file according to the original data of the data source and the corresponding configuration information; the configuration information is located at a preset position in the data file;
and the data storage module is used for storing the data file.
A fourth aspect of the present invention provides a data file sharing apparatus, including:
the data acquisition module is used for sending a data request and receiving a data file corresponding to the data request; the data file is generated in the data file storage method according to the first aspect of the embodiment;
the data reversing module is used for extracting original data and configuration information in the data file;
and the data matching module is used for matching the original data with the configuration information according to a preset sequence to obtain corresponding data information.
A fifth aspect of an embodiment of the present invention provides a terminal device, including: memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the data file storage method according to the first aspect when executing the computer program or implements the steps of the data file sharing method according to the second aspect when executing the computer program.
A sixth aspect of an embodiment of the present invention provides a computer-readable storage medium, including: the computer readable storage medium stores a computer program which, when executed by a processor, implements the steps of the data file storage method according to the first aspect, or which, when executed by a processor, implements the steps of the data file sharing method according to the second aspect.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: the method and the device acquire the original data of the data source and the configuration information corresponding to the data source, generate the corresponding data file by placing the configuration information at the preset position in the data file, and realize the automatic acquisition of the data according to the configuration information at short acquisition intervals after configuring the configuration information for one time; the data file generated by the method is stored quickly. In the prior art, different formats are often set when different industrial control software is used for collecting different operation data on a production line, so that the data collected by each industrial control software respectively have different fixed formats, difficulties are caused to data exchange, query and data processing of different industrial platforms, and data extraction and cross-platform data sharing are not easy to perform. According to the data file storage method provided by the embodiment of the application, data acquired by different industrial control software and corresponding configuration information are integrated, and original data and the configuration information are respectively stored in the data files according to the preset positions, so that the data files generated by the data file storage method provided by the embodiment of the application are easy to perform later-stage data extraction, the requirement of cross-platform data sharing can be met, and the problems that industrial data acquisition and sharing are difficult and inconvenient in the prior art are solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic diagram of an application scenario provided by an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a data file storage method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of generating a data file according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a format of a data file formed by a data source according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a data file sharing method according to an embodiment of the present invention;
FIG. 6 is a schematic flow chart of extracting raw data and configuration information according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating data sharing among a plurality of data files according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a data file storage device provided by an embodiment of the present invention;
FIG. 9 is a diagram of a data file sharing apparatus according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a terminal device according to an embodiment of the present invention.
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 invention. It will be apparent, however, to one skilled in the art that the present invention 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 invention with unnecessary detail.
The terms "comprises" and "comprising," as well as any other variations, in the description and claims of this invention and the drawings described above, are intended to mean "including but not limited to," and are intended to cover non-exclusive inclusions. For example, a process, method, or system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. Furthermore, the terms "first," "second," and "third," etc. are used to distinguish between different objects and are not used to describe a particular order.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present invention, where the data file storage method is applied to a server 10, and the data file sharing method is applied to a terminal 20.
Fig. 2 is a schematic flowchart of a data file storage method according to an embodiment of the present invention, and referring to fig. 2, the data file storage method may include:
step S201, acquiring original data of a data source and configuration information corresponding to the data source.
Optionally, the data source may be one or more data sources, each corresponding to respective configuration information. The original data of one data source may be one data or a plurality of data.
Specifically, in this embodiment, the configuration information corresponding to one data source may be: one or more of serial number, name, range, type, and address. Wherein, the sequence number is the position number of the data in the whole collected data set; "name" is the collection Point unique name; the 'range' is the upper and lower limits of the range of the collected data and can be marked as '0-10'; the type is the data type of the collected data, such as pool, word, real, etc.; the 'address' is a real physical address of acquired data accessed to the data acquisition equipment from a data source, wherein the data source can be specific equipment or a primary element, and the data acquisition equipment can be a porphyry industrial personal computer. For example, in the present embodiment, 8 data are collected, and the data content includes main hook speed (0-12), main hook current (0-50), main hook load (0-5000), main hook height (0-14), auxiliary hook speed (0-12), auxiliary hook current (0-50), auxiliary hook load (0-5000), and auxiliary hook height (0-14), and the data types are all REAL types. Other auxiliary setting information such as alarm limit, whether the graph is drawn and the like can be added according to specific actual requirements. The configuration process need only be performed once. The configuration information can be set through a database function or other file modes such as EXCEL and TXT and stored in the data acquisition equipment.
Step S202, generating a corresponding data file according to the original data of the data source and the corresponding configuration information; the configuration information is located at a preset position in the data file.
Optionally, fig. 3 is a schematic flow diagram of generating a data file according to an embodiment of the present invention, and referring to fig. 3, the generating a corresponding data file according to the original data of the data source and the corresponding configuration information may include:
step S2021, sorting the original data of the data source according to a preset order, and generating a corresponding data set.
Specifically, fig. 4 is a schematic format diagram of a data file formed by one data source according to an embodiment of the present invention, where, referring to fig. 4, a data set 401 may include: a data start flag 4011, a data volume 4012, and a data end flag 4013; the format of the data volume 4012 may be: [ time stamp ] + [ data content 1] + [ data isolation stamp ] + [ data content 2] + [ data isolation stamp ]. The resulting data set is as follows:
*20181230093700000|4.24|20|2540|12|0|5|89|10*20181230093700030|4.24|20|2540|12|0|5|89|10......
the time flag is ", the time stamp is" 20181230093700 "", the data 1 is "4.24", the data 2 is "20". the isolation flag between the data is "|", and the data end flag is "[ ed/]". The data represents data collected and stored every 30ms as seen by the time stamp interval. The data sets are stored by forming binary files.
Step S2022, sorting the configuration information corresponding to the data sources according to a preset order, and generating a corresponding basic configuration parameter.
Specifically, the configuration basic parameter may be in the form of:
[ parameter class ] + [ reference 1] + [ value separation flag ] + [ configuration information parameter 1] + [ column flag ]
+ [ label 2] + [ value separation flag ] + [ configuration information parameter 2] + [ column flag ]
+......
+ [ n ] + [ value separation flag ] + [ configuration information parameter value n ] + [ column flag ]
The configuration information parameter is information of each parameter in the configuration information, and may include: the name is a unique name of the acquisition point, namely the name of the data to be acquired; the type is the data type of the data required to be acquired, and can be real type or other data types; the range is the upper and lower limits of the range of the data required to be acquired; the address is a real physical address of the acquired data accessed to the data acquisition equipment at the data source. The names, types and ranges contained in the parameters of the configuration information are only illustrative, and may be any other parameter information that needs to be acquired. The basic configuration parameter bodies formed in the embodiment are as follows:
[ Name ] Name 0% main hook speed; name 1% main hook current; .. [ Type ] Type0: REAL; type1: REAL; ... [ Range ] Range0: 0-12; range1: 0-50; .., [ Block ] Block0: 100; block1: 100; .., [ Address ] Address0: 2; address1: 6; ...
Step S2023, merging the data set and the basic configuration parameter body to generate a corresponding data file; the data file comprises a configuration starting mark and a configuration ending mark, and the configuration basic parameter body is positioned between the configuration starting mark and the configuration ending mark in the data file.
Correspondingly, the configuration information is located at a preset position in the data file, and includes:
the configuration basic parameter body is located at a preset position in the data file.
Specifically, referring to fig. 4, the data file 400 may include: a configuration start flag 402, a configuration basic parameter body 403, a configuration end flag 404, and a data set 401. The configuration information corresponding to one data set is written in the front part of the data file. Wherein, the configuration start flag 402 is represented as "[ bs/] in the binary data file, and the configuration end flag 403 is represented as" [ es/] ", and the data file is formed as follows:
[ bs/] [ Name ] Name 0:% main hook speed; name 1% main hook current; .. [ Type ] Type0: REAL; type1: REAL; ... [ Range ] Range0: 0-12; range1: 0-50; .., [ Block ] Block0: 100; block1: 100; .., [ Address ] Address0: 2; address1: 6; ... [ es/] [ bd/]. 20181230093700000|4.24|20|2540|12|0|5|89 |10. 20181230093700030|4.24|20|2540|12|0|5|89|10. [ ed/]
Optionally, the data file storage method may further include:
and forwarding the data file to a local area network.
Specifically, the formed data file is forwarded to the local area network, so that sharing of the global area network is facilitated, and the data file can be acquired by each platform client connected to the local area network later.
Fig. 5 is a schematic flowchart of a data file sharing method according to an embodiment of the present invention, and referring to fig. 5, the data file sharing method may include:
step S501, sending a data request, and receiving a data file corresponding to the data request; the data file is generated by the data file storage method according to any embodiment of the first aspect of the embodiment of the present invention.
Step S502, extracting the original data and the configuration information in the data file.
Optionally, fig. 6 is a schematic flow diagram of extracting original data and configuration information according to an embodiment of the present invention, and referring to fig. 6, the extracting of the original data and the configuration information in the data file may include:
step S5021, extracting data of a preset position in the data file, and using the data of the preset position in the data file as the configuration information.
Specifically, the extracting data at a preset position in the data file, and using the data at the preset position in the data file as the configuration information may include: identifying a configuration starting mark and a configuration ending mark in the data file; and taking the data between the configuration starting mark and the configuration ending mark in the data file as the configuration information.
Step S5022, using data in the data file except for the preset position as the original data.
Alternatively, the data volume of the middle portion may also be obtained by identifying the data start flag and the data end flag in the data set.
Step S503, matching the original data with the configuration information according to a preset sequence to obtain corresponding data information.
Optionally, matching is performed according to the data content of the data volume and the configuration basic parameter volume, so as to obtain complete corresponding data information, and complete a data inversion process. The corresponding data information obtained in this embodiment is as follows:
Figure GDA0002233386700000091
optionally, in some embodiments, fig. 7 is a schematic diagram of data sharing performed on multiple data files, referring to fig. 7, multiple data sources are read at one time to obtain n data files 701, and the data files are inverted into a configuration basic parameter body 702, a data group order 703, a time identifier 704, and a data set 705 according to a data sharing method process of a single data file. The configuration sequence 706 and the time series data sequence 707 obtained by arranging the time identifiers in sequence are kept in one-to-one correspondence, and a complete corresponding data information 708 is obtained by using the data sharing method corresponding to one data file in the second aspect of the embodiment.
Optionally, the data file sharing method may further include:
step S504, the data information obtained in step S503 is displayed; storing and saving key data information in the data information; and converting the data information into graphs for later data analysis.
Optionally, the data source related in the embodiment of the present invention may be each data of the bridge crane; the equipment for realizing the data file storage and sharing method can be a porphyry industrial personal computer; the industrial control platform for realizing the data file storage and sharing method can be a Siemens PLC 300; forwarding the data file may be via a network device, specifically CISCO SF 90D-08.
Therefore, the embodiment of the invention is different from other ways of storing the data file, the data file stored in other ways does not contain configuration information, and the data collection is data provided by different collected device data sources, so that the data file is meaningless without a data environment. The invention optimizes and improves the universality of the stored data file by forming the data file simultaneously containing the original data and the configuration information and storing and forwarding the data file. The client side obtains the data file converted by the method, correspondingly extracts the original data and the configuration information in the data file, and matches the original data with the configuration information to obtain the corresponding data information, so that the data file can be opened under the condition of no data environment, the corresponding data information can be obtained, the reverse reading process of the data file under the condition of no data environment support is realized, and the cross-platform data sharing is realized. In addition, the data storage method only needs to configure the configuration information once, and then can automatically acquire, store, forward and share the data according to the configuration information, the data storage method is flexible in setting, can realize high-speed data acquisition and storage, and can realize forwarding and sharing of data files of less than 50ms, thereby being convenient for realizing real-time data analysis of continuously-changed analog quantity, and being suitable for data acquisition, storage, forwarding and continuous fault data analysis of a small-sized industrial system.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 8 is a schematic diagram of a data file storage apparatus according to an embodiment of the present invention, and referring to fig. 8, the data file storage apparatus 80 may include:
an information obtaining module 81, configured to obtain original data of a data source and configuration information corresponding to the data source;
a data generating module 82, configured to generate a corresponding data file according to the original data of the data source and the corresponding configuration information; the configuration information is located at a preset position in the data file;
and the data storage module 83 is used for storing the data file.
Optionally, the data file storage device may further include: and the data forwarding module is used for forwarding the data file to the local area network.
Fig. 9 is a schematic diagram of a data file sharing apparatus according to an embodiment of the present invention, and referring to fig. 8, the data file sharing apparatus 90 may include:
a data obtaining module 91, configured to send a data request and receive a data file corresponding to the data request; the data file is generated in the data file storage method according to the first aspect of the embodiment;
a data reversing module 92, configured to extract original data and configuration information in the data file;
and the data matching module 93 is configured to match the original data with the configuration information according to a preset sequence to obtain corresponding data information.
Optionally, the data file sharing apparatus may further include: the data processing module is used for displaying the data information obtained in the data matching module; storing and saving key data information in the data information; and converting the data information into graphs for later data analysis.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function allocation may be performed by different functional units and modules according to requirements, that is, the internal structure of the data file storage device or the data file sharing device is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 10 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 10, in the present embodiment, the terminal device 100 includes: a processor 101, a memory 102 and a computer program 103 stored in said memory 102 and executable on said processor 101. The processor 101, when executing the computer program 103, implements the steps in the embodiments as described in the first aspect or the second aspect of the embodiments, such as the steps S201 to S202 shown in fig. 2 or the steps S501 to S503 shown in fig. 5. Alternatively, the processor 101, when executing the computer program 103, implements the functions of the modules/units in the above-described data file storage device or data file sharing device embodiments, such as the functions of the modules 81 to 83 shown in fig. 8 or the modules 91 to 93 shown in fig. 9.
Illustratively, the computer program 103 may be partitioned into one or more modules/units that are stored in the memory 102 and executed by the processor 101 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 103 in the terminal device 100.
The terminal device can be a mobile phone, a tablet computer and other computing devices. The terminal device may include, but is not limited to, a processor 101, a memory 102. Those skilled in the art will appreciate that fig. 10 is merely an example of the terminal device 100, and does not constitute a limitation of the terminal device 100, and may include more or less components than those shown, or combine some of the components, or different components, for example, the terminal device 100 may further include an input-output device, a network access device, a bus, etc.
The Processor 101 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, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 102 may be an internal storage unit of the terminal device 100, such as a hard disk or a memory of the terminal device 100. The memory 102 may also be an external storage device of the terminal device 100, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 100. Further, the memory 102 may also include both an internal storage unit and an external storage device of the terminal device 100. The memory 102 is used for storing the computer program 103 and other programs and data required by the terminal device 100. The memory 102 may also be used to temporarily store data that has been output or is to be output.
Embodiments of the present invention further provide a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps in the embodiments according to the first aspect or the second aspect of the embodiments, for example, steps S201 to S202 shown in fig. 2 or steps S501 to S503 shown in fig. 5.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed data file store-and-forward and sharing method and terminal device may be implemented in other ways. For example, the data file storage device and data file sharing device embodiments described above are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
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 (9)

1. A method for storing a data file, comprising:
acquiring original data of a data source and configuration information corresponding to the data source;
generating a corresponding data file according to the original data of the data source and the corresponding configuration information; the configuration information is located at a preset position in the data file;
storing the data file;
generating a corresponding data file according to the original data of the data source and the corresponding configuration information, wherein the generating of the corresponding data file comprises the following steps:
sequencing original data of the data source according to a preset sequence, and generating a corresponding data set;
sequencing the configuration information corresponding to the data source according to a preset sequence, and generating a corresponding basic configuration parameter body;
merging the data set and the basic configuration parameter body to generate a corresponding data file; the data file comprises a configuration starting mark and a configuration ending mark, and the configuration basic parameter body is positioned between the configuration starting mark and the configuration ending mark in the data file;
correspondingly, the configuration information is located at a preset position in the data file, and includes:
the configuration basic parameter body is located at a preset position in the data file.
2. The data file storage method of claim 1, wherein the data file storage method further comprises:
and forwarding the data file to a local area network.
3. A method for sharing a data file, comprising:
sending a data request and receiving a data file corresponding to the data request; the data file is generated according to the data file storage method of any one of claims 1 to 2;
extracting original data and configuration information in the data file;
and matching the original data with the configuration information according to a preset sequence to obtain corresponding data information.
4. The data file sharing method of claim 3, wherein the extracting the original data and the configuration information in the data file comprises:
extracting data of a preset position in the data file, and taking the data of the preset position in the data file as the configuration information;
and taking the data except the preset position in the data file as the original data.
5. The method for sharing data files according to claim 4, wherein the extracting data at a preset position in the data file and using the data at the preset position in the data file as the configuration information comprises:
identifying a configuration starting mark and a configuration ending mark in the data file;
and taking the data between the configuration starting mark and the configuration ending mark in the data file as the configuration information.
6. A data file storage device, comprising:
the information acquisition module is used for acquiring original data of a data source and configuration information corresponding to the data source;
the data generating module is used for generating a corresponding data file according to the original data of the data source and the corresponding configuration information; the configuration information is located at a preset position in the data file;
the data storage module is used for storing the data file;
generating a corresponding data file according to the original data of the data source and the corresponding configuration information, wherein the generating of the corresponding data file comprises the following steps:
sequencing original data of the data source according to a preset sequence, and generating a corresponding data set;
sequencing the configuration information corresponding to the data source according to a preset sequence, and generating a corresponding basic configuration parameter body;
merging the data set and the configuration basic parameter body to generate a corresponding data file; the data file comprises a configuration starting mark and a configuration ending mark, and the configuration basic parameter body is positioned between the configuration starting mark and the configuration ending mark in the data file;
correspondingly, the configuration information is located at a preset position in the data file, and includes:
the configuration basic parameter body is located at a preset position in the data file.
7. A data file sharing apparatus, comprising:
the data acquisition module is used for sending a data request and receiving a data file corresponding to the data request; the data file is generated according to the data file storage method of any one of claims 1 to 2;
the data reversing module is used for extracting original data and configuration information in the data file;
and the data matching module is used for matching the original data with the configuration information according to a preset sequence to obtain corresponding data information.
8. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the data file storage method according to any one of claims 1 to 2 when executing the computer program or implements the steps of the data file sharing method according to any one of claims 3 to 5 when executing the computer program.
9. A computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the data-file storing method according to any one of claims 1 to 2, or which computer program, when being executed by a processor, carries out the steps of the data-file sharing method according to any one of claims 3 to 5.
CN201910695651.XA 2019-07-30 2019-07-30 Data file storage and sharing method and terminal equipment Expired - Fee Related CN110609815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910695651.XA CN110609815B (en) 2019-07-30 2019-07-30 Data file storage and sharing method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910695651.XA CN110609815B (en) 2019-07-30 2019-07-30 Data file storage and sharing method and terminal equipment

Publications (2)

Publication Number Publication Date
CN110609815A CN110609815A (en) 2019-12-24
CN110609815B true CN110609815B (en) 2022-05-24

Family

ID=68890309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910695651.XA Expired - Fee Related CN110609815B (en) 2019-07-30 2019-07-30 Data file storage and sharing method and terminal equipment

Country Status (1)

Country Link
CN (1) CN110609815B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111177836B (en) * 2019-12-30 2023-10-03 上海利策科技股份有限公司 Ocean engineering design data acquisition method, system, medium and equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216839A (en) * 2008-01-17 2008-07-09 中兴通讯股份有限公司 Network data centralization method and apparatus
CN102736601A (en) * 2012-06-21 2012-10-17 北京沃华创新科技有限公司 Device data collecting device and method, device data processing device and method as well as device state management system
CN103092980A (en) * 2013-01-31 2013-05-08 中国科学院自动化研究所 Method and system of data automatic conversion and storage
CN105824741A (en) * 2015-01-06 2016-08-03 上海宝信软件股份有限公司 IT system operation data acquisition method and system capable of being flexibly extended
CN106570111A (en) * 2016-11-01 2017-04-19 浙江宇视科技有限公司 Data storage method and storage server
CN108509397A (en) * 2018-03-21 2018-09-07 清华大学 Storage, analytic method and the system of hierarchical structure data based on identifier technology
CN108520073A (en) * 2018-04-13 2018-09-11 深圳壹账通智能科技有限公司 Air control data integration method, device, equipment and computer readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7676288B2 (en) * 2006-06-23 2010-03-09 Invensys Systems, Inc. Presenting continuous timestamped time-series data values for observed supervisory control and manufacturing/production parameters
CN102890675B (en) * 2011-07-18 2015-05-13 阿里巴巴集团控股有限公司 Method and device for storing and finding data
CN103218300B (en) * 2012-01-18 2016-01-27 群联电子股份有限公司 Data processing method, Memory Controller and memorizer memory devices
CN104503715A (en) * 2014-12-26 2015-04-08 北京首钢自动化信息技术有限公司 Dynamic warranty book management system of iron and steel industry
CN109213829A (en) * 2017-06-30 2019-01-15 北京国双科技有限公司 Data query method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216839A (en) * 2008-01-17 2008-07-09 中兴通讯股份有限公司 Network data centralization method and apparatus
CN102736601A (en) * 2012-06-21 2012-10-17 北京沃华创新科技有限公司 Device data collecting device and method, device data processing device and method as well as device state management system
CN103092980A (en) * 2013-01-31 2013-05-08 中国科学院自动化研究所 Method and system of data automatic conversion and storage
CN105824741A (en) * 2015-01-06 2016-08-03 上海宝信软件股份有限公司 IT system operation data acquisition method and system capable of being flexibly extended
CN106570111A (en) * 2016-11-01 2017-04-19 浙江宇视科技有限公司 Data storage method and storage server
CN108509397A (en) * 2018-03-21 2018-09-07 清华大学 Storage, analytic method and the system of hierarchical structure data based on identifier technology
CN108520073A (en) * 2018-04-13 2018-09-11 深圳壹账通智能科技有限公司 Air control data integration method, device, equipment and computer readable storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Scalable and distributed methods for entity matching, consolidation and disambiguation over linked data corpora;Aidan Hogan et al.;《Journal of Web Semantics》;20111118;第10卷;76-110 *
Vega-Lite: A Grammar of Interactive Graphics;Arvind Satyanarayan et al.;《IEEE TRANSACTIONS ON VISUALIZATION AND COMPUTER GRAPHICS》;20160810;第23卷(第1期);341-350 *
大数据***和分析技术综述;程学旗 等;《软件学报》;20140915;第25卷(第9期);1889-1908 *
面向智能电网应用的电力大数据关键技术;彭小圣 等;《中国电机工程学报》;20150121;第35卷(第3期);503-511 *

Also Published As

Publication number Publication date
CN110609815A (en) 2019-12-24

Similar Documents

Publication Publication Date Title
CN110335367B (en) Equipment inspection method, equipment inspection device and terminal equipment
CN107977346B (en) PDF document editing method and terminal equipment
CN107657051B (en) Picture label generation method, terminal device and storage medium
CN111582815A (en) Engineering management method and device for nuclear power station, terminal equipment and storage medium
CN111209931A (en) Data processing method, platform, terminal device and storage medium
CN111367870A (en) Method, device and system for sharing picture book
CN110598993B (en) Data processing method and device
CN107741972A (en) A kind of searching method of picture, terminal device and storage medium
CN110609815B (en) Data file storage and sharing method and terminal equipment
CN112632213A (en) Address information standardization method and device, electronic equipment and storage medium
CN111881243A (en) Taxi track hotspot area analysis method and system
CN110909110B (en) Address standardization method and device, storage medium and processor
CN114201346A (en) HIL (hardware-in-the-loop) testing method and device of CAN (controller area network) communication interface and electronic equipment
CN110278565B (en) Base station design method and device
CN114022970B (en) Intelligent electric box inspection system and method
CN112487771B (en) Report generation method, report generation device and terminal
CN114461418A (en) Inter-process communication method and device and electronic equipment
CN102422285B (en) Data combination system and data combination method
CN111399908B (en) Modbus protocol equipment data acquisition method, system, terminal and medium
CN114547011A (en) Data extraction method and device, electronic equipment and storage medium
CN104462189B (en) Distributed system data management based on planar bar code technology and operation method
CN109918353B (en) Method for automatically processing information and terminal equipment
CN113590581A (en) Data transmission method, device, equipment and storage medium
CN107967300B (en) Method, device and equipment for retrieving organization name and storage medium
CN104657352A (en) Pixel coloring method in transformer station remote browsing

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220524