A data processing method, device, storage medium and terminal

By using response numbers and self-identification in the modular system, the problems of long response time and out-of-order response of slave modules are solved, and sequential communication and resource optimization are achieved.

CN115858535BActive Publication Date: 2026-06-16SEAL CORE SEMICON (NANJING) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SEAL CORE SEMICON (NANJING) CO LTD
Filing Date
2022-12-21
Publication Date
2026-06-16

AI Technical Summary

Technical Problem

In modular systems, traditional read/write methods result in long response times for slave modules, especially for low-speed communication modules such as I2C bus and UART serial communication modules. Furthermore, existing technologies lack effective methods to map out-of-order responses to corresponding read/write commands.

Method used

When a response command is received from a slave module, the system searches for the response number in a preset identifier table based on the response command's own identifier, and then determines the target row in a dynamic additional information table based on the response number. This ensures that each response command is matched with the previous request command, guaranteeing the sequential nature of the responses.

🎯Benefits of technology

This ensures that each communication response is processed sequentially, reducing the need for data storage resources and improving communication efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115858535B_ABST
    Figure CN115858535B_ABST
Patent Text Reader

Abstract

The application discloses a data processing method and device, a storage medium and a terminal. The method comprises the following steps: when a response instruction from a slave module is received, searching for a response number in a preset identification table according to a self-identification of the response instruction; determining a target row in a dynamic additional information table according to the self-identification of the response instruction and the response number; and determining additional information in the target row as additional information of the response instruction. Since the response number is determined and the additional information in the target row in the dynamic additional information table is determined according to the self-identification of the response instruction, each response instruction can be matched with a previous request instruction, the communication response is ensured to be in order, and the data storage resource is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a data processing method, apparatus, storage medium, and terminal. Background Technology

[0002] In today's modular system design, the master unit often needs to read and write to each slave module. The traditional read and write method involves sending a read or write command and waiting for a read data response or a write response before executing the next read or write command. However, both read and write responses take a certain amount of time to complete, especially for slow-responding slave units such as I2C bus communication modules and UART serial communication modules, where the waiting time is particularly long.

[0003] Lead-ahead transmission solves the problem of long waiting times by allowing the host to send subsequent read / write commands before receiving a previous response. Each read / write command has an ID, and multiple commands can be sent with the same ID, but responses to the same ID must be sent in the order they were sent. This results in numerous read / write commands being sent sequentially to various slave devices, which may not respond in order; faster slaves may respond first, while slower ones may respond later, leading to out-of-order responses. Therefore, a method is needed to associate each response with previously sent commands, facilitating the retrieval and processing of this information upon response arrival. Currently, no such data processing method exists. Summary of the Invention

[0004] This application provides a data processing method, apparatus, storage medium, and terminal. To provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended as a general description, nor is it intended to identify key / important components or describe the scope of protection of these embodiments. Its sole purpose is to present some concepts in a simple form as a prelude to the detailed description that follows.

[0005] In a first aspect, embodiments of this application provide a data processing method, the method comprising:

[0006] When a response command is received from the slave module, the response number is looked up in the preset identifier table according to the identifier of the response command itself.

[0007] The target row is determined in the dynamic additional information table based on the response command's own identifier and response number;

[0008] The additional information in the target line is identified as additional information for the response instruction.

[0009] Optionally, before receiving a response command from the slave module, the following steps are also included:

[0010] When a data read / write command is detected, the data read / write parameters of the command are obtained to acquire additional information.

[0011] Determine the request number and storage row number corresponding to the data read / write instruction;

[0012] The storage row is determined in the dynamic additional information table based on the storage row number;

[0013] Save the data read / write command's own identifier, request number, and additional information to the storage row;

[0014] Send data read / write commands to the slave module.

[0015] Optionally, determine the request number and storage row number corresponding to the data read / write instruction, including:

[0016] Search the preset identifier table for the request number corresponding to the data read / write instruction's own identifier;

[0017] Read a piece of data from the preset row identifier table, and determine the storage row number corresponding to the data read / write instruction based on the read data.

[0018] Optionally, the method also includes:

[0019] Set the storage row identifier of the storage row to 1, and automatically increment the request number in the preset identifier table by 1.

[0020] Optionally, the target row can be determined in the dynamic additional information table based on the response command's own identifier and response number, including:

[0021] Determine whether the dynamic additional information table contains a target identifier and request number that match the response command's own identifier and response number;

