Data storage device, data read-write method thereof and storage medium

By adopting the design of sector-shaped storage units and arc-shaped QR codes in the data storage device, and using the writing method of concentric dot matrix distribution, the problem of slow writing speed in traditional optical storage technology is solved, and higher storage is achieved Capacity and write efficiency.

CN118981277APending Publication Date: 2024-11-19HUAXIN FEIGUANG (NINGBO) TECHNOLOGY DEVELOPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411001172.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-11-19

AI Technical Summary

Technical Problem

The existing optical storage technology based on ultrafast pulse laser multi-layer direct writing is difficult to reach the writing rate of traditional optical disks in terms of data writing speed, which is mainly restricted by the exposure time and motion speed.

Method used

Using multiple array-distributed sector storage units and arc-shaped empty write bits, design arc-shaped QR codes with incremental radians, write data through concentric dot matrix distribution, and use turntable rotation to realize data writing and reading, improving Write efficiency and capacity.

Benefits of technology

Improves the single-disk storage capacity and average writing speed of data storage devices, reduces the fitting error of information points, improves the writing accuracy and data readability of points, which is specifically manifested as an increase in writing speed of 30% to 40%. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118981277A_ABST
    Figure CN118981277A_ABST
Patent Text Reader

Abstract

The invention relates to a data storage device, a data read-write method thereof and a storage medium. The data storage device comprises a plurality of fan-shaped storage units distributed in an array mode, and a fan-shaped null write unit is arranged between every two adjacent fan-shaped storage units; any fan-shaped storage unit stores a group of arc-shaped two-dimensional codes of which the radians are progressively increased, and an arc-shaped null writing bit is arranged between every two adjacent arc-shaped two-dimensional codes. Compared with an existing data reading and writing method based on equal-size square two-dimensional codes, the method has the advantages that the single-disk storage capacity and the average writing speed of the self-defined arc-shaped two-dimensional codes are increased by 30%-40%, in addition, due to the fact that information point positions actually fall on concentric circle lines theoretically, the fitting error of equidistant spiral lines is reduced, the point position writing precision can be improved, and the data reading and writing efficiency is improved. And the data readability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data storage, and in particular to a data storage device and a data reading and writing method and a storage medium thereof. Background Art

[0002] Optical storage based on ultrafast pulse laser multi-layer direct writing is a new optical storage technology for the future. It has significant advantages such as long storage life, large storage capacity, low consumption and environmental protection. It is currently a hot research topic for solving high-density storage technology at home and abroad. Microsoft, as a representative of foreign countries, has carried out the research and development of quartz projects based on nano-grating five-dimensional optical storage. Beijing Yingpan, as a representative of domestic countries, has carried out the research and development of domestically produced independent and controllable quartz optical disc reading and writing equipment. Both have achieved technical results of prototype equipment. In theory, it has almost permanent storage life and single-disk storage capacity of more than TB level. It is being promoted and applied in the big data storage market such as archive preservation, version protection, and data center.

[0003] However, the data writing speed is difficult to reach the writing speed of traditional optical discs. The main reasons include the limitations of exposure time and movement speed.

[0004] Therefore, there is an urgent need to develop a data storage device and a data reading and writing method thereof, as well as a storage medium to solve one or more of the above-mentioned problems. Summary of the invention

[0005] In view of this, in order to solve the above technical problems or part of the technical problems, the embodiments of the present invention provide a data storage device and a data reading and writing method thereof, and a storage medium.

[0006] In a first aspect, the present application provides a data storage device, the data storage device comprising a plurality of sector-shaped storage units distributed in an array, and sector-shaped empty write units are arranged between adjacent sector-shaped storage units;

[0007] Any sector-shaped storage unit stores a group of arc-shaped two-dimensional codes with increasing arc angles, and arc-shaped empty writing positions are arranged between adjacent arc-shaped two-dimensional codes.

[0008] In a possible implementation, the data storage device includes 510N sector-shaped storage units, where N is an integer greater than or equal to 1.

[0009] In a possible implementation manner, the width of the arc-shaped empty writing position is equal to the array interval of the arc-shaped two-dimensional code stored in the fan-shaped storage unit;

[0010] The fan-shaped storage unit stores arc-shaped two-dimensional codes of different specifications, and the specification information of the arc-shaped two-dimensional code is determined according to the first diameter of the fan-shaped storage unit and the size of the arc-shaped empty writing position.

[0011] In a possible implementation, the specification information of the innermost arc-shaped two-dimensional code corresponding to the fan-shaped storage unit is determined according to the first diameter of the fan-shaped storage unit;

[0012] Determine the specification information of the outermost arc-shaped two-dimensional code corresponding to the fan-shaped storage unit by using the specification information of the innermost arc-shaped two-dimensional code and the size of the arc-shaped empty writing position;

[0013] The specification information of the arc-shaped two-dimensional code is determined according to the specification information of the innermost ring arc-shaped two-dimensional code and the specification information of the outermost ring arc-shaped two-dimensional code, and the preset radial spacing of the arc-shaped two-dimensional code.

[0014] In a second aspect, the present application provides a method for writing data to a data storage device, the method comprising:

[0015] Get the data to be written;

[0016] Obtaining the specification requirements of arc-shaped QR codes of different specifications corresponding to the fan-shaped storage units of the data storage device;

[0017] Convert the data to be written into arc-shaped two-dimensional codes of different specifications according to the specification requirements;

[0018] Writing arc-shaped two-dimensional codes of different specifications into the data storage device in the form of concentric circle dot matrix distribution;

[0019] When writing the data to be written into the data storage device, the data storage device is installed in a turntable, and the turntable drives the data storage device to rotate.

