Data processing method and device

文档序号:614832 发布日期:2021-05-07 浏览:23次 中文

阅读说明:本技术 数据处理方法及装置 (Data processing method and device ) 是由 徐龙增 陈娜娜 张国花 郎学政 张正阳 于 2021-01-04 设计创作,主要内容包括:本申请提供一种数据处理方法及装置,在ECU上电后,向除MCU的RAM地址范围之外的其他地址写数据,从写入数据的地址中读取数据并确定同一地址写入的数据和读取到的数据是否相同;若确定写入的数据和读取到的数据相同,则确定ECU为标定ECU,将全部虚拟地址映射到标定RAM地址,以对映射到标定RAM地址中的数据进行标定;若确定写入的数据和读取到的数据不同,则确定ECU为产品ECU,将部分虚拟地址映射到标定RAM地址。这样通过将一套集成了采用标定ECU进行发动机性能试验和采用产品ECU进行发动机性能试验的程序刷写至MCU中就可以执行对应的程序以进行发动机性能试验。(The application provides a data processing method and a device, after an ECU is electrified, data are written to other addresses except the RAM address range of an MCU, the data are read from the address of the written data, and whether the written data and the read data in the same address are the same or not is determined; if the written data and the read data are the same, determining the ECU as a calibration ECU, mapping all virtual addresses to the address of a calibration RAM, and calibrating the data mapped to the address of the calibration RAM; and if the written data and the read data are different, determining that the ECU is a product ECU, and mapping part of the virtual address to a calibration RAM address. Therefore, a set of programs integrating the engine performance test by adopting the calibration ECU and the engine performance test by adopting the product ECU are written into the MCU in a flashing manner, so that the corresponding programs can be executed to carry out the engine performance test.)

1. A data processing method, comprising:

after the ECU is electrified, writing data to other addresses except the RAM address range of the MCU;

reading data from the address where the data is written;

determining whether the data written in the same address is the same as the read data;

if the data written in the same address is the same as the read data, determining the ECU as a calibration ECU, and mapping all the virtual addresses to the calibration RAM address to calibrate the data mapped to the calibration RAM address; wherein, there is corresponding relation between the virtual address and the calibration quantity;

and if the data written in the same address is different from the read data, determining that the ECU is a product ECU, and mapping part of the virtual address to a calibration RAM address.

2. The data processing method of claim 1, wherein writing data to an address other than the RAM address range of the MCU comprises:

assigning other addresses except the RAM address range of the MCU to the pointer;

and writing data to the address pointed by the pointer.

3. The data processing method according to claim 2, wherein the reading data from the address of the written data comprises:

data is read from the address pointed to by the pointer.

4. The data processing method according to claim 2 or 3, wherein before writing data to the address pointed to by the pointer, the method further comprises:

and storing the data in the address pointed by the pointer into a temporary array so as to restore the data in the address pointed by the pointer according to the data stored in the temporary array after writing the data in the address pointed by the pointer.

5. The data processing method of claim 4, wherein after determining that the ECU is a calibration ECU, further comprising:

and acquiring the temporary array, and rewriting the data in the address pointed by the pointer based on the data in the temporary array.

6. A data processing apparatus, comprising:

the writing unit is used for writing data to other addresses except the RAM address range of the MCU after the ECU is electrified;

a reading unit for reading data from an address where the data is written;

a determination unit for determining whether the data written and the data read at the same address are the same;

the processing unit is used for determining the ECU as a calibration ECU if the data written in the same address and the data read out are the same, and mapping all the virtual addresses to the calibration RAM address to calibrate the data mapped to the calibration RAM address; wherein, there is corresponding relation between the virtual address and the calibration quantity; and if the data written in the same address is different from the read data, determining that the ECU is a product ECU, and mapping part of the virtual address to a calibration RAM address.

7. The data processing apparatus according to claim 6, wherein the writing unit includes:

the assignment subunit is used for assigning other addresses except the RAM address range of the MCU to the pointer;

and the writing subunit is used for writing data to the address pointed by the pointer.

8. The data processing apparatus according to claim 7, wherein the reading unit is specifically configured to:

data is read from the address pointed to by the pointer.

9. The data processing apparatus according to claim 7 or 8, further comprising:

