CN112765173A - Data storage method, system and loading method suitable for upper computer - Google Patents
Data storage method, system and loading method suitable for upper computer Download PDFInfo
- Publication number
- CN112765173A CN112765173A CN202110076892.3A CN202110076892A CN112765173A CN 112765173 A CN112765173 A CN 112765173A CN 202110076892 A CN202110076892 A CN 202110076892A CN 112765173 A CN112765173 A CN 112765173A
- Authority
- CN
- China
- Prior art keywords
- data
- upper computer
- conversion
- storage
- original
- 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
Links
- 238000013500 data storage Methods 0.000 title claims abstract description 43
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000011068 loading method Methods 0.000 title claims abstract description 19
- 238000006243 chemical reaction Methods 0.000 claims abstract description 52
- 230000006870 function Effects 0.000 description 16
- 238000010586 diagram Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000011946 reduction process Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000011426 transformation method Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/258—Data format conversion from or to a database
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/28—Databases characterised by their database models, e.g. relational or object models
- G06F16/284—Relational databases
- G06F16/285—Clustering or classification
Abstract
The invention discloses a data storage method, a data storage system and a data loading method suitable for an upper computer, wherein the method comprises the following steps: acquiring original data generated by an upper computer, and classifying the original data according to data types; performing data conversion on the classified original data to obtain converted data; and combining the converted data, and storing the combined data structure. The invention aims to provide a data storage method, a data storage system and a data loading method suitable for an upper computer, which are used for accelerating the data storage and loading speed of the upper computer and structurally storing data so that the data reading of the upper computer is more flexible.
Description
Technical Field
The invention relates to the technical field of computer data storage, in particular to a data storage method, a data storage system and a data loading method suitable for an upper computer.
Background
The upper computer is a computer capable of directly sending out control commands, generally a PC/host computer/master computer/upper computer, and displays various signal changes (hydraulic pressure, water level, temperature, etc.) on a screen.
When the upper computer is used, a user can set a series of parameters in upper computer software according to actual use requirements, data generated after the series of parameters are set need to be stored locally, data storage and loading can be slowed down under the condition that the data volume is too much, and the user experience can be influenced due to the slow data storage and loading speed under the scene that the data storage and reading requirements are fast.
Disclosure of Invention
The invention aims to provide a data storage method, a data storage system and a data loading method suitable for an upper computer, which are used for accelerating the data storage and loading speed of the upper computer and structurally storing data so that the data reading of the upper computer is more flexible.
The invention is realized by the following technical scheme:
a data storage method suitable for an upper computer comprises the following steps:
s1: acquiring original data generated by an upper computer, and classifying the original data according to data types;
s2: performing data conversion on the classified original data to obtain converted data;
s3: and combining the converted data, and storing the combined data structure.
Preferably, the data types include floating point type data, character type data, integer type data, and boolean type data.
Preferably, when the original data is the floating-point type data, the floating-point type data is converted into the uint16 type data.
Preferably, when the original data is the character-type data, the character-type data is converted into an ascil code and filled to a preset length.
Preferably, when the original data is integer type data or boolean type data, no conversion processing is performed.
Preferably, the S3 includes the following substeps:
s31: classifying the conversion data according to the function of the conversion data;
s32: dividing storage units according to the classification result, wherein any one storage unit stores the conversion data of one function;
s32: and combining the storage units, and storing the combined data structure in a file form.
Preferably, the memory cells are combined in a data-aligned manner.
A data storage system suitable for an upper computer comprises an acquisition module, a classification module, a conversion module and a combination module;
the acquisition module is used for acquiring original data from an upper computer;
the classification module is used for classifying the original data according to data types;
the conversion module is used for performing data conversion on the original data of different types to obtain converted data;
and the combination module is used for combining the conversion data and storing the combined data structure.
Preferably, the combination module includes an identification unit, a storage unit, and a plurality of logic units;
the identification unit is used for identifying the function of the conversion data and classifying the conversion data according to the function of the conversion data;
the logic unit is used for storing the conversion data, and any one logic unit stores the conversion data of one function;
and the storage unit is used for combining the logic units and storing the combined logic unit structure.
A data storage loading method suitable for an upper computer comprises the data storage method suitable for the upper computer or the data storage system suitable for the upper computer, and the data loading method comprises the following steps:
acquiring the conversion data stored in each storage unit in the data structure;
identifying the type of the conversion data;
and carrying out reverse conversion according to the type of the converted data to obtain the original data.
Compared with the prior art, the invention has the following advantages and beneficial effects:
1. the byte number of the original data is reduced and the storage speed and the loading speed are improved by converting the original data;
2. the data structure is clear by dividing the functions of the original data, storing the data with the same function in the same storage unit and combining the original data with different functions.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention. In the drawings:
FIG. 1 is a schematic diagram of a user group data storage process according to the present invention;
FIG. 2 is a diagram showing the method adopted in the transformation method of the present invention;
FIG. 3 is a diagram of the functionality of the data combiner of the present invention;
FIG. 4 is a diagram illustrating a data load restore process according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to examples and accompanying drawings, and the exemplary embodiments and descriptions thereof are only used for explaining the present invention and are not meant to limit the present invention.
Examples
A data storage method suitable for an upper computer, as shown in fig. 1 to 4, includes the following steps:
s1: acquiring original data generated by an upper computer, and classifying the original data according to data types;
the original data described in this embodiment is data generated when the upper computer adjusts parameters, and includes floating point data, character data, integer data, and boolean data.
S2: carrying out data conversion on the classified original data to obtain converted data;
in the audio industry, the frequency of the audio frequency is 1000Hz, the audio frequency is consistent with the audio frequency of the adjacent points (1000.1Hz, 1001Hz and 1002Hz), therefore, the points can be converted into the same number in the conversion process, and the points do not need to be accurately reduced in the reduction process, and only need to be reduced into the adjacent points. Based on this, in the scheme, floating point type data occupying 4 bytes is converted into uint16 type data occupying small bytes for expression, so that the precision of the floating point type data is reduced, the audio effect is not influenced, the storage space is reduced, and the storage of the data is accelerated. The character type data comprises Chinese characters, English characters, numeric characters and other ASCLL characters, and the length range of the character type data is 0-255 characters, so that the character type data is converted into ASCLL codes according to the self requirements of the industry and is filled to the specified length, so that the actual requirements are met, the storage space is reduced, and the storage of the data is accelerated. The integer data and the Boolean data occupy less bytes, so that no further conversion is performed during data storage.
Specifically, when the type of the original data is floating-point data, the floating-point data is converted into data occupying smaller bytes by adopting a nonlinear compression mode; when the type of the original data is character type data, converting the character type data into ASCLL codes and filling the ASCLL codes to a specified length; when the type of the original data is integer data and Boolean type data, the conversion processing is not carried out, and the original type is kept.
S3: combining the converted data and storing the combined data structure;
specifically, any one of the functions of converting data is obtained, and the converting data is classified according to the difference of the functions, that is: dividing the data with the same function into the same category;
dividing storage units according to the classification result, wherein any one storage unit stores conversion data of one function;
and combining the plurality of storage units according to a data alignment mode, and storing the combined data structure in a file form, thereby realizing the storage of the original data generated by the upper computer.
In engineering application, the utilization rate of the parameters of the equipment adjusted by the user through the upper computer software is far higher than that of the equipment adjusted directly, and once the parameters are adjusted, the data can be stored. Because the upper computer software is organized and structurally stored to determine the data storage and loading speed, and because the composition structures of different types of data are different, if the data are not classified and converted in the storage process, the data storage structure is not clear, and the data are overstaffed, thereby affecting the data storage speed and the loading speed. Particularly in the audio industry, the requirements on the data storage speed and the loading speed are extremely high, and in addition, in the audio industry, the precision requirements on most of image data are not too high, so that the inventor proposes the technical scheme of the application according to the industry particularity.
A data storage system suitable for an upper computer comprises an acquisition module, a classification module, a conversion module and a combination module;
the acquisition module is used for acquiring original data from an upper computer;
the classification module is used for classifying the original data according to the data type;
the conversion module is used for carrying out data conversion on different types of original data to obtain conversion data;
and the combination module is used for combining the converted data and storing the combined data structure.
In this embodiment, the combination module is a data combiner, and the data combiner is configured to place each conversion data in each logic unit according to a function, and then organize and store each logic unit in a file.
Specifically, the data combiner comprises an identification unit, a storage unit and a plurality of logic units;
the identification unit is used for identifying the function of the conversion data and classifying the conversion data according to the function of the conversion data;
the logic unit is used for storing the data, and any one logic unit stores the conversion data of one function;
and the storage unit is used for combining the logic units according to the data alignment mode and storing the combined logic unit structure in a file form.
A data storage method suitable for the upper computer to store or a loading method of a data storage system suitable for the upper computer comprises the following steps:
acquiring conversion data stored in each storage unit in a data structure;
identifying the type of the conversion data;
and performing corresponding inverse conversion according to the type of the converted data to obtain original data, and displaying the original data in the upper computer software.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (10)
1. A data storage method suitable for an upper computer is characterized by comprising the following steps:
s1: acquiring original data generated by an upper computer, and classifying the original data according to data types;
s2: performing data conversion on the classified original data to obtain converted data;
s3: and combining the converted data, and storing the combined data structure.
2. The data storage method suitable for the upper computer of claim 1, wherein the data types comprise floating point type data, character type data, integer type data and Boolean type data.
3. The data storage method suitable for the upper computer as claimed in claim 2, wherein when the original data is the floating-point data, the floating-point data is converted into uint16 type data.
4. The data storage method suitable for the upper computer according to claim 2, wherein when the original data is the character-type data, the character-type data is converted into ASCLL codes and filled to a preset length.
5. The data storage method suitable for the upper computer according to claim 2, wherein when the original data is integer data or boolean data, no conversion processing is performed.
6. A data storage method suitable for an upper computer according to any one of claims 1 to 5, wherein the S3 includes the following sub-steps:
s31: classifying the conversion data according to the function of the conversion data;
s32: dividing storage units according to the classification result, wherein any one storage unit stores the conversion data of one function;
s32: and combining the storage units, and storing the combined data structure in a file form.
7. The data storage method suitable for the upper computer according to claim 6, wherein the storage units are combined in a data alignment manner.
8. A data storage system suitable for an upper computer is characterized by comprising an acquisition module, a classification module, a conversion module and a combination module;
the acquisition module is used for acquiring original data from an upper computer;
the classification module is used for classifying the original data according to data types;
the conversion module is used for performing data conversion on the original data of different types to obtain converted data;
and the combination module is used for combining the conversion data and storing the combined data structure.
9. The data storage system suitable for the upper computer of claim 8, wherein the combination module comprises an identification unit, a storage unit and a plurality of logic units;
the identification unit is used for identifying the function of the conversion data and classifying the conversion data according to the function of the conversion data;
the logic unit is used for storing the conversion data, and any one logic unit stores the conversion data of one function;
and the storage unit is used for combining the logic units and storing the combined logic unit structure.
10. A data storage loading method for an upper computer, comprising the data storage method for an upper computer according to claim 7 or the data storage system for an upper computer according to claim 9, wherein the data loading method comprises the following steps:
acquiring the conversion data stored in each storage unit in the data structure;
identifying the type of the conversion data;
and carrying out reverse conversion according to the type of the converted data to obtain the original data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110076892.3A CN112765173A (en) | 2021-01-20 | 2021-01-20 | Data storage method, system and loading method suitable for upper computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110076892.3A CN112765173A (en) | 2021-01-20 | 2021-01-20 | Data storage method, system and loading method suitable for upper computer |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112765173A true CN112765173A (en) | 2021-05-07 |
Family
ID=75703600
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110076892.3A Pending CN112765173A (en) | 2021-01-20 | 2021-01-20 | Data storage method, system and loading method suitable for upper computer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112765173A (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101763318A (en) * | 2010-01-21 | 2010-06-30 | 浙江大学 | Data dumping method and data dumping device |
CN102663612A (en) * | 2012-03-06 | 2012-09-12 | 纽海信息技术(上海)有限公司 | Accessory recommending system and method |
CN102762032A (en) * | 2011-04-28 | 2012-10-31 | 上海博泰悦臻电子设备制造有限公司 | Method and system for tracking part quality |
CN104199927A (en) * | 2014-09-03 | 2014-12-10 | 腾讯科技(深圳)有限公司 | Data processing method and device |
CN107633008A (en) * | 2017-08-10 | 2018-01-26 | 阿里巴巴集团控股有限公司 | Web project data processing method, device, server and system |
CN110069495A (en) * | 2019-03-13 | 2019-07-30 | 中科恒运股份有限公司 | Date storage method, device and terminal device |
CN110308861A (en) * | 2018-03-20 | 2019-10-08 | 浙江宇视科技有限公司 | Storing data store method, device, electronic equipment and readable storage medium storing program for executing |
CN110321354A (en) * | 2019-07-09 | 2019-10-11 | 北京百度网讯科技有限公司 | Structured data storage method, device, equipment and storage medium |
CN110750311A (en) * | 2019-10-18 | 2020-02-04 | 北京汽车研究总院有限公司 | Data classification method, device and equipment |
CN111008230A (en) * | 2019-11-22 | 2020-04-14 | 远景智能国际私人投资有限公司 | Data storage method and device, computer equipment and storage medium |
CN111143297A (en) * | 2019-12-19 | 2020-05-12 | 上海三稻智能科技有限公司 | System and method for classifying and splicing multi-format mixed data |
CN111539793A (en) * | 2020-04-28 | 2020-08-14 | 桂林理工大学 | Intelligent industry-building visual service platform oriented to OPM mode |
CN111966356A (en) * | 2020-08-25 | 2020-11-20 | 珠海格力电器股份有限公司 | Program code generation method, program code generation device, storage medium, and electronic device |
-
2021
- 2021-01-20 CN CN202110076892.3A patent/CN112765173A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101763318A (en) * | 2010-01-21 | 2010-06-30 | 浙江大学 | Data dumping method and data dumping device |
CN102762032A (en) * | 2011-04-28 | 2012-10-31 | 上海博泰悦臻电子设备制造有限公司 | Method and system for tracking part quality |
CN102663612A (en) * | 2012-03-06 | 2012-09-12 | 纽海信息技术(上海)有限公司 | Accessory recommending system and method |
CN104199927A (en) * | 2014-09-03 | 2014-12-10 | 腾讯科技(深圳)有限公司 | Data processing method and device |
CN107633008A (en) * | 2017-08-10 | 2018-01-26 | 阿里巴巴集团控股有限公司 | Web project data processing method, device, server and system |
CN110308861A (en) * | 2018-03-20 | 2019-10-08 | 浙江宇视科技有限公司 | Storing data store method, device, electronic equipment and readable storage medium storing program for executing |
CN110069495A (en) * | 2019-03-13 | 2019-07-30 | 中科恒运股份有限公司 | Date storage method, device and terminal device |
CN110321354A (en) * | 2019-07-09 | 2019-10-11 | 北京百度网讯科技有限公司 | Structured data storage method, device, equipment and storage medium |
CN110750311A (en) * | 2019-10-18 | 2020-02-04 | 北京汽车研究总院有限公司 | Data classification method, device and equipment |
CN111008230A (en) * | 2019-11-22 | 2020-04-14 | 远景智能国际私人投资有限公司 | Data storage method and device, computer equipment and storage medium |
CN111143297A (en) * | 2019-12-19 | 2020-05-12 | 上海三稻智能科技有限公司 | System and method for classifying and splicing multi-format mixed data |
CN111539793A (en) * | 2020-04-28 | 2020-08-14 | 桂林理工大学 | Intelligent industry-building visual service platform oriented to OPM mode |
CN111966356A (en) * | 2020-08-25 | 2020-11-20 | 珠海格力电器股份有限公司 | Program code generation method, program code generation device, storage medium, and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8782018B2 (en) | Storage device and data processing device utilizing determined dictionary compression | |
CN102457283B (en) | A kind of data compression, decompression method and equipment | |
CN105677259A (en) | Method for storing file in mobile terminal and mobile terminal | |
CN101794566B (en) | Method and related device for determining font data of character to be displayed in mobile terminal | |
CN105096367A (en) | Method and device of optimizing Canvas rendering performance | |
CN105828081A (en) | Encoding method and encoding device | |
JPH02228879A (en) | Method of compacting data | |
CN114268323B (en) | Data compression coding method, device and time sequence database supporting line memory | |
JP4361640B2 (en) | Font data bitmap apparatus and method | |
CN112765173A (en) | Data storage method, system and loading method suitable for upper computer | |
CN109902242B (en) | Picture storage method in two-dimensional code | |
CN110619667B (en) | PNG picture compression method and system | |
CN116405692A (en) | Transmission method based on cloud matting and related equipment | |
CN104883477A (en) | Video data predistortion processing method and apparatus, and head-mounted display | |
CN113573125B (en) | Subtitle rendering method and system based on SVG word stock | |
CN113014834B (en) | Picture subtitle display method and device and related device | |
CN112256218A (en) | Method and device for drawing massive data graphs | |
CN104809747A (en) | Statistical method of image histogram and system thereof | |
CN102103477B (en) | Display data acquiring method and system and electronic equipment | |
CN111797416B (en) | Method and device for processing encrypted data | |
CN110609684B (en) | Method for converting video into character animation under Spring boot frame | |
CN108989813A (en) | A kind of high efficiency of compression/decompression method, computer installation and storage medium | |
CN112000400B (en) | Animation resource file generation method and device | |
CN111259177B (en) | Black-white binary signature picture storage method and system | |
CN117392294B (en) | Animation file checking and repairing method, system, electronic equipment and 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210507 |