[0020] In a possible implementation, obtaining the specification requirements of arc-shaped two-dimensional codes of different specifications corresponding to the fan-shaped storage units of the data storage device includes:

[0021] Obtaining a preset radial spacing of the arc-shaped two-dimensional code and a first diameter of the fan-shaped storage unit, wherein the first diameter is an outer diameter of the outermost ring arc-shaped two-dimensional code corresponding to the fan-shaped storage unit;

[0022] Using the first diameter, determining specification information of the innermost arc-shaped two-dimensional code corresponding to the fan-shaped storage unit;

[0023] The specification requirements of arc-shaped two-dimensional codes of different specifications corresponding to the fan-shaped storage unit are determined by using the specification information of the innermost ring arc-shaped two-dimensional code and the array interval of the arc-shaped two-dimensional code.

[0024] In a possible implementation manner, the determining, by using the first diameter, specification information of the innermost arc-shaped two-dimensional code corresponding to the fan-shaped storage unit includes:

[0025] Determine the inner diameter of the outermost ring arc-shaped two-dimensional code by using the first diameter and the preset radial spacing of the arc-shaped two-dimensional code;

[0026] Determine the number of the corresponding fan-shaped storage units of the data storage device by using the inner diameter of the outermost arc-shaped two-dimensional code;

[0027] Based on the number of the fan-shaped storage units corresponding to the storage device, the specification information of the innermost arc-shaped two-dimensional code of the fan-shaped storage unit is obtained.

[0028] In a possible implementation, converting the data to be written into arc-shaped two-dimensional codes of different specifications according to the specification requirements includes:

[0029] Determine the storage capacity of arc-shaped QR codes of various specifications according to the specification requirements;

[0030] According to the storage capacity of arc-shaped two-dimensional codes of various specifications and the array order corresponding to the arc-shaped two-dimensional codes, the data to be written is decomposed to obtain segmented data of different specifications;

[0031] The segmented data is converted into a binary code stream, and the binary code stream is subjected to two-dimensional encoding processing to obtain a corresponding arc-shaped two-dimensional code.

[0032] In a possible implementation, the step of writing arc-shaped two-dimensional codes of different specifications into the data storage device in the form of concentric circle dot matrix distribution includes:

[0033] Projecting arc-shaped QR codes of different specifications into a data storage device to form concentric circle dot arrays of different specifications;

[0034] Obtain pulse sequences of points to be written in concentric circle dot arrays of different specifications;

[0035] According to the array order of concentric circle dot arrays of different specifications, the pulse sequences of each specification are merged into the first sequence;

[0036] According to the point to be written, the turntable is controlled to drive the data storage device to rotate, and arc-shaped two-dimensional codes of different specifications are written into the data storage device.

[0037] In a third aspect, the present application provides a method for reading data from a data storage device, the method comprising:

[0038] Get the point to be read;

[0039] Obtaining a fan-shaped storage unit corresponding to a point to be read, and determining arc-shaped two-dimensional codes of different specifications stored in the fan-shaped storage unit;

[0040] Parsing the arc-shaped two-dimensional code to obtain storage data;

[0041] When reading the stored data of the data storage device, the data storage device is installed in a turntable, and the turntable drives the data storage device to rotate.

[0042] In a possible implementation manner, parsing the arc-shaped two-dimensional code to obtain storage data includes:

[0043] Scan arc-shaped QR codes of different rules according to preset reading rules to obtain scanned images;

[0044] Analyze and process the scanned image to obtain segmented data corresponding to arc-shaped two-dimensional codes of different specifications;

[0045] According to the array order of arc-shaped two-dimensional codes of different specifications, the segmented data are spliced ​​and processed to obtain the stored data.

[0046] In a possible implementation, before scanning arc-shaped two-dimensional codes of different rules, the method further includes:

[0047] The arc-shaped two-dimensional code is subjected to shape correction processing according to the polar coordinate conversion principle to obtain a corresponding square matrix two-dimensional code.

[0048] In a fourth aspect, the present application provides a storage medium storing one or more programs, which can be executed by one or more processors to implement the data writing method described in any one of the second aspects or the data reading method described in any one of the third aspects.

[0049] The above-mentioned technical scheme provided by the embodiment of the present application has the following advantages compared with the prior art: compared with the existing data reading and writing method based on equal-sized square two-dimensional codes, the data storage device provided by the embodiment of the present application can increase the single-disk storage capacity and average writing speed of custom arc-shaped two-dimensional codes by 30% to 40%. At the same time, since the information points are theoretically located on concentric circles, the fitting error of equidistant spiral lines will be reduced, which will help to improve the point writing accuracy and improve the readability of data. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0052] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0053] Figure 1 A schematic diagram of the structure of a data storage device provided in an embodiment of the present application;

[0054] Figure 2 A schematic diagram of a flow chart of a method for writing data to a data storage device provided in an embodiment of the present application;

[0055] Figure 3 A flowchart of an embodiment of a method for writing data to a data storage device provided in an embodiment of the present application;

[0056] Figure 4 A schematic diagram of a flow chart of a method for reading data from a data storage device provided in an embodiment of the present application;

[0057] Figure 5 A flowchart of an embodiment of a method for reading data from a data storage device provided in an embodiment of the present application;

[0058] Figure 6 A flowchart of another method for reading data from a data storage device provided in an embodiment of the present application;

[0059] Figure 7 This is a comparison diagram of the effects of the data reading and writing method of the data storage device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0061] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0062] The turntable direct writing method developed by Yingpan in the early days, when writing a non-deformed square QR code on a disc by rotating it, actually uses an equidistant spiral dot array line to connect all the points of the square dot array by approximation fitting, so as to achieve continuous writing of information dot array. Therefore, for circular medium discs, this concentric arc to square dot array fitting, although the point error can be controlled at the um level, with the help of the positioning and error correction mechanism of the QR code itself, it will not have a serious impact on the subsequent direct reading using microscopic imaging methods, but it sacrifices the effective storage space to a large extent (more than 30% of the medium space). At the same time, this fitting square transcription will produce a large proportion of idling (redundant arc) travel, especially in the outer circle area, and theoretically will also waste rotation time, which to a certain extent reduces the average writing efficiency.

[0063] In order to solve the problem that the data writing speed in the prior art is difficult to reach the writing speed of traditional optical discs, which is restricted by the exposure time and movement speed. Based on the technical improvement of the direct writing QR code writing scheme of the English disc turntable, without changing the basic composition and architecture of the hardware, a data storage device and its data reading and writing method are proposed and implemented to further improve the writing efficiency and medium recording rate of the QR code format in the direct reading mode of transfer, optimize the readability of the stored numbers, and increase the data capacity per unit medium.

[0064] Figure 1 A schematic diagram of the structure of a data storage device provided in an embodiment of the present application, such as Figure 1 The data storage device shown comprises a plurality of sector-shaped storage units distributed in an array, and sector-shaped empty write units are arranged between adjacent sector-shaped storage units;

[0065] Any sector-shaped storage unit stores a group of arc-shaped two-dimensional codes with increasing arc angles, and arc-shaped empty writing positions are arranged between adjacent arc-shaped two-dimensional codes.

[0066] In this embodiment, the arc-shaped two-dimensional code is actually a special-shaped dot matrix two-dimensional code distributed in an approximately fan-shaped area, that is, the information points in the horizontal / row (X-axis) direction are arranged along concentric arcs, similar to the latitude, and the information points in the vertical / column (Y-axis) direction are radially distributed along concentric circles, similar to the longitude. The arc lengths of the information points on the same latitude are equal, and the angular spacings of the information points on adjacent longitudes are equal. The arc-shaped two-dimensional code is distributed in the form of concentric rings, and the dimension of the two-dimensional code dot matrix increases from the inside to the outside, and the distribution along the arc direction is equal, that is, according to the radiation direction from the center of the circle from the inside to the outside, the scale of the two-dimensional code in the same ring is the same, the scale of the two-dimensional code of the outer ring is larger than the scale of the two-dimensional code of the inner ring, the arc spacing of the points written on the outer latitude in the same two-dimensional code should be larger than the arc spacing of the points written on the inner latitude, but the angular spacing of the adjacent longitudes is still equal, and the shape of the entire two-dimensional code presents a sparse outside and dense inside layout, and the dot matrix position in the same two-dimensional code conforms to the position relationship of the polar coordinate system. The scale planning of the two-dimensional code in different rings should be based on the arc spacing, angular spacing and concentric circle scales of the points.

[0067] The data storage device provided in the embodiment of the present application is provided with sector-shaped storage units distributed radially in sectors and in latitudinal concentric rings. In this mode, direct transcription and reading are implemented by continuous rotational motion along the arc direction of the concentric rings during writing, and by linear scanning imaging along the diameter direction of the sectors during reading. This can not only improve the utilization rate of the writing area and increase the capacity, but also improve the writing efficiency and point accuracy to a certain extent.

[0068] In an optional solution of the embodiment of the present invention, the data storage device includes 510N sector-shaped storage units, where N is an integer greater than or equal to 1.

[0069] In this embodiment, due to the fault tolerance mechanism requirements of the current RS error correction algorithm of the standard two-dimensional code, the maximum number of two-dimensional codes that can be written in one circle is an even number of 255, and the corresponding data storage device includes 510N sector storage units.

[0070] In an optional solution of the embodiment of the present invention, the width of the arc-shaped empty writing position is equal to the array interval of the arc-shaped two-dimensional code stored in the fan-shaped storage unit;

[0071] The fan-shaped storage unit stores arc-shaped two-dimensional codes of different specifications, and the specification information of the arc-shaped two-dimensional code is determined according to the first diameter of the fan-shaped storage unit and the size of the arc-shaped empty writing position.

[0072] In this embodiment, the scale of the two-dimensional codes in the same ring is the same, the scale of the two-dimensional code of the outer ring is larger than that of the inner ring, the arc interval of the points written on the outer latitude line in the same two-dimensional code should be larger than the arc interval of the points written on the inner latitude line, but the angular intervals of adjacent longitudes are still equal, and the shape of the entire two-dimensional code presents a sparse outside and dense inside layout.

[0073] Specifically, the width of the arc-shaped empty writing positions between the arc-shaped two-dimensional codes is equal to the array spacing of the arc-shaped two-dimensional codes stored in the fan-shaped storage unit, so that the arc-shaped two-dimensional codes present a sparse layout on the outside and dense layout on the inside; the specifications of the arc-shaped two-dimensional code are related to the first diameter of the fan-shaped storage unit and the size of the preset arc-shaped empty writing positions.

[0074] In an optional solution of the embodiment of the present invention, the specification information of the innermost arc-shaped two-dimensional code corresponding to the fan-shaped storage unit is determined according to the first diameter of the fan-shaped storage unit;

[0075] Determine the specification information of the outermost arc-shaped two-dimensional code corresponding to the fan-shaped storage unit by using the specification information of the innermost arc-shaped two-dimensional code and the size of the arc-shaped empty writing position;

[0076] The specification information of the arc-shaped two-dimensional code is determined according to the specification information of the innermost ring arc-shaped two-dimensional code and the specification information of the outermost ring arc-shaped two-dimensional code, and the preset radial spacing of the arc-shaped two-dimensional code.

