CN111737161A - File transmission method of Flash memory, terminal and storage medium - Google Patents
File transmission method of Flash memory, terminal and storage medium Download PDFInfo
- Publication number
- CN111737161A CN111737161A CN202010439330.6A CN202010439330A CN111737161A CN 111737161 A CN111737161 A CN 111737161A CN 202010439330 A CN202010439330 A CN 202010439330A CN 111737161 A CN111737161 A CN 111737161A
- Authority
- CN
- China
- Prior art keywords
- file
- page
- bitmap
- data
- terminal
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/0223—User address space allocation, e.g. contiguous or non contiguous base addressing
- G06F12/023—Free address space management
- G06F12/0238—Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
- G06F12/0246—Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1004—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1443—Transmit or communication errors
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/10—Address translation
- G06F12/1009—Address translation using page tables, e.g. page table structures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The application discloses a file transmission method, a terminal and a storage medium of a Flash memory, and relates to but is not limited to the technical field of data transmission. A file transmission method of a Flash memory comprises the following steps: inquiring a home page of the bitmap area to obtain a bitmap table; inquiring a home page of the data area to acquire attribute information of the first file; completing initialization of a bitmap area according to the bitmap and the attribute information of the first file to obtain an initialization result; sending a file transmission request to the second terminal according to the initialization result; receiving a second file sent by a second terminal, storing the second file in a data area, and updating a bitmap area; and verifying the second file to obtain a verification result, and determining the transmission state of the second file according to the verification result. According to the method and the device, the paging storage technology is utilized, the related data of the file are stored into the corresponding storage area according to the page, the data can be transmitted and stored at the same time, and therefore data loss caused by system power failure is avoided.
Description
Technical Field
The embodiment of the application relates to, but not limited to, the technical field of data transmission, and in particular relates to a file transmission method, a terminal and a storage medium for a Flash memory.
Background
The Flash memory is a nonvolatile memory based on semiconductor technology, has the advantages of low power consumption, large capacity, small volume, light weight, high access speed and the like, and has gradually replaced other semiconductor memory devices to be widely applied to mobile electronic products. Since the Flash memory has a fixed storage capacity, the write operation can only be performed in an empty cell or an erased cell, and therefore, the erase operation must be performed before the write operation is performed. The minimum erasable area of a Flash memory is a block and the minimum writeable area is a page or a portion of a page. However, when the Flash memory performs a write operation, if the write operation is interrupted due to a system power failure, the written data is easily lost.
Disclosure of Invention
The embodiments of the present application aim to solve at least one of the technical problems existing in the prior art to some extent. Therefore, the embodiment of the application provides a file transmission method of a Flash memory, which can avoid data loss caused by system power failure and improve the reliability of file transmission.
The embodiment of the application also provides a file transmission method of the Flash memory.
The embodiment of the application also provides the terminal.
The embodiment of the application also provides a computer readable storage medium.
In a first aspect, an embodiment of the present application provides a file transmission method for a Flash memory, where the Flash memory is used for storing data in a paging manner, and the method includes: the data area, the first page of the data area is used for storing the attribute information of the file, the other pages are used for storing the content data of the file, and the attribute information comprises a version number, a size and a checksum; the device comprises a bitmap area, a first page of the bitmap area is used for storing a bitmap table, other pages of the bitmap area are used for storing page offset, the bitmap table is used for recording a bitmap of each page in a data area, the bitmap is used for identifying a data storage state, the page offset is used for pointing to an offset page, and the offset page is a tail page of a file stored in the data area; the file transmission method of the Flash memory is used for a first terminal with the Flash memory, the first terminal is in communication connection with a second terminal, and the file transmission method of the Flash memory comprises the following steps:
inquiring a home page of the bitmap area to obtain a bitmap table;
inquiring a home page of the data area to acquire attribute information of the first file;
completing initialization of a bitmap area according to the bitmap and the attribute information of the first file to obtain an initialization result;
sending a file transmission request to the second terminal according to the initialization result;
receiving a second file sent by a second terminal, storing the second file in a data area, and updating a bitmap area;
and verifying the second file to obtain a verification result, and determining the transmission state of the second file according to the verification result.
The file transmission method of the Flash memory in the embodiment of the application has at least the following beneficial effects:
1. the storage area of the Flash memory is divided into a bitmap area and a data area, and related data of a file is stored into the corresponding storage area according to pages by utilizing a paging storage technology, so that the data can be transmitted and stored at the same time, and the data loss caused by the system power failure is avoided;
2. by inquiring the first page of the bitmap area, the paging storage state of the stored file can be read, so that the file data to be transmitted can be determined, and the transmission efficiency of the file is improved;
3. by inquiring the home page of the data area, the attribute information of the stored file can be read, so that the file to be continuously transmitted or the file to be complementarily transmitted can be verified, and the integrity and the reliability of file transmission are ensured;
4. the tail page of the file data stored in the data area can be addressed through the page offset stored in the bitmap area, so that the addressing time is shortened, and the storage space of the data area is utilized to the maximum extent;
5. after the system is restarted after power failure, the file transmission breakpoint of the system in the power failure can be positioned according to the bitmap table and the page offset which are stored in the bitmap area, so that file continuous transmission or file supplementary transmission can be realized, and the reliability of file transmission is improved.
According to another embodiment of the present application, a file transfer method for a Flash memory, which completes initialization of a bitmap area according to a bitmap and attribute information of a first file to obtain an initialization result, includes:
if the bitmap is empty and the attribute information of the first file is also empty, the obtained initialization result is a new file to be transmitted;
if the bitmap is empty and the attribute information of the first file is not empty, sequentially inquiring other pages of the data area from the second page of the data area, marking the bitmap of the empty data page as 0, marking the bitmap of the data page as 1, setting the empty data page with the last marked bitmap as 0 as a first offset page, storing the offset of the first page corresponding to the first offset page into the bitmap area, and obtaining an initialization result which is the file to be subjected to supplementary transmission;
and if the bitmap is not empty, inquiring other pages in the bitmap area, acquiring the offset of the second page, and obtaining an initialization result which is a file to be continuously transmitted.
According to another embodiment of the present application, a file transfer method for a Flash memory, sending a file transfer request to a second terminal according to an initialization result, includes:
if the initialization result is that a new file is to be transmitted, a new file transmission request is sent to the second terminal;
if the initialization result is the file to be subjected to the additional transmission, sending a file additional transmission request to the second terminal, wherein the file additional transmission request comprises a first page offset and a bit map;
and if the initialization result is the file to be continuously transmitted, sending a file continuous transmission request to the second terminal, wherein the file continuous transmission request comprises the second page offset.
According to another embodiment of the present application, a file transmission method for a Flash memory, receiving a second file sent by a second terminal, storing the second file in a data area, and updating a bitmap area, includes:
receiving a second file sent by a second terminal, storing attribute information of the second file into a first page of a data area, starting paging storage of content data of the second file from the second page of the data area if the second file is a new file, writing a bitmap of the stored data page into a bitmap table, storing the bitmap table into the first page of the bitmap area, and starting storage of page offset of the second file from the second page of the bitmap area;
if the second file is a file to be retransmitted, the second file is addressed to the first offset page through the first page offset, all empty data pages with the bitmap of 0 are inquired through the bitmap table, content data of the second file are respectively stored to the corresponding empty data pages with the bitmap of 0 from the first offset page, and the bitmap table and the first page offset are updated;
and if the second file is the file to be continuously transmitted, addressing to the second offset page through the second page offset, starting paging storage of the second file from the second offset page, and updating the bitmap and the second page offset.
According to another embodiment of the present application, a file transmission method for a Flash memory, which checks a second file to obtain a check result, and determines a transmission state of the second file according to the check result, includes:
comparing the second version number of the second file with the first version number of the first file, and if the second version number is the same as the first version number, the transmission state of the second file is a file to be subjected to supplementary transmission or a file to be continuously transmitted;
and if the second version number is different from the first version number, erasing all data in the bitmap area and the data area, wherein the transmission state of the second file is a new file to be transmitted.
According to another embodiment of the present application, a file transmission method for a Flash memory, which checks a second file to obtain a check result, and determines a transmission state of the second file according to the check result, includes:
the second file is verified through the checksum, and if the checksum is correct, the transmission state of the second file is that the transmission is completed;
and if the checksum is wrong, erasing all data in the bitmap area and the data area, wherein the transmission state of the second file is a new file to be transmitted.
In a second aspect, an embodiment of the present application provides a file transfer method for a Flash memory, where the file transfer method is used for a second terminal in communication connection with a first terminal in some embodiments of the present application, and the file transfer method for the Flash memory includes:
and receiving a file transmission request of the first terminal, and sending a file to the first terminal, wherein the file comprises attribute information, and the attribute information comprises a version number, a size and a checksum.
The file transmission method of the Flash memory in the embodiment of the application has at least the following beneficial effects:
1. according to the file transmission request of the first terminal, the file data to be sent is determined, all the file data do not need to be transmitted, and the file transmission efficiency is improved;
2. the sent file comprises the attribute information, so that the first terminal can conveniently check the file, and the integrity and reliability of file transmission are ensured.
According to another embodiment of the present application, a file transfer method for a Flash memory, receiving a file transfer request from a first terminal, and sending a file to the first terminal, includes:
receiving a file transmission request sent by a first terminal, and if the file transmission request is a new file transmission request, sending a new file to the first terminal, wherein the new file comprises attribute information and content data;
if the file transmission request is a file supplement transmission request which comprises a first page offset and a bitmap table, respectively acquiring first content data corresponding to all empty data pages with bitmaps of 0 according to the first page offset and the bitmap table, and sending a file to be supplemented to the first terminal, wherein the file to be supplemented comprises attribute information and the first content data;
and if the file transmission request is a file continuous transmission request which comprises a second page offset, acquiring second content data transmitted from the second offset page according to the second page offset, and sending the file to be continuously transmitted to the first terminal, wherein the file to be continuously transmitted comprises attribute information and the second content data.
In a third aspect, an embodiment of the present application provides a terminal, including: at least one processor, and a memory communicatively coupled to the at least one processor; the storage stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the file transfer method of the Flash storage according to some embodiments of the present application.
The terminal of the embodiment of the application has at least the following beneficial effects:
1. the storage area of the Flash memory is divided into a bitmap area and a data area, and related data of a file is stored into the corresponding storage area according to pages by utilizing a paging storage technology, so that the data can be transmitted and stored at the same time, and the data loss caused by the system power failure is avoided;
2. by inquiring the first page of the bitmap area, the paging storage state of the stored file can be read, so that the file data to be transmitted can be determined, and the transmission efficiency of the file is improved;
3. by inquiring the home page of the data area, the attribute information of the stored file can be read, so that the file to be continuously transmitted or the file to be complementarily transmitted can be verified, and the integrity and the reliability of file transmission are ensured;
4. the tail page of the file data stored in the data area can be addressed through the page offset stored in the bitmap area, so that the addressing time is shortened, and the storage space of the data area is utilized to the maximum extent;
5. after the system is restarted after power failure, the file transmission breakpoint of the system in the power failure can be positioned according to the bitmap table and the page offset which are stored in the bitmap area, so that file continuous transmission or file supplementary transmission can be realized, and the reliability of file transmission is improved.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform a file transfer method of a Flash memory according to some embodiments of the present application.
The computer-readable storage medium of the embodiment of the application has at least the following beneficial effects:
1. the storage area of the Flash memory is divided into a bitmap area and a data area, and related data of a file is stored into the corresponding storage area according to pages by utilizing a paging storage technology, so that the data can be transmitted and stored at the same time, and the data loss caused by the system power failure is avoided;
2. by inquiring the first page of the bitmap area, the paging storage state of the stored file can be read, so that the file data to be transmitted can be determined, and the transmission efficiency of the file is improved;
3. by inquiring the home page of the data area, the attribute information of the stored file can be read, so that the file to be continuously transmitted or the file to be complementarily transmitted can be verified, and the integrity and the reliability of file transmission are ensured;
4. the tail page of the file data stored in the data area can be addressed through the page offset stored in the bitmap area, so that the addressing time is shortened, and the storage space of the data area is utilized to the maximum extent;
5. after the system is restarted after power failure, the file transmission breakpoint of the system in the power failure can be positioned according to the bitmap table and the page offset which are stored in the bitmap area, so that file continuous transmission or file supplementary transmission can be realized, and the reliability of file transmission is improved.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
FIG. 1 is a schematic diagram illustrating a memory area division of a Flash memory according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a file transfer method of a Flash memory according to an embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating an embodiment of step S230 in FIG. 2;
FIG. 4 is a flowchart illustrating an embodiment of step S240 in FIG. 2;
FIG. 5 is a flowchart illustrating an embodiment of step S250 of FIG. 2;
FIG. 6 is a flowchart illustrating an embodiment of step S260 of FIG. 2;
fig. 7 is a flowchart illustrating another specific embodiment of a file transmission method for a Flash memory in the embodiment of the present application.
Detailed Description
The conception and the resulting technical effects of the present application will be clearly and completely described below in conjunction with the embodiments to fully understand the objects, features and effects of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all embodiments, and other embodiments obtained by those skilled in the art without inventive efforts based on the embodiments of the present application belong to the protection scope of the present application.
In the description of the present application, if an orientation description is referred to, for example, the directions or positional relationships indicated by "front", "rear", "left", "right", etc. are based on the directions or positional relationships shown in the drawings, only for convenience of description and simplification of description, but not for indicating or implying that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present application.
In the description of the embodiments of the present application, if "a number" is referred to, it means one or more, if "a plurality" is referred to, it means two or more, and if "more than", "less than", or "more than" is referred to, it is understood that the number is not included. If reference is made to "first" or "second", this should be understood to distinguish between features and not to indicate or imply relative importance or to implicitly indicate the number of indicated features or to implicitly indicate the precedence of the indicated features.
Flash Memory (Flash Memory) is a Non-Volatile Memory, can hold data for a long time even without current supply, and has a storage characteristic equivalent to a hard disk, which is the basis of Flash Memory becoming a storage medium of various portable digital devices. Flash memories are non-volatile memories that can be erased and reprogrammed in blocks of memory cells. The write operation of any Flash device can only be performed in an empty cell or an erased cell, and the erase operation must be performed before the write operation is performed. However, when the Flash memory performs a write operation, if the write operation is interrupted due to a system power failure, the written data is easily lost.
Based on this, the embodiment of the application provides a file transmission method, a terminal and a storage medium for a Flash memory, which can avoid data loss caused by system power failure and improve the reliability of file transmission.
Referring to fig. 1, a schematic diagram of dividing a storage area of a Flash memory in an embodiment of the present application is shown. As shown in fig. 1, the Flash memory according to the embodiment of the present application is used for storing data in a paging manner, and includes: the data area, the first page of the data area is used for storing the attribute information of the file, the other pages are used for storing the content data of the file, and the attribute information comprises a version number, a size and a checksum; the bitmap area, the first page of the bitmap area is used for storing a bitmap table, the other pages are used for storing page offset, the bitmap table is used for recording the bitmap of each page in the data area, the bitmap is used for identifying the data storage state, the page offset is used for pointing to the offset page, and the offset page is the tail page of the file stored in the data area.
In the embodiment of the application, a storage area of a Flash memory is divided into a bitmap area and a data area, the bitmap area is used for storing a bitmap and a page offset of each page in the data area, and the data area is used for storing attribute information and content data of a file. By adopting a paging storage mode, the data can be transmitted and stored at the same time, the data storage efficiency can be improved, and the data loss caused by the system power failure can be avoided.
The basic idea of paging is to divide the logical space of a program and the physical space of a memory into a plurality of pages according to the same size, and to allocate the pages as units. Dividing a physical memory into a plurality of memory blocks with fixed sizes, which are called physical pages; dividing the logical address space also into blocks of equal size, called logicsAnd editing the page. The page table is a special data structure, is placed in a page table area of a system space, and stores the corresponding relation between a logical page and a physical page frame. Each process has its own page table to implement address mapping from page number to physical block number. The address mapping comprises the following steps: analyzing the logical address, finding the logical page where the logical address is located and the offset address of the logical address in the page; searching the page table, and finding out the physical page number corresponding to the page table from the page table according to the logical page number; and synthesizing the physical address, and finally determining the physical address according to the physical page number and the page offset address. The page sizes are all integer powers of 2. For a given logical address, its high portion may be directly used as the logical page number and its low portion as the page offset address. For example, assuming that the page size is 4KB, i.e., a power of 12 of 2, and the logical address is 32 bits, the lowest 12 bits in one logical address are the page offset address, and the remaining 20 bits are the logical page number. A logical page number and a page offset may be calculated from the logical address and page size, the logical page number being the logical address/page size and the page offset being the logical address% page size. Assuming that the physical page number is f, the page offset address is offset, and each page size is 2nthen the corresponding physical address is f 2n+offset。
The page table gives the corresponding relation between the task logical page number and the physical page number in the memory, and the physical page table describes the use condition of each physical page in the memory space. In this embodiment of the present application, the bitmap table belongs to a physical page table, and is a set of bitmaps, where the bitmaps are used to mark a data storage status of each page, and the data storage status includes two statuses, namely stored data and empty data, and if the bitmap of a certain page is 1, it indicates that the page has stored data, and if the bitmap of a certain page is 0, it indicates that the page is empty.
The memory allocation process is illustrated as follows: for a new task, calculating the number of pages N required by the new task, and then checking a bitmap to see whether N idle physical pages exist; if there are enough free physical pages, applying for a page table with length N, and filling the starting address of the page table into the control block of the task; distributing N idle physical pages, filling the conversion of the N idle physical pages into a page table, and establishing a direct corresponding relation between a logical page and the physical page; the bitmap is modified to mark those physical pages that have just been occupied.
In the embodiment of the present application, a first page of the data area is used to store attribute information of a file, where the attribute information includes a version number, a size, and a checksum. The checksum is the accumulation of the number of transmission bits, and when the transmission is over, the receiver can determine whether all data has been received according to the number, and if the numbers match, the transmission is complete. Checking the checksum ensures the integrity and accuracy of the transmitted data. IP, ICMP, UDP and TCP headers all have checksum fields and are all 16 bits in size. When data is sent, the checksum field is set to be 0, the data to be checked is regarded as digital composition with 16 bits as a unit, and binary inverse code summation is carried out in sequence; the result obtained is stored in the checksum field. When receiving data, the header is regarded as a digital composition with 16 bits as a unit, and binary inverse code summation is sequentially carried out, wherein the binary inverse code summation comprises a checksum field; checking whether the result of the calculated checksum is 0 or not, if so, indicating that the checksum is correct by being divided by an integer; otherwise, the checksum is erroneous and the protocol stack discards the packet.
In some embodiments, the bitmap area is proportional to the storage capacity of the data area. For example, for a file of 1MB, the data area is allocated with a storage capacity of 1MB, and the bitmap area is allocated with a storage capacity of 4KB at an allocation ratio of 1/256. The allocation ratio may be adjusted according to the actual storage space.
Referring to fig. 2, a flowchart of a specific embodiment of a file transmission method of a Flash memory in the embodiment of the present application is shown. As shown in fig. 2, the file transmission method of the Flash memory according to the embodiment of the present application is applied to a first terminal having the Flash memory according to some embodiments of the present application, and the first terminal is in communication connection with a second terminal, and includes the following specific steps:
s210, inquiring a home page of the bitmap area to obtain a bitmap table;
s220, inquiring a home page of the data area to acquire attribute information of the first file;
s230, initializing a bitmap area according to the bitmap and the attribute information of the first file to obtain an initialization result;
s240, sending a file transmission request to the second terminal according to the initialization result;
s250, receiving a second file sent by a second terminal, storing the second file in a data area, and updating a bitmap area;
and S260, verifying the second file to obtain a verification result, and determining the transmission state of the second file according to the verification result.
In the embodiment of the application, both the first terminal and the second terminal have a file transfer function, wherein the first terminal includes a Flash memory, the second terminal is a terminal having the file transfer function, and both the first terminal and the second terminal may be mobile terminal devices or non-mobile terminal devices. The mobile terminal equipment can be a mobile phone, a tablet computer, a notebook computer, a palm computer, vehicle-mounted terminal equipment, wearable equipment, a super mobile personal computer, a netbook or a personal digital assistant and the like; the non-mobile terminal device may be a personal computer, a television, a teller machine, a self-service machine, or the like. File transfer is the transfer of a file or a part of a file from one terminal device to another based on a certain transfer protocol (TCP/UDP/FTP/TFTP, etc.). The first terminal and the second terminal may be in direct communication connection, such as communication connection through WiFi connection or bluetooth; or through a third-party network communication connection, such as a mobile internet (2G/3G/4G/5G, etc.).
In step S210, the bitmap table is used to record a bitmap of each page in the data area, and the bitmap is used to identify the data storage status. In some embodiments, the bitmap is represented by binary 0 and 1, and if the bitmap is 0, the current page is empty, and if the bitmap is 1, the current page stores data. The page of the bitmap area is inquired, and the paging storage state of the stored file can be quickly read, so that the file data to be transmitted can be determined, and the file transmission efficiency is improved.
In step S220, the first file is a file already stored in the data area, and may be complete file data or a part of file data that is not completely transmitted. The attribute information of the first file includes a version number, a size, and a checksum of the first file. The home page of the data area is inquired, the attribute information of the stored file can be quickly read, so that the file to be continuously transmitted or the file to be complemented can be verified, and the integrity and the reliability of file transmission are ensured.
Referring to fig. 3, a flowchart of an embodiment of step S230 in fig. 2 is shown. As shown in fig. 3, the method for completing initialization of the bitmap area according to the bitmap and the attribute information of the first file to obtain an initialization result includes the following specific steps:
s310, if the bitmap is empty and the attribute information of the first file is also empty, the obtained initialization result is a new file to be transmitted;
s320, if the bitmap is empty and the attribute information of the first file is not empty, sequentially inquiring other pages of the data area from the second page of the data area, marking the bitmap of the empty data page as 0, marking the bitmap of the data page as 1, setting the empty data page with the last marked bitmap as 0 as a first offset page, storing the offset of the first page corresponding to the first offset page into the bitmap area, and obtaining an initialization result as a file to be retransmitted;
s330, if the bitmap is not empty, inquiring other pages of the bitmap area, obtaining the offset of the second page, and obtaining an initialization result which is a file to be continuously transmitted.
Step S310 to step S330 initialize the bitmap area, mainly determining the file data that needs to be requested to be transmitted, where the file data requested to be transmitted includes the following three types: complete data packet, data page to be continuously transmitted and data page to be complementarily transmitted. If the file data requested to be transmitted is a complete data packet, it indicates that the previous file has been transmitted, and if a new file is to be written, all the stored data needs to be erased. If the file data requested to be transmitted is the data page to be transmitted continuously, it indicates that the previous file is not transmitted completely, and the data which is not transmitted completely needs to be received continuously. If the file data requested to be transmitted is the data page to be retransmitted, it indicates that the previously received data packet is incomplete, and the previously missed data needs to be received again. And when the file transmission is stopped, writing the bitmap area. When the file transmission is started next time, only the first page of the bitmap area is read, if the first page is empty, the abnormal power failure is indicated, otherwise, the bitmap table and the page offset of the bitmap area can be directly read, and the file data required to be transmitted is determined.
Referring to fig. 4, a flowchart of an embodiment of step S240 in fig. 2 is shown. As shown in fig. 4, sending a file transfer request to the second terminal according to the initialization result includes the following specific steps:
s410, if the initialization result is that a new file is to be transmitted, sending a new file transmission request to a second terminal;
s420, if the initialization result is the file to be subjected to supplementary transmission, sending a file supplementary transmission request to the second terminal, wherein the file supplementary transmission request comprises a first page offset and a bit map;
and S430, if the initialization result is the file to be continuously transmitted, transmitting a file continuous transmission request to the second terminal, wherein the file continuous transmission request comprises a second page offset.
After initializing the bitmap area, steps S410 to S430 provide three file transmission requests, respectively, and if the stored file data is complete file data, a new file transmission request is sent; if the stored file data is the file data to be continuously transmitted, a file continuous transmission request is sent, and the file continuous transmission request comprises a second page offset; and if the stored file data is the file data to be subjected to supplementary transmission, sending a file supplementary transmission request, wherein the file supplementary transmission request comprises a first page offset and a bit map. The file supplementary transmission request comprises the first page offset and the bit diagram, so that the second terminal can quickly address the data page to be supplemented and transmitted, the second terminal only needs to send the data page to be supplemented and does not need to transmit all file data, and the file supplementary transmission efficiency is improved. The file continuous transmission request comprises the second page offset, so that the second terminal can quickly address the initial page (namely the tail page of the stored file) of the file to be continuously transmitted, the second terminal only needs to send the data page to be continuously transmitted without transmitting all file data, and the file continuous transmission efficiency is improved.
Referring to fig. 5, a flowchart of an embodiment of step S250 in fig. 2 is shown. As shown in fig. 5, receiving a second file sent by a second terminal, storing the second file in a data area, and updating a bitmap area includes the following specific steps:
s510, receiving a second file sent by a second terminal, and storing attribute information of the second file to a home page of a data area;
s520, if the second file is a new file, storing content data of the second file in a paging mode from a second page of the data area, writing a bitmap of the stored data page into a bitmap, storing the bitmap into a first page of the bitmap area, and storing a page offset of the second file from the second page of the bitmap area;
s530, if the second file is a file to be retransmitted, the second file is addressed to a first offset page through the first page offset, all empty data pages with the bitmaps 0 are inquired through a bitmap table, content data of the second file are stored to the corresponding empty data pages with the bitmaps 0 from the first offset page respectively, and the bitmap table and the first page offset are updated;
and S540, if the second file is a file to be continuously transmitted, addressing to a second offset page through a second page offset, starting paging from the second offset page to store the second file, and updating the bitmap and the second page offset.
Steps S510 to S540 provide three different ways of receiving and storing the second file for the three file transfer requests, respectively. In step S510, the attribute information of the second file is stored in the top page of the data area, and the attribute information of the second file can be read by querying the top page of the data area, so that the second file can be verified, and the integrity and reliability of transmission of the second file can be ensured. Step S520 mainly aims at the case that the second file is a new file, before writing the new file, all data of the bitmap area and the data area are erased, the attribute information of the new file is stored in the top page of the data area, content data of the new file is stored in a paging manner from the second page of the data area, the bitmap of the stored data page is written into the bitmap table, the bitmap table is stored in the top page of the bitmap area, and the page offset of the new file is stored from the second page of the bitmap area. Step S530 mainly stores the attribute information of the second file in the top page of the data area, where the attribute information of the first file and the attribute information of the second file are stored, in case that the second file is a file to be newly transmitted. The method comprises the steps of addressing to a first offset page through a first page offset, inquiring all empty data pages with a bitmap of 0 through a bitmap table, respectively storing content data of a second file to the corresponding empty data pages with the bitmap of 0 from the first offset page, setting a bitmap of the empty data pages with the content data complemented to be 1, and correspondingly updating the first page offset due to the change of the bitmap table. And if the file is completed, the file data stored in the data area is a complete data packet, the bitmaps of all data pages in the bitmap are all 1, and the tail page of the file data stored in the data area is used as a new page offset. Step S540 stores the attribute information of the second file in the top page of the data area, mainly for the case where the second file is a file to be continuously transferred, where the top page of the data area stores the attribute information of the first file and the attribute information of the second file. The second offset page is addressed through the second page offset, the data page to be continuously transmitted is stored in a paging mode from the second offset page, the breakpoint of the last file transmission can be accurately positioned, the data which is not completely transmitted last time is continuously transmitted from the breakpoint, and the storage space of the data area is utilized to the maximum extent.
Referring to fig. 6, a flowchart of a specific embodiment of step S260 in fig. 2 is shown. As shown in fig. 6, verifying the second file to obtain a verification result, and determining the transmission state of the second file according to the verification result, includes the following specific steps:
s610, comparing a second version number of the second file with a first version number of the first file, wherein if the second version number is the same as the first version number, the transmission state of the second file is a file to be subjected to supplementary transmission or a file to be continuously transmitted;
and S620, if the second version number is different from the first version number, erasing all data in the bitmap area and the data area, and the transmission state of the second file is a new file to be transmitted.
Step S610 and step S620 are performed to verify the version number of the second file, after receiving the second file sent by the second terminal, read the second version number from the attribute information of the second file, compare the second version number of the second file with the first version number of the first file, and if the two version numbers are the same, indicate that a part of the second file is stored; if the two version numbers are different, it means that the second file is not stored. The version number of the second file is verified, and the transmission state of the second file can be determined, so that the file can be transmitted in a targeted manner, repeated transmission is avoided, and the file transmission efficiency is improved.
In other embodiments, the verifying the second file to obtain a verification result, and determining the transmission state of the second file according to the verification result includes the following specific steps:
s630, the second file is verified through the checksum, and if the checksum is correct, the transmission state of the second file is that the transmission is completed;
and S640, if the checksum is wrong, erasing all data in the bitmap area and the data area, wherein the transmission state of the second file is a new file to be transmitted.
Step S630 and step S640 are to check the checksum of the second file, when the transmission is finished, determine whether all data has been received according to the checksum value, and if the values match, indicate that the transmission has been completed. The check sum can determine the transmission state of the second file, and the integrity and the accuracy of the transmission data are ensured. The second file is checked, and the version number and/or checksum of the second file may be checked.
Referring to fig. 7, a flowchart illustrating another specific embodiment of a file transmission method for a Flash memory in the embodiment of the present application is shown. As shown in fig. 7, a file transmission method of a Flash memory according to an embodiment of the present application is used for a second terminal in communication connection with a first terminal according to some embodiments of the present application, and includes the following specific steps:
and S710, receiving a file transmission request of the first terminal, and sending a file to the first terminal, wherein the file comprises attribute information, and the attribute information comprises a version number, a size and a checksum.
In step S710, a file transmission request of the first terminal is received, where the file transmission request mainly includes the following three types: a new file transmission request, a file to be retransmitted request and a file to be retransmitted request. On one hand, the file data to be sent is determined according to the file transmission request of the first terminal, all the file data do not need to be transmitted, and the file transmission efficiency is improved. On the other hand, the sent file comprises the attribute information, so that the first terminal can conveniently check the file, and the integrity and the reliability of file transmission are ensured.
In some embodiments, step S710 includes:
s711, receiving a file transmission request sent by a first terminal;
s712, if the file transmission request is a new file transmission request, sending a new file to the first terminal, wherein the new file comprises attribute information and content data;
s713, if the file transmission request is a file supplement transmission request which comprises a first page offset and a bitmap table, respectively acquiring first content data corresponding to all empty data pages with bitmaps of 0 according to the first page offset and the bitmap table, and sending a file to be supplemented to the first terminal, wherein the file to be supplemented comprises attribute information and the first content data;
and S714, if the file transmission request is a file continuous transmission request, and the file continuous transmission request comprises a second page offset, acquiring second content data transmitted from the second offset page according to the second page offset, and sending the file to be continuously transmitted to the first terminal, wherein the file to be continuously transmitted comprises attribute information and the second content data.
Step S711 to step S714 correspondingly transmit different file data for the three file transmission requests, respectively. And if the transmission of the new file is requested, transmitting the attribute information and the content data of the new file to the first terminal. And if the file is requested to be retransmitted, respectively acquiring first content data corresponding to all empty data pages with the bitmap of 0 according to the first page offset and the bitmap table sent by the first terminal, and respectively sending the first content data and the attribute information of the retransmitted file to the first terminal. The method for acquiring the first content data corresponding to all empty data pages with bitmaps 0 according to the first page offset and the bitmap table sent by the first terminal specifically includes: the second terminal stores a complete data packet, data needs to be retransmitted due to incomplete last data transmission, the complete data packet is paged according to a paging storage rule of the first terminal, the complete data packet can be paged by adopting the same page size as the first terminal, each page is the same as each page in a data storage area of the first terminal, the second terminal can query a data page corresponding to the first offset page according to the offset of the first page, and can query data pages corresponding to all empty data pages with the bitmap of 0 according to the bitmap table. And if the file is requested to be continuously transmitted, acquiring second content data transmitted from a second offset page according to the second page offset sent by the first terminal, and respectively sending the second content data and the attribute information of the file to be continuously transmitted to the first terminal. The acquiring, according to the second page offset sent by the first terminal, second content data transmitted from the second offset page specifically includes: the second terminal stores the complete data packet, the file needs to be continuously transmitted because the transmission is not completed last time, the complete data packet is paged according to the paging storage rule of the first terminal, the complete data packet can be paged by adopting the page size same as that of the first terminal, each page is the same as that in the data storage area of the first terminal, and then the second terminal can inquire the data page corresponding to the second offset page (namely, the breakpoint of the last data transmission) according to the offset of the second page and start to transmit all the data pages which are not transmitted last time from the data page corresponding to the second offset page.
The terminal comprises at least one processor and a memory which is in communication connection with the at least one processor; the storage stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the file transfer method of the Flash storage according to some embodiments of the present application.
According to the terminal, the storage area of the Flash memory is divided into the bitmap area and the data area, the paging storage technology is utilized, the related data of the file are stored into the corresponding storage area according to the page, the data can be transmitted and stored at the same time, and therefore data loss caused by system power failure is avoided; by inquiring the first page of the bitmap area, the paging storage state of the stored file can be read, so that the file data to be transmitted can be determined, and the transmission efficiency of the file is improved; by inquiring the home page of the data area, the attribute information of the stored file can be read, so that the file to be continuously transmitted or the file to be complementarily transmitted can be verified, and the integrity and the reliability of file transmission are ensured; the tail page of the file data stored in the data area can be addressed through the page offset stored in the bitmap area, so that the addressing time is shortened, and the storage space of the data area is utilized to the maximum extent; after the system is restarted after power failure, the file transmission breakpoint of the system in the power failure can be positioned according to the bitmap table and the page offset which are stored in the bitmap area, so that file continuous transmission or file supplementary transmission can be realized, and the reliability of file transmission is improved.
In an embodiment of the terminal, the Processor may be a Central Processing Unit (CPU), or may be another general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or another Programmable logic device, a discrete Gate or a transistor logic device, a discrete hardware component, or the like. The general processor may be a microprocessor or the processor may be any conventional processor or the like, the processor is a control center of an operable device of a file transfer method of a Flash memory, and various interfaces and lines are used to connect various parts of the operable device of the file transfer method of the entire Flash memory.
The memory can be used for storing computer programs and/or modules, and the processor can be used for implementing various functions of the executable device of the file transmission method of the Flash memory by operating or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
A computer-readable storage medium of embodiments of the present application stores computer-executable instructions for causing a computer to perform a file transfer method of a Flash memory of some embodiments of the present application.
According to the computer-readable storage medium, the storage area of the Flash memory is divided into the bitmap area and the data area, the paging storage technology is utilized, the related data of the file are stored into the corresponding storage area according to pages, the data can be transmitted and stored at the same time, and therefore data loss caused by system power failure is avoided; by inquiring the first page of the bitmap area, the paging storage state of the stored file can be read, so that the file data to be transmitted can be determined, and the transmission efficiency of the file is improved; by inquiring the home page of the data area, the attribute information of the stored file can be read, so that the file to be continuously transmitted or the file to be complementarily transmitted can be verified, and the integrity and the reliability of file transmission are ensured; the tail page of the file data stored in the data area can be addressed through the page offset stored in the bitmap area, so that the addressing time is shortened, and the storage space of the data area is utilized to the maximum extent; after the system is restarted after power failure, the file transmission breakpoint of the system in the power failure can be positioned according to the bitmap table and the page offset which are stored in the bitmap area, so that file continuous transmission or file supplementary transmission can be realized, and the reliability of file transmission is improved.
The embodiments of the present application have been described in detail with reference to the drawings, but the present application is not limited to the embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present application. Furthermore, the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
Claims (10)
1. A file transmission method of a Flash memory is characterized in that the Flash memory is used for storing data in a paging mode, and comprises the following steps: the data area comprises a first page and other pages, wherein the first page of the data area is used for storing attribute information of a file, the other pages are used for storing content data of the file, and the attribute information comprises a version number, a size and a checksum; a bitmap area, a first page of the bitmap area is used for storing a bitmap table, other pages are used for storing page offsets, the bitmap table is used for recording a bitmap of each page in the data area, the bitmap is used for identifying a data storage state, the page offsets are used for pointing to offset pages, and the offset pages are tail pages of the files stored in the data area; the file transmission method of the Flash memory is used for a first terminal with the Flash memory, the first terminal is in communication connection with a second terminal, and the file transmission method of the Flash memory comprises the following steps:
inquiring a home page of the bitmap area to obtain the bitmap;
inquiring a home page of the data area to acquire attribute information of the first file;
completing initialization of the bitmap area according to the bitmap and the attribute information of the first file to obtain an initialization result;
sending a file transmission request to the second terminal according to the initialization result;
receiving a second file sent by the second terminal, storing the second file in the data area, and updating the bitmap area;
and verifying the second file to obtain a verification result, and determining the transmission state of the second file according to the verification result.
2. The file transfer method of the Flash memory according to claim 1, wherein the initializing the bitmap area according to the bitmap and the attribute information of the first file to obtain an initialization result comprises:
if the bitmap is empty and the attribute information of the first file is also empty, the obtained initialization result is a new file to be transmitted;
if the bitmap is empty and the attribute information of the first file is not empty, sequentially inquiring other pages of the data area from a second page of the data area, marking the bitmap of the empty data page as 0, marking the bitmap of the data page as 1, setting the empty data page with the last marked bitmap as 0 as a first offset page, storing a first page offset corresponding to the first offset page into the bitmap area, and obtaining an initialization result which is a file to be subjected to supplementary transmission;
and if the bitmap is not empty, inquiring other pages of the bitmap area, acquiring the offset of the second page, and obtaining an initialization result which is a file to be continuously transmitted.
3. The file transmission method of the Flash memory according to claim 2, wherein the sending of the file transmission request to the second terminal according to the initialization result includes:
if the initialization result is a new file to be transmitted, sending a new file transmission request to the second terminal;
if the initialization result is a file to be subjected to supplementary transmission, sending a file supplementary transmission request to the second terminal, wherein the file supplementary transmission request comprises the first page offset and the bitmap;
and if the initialization result is the file to be continuously transmitted, sending a file continuous transmission request to the second terminal, wherein the file continuous transmission request comprises the second page offset.
4. The file transfer method of the Flash memory according to claim 3, wherein the receiving a second file sent by the second terminal, storing the second file in the data area, and updating the bitmap area comprises:
receiving a second file sent by a second terminal, storing attribute information of the second file in a first page of the data area, starting paging from the second page of the data area to store content data of the second file if the second file is a new file, writing a bitmap of the stored data page into the bitmap table, storing the bitmap table in the first page of the bitmap area, and starting storing a page offset of the second file from the second page of the bitmap area;
if the second file is a file to be complemented, the second file is addressed to the first offset page through the first page offset, all empty data pages with a bitmap of 0 are inquired through the bitmap table, content data of the second file are respectively stored to the corresponding empty data pages with the bitmap of 0 from the first offset page, and the bitmap table and the first page offset are updated;
and if the second file is a file to be continuously transmitted, addressing to a second offset page through the second page offset, starting paging from the second offset page to store the second file, and updating the bitmap and the second page offset.
5. The file transmission method of the Flash memory according to claim 4, wherein the verifying the second file to obtain a verification result, and determining the transmission state of the second file according to the verification result includes:
comparing a second version number of the second file with a first version number of the first file, wherein if the second version number is the same as the first version number, the transmission state of the second file is a file to be subjected to supplementary transmission or a file to be subjected to continuous transmission;
and if the second version number is different from the first version number, erasing all data in the bitmap area and the data area, wherein the transmission state of the second file is a new file to be transmitted.
6. The file transmission method of the Flash memory according to claim 4 or 5, wherein the verifying the second file to obtain a verification result, and determining the transmission state of the second file according to the verification result includes:
the second file is verified through a checksum, and if the checksum is correct, the transmission state of the second file is that the transmission is completed;
and if the checksum is wrong, erasing all data in the bitmap area and the data area, wherein the transmission state of the second file is a new file to be transmitted.
7. A file transfer method of a Flash memory, which is used for a second terminal in communication connection with the first terminal of any one of claims 1 to 6, the file transfer method of the Flash memory comprising:
and receiving a file transmission request of the first terminal, and sending a file to the first terminal, wherein the file comprises attribute information, and the attribute information comprises a version number, a size and a checksum.
8. The file transmission method of the Flash memory according to claim 7, wherein the receiving the file transmission request of the first terminal and sending the file to the first terminal includes:
receiving a file transmission request sent by the first terminal, and if the file transmission request is a new file transmission request, sending a new file to the first terminal, wherein the new file comprises the attribute information and the content data;
if the file transmission request is a file supplement transmission request which comprises the first page offset and the bitmap table, respectively acquiring first content data corresponding to all empty data pages with bitmaps of 0 according to the first page offset and the bitmap table, and sending a file to be supplemented to the first terminal, wherein the file to be supplemented comprises the attribute information and the first content data;
if the file transmission request is a file continuous transmission request which comprises the second page offset, second content data transmitted from the second offset page is obtained according to the second page offset, and a file to be continuously transmitted is sent to the first terminal, wherein the file to be continuously transmitted comprises the attribute information and the second content data.
9. A terminal, comprising: at least one processor, and a memory communicatively coupled to at least one of the processors; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to:
the file transfer method of the Flash memory of any of claims 1 to 6;
or,
the file transfer method of a Flash memory according to claim 7 or 8.
10. A computer-readable storage medium having computer-executable instructions stored thereon for causing a computer to perform:
the file transfer method of the Flash memory according to any of claims 1 to 6;
or,
the file transfer method of a Flash memory according to claim 7 or 8.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010439330.6A CN111737161B (en) | 2020-05-22 | 2020-05-22 | File transmission method, terminal and storage medium of Flash memory |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010439330.6A CN111737161B (en) | 2020-05-22 | 2020-05-22 | File transmission method, terminal and storage medium of Flash memory |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111737161A true CN111737161A (en) | 2020-10-02 |
| CN111737161B CN111737161B (en) | 2024-03-26 |
Family
ID=72647599
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010439330.6A Active CN111737161B (en) | 2020-05-22 | 2020-05-22 | File transmission method, terminal and storage medium of Flash memory |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111737161B (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113132462A (en) * | 2021-03-15 | 2021-07-16 | 深圳震有科技股份有限公司 | File data transmission method, system and terminal equipment of 5G virtualized network element |
| CN114827132A (en) * | 2022-06-27 | 2022-07-29 | 河北东来工程技术服务有限公司 | Ship traffic file transmission control method, system, device and storage medium |
| CN118540031A (en) * | 2024-06-29 | 2024-08-23 | 深圳市战音科技有限公司 | File transmission method, communication device and storage medium |
| CN118869144A (en) * | 2024-07-03 | 2024-10-29 | 北京理工大学 | A Bitmap-based FPGA on-orbit programming power-off data injection method |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080082525A1 (en) * | 2006-09-29 | 2008-04-03 | Cha Myung Hoon | File storage system, file storing method and file searching method therein |
| US20090161955A1 (en) * | 2007-12-19 | 2009-06-25 | Canon Kabushiki Kaisha | Metadata determination method and image forming apparatus |
| US7865677B1 (en) * | 2006-06-29 | 2011-01-04 | Emc Corporation | Enhancing access to data storage |
| CN102591944A (en) * | 2010-12-16 | 2012-07-18 | 微软公司 | Partial recall of deduplicated files |
| US20130073813A1 (en) * | 2011-09-15 | 2013-03-21 | Josef Michael Bacik | Mechanism for Saving a Snapshot of Free Space of a File System on Persistent Storage |
| CN103164346A (en) * | 2011-12-12 | 2013-06-19 | 苹果公司 | Lba bitmap usage |
| CN103699341A (en) * | 2013-12-17 | 2014-04-02 | 飞天诚信科技股份有限公司 | Method for writing data into storage equipment |
| CN107291405A (en) * | 2017-08-17 | 2017-10-24 | 北京中电华大电子设计有限责任公司 | A kind of NorFlash data managing method and device |
| CN109309734A (en) * | 2018-11-27 | 2019-02-05 | 北京百度网讯科技有限公司 | Method and apparatus for transmitting data |
-
2020
- 2020-05-22 CN CN202010439330.6A patent/CN111737161B/en active Active
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7865677B1 (en) * | 2006-06-29 | 2011-01-04 | Emc Corporation | Enhancing access to data storage |
| US20080082525A1 (en) * | 2006-09-29 | 2008-04-03 | Cha Myung Hoon | File storage system, file storing method and file searching method therein |
| US20090161955A1 (en) * | 2007-12-19 | 2009-06-25 | Canon Kabushiki Kaisha | Metadata determination method and image forming apparatus |
| CN102591944A (en) * | 2010-12-16 | 2012-07-18 | 微软公司 | Partial recall of deduplicated files |
| US20130073813A1 (en) * | 2011-09-15 | 2013-03-21 | Josef Michael Bacik | Mechanism for Saving a Snapshot of Free Space of a File System on Persistent Storage |
| CN103164346A (en) * | 2011-12-12 | 2013-06-19 | 苹果公司 | Lba bitmap usage |
| CN103699341A (en) * | 2013-12-17 | 2014-04-02 | 飞天诚信科技股份有限公司 | Method for writing data into storage equipment |
| CN107291405A (en) * | 2017-08-17 | 2017-10-24 | 北京中电华大电子设计有限责任公司 | A kind of NorFlash data managing method and device |
| CN109309734A (en) * | 2018-11-27 | 2019-02-05 | 北京百度网讯科技有限公司 | Method and apparatus for transmitting data |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113132462A (en) * | 2021-03-15 | 2021-07-16 | 深圳震有科技股份有限公司 | File data transmission method, system and terminal equipment of 5G virtualized network element |
| CN113132462B (en) * | 2021-03-15 | 2022-07-15 | 深圳震有科技股份有限公司 | File data transmission method, system and terminal equipment of 5G virtualized network element |
| CN114827132A (en) * | 2022-06-27 | 2022-07-29 | 河北东来工程技术服务有限公司 | Ship traffic file transmission control method, system, device and storage medium |
| CN118540031A (en) * | 2024-06-29 | 2024-08-23 | 深圳市战音科技有限公司 | File transmission method, communication device and storage medium |
| CN118869144A (en) * | 2024-07-03 | 2024-10-29 | 北京理工大学 | A Bitmap-based FPGA on-orbit programming power-off data injection method |
| CN118869144B (en) * | 2024-07-03 | 2025-09-09 | 北京理工大学 | FPGA on-orbit programming power-off continuous data uploading method based on Bitmap |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111737161B (en) | 2024-03-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111737161B (en) | File transmission method, terminal and storage medium of Flash memory | |
| US20120005557A1 (en) | Virtual copy and virtual write of data in a storage device | |
| CN108874298B (en) | Data storage method and device | |
| US11614885B2 (en) | Data processing method for improving access performance of memory device and data storage device utilizing the same | |
| US9507639B2 (en) | Parallel computation with multiple storage devices | |
| KR20200100956A (en) | Apparatus and method for managing map data in memory system | |
| EP3377965B1 (en) | Data processing method, device, and system | |
| US10152274B2 (en) | Method and apparatus for reading/writing data from/into flash memory, and user equipment | |
| US11797194B2 (en) | Method and apparatus for performing access management of memory device in host performance booster architecture with aid of device side table information | |
| CN106648463B (en) | Nand Flash block management method and system | |
| US11354250B2 (en) | Apparatus for transmitting map information in memory system | |
| CN109542495A (en) | A kind of method for upgrading software and device | |
| CN116547652A (en) | Data processing method and data processing device for flash memory | |
| US20170371800A1 (en) | Memory system, and address mapping method and access method thereof | |
| KR20170086840A (en) | Data storage device and operating method thereof | |
| US11636042B2 (en) | Data processing method for improving access performance of memory device and data storage device utilizing the same | |
| US11663065B2 (en) | SCSI command set for error history logging in a memory system and operating method thereof | |
| US9594525B2 (en) | Data storage device and operating method thereof | |
| US12169649B2 (en) | Storage device with improved read-ahead performance and operation method thereof | |
| CN112148220B (en) | Method, device, computer storage medium and terminal for realizing data processing | |
| CN120050278B (en) | Data breakpoint transmission method, device, equipment and program product | |
| CN114780016A (en) | Data processing method, controller and system | |
| US20250362809A1 (en) | Memory system, host, operation method, and data processing system | |
| CN120909957B (en) | Data writing method and electronic equipment | |
| CN111708487A (en) | Data storage method and device and computer storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |