CN113867630A - Data batch writing method and device of memory, terminal equipment and storage medium - Google Patents

Data batch writing method and device of memory, terminal equipment and storage medium Download PDF

Info

Publication number
CN113867630A
CN113867630A CN202111065572.4A CN202111065572A CN113867630A CN 113867630 A CN113867630 A CN 113867630A CN 202111065572 A CN202111065572 A CN 202111065572A CN 113867630 A CN113867630 A CN 113867630A
Authority
CN
China
Prior art keywords
data
memory
batch
writing
imported
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111065572.4A
Other languages
Chinese (zh)
Inventor
曹志忠
陈寄福
吴大畏
李晓强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changsha Zhicun Technology Co ltd
Original Assignee
Changsha Zhicun Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changsha Zhicun Technology Co ltd filed Critical Changsha Zhicun Technology Co ltd
Priority to CN202111065572.4A priority Critical patent/CN113867630A/en
Publication of CN113867630A publication Critical patent/CN113867630A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • G06F3/0611Improving I/O performance in relation to response time
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0667Virtualisation aspects at data level, e.g. file, record or object virtualisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

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)
  • Stored Programmes (AREA)

Abstract

The invention discloses a data batch writing method and a device of a memory, terminal equipment and a computer storage medium, wherein the data batch writing method of the memory is applied to importing batch data into the memory of embedded terminal equipment, and comprises the following steps: constructing a simulation environment for importing batch data into a memory, wherein the memory is internally arranged in embedded terminal equipment; performing injection operation of data to be imported in the simulation environment to obtain virtual file data; and writing the virtual file data into the memory based on a preset data interface so as to write the data to be imported into the memory in batches. The method and the device can effectively solve the technical problems that when a large amount of data such as a navigation map and the like are imported into a memory in the paster production process of the conventional vehicle-mounted intelligent terminal device, the time consumption of data import is serious, and the terminal production efficiency is influenced, and improve the terminal production efficiency.

Description