[0077] In this embodiment, in order to accurately construct a fan-shaped storage unit, it is first necessary to clarify the specific specification information of the innermost ring arc-shaped QR code according to the initial diameter of the fan-shaped storage unit, ensuring that the size of the QR code can adapt to the internal structure of the fan-shaped storage unit, and then, with the help of the specification information of the innermost ring arc-shaped QR code and the specific size of the arc-shaped empty writing position, the specification information of the outermost ring arc-shaped QR code of the fan-shaped storage unit is carefully planned to ensure that the outermost ring QR code can be coordinated with the innermost QR code while meeting the requirements of the arc-shaped empty writing position; finally, the specification information of the innermost ring arc-shaped QR code and the specification information of the outermost ring arc-shaped QR code, as well as the preset arc-shaped incremental diameter spacing, are combined to finally determine the specification information of the entire arc-shaped QR code, ensuring that the incremental layout of the arc-shaped QR code is both reasonable and efficient, and can meet the overall needs of the fan-shaped storage unit.

[0078] For example, the basic specifications for writing dot matrix require that the radial spacing of adjacent latitudes is equal to 2um, the spacing of adjacent longitudes is close to 2um (reference), the dot matrix of the QR code at the same latitude is bounded by an angular spacing of empty space, the data writing area on the disk ranges from concentric rings with an inner diameter of 20mm to an outer diameter of 60mm, equal-scale QR codes are distributed in concentric rings, the angular spacing of adjacent points on the same latitude in the same-scale QR code is equal, and the number of QR codes in different dimensions is the same; the scale step interval of the written QR code is a multiple of 4, which is the standard QR code scale step specification; the number of QR codes at the same latitude (within the same ring) is close to the maximum writable number with an even multiple of 255, because it is required by the fault-tolerant mechanism of the current RS error correction algorithm of the QR code; the number of QR codes in the outermost ring is calculated as 177x177, and the current maximum QR code scale is 177x177.

[0079] The following calculations are made:

[0080] Step 1: The arc interval between the points of the innermost ring of the outermost ring QR code is close to 2um as the accuracy reference. The outermost ring QR code area has an outer diameter of 60mm and an inner diameter of 60-177x2x2 / 1000=59.292mm. The number of QR codes in the outermost ring: calculated based on the point spacing of 2um on the innermost circle (lowest latitude) of the QR code, 59292xπ / (176x2+4)=522. Referring to the requirements of the fault tolerance mechanism, 255 times 510 is used to approximate 522, that is, each data ring contains 510 QR codes, which is one of the basic bases for planning QR code writing; The number of QR codes in the same latitude ring: m=255x2=510

[0081] Step 2: The scale of the innermost ring QR code is 2πr11 / 510=2πx5000 / 510=61. Considering the code interval and QR code version (scale dictionary), the 57x57 scale QR code is selected for approximation, and the actual QR code point matrix of the left and right intervals is 59x59.

[0082] Step 3: Based on the basic requirements of 510 QR codes in a single ring, the innermost ring QR code scale is 57x57, the longitudinal point spacing is 2um, and the QR code version scale step is a multiple of 4, it is calculated that: r21=5000+2x59=5118um, and the QR code calculation scale is 2πr21 / 510=63. Considering the additional code interval of 2um and the code scale increase step of 4, the scale of the second inner ring QR code still needs to maintain the actual QR code scale of 59x59;

[0083] Step 4: The scale of the QR code of the third ring: r31=5000+2x59+2x59=5236um, the calculated scale of the QR code is 2πr31 / 510=65, and the additional code spacing is 67. Considering that 67=59+4x2 meets the step increase of the QR code scale, the actual scale of the QR code written in the third ring can be 67x67;

[0084] According to the above calculation rules, the scale of each ring of the QR code can be calculated step by step from the inside to the outside until two situations are encountered. The first situation: if the QR code scale is equal to 179, reaching the maximum scale of the current standard QR code, and at the same time, the outer diameter of the current QR code ring is still less than 60mm-179x2um, then the subsequent outer ring will still maintain the 179 scale QR code unchanged, and there is no need to calculate the QR code scale; the second situation: if the outer diameter of the current QR code ring is greater than 60mm, then the QR code scale calculation and QR code planning are directly terminated, and the QR code layout planning is completed.

[0085] Furthermore, each arc-shaped QR code ring has an initial code and an end code, and the central axis of each initial code / end code is radially aligned to facilitate the start positioning and end positioning during the reading and writing process. In particular, the QR code of the innermost ring will be encoded separately as an identification code, that is, the basic content of each QR code is a serial number, which can be used to calculate the position sequence of each QR code in the sector in the QR code sequence, so that after each QR code is identified, the data stream can be completely decoded by connecting them in series.

[0086] Figure 2 A schematic diagram of a data writing method for a data storage device provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the writing method includes:

[0087] S201, obtaining data to be written;

[0088] S202, obtaining the specification requirements of arc-shaped two-dimensional codes of different specifications corresponding to the fan-shaped storage units of the data storage device;

[0089] In this embodiment, the size of the fan-shaped storage unit of the data storage device is obtained, and the size specifications of arc-shaped two-dimensional codes of different specifications are planned according to the size of the fan-shaped storage unit.

[0090] S203, converting the data to be written into arc-shaped two-dimensional codes of different specifications according to the specification requirements;

[0091] In this embodiment, the data to be written is decomposed into a plurality of standard arc-shaped QR codes with different rules according to the specification requirements of the arc-shaped QR code, and the QR codes of different dimensions are arranged in concentric rings. Then, the dot matrix of all the QR codes is projected onto a circular surface to form a concentric circle dot matrix, which is used to encode the points of each circle into a one-dimensional pulse sequence, and finally, each circle sequence is connected in series to form a one-dimensional writable data.

[0092] S204, writing arc-shaped two-dimensional codes of different specifications into the data storage device in the form of concentric circle dot matrix distribution; wherein, when writing the data to be written into the data storage device, the data storage device is installed in a turntable, and the turntable drives the data storage device to rotate.

[0093] In this embodiment, the design principle of the arc-shaped QR code is to distribute the arcs of concentric circles, but it can still be implemented in an equidistant spiral when writing. When writing, it is written in a spiral manner and rotates continuously. Since the error between the spiral and the arc is very small, it can be controlled to approximate concentric circles. Compared with the existing method, the number of empty circles and the arc length of the empty writing are greatly reduced, the writable space of the disc is significantly increased, and the speed is increased while the capacity is also increased.

[0094] The data writing method of the data storage device provided in the embodiment of the present application decomposes the written data into multiple two-dimensional codes, arranges them in a concentric circle, and then forms a pulse sequence of points in each circle to write the data. When writing, it is still written in a spiral manner, and since the error is extremely small, it is approximately concentric circles. Compared with the current method, the X-axis movement speed can be doubled to 40 microns per second, the storage density is improved, and the accuracy is improved.

[0095] In an optional solution of the embodiment of the present invention, the obtaining of the specification requirements of arc-shaped two-dimensional codes of different specifications corresponding to the fan-shaped storage unit of the data storage device includes:

[0096] Obtaining a preset radial spacing of the arc-shaped two-dimensional code and a first diameter of the fan-shaped storage unit, wherein the first diameter is an outer diameter of the outermost ring arc-shaped two-dimensional code corresponding to the fan-shaped storage unit;

[0097] Using the first diameter, determining specification information of the innermost arc-shaped two-dimensional code corresponding to the fan-shaped storage unit;

[0098] The specification requirements of arc-shaped two-dimensional codes of different specifications corresponding to the fan-shaped storage unit are determined by using the specification information of the innermost ring arc-shaped two-dimensional code and the array interval of the arc-shaped two-dimensional code.

[0099] In an optional solution of the embodiment of the present invention, the use of the first diameter to determine the specification information of the innermost arc-shaped two-dimensional code corresponding to the fan-shaped storage unit includes:

[0100] Determine the inner diameter of the outermost ring arc-shaped two-dimensional code by using the first diameter and the preset radial spacing of the arc-shaped two-dimensional code;

[0101] Determine the number of the corresponding fan-shaped storage units of the data storage device by using the inner diameter of the outermost arc-shaped two-dimensional code;

[0102] Based on the number of the fan-shaped storage units corresponding to the storage device, the specification information of the innermost arc-shaped two-dimensional code of the fan-shaped storage unit is obtained.

[0103] In this embodiment, after the arc-shaped two-dimensional code planning is formulated according to the size information of the fan-shaped storage unit, the specification requirements of arc-shaped two-dimensional codes of different specifications are obtained according to the arc-shaped two-dimensional code planning;

[0104] For example: the outer diameter of the writing area of ​​the sector storage unit is 60mm, the inner diameter is 20mm, the writing point spacing is 2um, the latitude spacing is 2um, and the radial spacing of the arc QR code is 2um (reference).

[0105] The corresponding planning requirements for arc-shaped QR codes are as follows: (1) The angular intervals of adjacent points at the same latitude are equal, and the number of QR codes at different latitudes is the same; (2) The array scale step interval of the standard QR code is an integer multiple of 4; (3) The maximum number of QR codes that can be written in a circle is an even number of 255 (due to the fault tolerance mechanism of the current RS error correction algorithm of the standard QR code); (4) The number of QR codes in the outermost ring is calculated as 177x177 (the current maximum QR code scale is 177x177).

[0106] The specifications of the curved QR code are as follows:

[0107] The requirement for the number of QR codes in the outermost ring is as follows: the arc interval between the innermost ring points of the outermost QR code is close to 2um as the accuracy reference. The outermost QR code area has an outer diameter of 60mm and an inner diameter of 60-177x2x2 / 1000=59.292mm, 59292π / (176x2+4)=522. Referring to the requirements of the fault-tolerant mechanism, 255 times 510 is used to approximate 522, that is, each ring of data contains 510 QR codes, which can be used as the basic basis for planning the QR code writing sectors, that is, divided into 510 sectors, and the angular range of each sector is about 0.7° (that is, 360° / 510).

[0108] It should be noted that, because there are requirements for the scale and accuracy of the points actually burned physically, 2um is not only the physical requirement of the single point scale but also the point spacing, which is the prerequisite for the current instance to be writable and readable. If the hardware technology is improved, the single point writing scale is smaller, the spacing requirement can also be smaller, and the corresponding dimension of the writable QR code under the same size area can also be larger. Therefore, if the scale of the largest QR code (currently the maximum size of the standard QR code is 177x177) can only be written if the writable sector area is large enough, the radiation angle of the sector is a certain 1 / 510 circle, and the outer diameter determines the size of the outermost sector. In addition, the requirement of 2um point spacing also determines the maximum scale of the writable QR code. In addition, the limit of 255 multiples is required by the error correction algorithm used by the standard QR code. If the QR code written is a custom algorithm, there may be no limit that 255 or 510 QR codes must be written in one circle, and there is a more free situation.

[0109] The scale requirement of the innermost ring QR code is: (2πr / 510) / 2um=(2πx10000um / 510) / 2um=61. Taking into account the code spacing and QR code version (scale dictionary), in order to read the QR code individually, a recognizable gap must be left between adjacent QR codes, at least twice the dot spacing, that is, 4um is sufficient. The 57x57 scale QR code is selected for approximation, and the QR code dot matrix actually written in the left and right intervals is 59x59.

[0110] Each QR code ring is divided into 510 sectors, and the QR code specifications are calculated in sequence starting from the 60th circle. Each concentric circle is divided into 510 parts, and there will be 510 QR codes accordingly, but the QR code dimension starts from 59 and gradually increases from the inner circle to the outer circle with 4 as the asymptotic unit. If the calculated QR code specifications are different from the standard QR code specifications, they will be solved according to the principle of downward approximation, that is, if they are not enough to increase by 4, the original scale will be retained.

[0111] It should be noted that, in the case of the inside-out specification, if the dimension of the current circle QR code is 57x57, adding 4 will make it 61x61, plus the interval of 2, then the dimension of the next circle QR code is expected to be 63x63. If the length of 63x2umx510 is greater than the actual circumference, it means that the next circle cannot accommodate 510 63x63 QR codes, so it has to degenerate and continue to write 59x59 QR codes. Even if the spacing between the QR codes may increase, this is the only way to ensure that the writing is complete and readable.

[0112] In an optional solution of the embodiment of the present invention, converting the data to be written into arc-shaped two-dimensional codes of different specifications according to the specification requirements includes:

[0113] Determine the storage capacity of arc-shaped QR codes of various specifications according to the specification requirements;

[0114] According to the storage capacity of arc-shaped two-dimensional codes of various specifications and the array order corresponding to the arc-shaped two-dimensional codes, the data to be written is decomposed to obtain segmented data of different specifications;

[0115] The segmented data is converted into a binary code stream, and the binary code stream is subjected to two-dimensional encoding processing to obtain a corresponding arc-shaped two-dimensional code.

[0116] Figure 3 The flowchart of the method for writing data to a data storage device provided in the embodiment of the present application is as follows: Figure 3 As shown, the written data is decomposed into multiple QR codes, which are arranged circle by circle in the writable annular data area. After the coordinate positions of all the writing points corresponding to the turntable are obtained, a pulse sequence code connecting all the writing points can be formed to control the turntable and translation stage motion control system to write data.

[0117] In an optional solution of the embodiment of the present invention, the writing of arc-shaped two-dimensional codes of different specifications into the data storage device in the form of concentric circle dot matrix distribution includes:

[0118] Projecting arc-shaped QR codes of different specifications into a data storage device to form concentric circle dot arrays of different specifications;

[0119] Obtain pulse sequences of points to be written in concentric circle dot arrays of different specifications;

[0120] According to the array order of concentric circle dot arrays of different specifications, the pulse sequences of each specification are combined into the first sequence;

[0121] According to the point to be written, the turntable is controlled to drive the data storage device to rotate, and arc-shaped two-dimensional codes of different specifications are written into the data storage device.

[0122] In this embodiment, after the data to be written is decomposed into multiple standard two-dimensional codes of different specifications, the two-dimensional codes of different dimensions are arranged in concentric rings, and then the dot matrix of all the two-dimensional codes is projected onto the circular surface to form a concentric circle dot matrix, which is used to encode the points of each circle into a one-dimensional pulse sequence, and finally the circle sequences are connected in series to form a one-dimensional writable data; when writing, it is still continuously rotated in a spiral manner. Since the error between the spiral and the arc is extremely small, it can be controlled to approximate concentric circles; the number of empty writing circles and the length of the empty writing arc are greatly reduced, and the writable space of the disc is significantly increased, which increases the speed and capacity at the same time.

[0123] Figure 4 A schematic diagram of a data reading method for a data storage device provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the reading method includes:

[0124] S401, obtaining the point to be read;

[0125] In this embodiment, the radial center axis of each sector-shaped storage unit is located. There are at least two specific positioning methods. One is to locate the scanning sector based on the blank gap of the sector-shaped storage unit, and then determine the diameter running through the sector (i.e., the line connecting the center of the inner circle QR code and the center of the outer circle QR code); the other is to locate the scanning sector through a pre-written marked QR code. For example, a small-size QR code (510) with the number of sectors in a circle is first written in the innermost ring. Each QR code can identify the corresponding sector number (e.g., 1, 2...510). Before reading the disk, the center of the circle is imaged first, and an image covering all the marked QR codes is collected to identify the sector number identified by each marked QR code. The center position of each marked QR code is then used to calculate the center diameter of each sector.

[0126] S402, obtaining a sector storage unit corresponding to a point to be read, and determining arc-shaped two-dimensional codes of different specifications stored in the sector storage unit;

[0127] In this embodiment, the two-dimensional code images in each sector storage unit are collected: by controlling the XY axis of the translation stage to move from the outer ring to the opposite outer ring along the radial diameter of each sector, the camera is used to continuously collect images in the radial direction to obtain an image sequence covering all the two-dimensional codes in the sector. When collecting images, the image is cropped according to the scale of each two-dimensional code in the sector and its distance from the center of the circle, and the two-dimensional codes of other sector storage units are excluded to obtain all the two-dimensional code images in the sector storage unit.

[0128] S403, parsing the arc-shaped two-dimensional code to obtain storage data; wherein, when reading the storage data of the data storage device, the data storage device is installed in a turntable, and the turntable drives the data storage device to rotate.

[0129] In this embodiment, each arc-shaped two-dimensional code in a sector is identified, and the decoded data of each sector is compiled. The entire disk is decoded by concatenation. The arc-shaped two-dimensional code of each sector is identified separately and then output as a binary code segment. According to the layout rules of the arc-shaped two-dimensional code, all the binary code segments are concatenated in order to form data that can be used to parse the information, thereby completing the reconstruction and reading of the entire disk data.