and the storage unit is used for storing the data in the address pointed by the pointer into the temporary array so as to restore the data in the address pointed by the pointer according to the data stored in the temporary array after the data is written into the address pointed by the pointer.

10. The data processing apparatus of claim 9, further comprising:

and the rewriting unit is used for acquiring the temporary array and rewriting the data in the address pointed by the pointer based on the data in the temporary array.

Technical Field

The application belongs to the technical field of engines, and particularly relates to a data processing method and device.

Background

When the performance test of the engine is carried out, various calibration quantities need to be calibrated, and at the moment, the performance test is carried out by adopting a calibration ECU with a larger external RAM. However, the performance test using the calibration ECU is costly. After the ECU is sized and batched, the product ECU is adopted for performance test in order to reduce the cost.

Because the production ECU has a smaller RAM than the calibration ECU, the calibration mode used when the production ECU is used for performance tests is different from the calibration mode used when the calibration ECU is used for performance tests. Therefore, different programs are respectively written aiming at the product ECU and the calibration ECU, and calibration quantity calibration is carried out by adopting different calibration modes so as to complete the performance test. Therefore, two sets of programs need to be developed, and the problem that calibration quantity cannot be calibrated due to brushing errors so that performance tests cannot be completed is solved.

Disclosure of Invention

In view of this, an object of the present application is to provide a data processing method and apparatus, which are used to solve the problems that two sets of programs need to be developed when an engine performance test is performed, and calibration of a calibration amount cannot be performed due to brushing errors, so that the performance test cannot be completed.

The technical scheme is as follows:

the application provides a data processing method, which comprises the following steps:

after the ECU is electrified, writing data to other addresses except the RAM address range of the MCU;

reading data from the address where the data is written;

determining whether the data written in the same address is the same as the read data;

if the data written in the same address is the same as the read data, determining the ECU as a calibration ECU, and mapping all the virtual addresses to the calibration RAM address to calibrate the data mapped to the calibration RAM address; wherein, there is corresponding relation between the virtual address and the calibration quantity;

and if the data written in the same address is different from the read data, determining that the ECU is a product ECU, and mapping part of the virtual address to a calibration RAM address.

Preferably, the writing data to other addresses except the RAM address range of the MCU includes:

assigning other addresses except the RAM address range of the MCU to the pointer;

and writing data to the address pointed by the pointer.

Preferably, the reading data from the address of the write data includes:

data is read from the address pointed to by the pointer.

Preferably, before writing data to the address pointed by the pointer, the method further includes:

and storing the data in the address pointed by the pointer into a temporary array so as to restore the data in the address pointed by the pointer according to the data stored in the temporary array after writing the data in the address pointed by the pointer.

Preferably, after determining that the ECU is a calibration ECU, the method further includes:

and acquiring the temporary array, and rewriting the data in the address pointed by the pointer based on the data in the temporary array.

The application provides a data processing apparatus, including:

the writing unit is used for writing data to other addresses except the RAM address range of the MCU after the ECU is electrified;

a reading unit for reading data from an address where the data is written;

a determination unit for determining whether the data written and the data read at the same address are the same;

the processing unit is used for determining the ECU as a calibration ECU if the data written in the same address and the data read out are the same, and mapping all the virtual addresses to the calibration RAM address to calibrate the data mapped to the calibration RAM address; wherein, there is corresponding relation between the virtual address and the calibration quantity; and if the data written in the same address is different from the read data, determining that the ECU is a product ECU, and mapping part of the virtual address to a calibration RAM address.

Preferably, the writing unit includes:

the assignment subunit is used for assigning other addresses except the RAM address range of the MCU to the pointer;

and the writing subunit is used for writing data to the address pointed by the pointer.

Preferably, the reading unit is specifically configured to:

data is read from the address pointed to by the pointer.

Preferably, the method further comprises the following steps:

and the storage unit is used for storing the data in the address pointed by the pointer into the temporary array so as to restore the data in the address pointed by the pointer according to the data stored in the temporary array after the data is written into the address pointed by the pointer.

Preferably, the method further comprises the following steps:

and the rewriting unit is used for acquiring the temporary array and rewriting the data in the address pointed by the pointer based on the data in the temporary array.

Compared with the prior art, the technical scheme provided by the application has the following advantages:

according to the technical scheme, after the ECU is powered on, data is written to other addresses except the address range of the RAM of the MCU; reading data from the address where the data is written; determining whether the data written in the same address is the same as the read data; if the data written in the same address is the same as the read data, determining the ECU as a calibration ECU, mapping all virtual addresses to the address of a calibration RAM, and calibrating the data mapped to the address of the calibration RAM; wherein, there is corresponding relation between the virtual address and the calibration quantity; and if the data written in the same address is different from the read data, determining that the ECU is a product ECU, and mapping part of the virtual address to a calibration RAM address. Because whether the product ECU or the calibration ECU is used for the engine performance test at present can be identified, and corresponding operation is executed aiming at the identified ECU, the corresponding program can be executed to carry out the engine performance test by brushing a set of program integrating the engine performance test by using the calibration ECU and the engine performance test by using the product ECU into the MCU, two sets of different programs do not need to be developed aiming at different types of ECUs, and different programs are brushed aiming at the different types of ECUs, so that the operation is simple, and the problem that the performance test cannot be completed due to mistaken brushing is avoided.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.

FIG. 1 is a flow chart of a data processing method disclosed herein;

FIG. 2 is a schematic diagram of the calibration ECU mapping virtual addresses all to calibration RAM addresses;

FIG. 3 is a schematic diagram of a product ECU mapping a portion of a virtual address to a nominal RAM address;

FIG. 4 is a flow chart of another data processing method disclosed herein;

FIG. 5 is a flow chart of another data processing method disclosed herein;

FIG. 6 is a schematic block diagram of a data processing apparatus according to the present disclosure;

fig. 7 is a schematic diagram of another data processing apparatus disclosed in the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

In the prior art, when an engine performance test is carried out, a product ECU or a calibration ECU can be adopted for the performance test. However, for different types of ECUs, different calibration methods are required to complete calibration of various calibration amounts, so before calibration of various calibration amounts, the ECUs need to be distinguished first, and then calibration of various calibration amounts is performed in a corresponding calibration method to complete performance tests. Therefore, two sets of different programs need to be developed for different types of ECUs, calibration of various data volumes is completed by adopting different calibration modes, and a performance test is completed.

In this way, when the product ECU is used for performance test, the program corresponding to the product ECU is written; when the calibration ECU is used for performance test, the program corresponding to the calibration ECU is written.

Because different programs need to be written aiming at different types of ECUs, calibration of various calibration amounts is carried out by adopting different calibration modes, and the performance test of the engine is completed, the calibration operation is complex, and the problems that the calibration of various calibration amounts cannot be carried out and the performance test cannot be completed due to wrong brushing exist.

In view of this, the present application provides a data processing method, which, as shown in fig. 1, may include the steps of:

and S101, after the ECU is powered on, writing data to other addresses except the RAM address range of the MCU.

When the calibration ECU or the product ECU is adopted to carry out the performance test of the engine, various calibration amounts need to be calibrated, wherein, calibration equipment is adopted to carry out the calibration of various calibration amounts on a rack.

And establishing a communication connection between the calibration equipment and the ECU.

The ECU refers to an ECU used for performing engine performance tests, and comprises a calibration ECU and a production ECU.

It can be understood that if the calibration ECU is selected to be used for the engine performance test, the communication connection between the calibration equipment and the calibration ECU is established;

and if the product ECU is selected to be used for the engine performance test, establishing communication connection between the calibration equipment and the product ECU.

After the ECU for carrying out the engine performance test is determined, the program is written into the MCU, and the ECU and the calibration equipment are connected through the interface bus so as to establish communication connection between the ECU and the calibration equipment.

Optionally, a Serial Peripheral Interface (SPI) is used to connect the ECU and the calibration device.

It should be noted that the program written to the MCU is a program that integrates the engine performance test performed by the calibration ECU and the engine performance test performed by the product ECU, so that when the program is written to the MCU of the ECU, it is not necessary to consider whether the product ECU or the calibration ECU is currently performing the engine performance test, and only the program is written to the MCU.

Then the ECU is electrified, and various initialization works are executed after the ECU is electrified. For example, the external RAM of the ECU is initialized, and the bus interface is initialized.

The external RAM here refers to RAM other than the RAM of the MCU itself. Wherein, for calibrating the ECU, an external RAM is usually present. The external RAM is referred to herein as external RAM.