[0022] If it exists, the line containing the target identifier and request number that match the response instruction's own identifier and response number will be determined as the target line.

[0023] Optionally, the method also includes:

[0024] The row number of the target row is cleared in the dynamic additional information table, and then the row number of the target row is written back to the preset row identifier table.

[0025] Secondly, embodiments of this application provide a data processing apparatus, the apparatus comprising:

[0026] The response number lookup module is used to look up the response number in a preset identifier table based on the identifier of the response instruction itself when a response instruction is received from the slave module.

[0027] The target line determination module is used to determine the target line in the dynamic additional information table based on the self-identifier and response number of the response command;

[0028] The additional information determination module is used to determine the additional information in the target line as additional information for the response instruction.

[0029] Optionally, the device also includes:

[0030] The additional information generation module is used to obtain the data read / write parameters of the data read / write command and get additional information when a data read / write command is detected.

[0031] The parameter determination module is used to determine the request number and storage row number corresponding to the data read / write command;

[0032] The storage row determination module is used to determine the storage row in the dynamic additional information table based on the storage row number;

[0033] The parameter saving module is used to save the data read / write command's own identifier, request number, and additional information to the storage line;

[0034] The instruction sending module is used to send data read / write instructions to the slave module.

[0035] Thirdly, embodiments of this application provide a computer storage medium storing multiple instructions adapted for loading and execution of the above-described method steps by a processor.

[0036] Fourthly, embodiments of this application provide a terminal that may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and executed by the above-described method steps.

[0037] The technical solutions provided in this application embodiment may include the following beneficial effects:

[0038] In this embodiment, when the data processing device receives a response command from the slave module, it first looks up the response number in a preset identifier table based on the response command's own identifier. Then, it determines the target row in a dynamic additional information table based on the response command's own identifier and the response number. Finally, it determines the additional information in the target row as the additional information of the response command. Because this application determines the additional information of the target row in the dynamic additional information table by determining the response number and combining it with the response command's own identifier, it ensures that each response command corresponds to the previously sent request command, guaranteeing that each communication response is performed sequentially, while simultaneously reducing data storage resources.

[0039] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description

[0040] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0041] Figure 1 This is a flowchart illustrating a data processing method provided in an embodiment of this application;

[0042] Figure 2 This is a schematic block diagram illustrating a data processing procedure provided in an embodiment of this application;

[0043] Figure 3 This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application;

[0044] Figure 4 This is a schematic diagram of another data processing device provided in an embodiment of this application;

[0045] Figure 5 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. Detailed Implementation

[0046] The following description and accompanying drawings fully illustrate specific embodiments of the invention to enable those skilled in the art to practice them.

[0047] It should be understood that the described embodiments are merely some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.

[0048] In the following description, when referring to the accompanying drawings, the same numbers in different drawings denote the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.

[0049] In the description of this invention, it should be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of these terms in this invention based on the specific circumstances. Furthermore, in the description of this invention, unless otherwise stated, "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0050] This application provides a data processing method, apparatus, storage medium, and terminal to solve the problems existing in the aforementioned related technologies. In the technical solution provided by this application, because the additional information of the target row can be determined in a dynamic additional information table by determining the response number and combining it with the self-identifier of the response command, each response command is mapped to the previously sent request command, ensuring that each communication response is performed sequentially, while reducing data storage resources. The following is a detailed description using exemplary embodiments.

[0051] The following will be combined with the appendix Figure 1 - Appendix Figure 2 This application provides a detailed description of the data processing method provided in its embodiments. This method can be implemented using a computer program and can run on a data processing device based on the von Neumann architecture. The computer program can be integrated into an application or run as a standalone utility application.

[0052] Please see Figure 1 This is a flowchart illustrating a data processing method provided in an embodiment of this application. Figure 1 As shown, the method in this application embodiment may include the following steps:

[0053] S101, when a response command is received from the slave module, the response number is searched in the preset identifier table according to the identifier of the response command itself;

[0054] In this embodiment, before receiving the response instruction from the slave module, a data read / write instruction sending stage is also included. First, when a data read / write instruction is detected, the data read / write parameters of the instruction are obtained, additional information is acquired, and then the request number and storage row number corresponding to the instruction are determined. Then, the storage row is determined in the dynamic additional information table based on the storage row number. Next, the identifier of the instruction, the request number, and the additional information are saved to the storage row. Finally, the data read / write instruction is sent to the slave module.

[0055] Specifically, when determining the request number and storage row number corresponding to the data read / write instruction, the system first searches for the request number corresponding to the self-identifier of the data read / write instruction in the preset identifier table, then reads a piece of data from the preset row identifier table, and determines the storage row number corresponding to the data read / write instruction based on the read data.

[0056] Furthermore, the storage row identifier of the storage row can be set to 1, and the request number in the preset identifier table can be automatically incremented by 1.

[0057] In one possible implementation, when a data read / write instruction is received, the corresponding request number (req_num) is first found from the preset identifier table num_table based on the instruction's own ID. At the same time, a piece of data is read from the preset row identifier table entry_num_fifo to determine which row in the dynamic additional information table info_table the data read / write instruction should reside in. Then, the instruction's own ID, request number, and additional information are filled into that row of info_table, and the storage row identifier vld of that row is set to 1, i.e., valid. Finally, the request number req_num in the preset identifier table num_table is incremented by 1.

[0058] In this embodiment, upon receiving a response command from the slave module, the response number can be searched in a preset identifier table based on the response command's own identifier. For example, the corresponding response number rsp_num can be found in the preset identifier table num_table based on the response command's own ID.

[0059] S102, determine the target row in the dynamic additional information table based on the response instruction's own identifier and response number;

[0060] In this embodiment of the application, when determining the target row in the dynamic additional information table based on the self-identifier and response number of the response instruction, it is first determined whether there is a target identifier and request number in the dynamic additional information table that are consistent with the self-identifier and response number of the response instruction; if so, the row containing the target identifier and request number that are consistent with the self-identifier and response number of the response instruction is determined as the target row.

[0061] Furthermore, the row number of the target row is cleared in the dynamic additional information table, and the row number of the target row is rewritten back into the preset row identifier table.

[0062] For example, the corresponding command is found in the dynamic additional information table info_table using the response command's own identifier and response number rsp_num. This line must be unique. After finding it, the additional information info in that line is retrieved and used as additional information for the response command. The line number of this line is written to the preset line identifier table entry_num_fifo for use by subsequent commands. At the same time, the response can perform further processing as needed after retrieving the additional information.

[0063] S103, determine the additional information in the target line as additional information for the response instruction.

[0064] In this embodiment of the application, after the target line is determined, the additional information info can be extracted and determined as the additional information of the response instruction.

[0065] For example Figure 2 As shown, Figure 2 This is a flowchart illustrating a data processing procedure provided in this application. First, a data read / write command is detected, such as "read or write cmd with info, and id = 1". At this time, the data read / write command's own identifier is 1, and the additional information is "info". Then, based on its own identifier 1, the corresponding request number "req_num" is searched in the preset identifier table "num_table". Next, a row number is read from the preset row identifier table "entry_num_fifo", for example, 2. At this time, the data read / write command's own identifier, request number, and additional information are stored in the second row of the dynamic additional information table, starting from row number 0. The "req_num" in the preset identifier table is incremented by 1, so that one request number always corresponds to one response number. The data read / write command is then sent to the slave module. After processing, the slave module can respond with a response command to the master. When the master receives the response command from the slave module, it can look up the response number rsp_num in the preset identifier table num_table based on the response command's own identifier ID. Then, based on the response number rsp_num and its own identifier ID, it matches the corresponding row number in the dynamic additional information table info_table and extracts the additional information info from that row number to obtain the additional information of the response command. This process ensures that a request and a response always correspond one-to-one, avoiding out-of-order responses.

[0066] In this embodiment, when the data processing device receives a response command from the slave module, it first looks up the response number in a preset identifier table based on the response command's own identifier. Then, it determines the target row in a dynamic additional information table based on the response command's own identifier and the response number. Finally, it determines the additional information in the target row as the additional information of the response command. Because this application determines the additional information of the target row in the dynamic additional information table by determining the response number and combining it with the response command's own identifier, it ensures that each response command corresponds to the previously sent request command, guaranteeing that each communication response is performed sequentially, while simultaneously reducing data storage resources.

[0067] The following are embodiments of the apparatus of the present invention, which can be used to execute embodiments of the method of the present invention. For details not disclosed in the embodiments of the apparatus of the present invention, please refer to the embodiments of the method of the present invention.

[0068] Please see Figure 3This illustration shows a schematic diagram of a data processing apparatus provided in an exemplary embodiment of the present invention. This data processing apparatus can be implemented as all or part of a terminal through software, hardware, or a combination of both. The apparatus 1 includes a response number lookup module 10, a target row determination module 20, and an additional information determination module 30.

[0069] The response number lookup module 10 is used to look up the response number in a preset identifier table based on the identifier of the response instruction itself when a response instruction is received from the slave module.

[0070] The target line determination module 20 is used to determine the target line in the dynamic additional information table based on the self-identifier and response number of the response instruction;

[0071] The additional information determination module 30 is used to determine the additional information in the target line as additional information for the response instruction.

[0072] Optional, for example Figure 4 As shown, device 1 also includes:

[0073] The additional information generation module 40 is used to obtain the data read / write parameters of the data read / write command and obtain additional information when a data read / write command is detected.

[0074] The parameter determination module 50 is used to determine the request number and storage row number corresponding to the data read / write instruction;

[0075] The storage row determination module 60 is used to determine the storage row in the dynamic additional information table based on the storage row number;

[0076] The parameter storage module 70 is used to save the data read / write instruction's own identifier, request number, and additional information to the storage line;

[0077] The instruction sending module 80 is used to send data read / write instructions to the slave module.

[0078] It should be noted that the data processing apparatus provided in the above embodiments is only illustrated by the division of the above functional modules when executing the data processing method. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the data processing apparatus and the data processing method embodiments provided in the above embodiments belong to the same concept, and the implementation process can be found in the method embodiments, which will not be repeated here.

[0079] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0080] In this embodiment, when the data processing device receives a response command from the slave module, it first looks up the response number in a preset identifier table based on the response command's own identifier. Then, it determines the target row in a dynamic additional information table based on the response command's own identifier and the response number. Finally, it determines the additional information in the target row as the additional information of the response command. Because this application determines the additional information of the target row in the dynamic additional information table by determining the response number and combining it with the response command's own identifier, it ensures that each response command corresponds to the previously sent request command, guaranteeing that each communication response is performed sequentially, while simultaneously reducing data storage resources.

[0081] The present invention also provides a computer-readable medium having program instructions stored thereon, which, when executed by a processor, implement the data processing methods provided in the above-described method embodiments.

[0082] The present invention also provides a computer program product containing instructions that, when run on a computer, cause the computer to perform the data processing methods of the above-described method embodiments.

[0083] Please see Figure 5 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. Figure 5 As shown, terminal 1000 may include: at least one processor 1001, at least one network interface 1004, user interface 1003, memory 1005, and at least one communication bus 1002.

[0084] The communication bus 1002 is used to realize the connection and communication between these components.

[0085] The user interface 1003 may include a display screen and a camera. Optionally, the user interface 1003 may also include a standard wired interface and a wireless interface.

[0086] The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).

[0087] The processor 1001 may include one or more processing cores. The processor 1001 connects to various parts within the electronic device 1000 using various interfaces and lines. It executes various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 1005, and by calling data stored in the memory 1005. Optionally, the processor 1001 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1001 may integrate one or more of the following: a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), and a modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed on the screen; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip, without being integrated into the processor 1001.

[0088] The memory 1005 may include random access memory (RAM) or read-only memory. Optionally, the memory 1005 may include a non-transitory computer-readable storage medium. The memory 1005 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 1005 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 1005 may also be at least one storage device located remotely from the aforementioned processor 1001. Figure 5 As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a data processing application program.

[0089] exist Figure 5In the terminal 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and to obtain the user's input data; while the processor 1001 can be used to call the data processing application stored in the memory 1005 and specifically perform the following operations:

[0090] When a response command is received from the slave module, the response number is looked up in the preset identifier table according to the identifier of the response command itself.

[0091] The target row is determined in the dynamic additional information table based on the response command's own identifier and response number;

[0092] The additional information in the target line is identified as additional information for the response instruction.

[0093] In one embodiment, before executing the response instruction received from the slave module, the processor 1001 also performs the following operations:

[0094] When a data read / write command is detected, the data read / write parameters of the command are obtained to acquire additional information.

[0095] Determine the request number and storage row number corresponding to the data read / write instruction;

[0096] The storage row is determined in the dynamic additional information table based on the storage row number;

[0097] Save the data read / write command's own identifier, request number, and additional information to the storage row;

[0098] Send data read / write commands to the slave module.

[0099] In one embodiment, when the processor 1001 executes the request number and storage line number corresponding to the data read / write instruction, it specifically performs the following operations:

[0100] Search the preset identifier table for the request number corresponding to the data read / write instruction's own identifier;

[0101] Read a piece of data from the preset row identifier table, and determine the storage row number corresponding to the data read / write instruction based on the read data.

[0102] In one embodiment, the processor 1001 also performs the following operations:

[0103] Set the storage row identifier of the storage row to 1, and automatically increment the request number in the preset identifier table by 1.

[0104] In one embodiment, when the processor 1001 determines the target row in the dynamic additional information table based on its own identifier and response number of the response instruction, it specifically performs the following operations:

[0105] Determine whether the dynamic additional information table contains a target identifier and request number that match the response command's own identifier and response number;

[0106] If it exists, the line containing the target identifier and request number that match the response instruction's own identifier and response number will be determined as the target line.

[0107] In one embodiment, the processor 1001 also performs the following operations:

[0108] The row number of the target row is cleared in the dynamic additional information table, and then the row number of the target row is written back to the preset row identifier table.

[0109] In this embodiment, when the data processing device receives a response command from the slave module, it first looks up the response number in a preset identifier table based on the response command's own identifier. Then, it determines the target row in a dynamic additional information table based on the response command's own identifier and the response number. Finally, it determines the additional information in the target row as the additional information of the response command. Because this application determines the additional information of the target row in the dynamic additional information table by determining the response number and combining it with the response command's own identifier, it ensures that each response command corresponds to the previously sent request command, guaranteeing that each communication response is performed sequentially, while simultaneously reducing data storage resources.

[0110] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The data processing program can be stored in a computer-readable storage medium, and when executed, the program can include the processes of the embodiments of the above methods. The storage medium for the data processing program can be a magnetic disk, optical disk, read-only memory, or random access memory, etc.

[0111] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.

Claims

1. A data processing method, characterized in that, The method includes: When a response command is received from the slave module, the response number is searched in a preset identifier table based on the identifier of the response command itself. The target row is determined in the dynamic additional information table based on the identifier of the response instruction and the response number; The additional information in the target line is determined as additional information for the response instruction.

2. The method according to claim 1, characterized in that, Before receiving the response command from the slave module, the process also includes: When a data read / write instruction is detected, the data read / write parameters of the instruction are obtained to acquire additional information. Determine the request number and storage row number corresponding to the data read / write instruction; The storage row is determined in the dynamic additional information table based on the storage row number; The identifier of the data read / write instruction, the request number, and the additional information are saved to the storage row; The data read / write command is sent to the slave module.

3. The method according to claim 2, characterized in that, Determining the request number and storage row number corresponding to the data read / write instruction includes: Search the preset identifier table for the request number corresponding to the identifier of the data read / write instruction; Read a piece of data from the preset row identifier table, and determine the storage row number corresponding to the data read / write instruction based on the read data.

4. The method according to claim 3, characterized in that, The method further includes: Set the storage row identifier of the storage row to 1, and automatically increment the request number in the preset identifier table by 1.

5. The method according to claim 1, characterized in that, The step of determining the target row in the dynamic additional information table based on the self-identifier of the response instruction and the response number includes: Determine whether there exists a target identifier and request number in the dynamic additional information table that match the self-identifier of the response instruction and the response number; If it exists, the row containing the target identifier and request number that match the self-identifier of the response instruction and the response number is determined as the target row.

6. The method according to claim 5, characterized in that, The method further includes: The row number of the target row is cleared from the dynamic additional information table, and the row number of the target row is rewritten back to the preset row identifier table.

7. A data processing apparatus, characterized in that, The device includes: The response number lookup module is used to look up the response number in a preset identifier table based on the identifier of the response instruction itself when a response instruction is received from the slave module. The target row determination module is used to determine the target row in the dynamic additional information table based on the self-identifier of the response instruction and the response number; The additional information determination module is used to determine the additional information in the target line as the additional information of the response instruction.

8. The apparatus according to claim 7, characterized in that, The device further includes: The additional information generation module is used to obtain the data read / write parameters of the data read / write instruction and obtain additional information when a data read / write instruction is detected. The parameter determination module is used to determine the request number and storage row number corresponding to the data read / write instruction; The storage row determination module is used to determine the storage row in the dynamic additional information table based on the storage row number; The parameter storage module is used to save the self-identifier of the data read / write instruction, the request number, and the additional information to the storage row; The instruction sending module is used to send the data read / write instructions to the slave module.

9. A computer storage medium, characterized in that, The computer storage medium stores multiple instructions, which are loaded by a processor and executed according to any one of claims 1-6.

10. A terminal, characterized in that, include: A processor and a memory; wherein the memory stores a computer program, which is loaded by the processor and executes the method as described in any one of claims 1-6.