Data batch writing method and device of memory, terminal equipment and storage medium
Technical Field
The present invention relates to the field of storage device technologies, and in particular, to a method and an apparatus for writing data of a memory in batch, a terminal device, and a computer storage medium.
Background
With the rapid development of digital service products, research and development work for data storage products necessary in the digital service products is also actively ongoing to meet the demands of the continuously developing digital service products for data storage.
At present, vehicle-mounted intelligent terminal equipment needs to import a large amount of map data for navigation into a memory in the process of patch production (burning the memory onto a PCB (printed Circuit Board) of the vehicle-mounted intelligent terminal equipment) based on the application requirement of vehicle navigation. Therefore, as the total amount of map data to be imported becomes larger and larger, the whole patch production process of the terminal consumes more and more time, and the production efficiency of the terminal is seriously influenced.
In summary, how to reduce the time consumption for importing a large amount of data such as a map into a storage product in a vehicle-mounted intelligent terminal device, so as to improve the production efficiency of the terminal, has become an urgent technical problem in the industry.
Disclosure of Invention
The invention mainly aims to provide a method and a device for writing batch data into a memory, a terminal device and a computer storage medium, and aims to solve the technical problem that the time consumption of data import is serious and the production efficiency of the terminal is influenced when a large amount of data such as a navigation map is imported into the memory in the process of patch production by the conventional vehicle-mounted intelligent terminal device.
In order to achieve the above object, the present invention provides a method for writing data into a memory in batches, wherein the method for writing data into the memory in batches comprises the following steps:
constructing a simulation environment for importing batch data into a memory, wherein the memory is internally arranged in embedded terminal equipment;
performing injection operation of data to be imported in the simulation environment to obtain virtual file data;
and writing the virtual file data into the memory based on a preset data interface so as to write the data to be imported into the memory in batches.
Further, the preset data interface is a programmable data interface of the memory;
the step of writing the virtual file data into the memory based on a preset data interface includes:
generating and packaging the virtual file data into a self-defined file programming instruction;
based on a programmable data interface of the memory, issuing the file programming instruction to the memory to write the virtual file data to the memory.
Further, the step of building the simulation environment for importing the batch data into the memory includes:
and constructing a simulation environment for importing batch data into a memory on the current terminal equipment, wherein the computing power of the current terminal equipment for executing data storage and writing is greater than that of the embedded terminal equipment for executing data storage.
Further, the batch data includes: the step of performing injection operation of data to be imported in the simulation environment to obtain virtual file data includes:
in the simulation environment, the large-batch map data are used as data to be imported;
and executing injection operation on the data to be imported to obtain virtual file data for marking the distribution condition of the large batch of map data in the memory.
Further, the method further comprises:
and acquiring management file data for importing the large-batch map data into the memory, and writing the management file data and the virtual file data into the memory based on the data interface.
Further, the step of acquiring the management file data for importing the large batch of map data into the memory includes:
and acquiring management file data for managing the distribution condition of the large batch of map data in the memory in the process of executing the injection operation on the data to be imported.
In addition, in order to achieve the above object, the present invention further provides a data batch writing device for a memory, including:
the system comprises an environment construction module, a data storage module and a data transmission module, wherein the environment construction module is used for constructing a simulation environment for importing batch data into a memory, and the memory is internally arranged in embedded terminal equipment;
the data injection module is used for performing injection operation of data to be imported in the simulation environment to obtain virtual file data;
and the file writing module is used for writing the virtual file data into the memory based on a preset data interface so as to write the data to be imported into the memory in batches.
Further, the batch data includes: bulk map data for vehicle navigation, the data injection module comprising:
the determining unit is used for taking the large-batch map data as data to be imported in the simulation environment;
and the injection execution unit is used for executing injection operation on the data to be imported to obtain virtual file data for marking the distribution condition of the large batch of map data in the memory.
Each functional module of the data batch writing system of the memory realizes the steps of the data batch writing method of the memory when in operation.
In addition, to achieve the above object, the present invention also provides a terminal device, including: the data batch writing program of the memory comprises a memory, a processor and a data batch writing program of the memory, wherein the data batch writing program of the memory is stored on the memory and can run on the processor, and when being executed by the processor, the data batch writing program of the memory realizes the steps of the data batch writing method of the memory.
In addition, to achieve the above object, the present invention further provides a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method for writing data into a memory in bulk as described above.
The invention provides a data batch writing method and device of a memory, terminal equipment and a computer storage medium, wherein the data batch writing method of the memory is applied to importing batch data into the memory of embedded terminal equipment, and comprises the following steps: constructing a simulation environment for importing batch data into a memory, wherein the memory is internally arranged in embedded terminal equipment; performing injection operation of data to be imported in the simulation environment to obtain virtual file data; and writing the virtual file data into the memory based on a preset data interface so as to write the data to be imported into the memory in batches.
When batch data needs to be imported into a memory of the embedded terminal equipment, a simulation environment for importing the batch data into the memory is simulated and constructed, then the data to be imported is used as an excitation in the simulation environment to execute the injection operation of the data to be imported into the memory, so that corresponding virtual file data are obtained, and finally the virtual file data are directly written into the memory through a programming mode based on a preset data interface, so that the batch data to be imported are written into the memory quickly and efficiently.
Compared with the traditional method for executing mass data import based on self calculation of firmware after welding a memory by using a patch production mode in an embedded device, the method provided by the invention has the advantages that the process of importing mass data into the memory is simulated, so that mass data injection is executed in the simulation environment, and finally, virtual file data obtained by simulating and injecting mass data is directly written into the memory based on a programming mode to realize mass data writing. Therefore, the method and the device can use the calculation power higher than that of the embedded device to conduct the process of importing the mass data into the memory, and greatly reduce the time consumption of importing the mass data into the memory, so that the technical problems that the time consumption of data import is serious and the terminal production efficiency is influenced when a large amount of data such as a navigation map is imported into the memory in the process of patch production of the conventional vehicle-mounted intelligent terminal device are effectively solved, and the production efficiency is improved.
Drawings
Fig. 1 is a schematic structural diagram of the hardware operation of a terminal device according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating an embodiment of a method for writing data into a memory in bulk according to the present invention;
FIG. 3 is a schematic structural diagram of a data batch writing system of a memory according to the present invention.
The objects, features and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment related to a terminal device according to an embodiment of the present invention.
It should be noted that fig. 1 is a schematic structural diagram of a hardware operating environment of the terminal device. The terminal device in the embodiment of the present invention may be a terminal device such as a PC or a portable computer, and the terminal device is configured to simulate a process of importing data into a storage memory of an embedded terminal device that uses the storage memory such as an eMMC to implement data read-write operation, and the embedded terminal device may specifically be a digital service product such as a vehicle-mounted intelligent terminal device.
As shown in fig. 1, the terminal device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a non-volatile memory (e.g., Flash memory), a high-speed RAM memory, or a non-volatile memory (e.g., a disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal device configuration shown in fig. 1 is not intended to be limiting of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein a data bulk writer of an operating system, a network communication module, a user interface module, and a memory. Among these, the operating system is a program that manages and controls the hardware and software resources of the sample terminal device, supports the bulk writing of data to memory and the running of other software or programs.
In the terminal apparatus shown in fig. 1, the user interface 1003 is mainly used for data communication with each terminal; the network interface 1004 is mainly used for connecting a background server and performing data communication with the background server; and the processor 1001 may be configured to call a data bulk write procedure of the memory stored in the memory 1005 and perform the following operations:
constructing a simulation environment for importing batch data into a memory, wherein the memory is internally arranged in embedded terminal equipment;
performing injection operation of data to be imported in the simulation environment to obtain virtual file data;
and writing the virtual file data into the memory based on a preset data interface so as to write the data to be imported into the memory in batches.
Further, the preset data interface is a programmable data interface of the memory;
the processor 1001 may call a data bulk write program of the memory stored in the memory 1005, and further perform the following operations:
generating and packaging the virtual file data into a self-defined file programming instruction;
based on a programmable data interface of the memory, issuing the file programming instruction to the memory to write the virtual file data to the memory.
Further, the processor 1001 may call a data bulk write program of the memory stored in the memory 1005, and also perform the following operations:
and constructing a simulation environment for importing batch data into a memory on the current terminal equipment, wherein the computing power of the current terminal equipment for executing data storage and writing is greater than that of the embedded terminal equipment for executing data storage.
Further, the batch data includes: for bulk map data for vehicle navigation, the processor 1001 may call a data bulk write program of a memory stored in the memory 1005, and further perform the following operations:
in the simulation environment, the large-batch map data are used as data to be imported;
and executing injection operation on the data to be imported to obtain virtual file data for marking the distribution condition of the large batch of map data in the memory.
Further, the processor 1001 may call a data bulk write program of the memory stored in the memory 1005, and also perform the following operations:
and acquiring management file data for importing the large-batch map data into the memory, and writing the management file data and the virtual file data into the memory based on the data interface.
Further, the processor 1001 may call a data bulk write program of the memory stored in the memory 1005, and also perform the following operations:
and acquiring management file data for managing the distribution condition of the large batch of map data in the memory in the process of executing the injection operation on the data to be imported.
Based on the above structure, various embodiments of the data batch writing method of the memory of the invention are provided.
It should be noted that, in this embodiment, because the current vehicle-mounted intelligent terminal device is based on the application requirement of vehicle navigation, a large amount of map data for navigation needs to be imported into the memory during the patch production process. Therefore, as the total amount of map data to be imported becomes larger and larger, the whole patch production process of the terminal consumes more and more time, and the production efficiency of the terminal is seriously influenced.
In view of the above situation, the present invention provides a method for writing data in batch into a memory, where the method for writing data in batch into a memory includes: constructing a simulation environment for importing batch data into a memory, wherein the memory is internally arranged in embedded terminal equipment; performing injection operation of data to be imported in the simulation environment to obtain virtual file data; and writing the virtual file data into the memory based on a preset data interface so as to write the data to be imported into the memory in batches.
When batch data needs to be imported into a memory of the embedded terminal equipment, a simulation environment for importing the batch data into the memory is simulated and constructed, then the data to be imported is used as an excitation in the simulation environment to execute the injection operation of the data to be imported into the memory, so that corresponding virtual file data are obtained, and finally the virtual file data are directly written into the memory through a programming mode based on a preset data interface, so that the batch data to be imported are written into the memory quickly and efficiently.
Compared with the traditional method for executing mass data import based on self calculation of firmware after welding a memory by using a patch production mode in an embedded device, the method provided by the invention has the advantages that the process of importing mass data into the memory is simulated, so that mass data injection is executed in the simulation environment, and finally, virtual file data obtained by simulating and injecting mass data is directly written into the memory based on a programming mode to realize mass data writing. Therefore, the method and the device can use the calculation power higher than that of the embedded device to conduct the process of importing the mass data into the memory, and greatly reduce the time consumption of importing the mass data into the memory, so that the technical problems that the time consumption of data import is serious and the terminal production efficiency is influenced when a large amount of data such as a navigation map is imported into the memory in the process of patch production of the conventional vehicle-mounted intelligent terminal device are effectively solved, and the production efficiency is improved.
Specifically, referring to fig. 2, fig. 2 is a flowchart illustrating a data batch writing method of a memory according to a first embodiment of the invention.
The embodiment of the invention provides an embodiment of a data batch writing method of a memory, which is applied to the PC, the portable computer and the like and is used for simulating a terminal device which introduces data into the memory to an embedded terminal device which realizes data reading and writing operations by using a memory such as an eMMC and the like. It should be noted that, although a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different than that shown or described herein.
The data batch writing method of the memory comprises the following steps:
step S100, constructing a simulation environment for importing batch data into a memory, wherein the memory is internally arranged in embedded terminal equipment;
the terminal device builds a simulation environment which is built in the embedded device and needs to import mass data into a memory at the home terminal, and the simulation environment is used for simulating the import of the mass data.
Specifically, for example, the terminal device invokes an algorithm simulator to simulate and construct a simulation environment for importing a large amount of map data to an eMMC memory built in an embedded device, i.e., a vehicle-mounted intelligent terminal device, at the home terminal.
It should be noted that, in this embodiment, the algorithm simulator may specifically be any terminal application mature for building a simulation environment or a terminal device loaded with the terminal application. It should be understood that, based on different design requirements of practical applications, in any of different possible embodiments, the algorithm emulator that can be invoked by the terminal device and the specific invoking manner may be different, and therefore, the data batch writing method of the memory of the present invention is not limited to the specific type of the algorithm emulator that can be invoked by the terminal device, the specific invoking manner, and the like.
Further, in a possible embodiment, the step S100 may include:
step S101, a simulation environment for importing batch data into a memory is built on the current terminal device, wherein the computing power of the current terminal device for executing data storage and writing is greater than the computing power of the embedded terminal device for executing data storage.
It should be noted that, in this embodiment, the computing power (or performance, etc.) that can be obtained by the terminal device as the execution subject based on the self-running memory is far greater than the computing power that can be obtained by the embedded device based on the self-firmware. Specifically, for example, the terminal device as the data batch writing method of the memory of the present invention is a PC device, and the embedded device is specifically a vehicle-mounted intelligent terminal device, so that the computing power for executing data storage writing provided by a PC device is naturally much greater than the computing power for executing data storage writing provided by the vehicle-mounted intelligent terminal device.
Step S200, performing injection operation of data to be imported in the simulation environment to obtain virtual file data;
the terminal device constructs a memory which is built in the embedded device and needs to import large-batch data, simulates a simulation environment for importing the batch data, namely starts to inject the large-batch data to be imported into the memory in the simulation environment, and accordingly obtains complete virtual file data after the injection operation is completed.
Further, in one possible embodiment, the batch data includes: the large-batch map data for vehicle navigation, in step S200, may include:
step S201, in the simulation environment, using the large batch of map data as data to be imported;
step S201, performing an injection operation on the data to be imported to obtain virtual file data identifying a distribution of the large amount of map data in the memory.
The method comprises the steps that after a terminal device constructs a simulation environment which is built in a vehicle-mounted intelligent terminal device and needs to import a large amount of map data, the simulation environment is simulated to import the large amount of map data, the large amount of map data are determined to be data to be imported which need to be injected, then the large amount of data to be imported serve as excitation, and accordingly injection operation of the data to be imported into a memory is executed based on computing power which can be provided by the terminal device.
It should be noted that, in this embodiment, the terminal device obtains the virtual file data by importing a large amount of data into an actual environment of the memory in advance, capturing an operation sequence and data of the memory when the data is imported, and then performing an injection operation on the captured operation sequence and data in a simulation environment of the actual environment. It should be understood that, based on different design requirements of practical applications, in different possible embodiments, the terminal device may also perform the injection operation in the simulation environment in other manners, and the method for writing the bulk data of the memory of the present invention is not specifically limited to the specific manner for performing the injection operation, as long as the terminal device is an operation requirement for writing the bulk data to be written into the memory into different addresses of the memory and injecting the correspondingly written data into the simulation environment to obtain the data distribution of the bulk data in the memory, which should be included in the scope of protection of the present application.
Step S300, writing the virtual file data into the memory based on a preset data interface so as to write the data to be imported into the memory in batch.
It should be noted that, in this embodiment, the preset data interface is a programmable data interface provided for the memory. It should be understood that, based on different design requirements of practical applications, the programmable data interfaces provided by the memories in any different memories may be the same or different, and therefore, the data batch writing method of the memory of the present invention is not limited to the specific type of the programmable data interface.
The terminal equipment executes injection operation to the memory aiming at mass data to be imported in a simulation environment, so that after the injection operation is completed to obtain complete virtual file data, the memory is called to provide a programmable data interface for programming to issue an instruction to the memory, and the virtual file data is directly written into the memory in a programming-based mode, so that the mass data to be imported is quickly written into the memory in a batch mode.
Further, in a possible embodiment, the step S300 may include:
step S301, generating and packaging the virtual file data into a self-defined file programming instruction;
in the process that the terminal equipment writes virtual file data into the memory by using a programming mode based on a programmable data interface provided by the memory to realize the batch writing of large batch of data to be imported into the memory in batch, the virtual file data for identifying the distribution condition of the large batch of data to be imported among all physical blocks of the memory is packaged in a file programming instruction which needs to be issued to the memory by using the programmable data interface by using a self-defined file programming instruction mode.
It should be noted that, in this embodiment, the file programming instruction defined by the terminal device may specifically be a protocol command of a data transmission protocol specifically used by a programmable data interface provided by the memory. The terminal device may specifically receive each configuration operation of the user through a user graphical interface visually output to the user from the front end, so as to generate a customized file programming instruction based on each configuration operation.
Step S302, based on the programmable data interface of the memory, issuing the file programming instruction to the memory to write the virtual file data into the memory.
The terminal device writes virtual file data into the memory in a programming mode based on a programmable data interface provided by the memory to realize the batch writing of mass data to be imported into the memory, and immediately calls the programmable data interface provided by the memory after the virtual file data is packaged in the file programming instruction in a mode of customizing the file programming instruction so as to issue the file programming instruction to the memory through the programmable data interface, so that specific data writing can be executed in the memory to realize the batch writing of the mass data to be imported into the memory.
Further, in a possible embodiment, the method for writing data in bulk to the memory according to the present invention may further include:
and step A, acquiring management file data for importing the large batch of map data into the memory, and writing the management file data and the virtual file data into the memory based on the data interface.
In the present embodiment, in the process of writing data into the memory, redundant data for managing how data is distributed, moved, and the like in each physical block of the memory is generated, and the part of redundant data is not lost, so that the part of redundant data needs to be written into the memory synchronously in the process of importing and storing a large amount of map data actually used for vehicle navigation into the memory, so as to ensure that the subsequent memory can perform normal read/write operations on the large amount of map data in a specific vehicle navigation scene.
In the process that the terminal equipment writes the large batch of map data into the memory through the programmable data interface provided by the memory based on the self-defined file programming instruction, the acquired management file data and the virtual file data used for identifying the distribution condition of the large batch of map data among the physical blocks of the memory are synchronously written into the memory by using the programmable data interface.
Further, in a possible embodiment, in the step a, the step of obtaining the management file data for importing the large batch of map data into the memory may include:
step a1, in the process of executing the injection operation on the data to be imported, acquiring management file data for managing the distribution of the map data in the memory in large batch.
In the constructed simulation environment, the terminal device acquires redundant data for managing how the large batch of map data is distributed, moved and the like in each physical block of the memory in real time in the process of executing injection operation on the large batch of map data as data to be imported, and records the real-time statistics of the acquired part of redundant data into management file data for managing the distribution condition of the large batch of map data in the memory.
In this embodiment, the method for writing data into a memory in batch according to the present invention constructs a memory, which is embedded in an embedded device and needs to import large-batch data, at a local end through a terminal device, and simulates a simulation environment for importing batch data; the method comprises the steps that terminal equipment simulates a simulation environment for importing batch data after constructing a memory which is built in embedded equipment and needs to import the batch data, namely, the terminal equipment starts to inject the batch data to be imported into the simulation environment, and injection operation of the memory is executed aiming at the batch data to be imported, so that complete virtual file data can be obtained after the injection operation is completed; the terminal equipment executes injection operation to the memory aiming at mass data to be imported in a simulation environment, so that after the injection operation is completed to obtain complete virtual file data, the memory is called to provide a programmable data interface for programming to issue an instruction to the memory, and the virtual file data is directly written into the memory in a programming-based mode, so that the mass data to be imported is quickly written into the memory in a batch mode.
Compared with the traditional method for executing mass data import based on self calculation of firmware after welding a memory by using a patch production mode in an embedded device, the method provided by the invention has the advantages that the process of importing mass data into the memory is simulated, so that mass data injection is executed in the simulation environment, and finally, virtual file data obtained by simulating and injecting mass data is directly written into the memory based on a programming mode to realize mass data writing. Therefore, the method and the device can use the calculation power higher than that of the embedded device to conduct the process of importing the mass data into the memory, and greatly reduce the time consumption of importing the mass data into the memory, so that the technical problems that the time consumption of data import is serious and the terminal production efficiency is influenced when a large amount of data such as a navigation map is imported into the memory in the process of patch production of the conventional vehicle-mounted intelligent terminal device are effectively solved, and the production efficiency is improved.
In addition, referring to fig. 3, an embodiment of the invention further provides a data batch writing device of a memory, where the data batch writing device of the memory includes:
the environment construction module 10 is configured to construct a simulation environment for importing batch data into a memory, where the memory is embedded in an embedded terminal device;
the data injection module 20 is configured to perform an injection operation on data to be imported in the simulation environment to obtain virtual file data;
and a file writing module 30, configured to write the virtual file data into the memory based on a preset data interface, so as to write the to-be-imported data into the memory in batch.
Further, the preset data interface is a programmable data interface of the memory;
a file writing module 30, comprising:
the data packaging unit is used for generating and packaging the virtual file data into a self-defined file programming instruction;
and the programming unit is used for issuing the file programming instruction to the memory based on a programmable data interface of the memory so as to write the virtual file data into the memory.
Further, the environment constructing module 10 of the data batch writing apparatus of the memory of the present invention is further configured to construct, on the current terminal device, a simulation environment for importing batch data into the memory, where a computation power of the current terminal device for executing data storage and writing is greater than a computation power of the embedded terminal device for executing data storage.
Further, the batch data includes: bulk map data for vehicle navigation, the data injection module 20 comprising:
the determining unit is used for taking the large-batch map data as data to be imported in the simulation environment;
and the injection execution unit is used for executing injection operation on the data to be imported to obtain virtual file data for marking the distribution condition of the large batch of map data in the memory.
Further, the file writing module 30 of the data batch writing device of the memory of the present invention is further configured to obtain management file data for importing the large batch of map data into the memory, and write the management file data and the virtual file data into the memory based on the data interface.
Further, the file writing module 30 further includes:
and the management data acquisition unit is used for acquiring management file data for managing the distribution condition of the map data in the mass in the memory in the process of executing the injection operation on the data to be imported.
The steps implemented by each functional module of the data batch writing device of the memory when the controller runs can refer to the above-mentioned embodiment of the data batch writing method of the memory of the present invention, and are not described herein again.
In addition, an embodiment of the present invention further provides a terminal device, where the terminal device includes: the data batch writing program of the memory is executed by the processor to realize the steps of the data batch writing method of the memory.
The steps implemented when the batch data writing program of the memory running on the processor is executed may refer to various embodiments of the batch data writing method of the memory of the present invention, and are not described herein again.
In addition, an embodiment of the present invention further provides a computer storage medium applied to a computer, where the computer storage medium may be a nonvolatile computer-readable computer storage medium, and the computer storage medium stores a data batch write program of a memory, and when the data batch write program of the memory is executed by a processor, the steps of the data batch write method of the memory described above are implemented.
The steps implemented when the batch data writing program of the memory running on the processor is executed may refer to various embodiments of the batch data writing method of the memory of the present invention, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a computer storage medium (e.g., Flash memory, ROM/RAM, magnetic disk, optical disk), and includes several instructions for enabling a controller, which is used for controlling the storage medium to perform data reading and writing operations, in a terminal device (e.g., a computer, a server, etc.) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. The data batch writing method of the memory is characterized by comprising the following steps of:
constructing a simulation environment for importing batch data into a memory, wherein the memory is internally arranged in embedded terminal equipment;
performing injection operation of data to be imported in the simulation environment to obtain virtual file data;
and writing the virtual file data into the memory based on a preset data interface so as to write the data to be imported into the memory in batches.
2. The method for writing data in bulk into a memory according to claim 1, wherein the predetermined data interface is a programmable data interface of the memory;
the step of writing the virtual file data into the memory based on a preset data interface includes:
generating and packaging the virtual file data into a self-defined file programming instruction;
based on a programmable data interface of the memory, issuing the file programming instruction to the memory to write the virtual file data to the memory.
3. The method of claim 1, wherein the step of building an emulation environment to import bulk data into the memory comprises:
and constructing a simulation environment for importing batch data into a memory on the current terminal equipment, wherein the computing power of the current terminal equipment for executing data storage and writing is greater than that of the embedded terminal equipment for executing data storage.
4. The method of bulk writing of data to memory of claim 1, wherein the bulk data comprises: the step of performing injection operation of data to be imported in the simulation environment to obtain virtual file data includes:
in the simulation environment, the large-batch map data are used as data to be imported;
and executing injection operation on the data to be imported to obtain virtual file data for marking the distribution condition of the large batch of map data in the memory.
5. The method of bulk writing of data to memory of claim 4, further comprising:
and acquiring management file data for importing the large-batch map data into the memory, and writing the management file data and the virtual file data into the memory based on the data interface.
6. The method for writing data in bulk into a memory according to claim 5, wherein the step of acquiring the management file data for importing the map data in bulk into the memory comprises:
and acquiring management file data for managing the distribution condition of the large batch of map data in the memory in the process of executing the injection operation on the data to be imported.
7. A data batch writing device of a memory, the data batch writing device of the memory comprising:
the system comprises an environment construction module, a data storage module and a data transmission module, wherein the environment construction module is used for constructing a simulation environment for importing batch data into a memory, and the memory is internally arranged in embedded terminal equipment;
the data injection module is used for performing injection operation of data to be imported in the simulation environment to obtain virtual file data;
and the file writing module is used for writing the virtual file data into the memory based on a preset data interface so as to write the data to be imported into the memory in batches.
8. The apparatus of claim 7, wherein the bulk data comprises: bulk map data for vehicle navigation, the data injection module comprising:
the determining unit is used for taking the large-batch map data as data to be imported in the simulation environment;
and the injection execution unit is used for executing injection operation on the data to be imported to obtain virtual file data for marking the distribution condition of the large batch of map data in the memory.
9. A terminal device, characterized in that the terminal device comprises: memory, processor and a data batch writer of the memory stored on the memory and executable on the processor, which when executed by the processor implements the steps of the data batch write method of the memory according to any one of claims 1 to 6.
10. A computer storage medium, characterized in that the computer storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for batch writing of data of a memory according to any one of claims 1 to 6.
CN202111065572.4A 2021-09-10 2021-09-10 Data batch writing method and device of memory, terminal equipment and storage medium Pending CN113867630A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111065572.4A CN113867630A (en) 2021-09-10 2021-09-10 Data batch writing method and device of memory, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111065572.4A CN113867630A (en) 2021-09-10 2021-09-10 Data batch writing method and device of memory, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113867630A true CN113867630A (en) 2021-12-31

Family

ID=78995496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111065572.4A Pending CN113867630A (en) 2021-09-10 2021-09-10 Data batch writing method and device of memory, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113867630A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014107940A1 (en) * 2013-01-11 2014-07-17 深圳市江波龙电子有限公司 Embedded memory management method, embedded memory and electronic device
CN107861685A (en) * 2017-06-20 2018-03-30 平安科技(深圳)有限公司 Virtual disk wiring method and device, storage medium based on copy-on-write
CN109583192A (en) * 2018-12-08 2019-04-05 公安部第三研究所 A kind of fixed safety system of mobile terminal application and method based on emulation
CN111241051A (en) * 2020-01-07 2020-06-05 深圳迅策科技有限公司 Batch data processing method and device, terminal equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014107940A1 (en) * 2013-01-11 2014-07-17 深圳市江波龙电子有限公司 Embedded memory management method, embedded memory and electronic device
CN107861685A (en) * 2017-06-20 2018-03-30 平安科技(深圳)有限公司 Virtual disk wiring method and device, storage medium based on copy-on-write
CN109583192A (en) * 2018-12-08 2019-04-05 公安部第三研究所 A kind of fixed safety system of mobile terminal application and method based on emulation
CN111241051A (en) * 2020-01-07 2020-06-05 深圳迅策科技有限公司 Batch data processing method and device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106326104B (en) Terminal control testing method and device
CN103049375B (en) A kind of camera on-line debugging method
US9824000B1 (en) Testing calling code dynamically with random error injection based on user-specified configuration
CN112256296A (en) Express delivery service APP updating method, device, equipment and storage medium based on Weex
CN108563579A (en) White-box testing method, apparatus, system and storage medium
CN103176899A (en) Mobile phone emulator and method for emulating mobile phone functions on host machine
CN109271255A (en) Resource regulating method, system and electronic equipment and storage medium
CN111389014A (en) Game resource data monitoring method and device, computer equipment and storage medium
CN111008132A (en) Application debugging method and device for Android system, computer equipment and storage medium
CN111045707B (en) Method, apparatus, computer device and storage medium for updating applet
CN115184764A (en) Chip testing method and device, electronic equipment and storage medium
CN113032246B (en) SSD firmware operation method and device, readable storage medium and electronic equipment
CN112486863A (en) Software virtual simulation method and device and electronic equipment
CN113867630A (en) Data batch writing method and device of memory, terminal equipment and storage medium
CN112885403B (en) Function test method, device and equipment of Flash controller
CN115587026A (en) Chip testing method and device, storage medium and chip
CN112765018B (en) Instrument and meter debugging system and method
CN113805854A (en) Method, system and device for realizing Hook of application layer based on Linux system and storage medium
CN114116491A (en) Webpage program testing method and device, electronic equipment and storage medium
CN113641577A (en) Debugging method and device for terminal product application program
CN112667490A (en) Performance test method and device based on hook function
CN111143227A (en) Data operation method, device, terminal and storage medium
CN115186453A (en) Mass production method and device of storage hardware, terminal equipment and computer medium
CN108733444A (en) A kind of method for refreshing of the page, device, storage medium and mobile terminal
CN108073427A (en) FPGA image loading method and system

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