Only after the external RAM completes initialization can a write operation to the external RAM be performed.

In the application, after the ECU is powered on, data is written to other addresses except the address range of the RAM of the MCU.

After the ECU is determined, the selected MCU model can be determined, and further the RAM space size and the address range of the MCU can be determined.

And writing to other addresses except the address range of the RAM of the MCU, wherein the address of the writing operation is only required to be the address except the address range of the RAM of the MCU, and the specific address is not limited. And the written data can be any data, and the written specific data is not limited here.

S102, reading data from the address of the written data.

After the write operation to a certain address is executed, the read operation to the address is executed to read the data stored at the address.

S103, determining whether the data written in the same address is the same as the read data;

if the data written in the same address is determined to be the same as the read data, executing step S104;

if it is determined that the written data and the read data at the same address are different, step S105 is performed.

For example, a write operation is performed to address 1, and the write data is "0", where address 1 is not an address in the RAM address range of the MCU itself, i.e., address 1 is some address in the external RAM.

Then, a read operation is performed on address 1 to read the data in address 1.

If the read data is '0', the written data and the read data are determined to be the same for the same address, and then the ECU is considered to have a larger external RAM, and the ECU can be determined to be the calibration ECU based on the fact that the larger external RAM exists.

If the read data is not '0', the written data and the read data are determined to be different aiming at the same address, and further the space corresponding to the address is determined not to be a RAM address space, such as a flash space, and the ECU is not considered to be provided with other RAMs except the RAM of the MCU, so that the ECU can be determined to be a product ECU.

S104, determining that the ECU is a calibration ECU, and mapping all virtual addresses to calibration RAM addresses to calibrate data mapped to the calibration RAM addresses; wherein, there is a corresponding relationship between the virtual address and the calibration quantity.

There is a correspondence between the virtual address and the scalar quantity. When calibration is performed, the virtual address needs to be mapped into the calibration RAM address.

In practical application, the calibration quantity may be different under different conditions, so that when the calibration quantity is calibrated, the subsequent calibration of different calibration quantities can be completed only by establishing a mapping relation between the virtual address and the calibration RAM address without modifying a program.

The calibration ECU maps all of the virtual addresses to the calibration RAM addresses as shown in fig. 2, thereby implementing the calibration function for the data mapped into the calibration RAM addresses.

A nominal RAM address is a portion of RAM space that is divided into RAM spaces for calibration. Typically, the RAM space used for calibration is only a certain percentage, such as 60%, of the total RAM space in order to avoid affecting the operation of the system.

And S105, determining that the ECU is a product ECU, and mapping part of the virtual address to the calibrated RAM address.

And the product ECU takes the RAM address of the MCU as a calibration RAM address. However, if the RAM address of all the MCUs is taken as the calibration RAM address, the calibration function is realized. Then, since the whole RAM space is occupied, the normal operation of the system will be affected.

Based on this, the product ECU only maps part of the virtual addresses to the calibration RAM addresses, and the rest virtual addresses are mapped to the calibration Flash addresses, as shown in FIG. 3, so that the calibration function of the data mapped to the calibration RAM addresses is realized, and the engine performance test is completed.

Through the technical scheme, after the ECU is powered on, data is written to other addresses except the RAM address range of the MCU; reading data from the address where the data is written; determining whether the data written in the same address is the same as the read data; if the data written in the same address is the same as the read data, determining the ECU as a calibration ECU, mapping all virtual addresses to the address of a calibration RAM, and calibrating the data mapped to the address of the calibration RAM; wherein, there is corresponding relation between the virtual address and the calibration quantity; and if the data written in the same address is different from the read data, determining that the ECU is a product ECU, and mapping part of the virtual address to a calibration RAM address. Because whether the product ECU or the calibration ECU is used for the engine performance test at present can be identified, and corresponding operation is executed aiming at the identified ECU, the corresponding program can be executed to carry out the engine performance test by brushing a set of program integrating the engine performance test by using the calibration ECU and the engine performance test by using the product ECU into the MCU, two sets of different programs do not need to be developed aiming at different types of ECUs, and different programs are brushed aiming at the different types of ECUs, so that the operation is simple, and the problem that the performance test cannot be completed due to mistaken brushing is avoided.

The embodiment of the present application further provides another data processing method, as shown in fig. 4, the method may include the following steps:

s401, after the ECU is powered on, assigning other addresses except the RAM address range of the MCU to the pointer.

For example, an address exceeding the MCU's own RAM address range is assigned to the pointer pTest Value so that the pointer pTest Value points to the address.

S402, writing data to the address pointed by the pointer.

A write operation is performed to the address pointed to by the pointer pTest Value to write the content.

And S403, reading data from the address pointed by the pointer.

A read operation is performed on the address pointed to by the pointer pTest Value to read the content from the address.

S404, determining whether the data written in the same address is the same as the read data;

if it is determined that the data written in the same address is the same as the data read, step S405 is executed;

if it is determined that the written data and the read data at the same address are different, step S406 is executed.

S405, determining that the ECU is a calibration ECU, and mapping all virtual addresses to calibration RAM addresses to calibrate data mapped to the calibration RAM addresses; wherein, there is a corresponding relationship between the virtual address and the calibration quantity.

And S406, determining that the ECU is a product ECU, and mapping part of the virtual address to the calibrated RAM address.

The implementation manners of steps S404 to S406 in this embodiment are similar to the implementation manners of steps S103 to S105 in the previous embodiment, and are not described herein again.

In this embodiment, it is clear that the write operation and the read operation to a certain address are realized by a pointer.

In consideration of the fact that data at an address cannot be changed at will in practical application, in the embodiment of the present application, after a write operation is performed on an address other than the RAM address range of the MCU, the initial data stored at the address needs to be recovered. The initial data refers to the data stored at the address prior to the write operation.

Referring to fig. 5, the data processing method may include the steps of:

and S501, after the ECU is powered on, assigning other addresses except the RAM address range of the MCU to the pointer.

For example, an address exceeding the MCU's own RAM address range is assigned to the pointer pTest Value so that the pointer pTest Value points to the address.

S502, storing the data in the address pointed by the pointer into a temporary array so as to restore the data in the address pointed by the pointer according to the data stored in the temporary array after writing the data in the address pointed by the pointer.

The address pointed to by the pointer pTest Value may have data stored therein, which is referred to as initial data. Before the write operation of the address pointed by the pointer pTest Value is performed, the initial data stored at the address is saved in the temporary array, so that the initial data at the address is recovered based on the data stored in the temporary array, and the operation result of the system is prevented from being influenced by rewriting the data at a certain address.

S503, writing data to the address pointed by the pointer.

A write operation is performed to the address pointed to by the pointer pTest Value to write the content.

And S504, reading data from the address pointed by the pointer.

A read operation is performed on the address pointed to by the pointer pTest Value to read the content from the address.

S505, determining whether the written data and the read data of the same address are the same;

if it is determined that the data written in the same address is the same as the data read, step S506 is executed;

if it is determined that the written data and the read data at the same address are different, step S508 is executed.

S506, determining that the ECU is a calibration ECU, acquiring the temporary array and rewriting data in the address pointed by the pointer based on the data in the temporary array.

For example, the initial data stored at address 1 is "11", address 1 is assigned to the pointer and "11" is stored in the temporary array.

A write operation to address 1 is performed, writing new data "0". The data stored at address 1 at this time is "0".

And then, reading the address 1, wherein the read data is '0', and the ECU is determined to be a calibration ECU.

And then acquiring the temporary array, and writing the data stored in the temporary array into the address 1, wherein the data stored in the address 1 is '11', so that the address 1 recovers the initial data, and the data stored under the address is prevented from being rewritten.

S507, mapping all the virtual addresses to the calibrated RAM addresses to calibrate the data mapped to the calibrated RAM addresses; wherein, there is a corresponding relationship between the virtual address and the calibration quantity.

And S508, determining that the ECU is a product ECU, and mapping part of the virtual address to the calibrated RAM address.

It is understood that the operation of acquiring the temporary array and rewriting the data in the address to which the pointer points based on the data in the temporary array is performed not only after the ECU is determined to be the calibration ECU.

After the ECU is determined to be the product ECU, the operation of acquiring the temporary array and rewriting the data in the address pointed by the pointer based on the data in the temporary array can be executed, and then the operation of mapping part of the virtual address to the nominal RAM address can be executed.

Through the technical scheme, after the ECU is powered on, data is written to other addresses except the RAM address range of the MCU; reading data from the address where the data is written; determining whether the data written in the same address is the same as the read data; if the data written in the same address is the same as the read data, determining the ECU as a calibration ECU, mapping all virtual addresses to the address of a calibration RAM, and calibrating the data mapped to the address of the calibration RAM; wherein, there is corresponding relation between the virtual address and the calibration quantity; and if the data written in the same address is different from the read data, determining that the ECU is a product ECU, and mapping part of the virtual address to a calibration RAM address. Because whether the product ECU or the calibration ECU is used for the engine performance test at present can be identified, and corresponding operation is executed aiming at the identified ECU, the corresponding program can be executed to carry out the engine performance test by brushing a set of program integrating the engine performance test by using the calibration ECU and the engine performance test by using the product ECU into the MCU, two sets of different programs do not need to be developed aiming at different types of ECUs, and different programs are brushed aiming at the different types of ECUs, so that the operation is simple, and the problem that the performance test cannot be completed due to mistaken brushing is avoided. Meanwhile, the problem that the operation result of the system is influenced due to the fact that the initial data stored in a certain address is changed is avoided in the embodiment of the application.

Corresponding to the data processing method disclosed in the foregoing embodiment, this embodiment further provides a data processing apparatus, as shown in fig. 6, the apparatus includes:

a writing unit 601, a reading unit 602, a determining unit 603 and a processing unit 604.

The writing unit 601 is used for writing data to other addresses except the RAM address range of the MCU after the ECU is powered on;

a reading unit 602 for reading data from an address where the data is written;

a determination unit 603 for determining whether the data written and the data read at the same address are the same;

the processing unit 604 is configured to determine that the ECU is a calibration ECU if it is determined that the data written in and the data read from the same address are the same, map all the virtual addresses to the calibration RAM addresses, and calibrate the data mapped to the calibration RAM addresses; wherein, there is corresponding relation between the virtual address and the calibration quantity; and if the data written in the same address is different from the read data, determining that the ECU is a product ECU, and mapping part of the virtual address to a calibration RAM address.

Through the technical scheme, after the ECU is powered on, data is written to other addresses except the RAM address range of the MCU; reading data from the address where the data is written; determining whether the data written in the same address is the same as the read data; if the data written in the same address is the same as the read data, determining the ECU as a calibration ECU, mapping all virtual addresses to the address of a calibration RAM, and calibrating the data mapped to the address of the calibration RAM; wherein, there is corresponding relation between the virtual address and the calibration quantity; and if the data written in the same address is different from the read data, determining that the ECU is a product ECU, and mapping part of the virtual address to a calibration RAM address. Because whether the product ECU or the calibration ECU is used for the engine performance test at present can be identified, and corresponding operation is executed aiming at the identified ECU, the corresponding program can be executed to carry out the engine performance test by brushing a set of program integrating the engine performance test by using the calibration ECU and the engine performance test by using the product ECU into the MCU, two sets of different programs do not need to be developed aiming at different types of ECUs, and different programs are brushed aiming at the different types of ECUs, so that the operation is simple, and the problem that the performance test cannot be completed due to mistaken brushing is avoided.

Optionally, in another embodiment, the writing unit 601 includes:

an assignment subunit and a write subunit.

The assignment subunit is used for assigning other addresses except the RAM address range of the MCU to the pointer;

and the writing subunit is used for writing data to the address pointed by the pointer.

Optionally, in other embodiments, the reading unit 602 is specifically configured to:

data is read from the address pointed to by the pointer.

On the basis of the data processing apparatus shown in fig. 6, an embodiment of the present application further provides another data processing apparatus, which is shown in fig. 7 and further includes:

a memory cell 701 and a rewrite unit 702.

A storage unit 701, configured to store the data in the address pointed by the pointer in a temporary array, so as to recover the data in the address pointed by the pointer according to the data stored in the temporary array after writing the data in the address pointed by the pointer.

And a rewriting unit 702, configured to obtain the temporary array, and rewrite, based on the data in the temporary array, the data in the address pointed by the pointer.

In the embodiment, the problem that the operation result of the system is influenced due to the fact that the initial data stored in a certain address is changed is avoided.

While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present invention is not limited by the illustrated ordering of acts, as some steps may occur in other orders or concurrently with other steps in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.

It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.

Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于FPGA的高速数据采集系统及方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类