Data copying method and system based on embedded system

An embedded system and data copying technology, applied in the embedded field, can solve problems such as slow running speed and wasting time, and achieve the effects of increasing running speed, reducing data flow, and reducing time

Inactive Publication Date: 2010-02-10
VIMICRO CORP
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Due to the process of copying the contents of the registers in the peripheral hardware device to the storage unit of the embedded microprocessor, the entire copying process from data acquisition and data storage is through the host computer, and in steps s101, s103, and s104, it is necessary to pass through the communication channel , so it needs to go through the communication channel three times to complete a memory copy. Generally, the amount of data copied in an embedded system is very large, so the running speed is very slow and a lot of time is wasted.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data copying method and system based on embedded system
  • Data copying method and system based on embedded system
  • Data copying method and system based on embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] In this embodiment, the host computer of the embedded system is a personal computer PC commonly used, and the peripheral hardware equipment adopts a video codec. The main data of this video codec is stored in the register, and the embedded microprocessor is connected with the PC. Communication, the communication channel in this embodiment is a universal asynchronous receiving / transmitting device UART (Universal Asynchronous Receiver / Transmitter), and UART is a device whose parallel input becomes serial output. The method of this embodiment realizes copying the data in the register of the peripheral hardware device video codec to the storage unit of the embedded microprocessor, and the specific method and system are combined with the attached figure 2 , attached image 3 The details are as follows:

[0036] Step s201: the PC sends a data copy command, and the data copy command is sent to the embedded microprocessor via the asynchronous receiving / transmitting device UAR...

Embodiment 2

[0049] The difference between this embodiment and Embodiment 1 is that in Embodiment 1, the data copying process only passes through the data channel once. In this embodiment, by analyzing the data copy command sent by the host, after analyzing the data copy command, the Including whether to execute the judgment step of the data copy instruction, if the data copy instruction is executed, memory allocation is carried out by the embedded microprocessor, that is, the data copy method of embodiment 1 is implemented; if the data copy instruction is not executed, the following steps are performed:

[0050] The embedded microprocessor reads the data of the storage unit in the peripheral hardware device;

[0051] Send the read data to the host and store it in the cache area of ​​the host;

[0052] The host computer sends the data in the cache area to the storage unit of the embedded device.

[0053] In this embodiment, due to the addition of the judgment of whether to execute the dat...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a data copy method and a data copy system based on an embedded system. The method comprises the steps that: a host sends a data copy command to an embedded microprocessor; theembedded microprocessor allocates memory according to the data copy command, and reads data in a storage unit of peripheral hardware equipment to the allocated memory; the data in the allocated memory is written into a storage unit of the microprocessor; the allocated memory is released, a memory allocation unit provided by the system is used to receive the data copy command and then makes memoryallocation; a copy data reading unit is used to read the data in the storage unit of the peripheral hardware equipment to the allocated memory; a copy data writing unit is used to write the data intothe storage unit of the embedded microprocessor; and then a memory release unit releases the occupied memory. When the method and the system are utilized to perform data copy, the communication channel only needs to be experienced for once, which reduces the data flow, saves time, and improves the operating speed.

Description

technical field [0001] The invention relates to the field of embedded technology, in particular to a data copy method and system based on an embedded system. Background technique [0002] The embedded system is application-centric, based on computer technology, and the software and hardware can be tailored. It is suitable for special-purpose computer systems that have strict requirements on function, reliability, cost, volume, and power consumption. It is generally composed of four parts: embedded microprocessor, peripheral hardware devices, embedded operating system and user's application program, and is used to realize functions such as control, monitoring or management of other devices. [0003] In practice, the user application program of the embedded system is realized by a host computer such as a PC. The host communicates with the embedded microprocessor through a communication channel, and sends control instructions to the embedded microprocessor, and the embedded mic...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/30G06F9/50
Inventor 张攀峰游明琦
Owner VIMICRO CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products