[0130] The data reading method of the data storage device provided in the embodiment of the present application initially locates the central axis diameter of each data sector, and then provides a reference for the acquisition of the two-dimensional code image sequence in the sector, which is completed by scanning and identifying the inner ring identification two-dimensional code starting from the center of the circle. As long as one identification two-dimensional code is identified, the angular area of ​​all sectors is inferred according to the writing rules; the image acquisition is completed by translating and scanning along the angular midline of each sector from the outside to the inside along the sector angular midline (diameter), so as to obtain the sector image sequence of all two-dimensional codes of all serial sector angular midlines; code block extraction is to extract the different scale sector-shaped two-dimensional code area images on the center of the sector according to the two-dimensional code scale planning principle.

[0131] like Figures 5 and 6 As shown, the scanning sector is converted in the clockwise direction, the sector image is collected in the diameter direction, the QR code image is cropped and corrected, and the recognition and decoding of the QR code are completed; in the reading process analysis of the arc QR code sample, a circular quartz glass disk is used as the recording medium, and the writing and reading of the arc QR code are completed inside the glass.

[0132] In an optional solution of the embodiment of the present invention, the parsing of the arc-shaped two-dimensional code to obtain storage data includes:

[0133] Scan arc-shaped QR codes of different rules according to preset reading rules to obtain scanned images;

[0134] Analyze and process the scanned image to obtain segmented data corresponding to arc-shaped two-dimensional codes of different specifications;

[0135] According to the array order of arc-shaped two-dimensional codes of different specifications, the segmented data are spliced ​​and processed to obtain the stored data.

[0136] In this embodiment, according to the arc-shaped two-dimensional code planning and writing method, a pattern feature of a radial concentric blank channel will be formed. According to this feature, a certain fan-shaped area can be found, and the line connecting the center of the inner circle two-dimensional code and the center of the outer circle two-dimensional code can be determined. By controlling the XY axis of the reading motion stage to move from the outer circle of the starting code to the outer circle on the opposite side along this line (diameter), the image on the diameter is continuously collected during the movement to obtain an image sequence containing all the two-dimensional codes in the radial direction. When collecting the image, a cropping area of ​​a suitable size is set according to the distance from the center of the circle, and the two-dimensional codes in other fan-shaped areas are excluded, and the arc-shaped two-dimensional code image sequence on the diameter is divided. According to the sector angle interval of about 0.7 degrees, the angle is converted clockwise, and the image sequence of 255 mirror sectors is collected in sequence in the same way. The arc-shaped two-dimensional code image sequence of all sectors is obtained by cropping and segmentation. The obtained two-dimensional code image is distributed in an arc shape (the arc height of the outer circle two-dimensional code exceeds the plane by about 2.1 microns, and the arc of the inner circle two-dimensional code exceeds the plane by about 0.7 microns). Arc correction is required to form a recognizable two-dimensional code. Then, all the decoded two-dimensional code output data are serially spliced ​​and reorganized in a regular manner to complete the data information reading and interpretation of the entire medium disk write area.

[0137] In an optional solution of the embodiment of the present invention, before scanning the arc-shaped two-dimensional codes of different rules, the method further includes:

[0138] The arc-shaped two-dimensional code is subjected to shape correction processing according to the polar coordinate conversion principle to obtain a corresponding square matrix two-dimensional code.

[0139] In this embodiment, the arc-shaped two-dimensional code image is corrected to form a square two-dimensional code image. The high point of the arc of the outer circle two-dimensional code exceeds the plane by about 2.1 microns, and the arc of the inner circle two-dimensional code exceeds the plane by about 0.7 microns. Using the principle of polar coordinate transformation, the coordinates of each writing point in the arc-shaped two-dimensional code image are projected into the rectangular coordinate system to generate a square two-dimensional code image, so that it can be directly recognized and decoded using the existing two-dimensional code recognition algorithm.

[0140] Specifically, the arc correction of the QR code is based on the polar coordinate transformation principle. The rectangular coordinates (xi, yi) of the dot matrix written in the captured image are transformed into polar coordinates to obtain (ri, wi). Then, the points with the same ri (or the same wi) are traversed and arranged and grouped according to the w value (or r value) to obtain a square point array under polar coordinates. A QR code image that can be used for identification can be formed, thereby completing the decoding of a single QR code.

[0141] It should be noted that the implementation of the arc-shaped two-dimensional code reading and writing method proposed in this embodiment is not only applicable to the writing trajectory of uninterrupted equidistant spiral lines, but can also be used for the writing trajectory of equidistant concentric circles. However, the existing idling will sacrifice some efficiency; it is not only applicable to writing on the surface of the medium disk, but also to writing inside the medium disk and multi-layer writing; there is no restriction on the movement direction of the turntable, and it can be clockwise or counterclockwise; there is no strict requirement on the shape of the medium disk, and it is most suitable for circular medium disks (saving space), and can also be used for medium disks of other shapes such as squares. The actual writing area is still a concentric ring, and the space utilization rate will be reduced; the marking two-dimensional code used to locate the start position of reading and writing can be in principle on the inner ring or on the outer ring, and the corresponding reading and writing order is from the inside to the outside or from the outside to the inside.

[0142] Figure 7 The effect comparison diagram of the data reading and writing method of the data storage device provided in the embodiment of the present application is as follows: Figure 7 As shown in the figure, (a) and (b) respectively show the effect of writing and reading square QR codes and arc QR codes in concentric circular disks. It is obvious that the transfer of square QR codes in the disk not only sacrifices more than 30% of the writable area, but also has more than 50% of idle travel, while the transfer of arc QR codes in the disk fully utilizes the writable area and reduces idle travel. Whether it is writable capacity or writing efficiency, the arc QR code is obviously better than the square QR code.

[0143] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0144] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0145] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A data storage device, characterized in that: The data storage device comprises a plurality of sector-shaped storage units distributed in an array, and sector-shaped empty write units are arranged between adjacent sector-shaped storage units; Any sector-shaped storage unit stores a group of arc-shaped two-dimensional codes with increasing arc angles, and arc-shaped empty writing positions are arranged between adjacent arc-shaped two-dimensional codes.

2. The data storage device according to claim 1, characterized in that The data storage device includes 510N sector storage units, where N is an integer greater than or equal to 1.

3. The data storage device according to claim 1, characterized in that The width of the arc-shaped empty writing position is equal to the array interval of the arc-shaped two-dimensional code stored in the fan-shaped storage unit; The fan-shaped storage unit stores arc-shaped two-dimensional codes of different specifications, and the specification information of the arc-shaped two-dimensional code is determined according to the first diameter of the fan-shaped storage unit and the size of the arc-shaped empty writing position.

4. The data storage device according to claim 3, characterized in that Determine the specification information of the innermost arc-shaped two-dimensional code corresponding to the fan-shaped storage unit according to the first diameter of the fan-shaped storage unit; Determine the specification information of the outermost arc-shaped two-dimensional code corresponding to the fan-shaped storage unit by using the specification information of the innermost arc-shaped two-dimensional code and the size of the arc-shaped empty writing position; The specification information of the arc-shaped two-dimensional code is determined according to the specification information of the innermost ring arc-shaped two-dimensional code and the specification information of the outermost ring arc-shaped two-dimensional code, and the preset radial spacing of the arc-shaped two-dimensional code.

5. A method for writing data into a data storage device, characterized in that: The method comprises: Get the data to be written; Obtaining the specification requirements of arc-shaped QR codes of different specifications corresponding to the fan-shaped storage units of the data storage device; Convert the data to be written into arc-shaped two-dimensional codes of different specifications according to the specification requirements; Writing arc-shaped two-dimensional codes of different specifications into the data storage device in the form of concentric circle dot matrix distribution; When writing the data to be written into the data storage device, the data storage device is installed in a turntable, and the turntable drives the data storage device to rotate.

6. The method according to claim 5, characterized in that The specification requirements for obtaining arc-shaped two-dimensional codes of different specifications corresponding to the fan-shaped storage units of the data storage device include: Obtaining a preset radial spacing of the arc-shaped two-dimensional code and a first diameter of the fan-shaped storage unit, wherein the first diameter is an outer diameter of the outermost ring arc-shaped two-dimensional code corresponding to the fan-shaped storage unit; Using the first diameter, determining specification information of the innermost arc-shaped two-dimensional code corresponding to the fan-shaped storage unit; The specification requirements of arc-shaped two-dimensional codes of different specifications corresponding to the fan-shaped storage unit are determined by using the specification information of the innermost ring arc-shaped two-dimensional code and the array interval of the arc-shaped two-dimensional code.

7. The method according to claim 6, characterized in that The method of using the first diameter to determine the specification information of the innermost arc-shaped two-dimensional code corresponding to the fan-shaped storage unit includes: Determine the inner diameter of the outermost ring arc-shaped two-dimensional code by using the first diameter and the preset radial spacing of the arc-shaped two-dimensional code; Determine the number of the corresponding fan-shaped storage units of the data storage device by using the inner diameter of the outermost arc-shaped two-dimensional code; Based on the number of the fan-shaped storage units corresponding to the storage device, the specification information of the innermost arc-shaped two-dimensional code of the fan-shaped storage unit is obtained.

8. The method according to claim 5, characterized in that The step of converting the data to be written into arc-shaped two-dimensional codes of different specifications according to the specification requirements includes: Determine the storage capacity of arc-shaped QR codes of various specifications according to the specification requirements; According to the storage capacity of arc-shaped two-dimensional codes of various specifications and the array order corresponding to the arc-shaped two-dimensional codes, the data to be written is decomposed to obtain segmented data of different specifications; The segmented data is converted into a binary code stream, and the binary code stream is subjected to two-dimensional encoding processing to obtain a corresponding arc-shaped two-dimensional code.

9. The method according to claim 5, characterized in that The method of writing arc-shaped two-dimensional codes of different specifications into the data storage device in the form of concentric circle dot matrix distribution includes: Projecting arc-shaped QR codes of different specifications into a data storage device to form concentric circle dot arrays of different specifications; Obtain pulse sequences of points to be written in concentric circle dot arrays of different specifications; According to the array order of concentric circle dot arrays of different specifications, the pulse sequences of each specification are combined into the first sequence; According to the point to be written, the turntable is controlled to drive the data storage device to rotate, and arc-shaped two-dimensional codes of different specifications are written into the data storage device.

10. A method for reading data from a data storage device, characterized in that: The method comprises: Get the point to be read; Obtaining a fan-shaped storage unit corresponding to a point to be read, and determining arc-shaped two-dimensional codes of different specifications stored in the fan-shaped storage unit; Parsing the arc-shaped two-dimensional code to obtain storage data; When reading the stored data of the data storage device, the data storage device is installed in a turntable, and the turntable drives the data storage device to rotate.

11. The method according to claim 10, characterized in that The arc-shaped two-dimensional code is parsed and processed to obtain storage data, including: Scan arc-shaped QR codes of different rules according to preset reading rules to obtain scanned images; Analyze and process the scanned image to obtain segmented data corresponding to arc-shaped two-dimensional codes of different specifications; According to the array order of arc-shaped two-dimensional codes of different specifications, the segmented data are spliced ​​and processed to obtain the stored data.

12. The method according to claim 11, characterized in that Before scanning the arc-shaped two-dimensional codes of different rules, the method further includes: The arc-shaped two-dimensional code is subjected to shape correction processing according to the polar coordinate conversion principle to obtain a corresponding square matrix two-dimensional code.

13. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the data writing method described in any one of claims 5 to 9 or the data reading method described in any one of claims 10 to 12.