CN113885795B - Data storage method, device, terminal equipment and storage medium - Google Patents
Data storage method, device, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN113885795B CN113885795B CN202111114767.3A CN202111114767A CN113885795B CN 113885795 B CN113885795 B CN 113885795B CN 202111114767 A CN202111114767 A CN 202111114767A CN 113885795 B CN113885795 B CN 113885795B
- Authority
- CN
- China
- Prior art keywords
- data
- stored
- storage
- storage area
- temporary storage
- 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.)
- Active
Links
- 238000013500 data storage Methods 0.000 title claims abstract description 107
- 238000000034 method Methods 0.000 title claims abstract description 34
- 230000005540 biological transmission Effects 0.000 claims abstract description 87
- 230000006870 function Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 4
- 230000003139 buffering effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0608—Saving storage space on storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a data storage method, a device, terminal equipment and a storage medium, wherein the method comprises the following steps: acquiring a data transmission signal, and determining a data storage instruction according to the data transmission signal; generating a data temporary storage area according to the data storage instruction, and temporarily storing the data to be stored in the data temporary storage area; and storing the data to be stored according to the data temporary storage area. The invention can realize that the data to be stored is temporarily stored in the data temporary storage area, and then the stored data temporarily stored in the data temporary storage area is transferred to the corresponding data storage block area, so that the data can still be normally stored when the data to be stored is overlarge or the memory space of the terminal equipment for receiving the data is insufficient.
Description
Technical Field
The present invention relates to the field of data storage technologies, and in particular, to a data storage method, a data storage device, a terminal device, and a storage medium.
Background
Today in technology assisted life, people and various terminal devices such as photocopies have been surrounded in life by devices such as mobile phones, tablets, computers, televisions. In the prior art, data storage is often involved in transmitting the data, such as transmitting the data from a mobile phone to a tablet, and then storing the data on the tablet. However, in the prior art, when data to be stored is too large or the memory space of a terminal device receiving the data is insufficient, the data cannot be stored normally.
Thus, there is a need for improvements in the art.
Disclosure of Invention
The invention aims to solve the technical problems that the data cannot be normally stored due to overlarge data to be stored or insufficient memory space of terminal equipment for receiving the data in the prior art.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
in a first aspect, the present invention provides a data storage method, wherein the method comprises:
acquiring a data transmission signal, and determining a data storage instruction according to the data transmission signal;
generating a data temporary storage area according to the data storage instruction, and temporarily storing the data to be stored in the data temporary storage area;
and storing the data to be stored according to the data temporary storage area.
In one implementation method, the acquiring a data transmission signal, determining a data storage instruction according to the data transmission signal, includes:
acquiring the data transmission signal, and analyzing the data transmission signal to obtain a data transmission identifier;
and determining the data storage instruction according to the data transmission identifier.
In one implementation manner, the determining the data storage instruction according to the data transmission identifier includes:
extracting the data transmission identification, and inputting the data transmission identification into a preset instruction generation template;
and generating a template according to the instruction, and generating the data storage instruction.
In one implementation manner, the generating a data temporary storage area according to the data storage instruction, and temporarily storing the data to be stored in the data temporary storage area includes:
acquiring data to be stored according to the data storage instruction;
generating the data temporary storage area according to the data to be stored;
and temporarily storing the data to be stored in the data temporary storage area.
In one implementation manner, the generating the data temporary storage area according to the data to be stored includes:
acquiring the data volume of the data to be stored;
and generating the data temporary storage area according to the data quantity, wherein a plurality of data temporary storage areas are arranged.
In one implementation manner, the storing the data to be stored according to the data temporary storage area includes:
acquiring a positioning identifier corresponding to the data temporary storage area;
determining a data block corresponding to the positioning identifier according to the positioning identifier;
and transferring the data to be stored from the data temporary storage area to the data block.
In one implementation manner, the storing the data to be stored according to the data temporary storage area includes:
and if the data block has the same data as the data to be stored, not storing the data to be stored.
In a second aspect, an embodiment of the present invention further provides a data storage device, where the device includes:
the instruction determining module is used for acquiring a data transmission signal and determining a data storage instruction according to the data transmission signal;
the region generation module is used for generating a data temporary storage region according to the data storage instruction and temporarily storing the data to be stored in the data temporary storage region;
and the data storage module is used for storing the data to be stored according to the data temporary storage area.
In a third aspect, the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a data storage program stored in the memory and capable of running on the processor, where the processor implements the steps of the data storage method according to any one of the above schemes when the processor executes the data storage program.
In a fourth aspect, the present invention further provides a computer readable storage medium, where the computer readable storage medium stores a data storage program, where the data storage program, when executed by a processor, implements the steps of the data storage method according to any one of the above aspects.
The beneficial effects are that: compared with the prior art, the invention provides a data storage method, a device, a terminal device and a storage medium. And then, generating a data temporary storage area according to the data storage instruction, and temporarily storing the data to be stored in the data temporary storage area. And finally, storing the data to be stored according to the data temporary storage area. Therefore, even if the data to be stored is too large or the memory space of the terminal device receiving the data is insufficient, the stored data still can have a temporary storage space which can be temporarily stored, so that the normal data storage function of the terminal device is effectively realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and other drawings may be obtained according to the drawings without inventive effort to those skilled in the art.
Fig. 1 is a flow chart of a data storage method according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of determining a data storage instruction in the data storage method according to the embodiment of the invention.
Fig. 3 is a flowchart illustrating a data temporary storage area generation process in the data storage method according to an embodiment of the present invention.
Fig. 4 is a schematic flow chart of implementing temporary storage of data to be stored in the data temporary storage area in the data storage method according to the embodiment of the invention.
Fig. 5 is a schematic block diagram of a data storage device according to an embodiment of the present invention.
Fig. 6 is a schematic block diagram of an internal structure of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and more specific, the present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the prior art, the data is stored directly in the corresponding storage medium of the receiving terminal, which results in failure to store the data in the storage area of the receiving terminal device if the data is stored too much or the memory of the data storage medium of the receiving terminal is insufficient, thereby resulting in failure of data storage.
In order to solve the problems in the prior art, the embodiment provides a data storage method, by which a corresponding data temporary storage area can be generated according to a data storage instruction, when data to be stored is overlarge or the memory space of a terminal device receiving the data is insufficient, the stored data can be temporarily stored in the corresponding generated data temporary storage area, so that even if the data to be stored is overlarge or the memory space of the terminal device receiving the data is insufficient, the stored data still can have a temporary storage space, and the normal data storage function of the terminal device is effectively realized.
Exemplary method
The embodiment provides a data storage method, which can be applied to terminal equipment. The terminal may be, but is not limited to, various personal computers, notebook computers, cell phones, tablet computers, car computers, and portable wearable devices.
As shown in particular in fig. 1, the method comprises:
step S100, acquiring a data transmission signal, and determining a data storage instruction according to the data transmission signal.
Before the terminal equipment receives the stored data, a data transmission signal is received, the data transmission signal contains data information of the stored data, the data information contained in the data transmission signal is obtained, and a data storage instruction is determined according to the data information contained in the data transmission signal, so that better storage of the data to be stored can be realized. In one embodiment, when storing the storage data, the data transmission signal needs to be analyzed to obtain the storage time of the storage data, the storage data type, the storage position, the size of the storage data and how large the storage medium for receiving the storage data should be, so as to facilitate the storage of the storage data. In this embodiment, first, a data transmission signal received by a receiving data terminal is acquired, and the data transmission signal is analyzed to obtain a data storage instruction. The data storage instruction is a control signal that operates the data storage. In this embodiment, the data storage instruction is determined by determining the storage time, the type of the storage data, the size of the storage data, and how large the storage medium receiving the storage data should have according to the acquired data transmission information.
In one embodiment, the determining of the data storage instruction is performed according to the acquired data transmission signal. As shown in fig. 2, the method specifically comprises the following steps:
step S101, acquiring the data transmission signal, and analyzing the data transmission signal to obtain a data transmission identifier;
step S102, determining the data storage instruction according to the data transmission identification.
Because the data information in the data transmission signal is more, when the data transmission signal is read, the data information is disordered, so that the acquired data information needs to be processed, and the stored data and the corresponding data information are in one-to-one correspondence, so that accurate data storage instructions can be obtained when the data is stored each time. In this embodiment, the data storage instruction is determined according to the data transmission identifier by acquiring a transmission signal of the stored data and analyzing the data transmission signal, so as to analyze and process the acquired data information to obtain the data transmission identifier. In this embodiment, the data transmission signal is first analyzed, and information of the stored data is read, including a storage time, a storage data type, a storage location, and a size of the stored data, and since the receiving terminal may receive two or more types of stored data at the same time, the obtained information data may be excessive, resulting in an error of the transmitted data. 00, when storing 13M video data, 30M text data and 60M picture data, respectively reading the storage time, storage data type, storage position and size of the three storage data, and performing corresponding transmission identification on the three storage data, namely 13M video data, wherein the corresponding data transmission identification is that the storage time is 10: 00. the storage data type is video, the storage position is a video storage area, and the size of the storage data is 13M; a 30M text data corresponding to a data transmission identifier with a storage time of 10: 00. the storage data type is text, the storage position is a folder, and the size of the storage data is 30M; one 30M picture data, its corresponding data transmission identification is that the storage time is 10: 00. the storage data type is pictures, the storage position is an album or a picture folder, and the size of the storage data is 60M. The storage time, the storage data type, the storage position and the storage data size corresponding to the three transmission data identifiers enable each data to be stored to be accurately corresponding to the data information of the data to be stored, and prevent the data information from generating errors and generating wrong data storage instructions when the storage data are too much. In another embodiment, the data transmission identifier may be used to identify the storage action, so as to prompt the receiving terminal to start the storage function for the storage data. After the data transmission signal is obtained, the data transmission signal is analyzed, the data transmitted to the receiving terminal is determined to be storage data, and the storage data is identified to be stored by utilizing the data transmission identification, so that the receiving terminal is prompted to start a storage function on the storage data, and storage action is performed. Specifically, by analyzing the acquired data transmission signal, when it is determined that the data transmitted to the receiving terminal is storage data, a data transmission identifier is obtained, where the data transmission identifier should identify that the storage data needs to be stored, and the data transmission identifier may be a symbol of a character type, for example: s, representing the action of data storage, and prompting the receiving terminal to start a storage function for the stored data by using the data transmission identification. For example, in a specific implementation, by analyzing the acquired data transmission signal, when it is determined that the data transmitted to the receiving terminal is storage data, the data transmission identifier is S, that is, the identifier is a storage action, the receiving terminal is prompted to start a storage function, and the storage data is smoothly stored in the data temporary storage area. The function of the receiving terminal which needs to be started is prompted by the data transmission identification, so that the data can be effectively stored.
Specifically, after the data transmission identifier is obtained in this embodiment, the data storage instruction is finally obtained by importing the data transmission identifier into a preset instruction generation template. The data storage instruction is a control signal for operating data storage, and can generate a data temporary storage area according to the data storage instruction, wherein the data storage instruction comprises information such as storage time, storage data type, size of storage data, memory size of the data temporary storage area and the like. According to the embodiment, according to the obtained data transmission identifier, namely the storage time, the storage data type and the size of the storage data corresponding to the storage data, the data transmission identifier is imported into an instruction generation template, the instruction generation template automatically generates the memory size of the data temporary storage area, and finally the data storage instruction, namely the control signal for operating the data temporary storage area is obtained, so that the data storage instruction comprises the information of the storage time, the storage data type, the size of the storage data, the memory size of the data temporary storage area and the like corresponding to the storage data. For example, when the video data of 13m starts to be stored at the beginning of 10 am, the acquired data transmission is identified as storage time 10: 00. the storage type is video, the storage size is 13M, the video is imported into an instruction generation template, the corresponding data temporary storage area is 15M in size and a data storage instruction is generated automatically, and the automatically generated instruction comprises the storage time 10: 00. the storage type is information such as video, 13M storage size and 15M memory size of the data temporary storage area. Thus, according to the transmission identification of each data to be stored, the corresponding data storage instruction is obtained and used for controlling the generation of the corresponding data temporary storage area.
When the data storage instruction is acquired, the data temporary storage area needs to be generated, that is, step S200 in fig. 1 is executed, the data to be stored is acquired according to the data storage instruction, the data temporary storage area is generated according to the data to be stored, and finally the data to be stored is temporarily stored in the data temporary storage area.
Because the data to be stored is sometimes oversized or the memory of the terminal receiving the data is insufficient, the data storage failure may be caused, and the data which cannot be normally stored can be temporarily stored in the terminal receiving the data by generating a data temporary storage area, so that the storage function is realized.
In one implementation manner, as shown in fig. 3, in this embodiment, for generating a data temporary storage area according to the data to be stored, the method specifically includes:
step S201, obtaining data to be stored according to the data storage instruction;
step S202, generating the data temporary storage area according to the data to be stored;
step 203, temporarily storing the data to be stored in the data temporary storage area.
When the data to be stored is sometimes oversized or the memory of the terminal receiving the data is insufficient, the data cannot be stored into the terminal receiving the data, and therefore, the memory size of the data temporary storage area must be larger than the size of the data to be stored. According to the embodiment, the data to be stored is obtained according to the data storage instruction, the data temporary storage area is generated, and the data to be stored is temporarily stored in the data temporary storage area. In a specific embodiment, the data storage instruction is executed, so that the terminal device receives a signal for generating the data temporary storage area, controls the receiving terminal to generate the data temporary storage area according to the data storage instruction, reads information in the data storage instruction to obtain the data volume of the data to be stored, and generates the data storage area, wherein the memory size of the data storage area depends on the data volume of the data to be stored. For example, when the data to be stored is 17M text data, according to the data size of the data to be stored being 17M, the memory size of the corresponding data temporary storage area is 20M. Because the storage space of the data temporary storage area must be capable of containing the data volume of the data to be stored, the space size of the data storage area is determined according to the data volume of the data to be stored, so that the data temporary storage area with different sizes can be generated for different data volumes of the data to be stored, the data to be stored can be stored better, and storage failure caused by insufficient storage space of the receiving terminal is prevented.
Further, the generated data temporary storage area may be set to be multiple, and multiple data temporary storage areas may be generated according to the amount of the data to be stored, for example, when the data to be stored is 13M video data, a 15M data temporary storage area may be correspondingly generated, and a 10M data temporary storage area and a 5M data temporary storage area may be generated; when the data to be stored is 18M video data, a 20M data buffering area can be correspondingly generated, and two 10M data buffering areas can be generated. The data to be stored is divided into a plurality of small data volumes through the data temporary storage areas, so that the storage speed can be increased, and the storage efficiency is improved.
When the data temporary storage area is generated, the data to be stored is stored in the data temporary storage area, then the data temporary storage area is required to be transferred to the data block of the receiving data terminal, that is, step S300 of fig. 1 is executed, the positioning identifier corresponding to the data temporary storage area is obtained, the data block corresponding to the positioning identifier is determined according to the positioning identifier, and finally the data to be stored is transferred from the data temporary storage area to the data block.
Since the data temporary storage area only temporarily stores data which cannot be stored due to an excessive data amount or insufficient memory of the terminal receiving the data, the stored data temporarily stored in the data temporary storage area is finally stored in the terminal storage space receiving the data.
In one implementation manner, as shown in fig. 4, according to the data temporary storage area in this embodiment, for the implementation of temporarily storing the data to be stored in the data temporary storage area, the implementation manner specifically includes:
step S301, a positioning identifier corresponding to the data temporary storage area is obtained;
step S302, determining a data block corresponding to the positioning identifier according to the positioning identifier;
step S303, transferring the data to be stored from the data temporary storage area to the data block.
And when the data to be stored is transferred from the data temporary storage area to the data block, a corresponding data block in which the data to be stored should be stored is required to be found, so that the data block corresponding to the positioning identification is determined according to the positioning identification by acquiring the positioning identification corresponding to the data temporary storage area, the storage position in which the data to be stored should be stored can be effectively acquired, and the data to be stored is transferred from the data temporary storage area to the data block, so that the accurate transfer of the data to be stored can be realized. In a specific embodiment, the location identifier is used for identifying a location where the data to be stored should be stored, by acquiring a type of the stored data temporarily stored in the data temporary storage area, determining a storage location of the stored data according to the type of the stored data, and performing location identifier, that is, identifying the location where the data to be stored should be stored. The positioning identifier can also adopt character type symbols like the data transmission identifier, but note that the positioning identifier needs to be different from the symbols adopted by the data transmission identifier, so that the positioning identifier is convenient to distinguish. For example, the positioning identifier is V, P, F, each identifier represents that the data to be stored is stored in a corresponding storage area name, V represents that the data to be stored is stored in a video storage area, P represents that the data to be stored is stored in an album storage area, and F represents that the data to be stored is stored in a folder storage area. And determining the storage position of the data to be stored as a video storage area according to the type of the data to be stored, wherein the acquired positioning mark is V, namely the data to be stored is stored in the video storage area, determining the position where the data to be stored should be stored as the video storage area according to the positioning mark, and finally transferring the data to be stored from the data temporary storage area to the video storage area.
Further toBefore the data to be stored temporarily stored in the data temporary storage area is transferred to a data block which is to be stored, detecting whether the data block has the same data as the data to be stored or not, and if so, not storing the data to be stored; if not, the data to be stored is transferred into the corresponding data block. In a specific embodiment, before the data to be stored in the data temporary storage area is transferred to the corresponding data block, detecting whether the data block has the same data as the data to be stored, if so, not storing the data to be stored, sending a rejection signal to the data block of the receiving terminal, where the rejection signal can be displayed on a display screen of the terminal device receiving the data to be stored by text, if so, displaying the "reject existing stored data" on the display screen of the terminal device receiving the data to be stored, not storing the data to be stored any more, and displaying a rejection signal on the display screen of the terminal device receiving the data to be stored, so that the user can be informed that the data to be stored has been stored in the terminal device, and is prompted not to store the data to be stored again, so that the user can know the storage condition conveniently. Further, a ring alert may be performed while the rejection signal is displayed in text on the display screen of the receiving terminal device. When the receiving terminal equipment stores data, the user may not look at the screen of the terminal equipment at all times, and the user can be informed to watch the screen of the terminal equipment by using the ring prompt, so that the user receives the rejection signal and grasps the data storage condition. By detecting whether the data block has the same data to be stored or not, the situation of repeatedly storing the data can be eliminated, and the storage space of the data receiving terminal is saved.Exemplary apparatus Preparation method
As shown in fig. 5, an embodiment of the present invention provides a data storage device, including: an instruction determination module 510, a region generation module 520, a data storage module 530. Specifically, the instruction determining module is used for acquiring a data transmission signal and determining a data storage instruction according to the data transmission signal. The region generation module is used for generating a data temporary storage region according to the data storage instruction and temporarily storing the data to be stored in the data temporary storage region. And the data storage module is used for storing the data to be stored according to the data temporary storage area.
Based on the above embodiment, the present invention also provides a terminal device, and a schematic diagram thereof may be shown in fig. 6. The terminal device comprises a processor, a memory, a network interface, a display screen and a temperature sensor, wherein the processor of the terminal device is used for providing calculation and control capabilities. The memory of the terminal device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the terminal device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a data storage method. The display screen of the terminal equipment can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the terminal equipment is preset in the terminal equipment and is used for detecting the internal operation temperature.
It will be appreciated by those skilled in the art that the schematic block diagram shown in fig. 6 is merely a block diagram of a portion of the structure associated with the present inventive arrangements and is not limiting of the terminal device to which the present inventive arrangements are applied, and that a particular terminal device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a terminal device is provided that includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for:
acquiring a data transmission signal, and determining a data storage instruction according to the data transmission signal;
generating a data temporary storage area according to the data storage instruction, and temporarily storing the data to be stored in the data temporary storage area;
and storing the data to be stored according to the data temporary storage area.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
In summary, the invention discloses a data storage method, a device, a terminal device and a storage medium, wherein the method comprises the following steps: acquiring a data transmission signal, and determining a data storage instruction according to the data transmission signal; generating a data temporary storage area according to the data storage instruction, and temporarily storing the data to be stored in the data temporary storage area; and storing the data to be stored according to the data temporary storage area. The invention can generate the corresponding data temporary storage area according to the data storage instruction, so that when the data to be stored is overlarge or the memory space of the terminal equipment for receiving the data is insufficient, the stored data can be temporarily stored in the corresponding generated data temporary storage area, and the memory size of the data temporary storage area can be adjusted according to the stored data amount, so that the problem that whether the stored data is overlarge or the memory of the receiving terminal is insufficient is avoided, and the normal data storage function can be effectively realized.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (6)
1. A method of data storage, the method comprising:
acquiring a data transmission signal, and determining a data storage instruction according to the data transmission signal;
generating a data temporary storage area according to the data storage instruction, and temporarily storing the data to be stored in the data temporary storage area;
storing data to be stored according to the data temporary storage area;
the determining a data storage instruction according to the data transmission signal comprises the following steps:
acquiring the data transmission signal, and analyzing the data transmission signal to obtain a data transmission identifier; the data transmission identifier is used for identifying the storage time, the storage data type, the storage position and the size of the storage data;
determining the data storage instruction according to the data transmission identifier;
the generating a data temporary storage area according to the data storage instruction, and temporarily storing the data to be stored in the data temporary storage area includes:
acquiring data to be stored according to the data storage instruction;
generating the data temporary storage area according to the data to be stored;
temporarily storing the data to be stored in the data temporary storage area;
the generating the data temporary storage area according to the data to be stored includes:
acquiring the data volume of the data to be stored;
generating the data temporary storage area according to the data volume, wherein a plurality of data temporary storage areas are arranged;
the storing the data to be stored according to the data temporary storage area comprises the following steps:
acquiring a positioning identifier corresponding to the data temporary storage area;
determining a data block corresponding to the positioning identifier according to the positioning identifier;
and transferring the data to be stored from the data temporary storage area to the data block.
2. The data storage method according to claim 1, wherein said determining the data storage instruction according to the data transmission identification includes:
extracting the data transmission identification, and inputting the data transmission identification into a preset instruction generation template;
and generating a template according to the instruction, and generating the data storage instruction.
3. The data storage method according to claim 1, wherein the storing the data to be stored according to the data temporary storage area includes:
and if the data block has the same data as the data to be stored, not storing the data to be stored.
4. A data storage device, the device comprising:
the instruction determining module is used for acquiring a data transmission signal and determining a data storage instruction according to the data transmission signal;
the region generation module is used for generating a data temporary storage region according to the data storage instruction and temporarily storing the data to be stored in the data temporary storage region;
the data storage module is used for storing data to be stored according to the data temporary storage area;
the determining a data storage instruction according to the data transmission signal comprises the following steps:
acquiring the data transmission signal, and analyzing the data transmission signal to obtain a data transmission identifier; the data transmission identifier is used for identifying the storage time, the storage data type, the storage position and the size of the storage data;
determining the data storage instruction according to the data transmission identifier;
the generating a data temporary storage area according to the data storage instruction, and temporarily storing the data to be stored in the data temporary storage area includes:
acquiring data to be stored according to the data storage instruction;
generating the data temporary storage area according to the data to be stored;
temporarily storing the data to be stored in the data temporary storage area;
the generating the data temporary storage area according to the data to be stored includes:
acquiring the data volume of the data to be stored;
generating the data temporary storage area according to the data volume, wherein a plurality of data temporary storage areas are arranged;
the storing the data to be stored according to the data temporary storage area comprises the following steps:
acquiring a positioning identifier corresponding to the data temporary storage area;
determining a data block corresponding to the positioning identifier according to the positioning identifier;
and transferring the data to be stored from the data temporary storage area to the data block.
5. A terminal device, characterized in that it comprises a memory, a processor and a data storage program stored in the memory and executable on the processor, which processor, when executing the data storage program, realizes the steps of the data storage method according to any one of claims 1-3.
6. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a data storage program, which, when executed by a processor, implements the steps of the data storage method according to any of claims 1-3.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111114767.3A CN113885795B (en) | 2021-09-23 | 2021-09-23 | Data storage method, device, terminal equipment and storage medium |
PCT/CN2022/117352 WO2023045755A1 (en) | 2021-09-23 | 2022-09-06 | Data storage method and apparatus, and terminal device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111114767.3A CN113885795B (en) | 2021-09-23 | 2021-09-23 | Data storage method, device, terminal equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113885795A CN113885795A (en) | 2022-01-04 |
CN113885795B true CN113885795B (en) | 2024-01-19 |
Family
ID=79010234
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111114767.3A Active CN113885795B (en) | 2021-09-23 | 2021-09-23 | Data storage method, device, terminal equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113885795B (en) |
WO (1) | WO2023045755A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113885795B (en) * | 2021-09-23 | 2024-01-19 | 惠州Tcl移动通信有限公司 | Data storage method, device, terminal equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103577275A (en) * | 2013-10-24 | 2014-02-12 | 华为技术有限公司 | Method, equipment and system for data verification |
CN104965671A (en) * | 2015-05-06 | 2015-10-07 | 深圳市金立通信设备有限公司 | Data processing method |
CN106407050A (en) * | 2016-10-20 | 2017-02-15 | 厦门科华恒盛股份有限公司 | Data storage method |
CN109254956A (en) * | 2018-07-27 | 2019-01-22 | 深圳市江波龙电子股份有限公司 | Method, the method, apparatus and electronic equipment of data downloading of a kind of data storage |
CN109741192A (en) * | 2018-11-15 | 2019-05-10 | 深圳壹账通智能科技有限公司 | Date storage method, device, equipment and readable storage medium storing program for executing based on block chain |
CN110045924A (en) * | 2019-03-01 | 2019-07-23 | 平安科技(深圳)有限公司 | It is classified storage method, device, electronic equipment and computer readable storage medium |
CN112199050A (en) * | 2020-10-22 | 2021-01-08 | Tcl通讯(宁波)有限公司 | Storage method, device, storage medium and terminal equipment |
CN112346647A (en) * | 2019-08-06 | 2021-02-09 | 浙江宇视科技有限公司 | Data storage method, device, equipment and medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6086007B2 (en) * | 2013-03-26 | 2017-03-01 | 富士通株式会社 | Storage control device control program, storage control device control method, storage control device, and storage system |
US9207880B2 (en) * | 2013-12-27 | 2015-12-08 | Intel Corporation | Processor with architecturally-visible programmable on-die storage to store data that is accessible by instruction |
CN111078697B (en) * | 2019-12-11 | 2023-11-03 | 秒针信息技术有限公司 | Data storage method and device, storage medium and electronic equipment |
CN111225042B (en) * | 2019-12-27 | 2021-09-17 | 腾讯科技(深圳)有限公司 | Data transmission method and device, computer equipment and storage medium |
CN111897819A (en) * | 2020-07-31 | 2020-11-06 | 平安普惠企业管理有限公司 | Data storage method and device, electronic equipment and storage medium |
CN113885795B (en) * | 2021-09-23 | 2024-01-19 | 惠州Tcl移动通信有限公司 | Data storage method, device, terminal equipment and storage medium |
-
2021
- 2021-09-23 CN CN202111114767.3A patent/CN113885795B/en active Active
-
2022
- 2022-09-06 WO PCT/CN2022/117352 patent/WO2023045755A1/en unknown
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103577275A (en) * | 2013-10-24 | 2014-02-12 | 华为技术有限公司 | Method, equipment and system for data verification |
CN104965671A (en) * | 2015-05-06 | 2015-10-07 | 深圳市金立通信设备有限公司 | Data processing method |
CN106407050A (en) * | 2016-10-20 | 2017-02-15 | 厦门科华恒盛股份有限公司 | Data storage method |
CN109254956A (en) * | 2018-07-27 | 2019-01-22 | 深圳市江波龙电子股份有限公司 | Method, the method, apparatus and electronic equipment of data downloading of a kind of data storage |
CN109741192A (en) * | 2018-11-15 | 2019-05-10 | 深圳壹账通智能科技有限公司 | Date storage method, device, equipment and readable storage medium storing program for executing based on block chain |
CN110045924A (en) * | 2019-03-01 | 2019-07-23 | 平安科技(深圳)有限公司 | It is classified storage method, device, electronic equipment and computer readable storage medium |
CN112346647A (en) * | 2019-08-06 | 2021-02-09 | 浙江宇视科技有限公司 | Data storage method, device, equipment and medium |
CN112199050A (en) * | 2020-10-22 | 2021-01-08 | Tcl通讯(宁波)有限公司 | Storage method, device, storage medium and terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2023045755A1 (en) | 2023-03-30 |
CN113885795A (en) | 2022-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8751535B1 (en) | Systems and methods for securely storing, controlling and sharing personal information | |
US20210117082A1 (en) | Secure Data Entry via a Virtual Keyboard | |
US11893767B2 (en) | Text recognition method and apparatus | |
CN111277659B (en) | Method and device for detecting display state of transverse screen and vertical screen of mobile phone | |
US8718374B2 (en) | Method and apparatus for accessing an electronic resource based upon a hand-drawn indicator | |
CN109766072A (en) | Information checking input method, device, computer equipment and storage medium | |
CN113885795B (en) | Data storage method, device, terminal equipment and storage medium | |
US9729815B2 (en) | Method and electronic device for controlling content integrity using numerical data | |
CN111314445A (en) | Method and device for controlling recycling machine to open door by mobile phone | |
CN112579948A (en) | Webpage screenshot method and device, storage medium and electronic equipment | |
CN110673986A (en) | Memory operation abnormity capturing method, device, terminal and storage medium | |
CN111223155A (en) | Image data processing method, image data processing device, computer equipment and storage medium | |
US20150112997A1 (en) | Method for content control and electronic device thereof | |
CN111400684B (en) | Electronic license information acquisition method, system, device, equipment and storage medium | |
CN111444670B (en) | Document annotation method, device, computer equipment and storage medium | |
CN108776669B (en) | Map display method, map display device, computer device and storage medium | |
CN111273982A (en) | Method, device, electronic equipment and medium for confirming default font of operating system | |
WO2020124454A1 (en) | Font switching method and related product | |
CN113672326B (en) | Application window screen recording method and device, terminal equipment and storage medium | |
US8660606B2 (en) | Prompt method for detachable element, mobile electronic device using detachable element and computer-readable medium thereof | |
CN115390776A (en) | Screen projection control method, device, terminal and storage medium | |
CN114048707A (en) | Information processing method, device, terminal and storage medium | |
CN111258877B (en) | Method and device for detecting visible time of first screen page and electronic equipment | |
CN114997115A (en) | Document processing method, device, equipment and medium | |
CN118101345B (en) | Automatic penetration test method and device based on data driving |
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 |