CN112106036A - Interaction method, device, system and readable storage medium - Google Patents

Interaction method, device, system and readable storage medium Download PDF

Info

Publication number
CN112106036A
CN112106036A CN201980030298.1A CN201980030298A CN112106036A CN 112106036 A CN112106036 A CN 112106036A CN 201980030298 A CN201980030298 A CN 201980030298A CN 112106036 A CN112106036 A CN 112106036A
Authority
CN
China
Prior art keywords
configuration information
storage space
shared storage
task data
data
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
CN201980030298.1A
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.)
SZ DJI Technology Co Ltd
Original Assignee
SZ DJI 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 SZ DJI Technology Co Ltd filed Critical SZ DJI Technology Co Ltd
Publication of CN112106036A publication Critical patent/CN112106036A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7807System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7839Architectures of general purpose stored program computers comprising a single central processing unit with memory
    • G06F15/7842Architectures of general purpose stored program computers comprising a single central processing unit with memory on one IC chip (single chip microcontrollers)
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

An interaction method, device, system and readable storage medium, wherein the method comprises the following steps: acquiring configuration information sent by a software device (S301); reading corresponding task data from the shared storage space according to the configuration information for processing (S302); and the shared storage space is used for storing the task data sent by the software equipment. By the method, the user can store the acquired task data into the shared storage space through the software equipment, and the hardware equipment can read the task data from the shared storage space for processing, so that the problems of congestion, low efficiency, even hardware equipment non-operation and the like caused by the fact that the hardware equipment does not have time to process the task data of the software equipment are solved, and the working efficiency of software and hardware interaction is improved.

Description

Interaction method, device, system and readable storage medium
Technical Field
The present invention relates to the field of control technologies, and in particular, to an interaction method, device, system, and readable storage medium.
Background
In the current software and hardware interaction system, the interaction of software and hardware is performed through interrupt management and a bus, because the scale of the current software and hardware interaction system is larger and larger, the number of sub-modules of hardware equipment is larger and larger, and the number of corresponding interrupt sources is larger and larger, the software equipment often has no time to respond to the interrupt of the hardware equipment, and the hardware equipment may not work any longer, or work in error, so that the system is blocked, the efficiency is reduced, and even errors occur.
The current processing method generally provides two sets of configuration registers for the hardware device to alleviate the response time of the software device, so that although the interaction time between the software device and the hardware device is increased, the overall efficiency is still hindered in this way if a great number of interrupt sources are encountered. Therefore, how to more effectively improve the working efficiency of the software and hardware interaction system has very important significance.
Disclosure of Invention
The embodiment of the invention provides an interaction method, equipment, a system and a readable storage medium, which improve the working efficiency of software and hardware interaction.
In a first aspect, an embodiment of the present invention provides an interaction method, which is applied to a hardware device, and the method includes:
acquiring configuration information sent by software equipment;
reading corresponding task data from the shared storage space according to the configuration information for processing; and the shared storage space is used for storing the task data sent by the software equipment.
In a second aspect, an embodiment of the present invention provides an interaction method, which is applied to a software device, and the method includes:
when task data are acquired, writing the task data into a shared storage space, and determining configuration information for writing the task data into the shared storage space;
and transmitting the configuration information to hardware equipment so that the hardware equipment reads corresponding task data from the shared storage space according to the configuration information for processing.
In a third aspect, an embodiment of the present invention provides a hardware device, including a memory and a processor,
the memory is used for storing programs;
the processor, configured to invoke the program, when the program is executed, is configured to perform the following operations:
acquiring configuration information sent by software equipment;
reading corresponding task data from the shared storage space according to the configuration information for processing; and the shared storage space is used for storing the task data sent by the software equipment.
In a fourth aspect, an embodiment of the present invention provides a software device, including a memory and a processor,
the memory is used for storing programs;
the processor, configured to invoke the program, when the program is executed, is configured to perform the following operations:
when task data are acquired, writing the task data into a shared storage space, and determining configuration information for writing the task data into the shared storage space;
and transmitting the configuration information to hardware equipment so that the hardware equipment reads corresponding task data from the shared storage space according to the configuration information for processing.
In a fifth aspect, an embodiment of the present invention provides an interactive system, including a hardware device and a software device, where:
the software equipment is used for writing the task data into a shared storage space when the task data is obtained, and determining configuration information for writing the task data into the shared storage space; and transmitting the configuration information to hardware equipment;
the hardware equipment is used for acquiring configuration information sent by the software equipment; and reading corresponding task data from the shared storage space according to the configuration information for processing.
In a sixth aspect, the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method according to the first aspect or the second aspect.
According to the embodiment of the invention, the acquired task data can be stored in the shared storage space through the software equipment, and the hardware equipment reads the task data from the shared storage space for processing, so that the problems of congestion, low efficiency, even hardware equipment non-working and the like caused by the fact that the hardware equipment does not have time to process the task data of the software equipment are avoided, and the working efficiency of software and hardware interaction is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an interactive system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an interaction method according to an embodiment of the present invention;
FIG. 3 is a flow chart of another interaction method provided by the embodiment of the invention;
FIG. 4 is a flow chart of another interaction method provided by the embodiment of the invention;
fig. 5 is a schematic structural diagram of a hardware device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a software device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all 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 invention.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
The interaction method provided by the embodiment of the invention can be executed by an interaction system, wherein the interaction system comprises hardware equipment and software equipment, and the interaction system also comprises a shared storage space; in an optional real-time scenario, the software device, the hardware device, and the shared storage space are disposed in a same System On Chip (SOC); in some embodiments, the shared Memory space may include a Dynamic Random Access Memory (DRAM) and/or a Static Random-Access Memory (SRAM) configured on the SOC chip. In some embodiments, the implementation environment of the interactive system may further include registers, a bus, a Central Processing Unit (CPU), and the like.
The scheme improves the SOC chip by utilizing the shared storage space of the SOC chip, and provides the interactive system, wherein the system is applied to the same SOC chip and comprises hardware equipment, software equipment and the shared storage space. In one embodiment, the software device is configured to, when task data is acquired, write the task data into a shared storage space, and determine configuration information for writing the task data into the shared storage space; and transmitting the configuration information to hardware equipment; the shared storage space is used for storing the task data written by the software equipment; the hardware equipment is used for acquiring configuration information sent by the software equipment; and reading corresponding task data from the shared storage space according to the configuration information for processing. By the implementation mode, the problem of low working efficiency of a software and hardware interaction system is effectively solved.
Specifically, fig. 1 is an exemplary illustration, and fig. 1 is a schematic structural diagram of an interactive system according to an embodiment of the present invention, as shown in fig. 1, a software device 11 in the interactive system may acquire task data, and when acquiring the task data, write the task data into a shared storage space 12, and determine configuration information for writing the task data into the shared storage space, so as to transmit the configuration information to a hardware device 13, so that the hardware device 13 may read corresponding task data from the shared storage space according to the acquired configuration information for processing. In some embodiments, the configuration information includes identification information and/or address information; in some embodiments, the address information includes a start-stop address and/or a consecutive address length; in some embodiments, the configuration information includes a loop identifier for identifying whether task data corresponding to the configuration information needs to be executed in a loop. In some embodiments, the configuration information includes an invalid identifier for identifying whether task data corresponding to the configuration information is invalid data.
The interaction method provided by the embodiment of the invention is schematically described below with reference to the drawings.
Referring to fig. 2 in detail, fig. 2 is a schematic flowchart of an interaction method according to an embodiment of the present invention, where the method may be executed by a hardware device and a software device in an interaction system. Specifically, the method of the embodiment of the present invention includes the following steps.
S201: when the software equipment acquires the task data, writing the task data into a shared storage space, and determining configuration information for writing the task data into the shared storage space.
In the embodiment of the present invention, when acquiring the task data, the software device may write the task data into the shared storage space, and determine the configuration information for writing the task data into the shared storage space. In some embodiments, the shared memory space is used for storing task data sent by the software device. In an optional real-time scenario, the software device and the shared memory space are disposed on the same SOC chip.
In some embodiments, the configuration information comprises identification information and/or address information; in some embodiments, the address information includes a start-stop address and/or a consecutive address length for writing the task data to the shared memory space. In certain embodiments, the shared memory space includes dynamic random access memory and/or static random access memory.
In some embodiments, the configuration information is stored in a queue internal to the hardware device, where the queue includes any one or more of an invalidate queue, a round robin queue, and an validate queue. In some embodiments, the depth of the queue is the maximum number of register sets allowed to be configured by the software device, and the content stored in the queue includes any one or more of identification information, start and end addresses of registers, total length, end length, update conditions, and the like.
S202: and the software equipment transmits the configuration information to the hardware equipment.
In this embodiment of the present invention, the software device may transmit the configuration information to the hardware device, so that the hardware device stores the configuration information in a queue.
S203: and the hardware equipment reads corresponding task data from the shared storage space according to the configuration information for processing.
In the embodiment of the present invention, the hardware device may read the corresponding task data from the shared storage space according to the configuration information to perform processing. In an optional real-time scenario, the software device, the hardware device, and the shared memory space are disposed on the same SOC chip.
In an embodiment, when the hardware device reads the corresponding task data from the shared storage space for processing according to the configuration information, it may be determined in the hardware device whether an update condition is satisfied, and when it is determined that the update condition is satisfied, the hardware device may read the corresponding task data from the shared storage space for processing according to the configuration information.
In an embodiment, the condition that the update is satisfied includes that the hardware device receives a data update request sent by the software device, where the data update request carries configuration information. In some embodiments, the configuration information includes address information; in some embodiments, the address information includes any one or more of a start-stop address, a total length of addresses, a length of consecutive addresses, and the like.
In an embodiment, when determining that an update condition is satisfied, and reading corresponding task data from a shared storage space according to the configuration information for processing, a hardware device may receive a data update request sent by the software device, where the data update request carries the configuration information, and read corresponding task data from the shared storage space according to the configuration information carried in the data update request for processing.
For example, assuming that a hardware device on the same SOC chip receives a data update request sent by a software device, where the data update request carries the configuration information, and address information included in the configuration information is a, the hardware device may read task data corresponding to the address a from the shared storage space for processing according to the address information carried in the data update request being a.
In one embodiment, the satisfaction of the update condition includes the hardware device completing a current task; and the configuration information is next configuration information adjacent to the configuration information of the current task.
In one embodiment, when the hardware device finishes processing the current task, the next configuration information adjacent to the configuration information of the current task may be obtained from an active queue of the hardware device; and reading corresponding task data from the shared storage space for processing according to the next configuration information adjacent to the configuration information of the current task.
For example, assuming that an effective queue of a hardware device on the same SOC chip includes address information a in configuration information of a current task and next configuration information b adjacent to the address information a of the configuration information of the current task, when the hardware device finishes processing the current task, the hardware device may acquire next address information b adjacent to the address information a from the effective queue, and read task data corresponding to the address information b from the shared storage space for processing.
In an embodiment, the condition of satisfying the update includes that the hardware device detects a register update request, where the register update request carries configuration information; wherein the configuration information comprises a start-stop address and a consecutive address length.
In one embodiment, when a register update request is detected, a hardware device may obtain configuration information including a start-stop address and a continuous address length, which is carried in the register update request; and reading corresponding task data from the shared storage space for processing according to the starting address and the ending address and the continuous address length.
For example, assuming that start-stop addresses a1 and a4 and consecutive address lengths 4 are carried in register update requests acquired by hardware devices on the same SOC chip, the hardware devices may read task data corresponding to a1, a2, a3, and a4 from the shared memory space according to the start-stop addresses a1 and a4 and the consecutive address lengths 4, and perform processing.
In an embodiment, when detecting a register update request, a hardware device may further store configuration information, which includes a start-stop address and a continuous address length, carried in the register update request into a circular queue of the hardware device; detecting whether next configuration information adjacent to the configuration information comprising the start-stop address and the continuous address length exists in the circular queue; and if so, reading corresponding task data from the shared storage space according to next configuration information in the circular queue for processing, and circularly detecting whether next configuration information adjacent to the next configuration information exists in the circular queue until detecting that the next configuration information does not exist in the circular queue.
For example, assuming that start-stop addresses a1 and a4 carried in register update requests acquired by hardware devices on the same SOC chip are 4, when a register update request is detected by a hardware device, the start-stop addresses a1 and a4 and the continuous address length of 4 may also be stored in a circular queue of the hardware device; if the next configuration information adjacent to the start-stop addresses a 1-a 4 is detected to be a5 and a6 in the circular queue, the task data corresponding to a5 and a6 can be read from the shared storage space for processing, and the processing is stopped when the next configuration information adjacent to a5 and a6 is circularly detected to be absent in the circular queue.
In one embodiment, the configuration information includes identification information and address information; before the hardware device reads corresponding task data from the shared storage space according to the configuration information and processes the task data, the identification information can be matched with invalid identification information in an invalid queue of the hardware device; if the identification information is matched with the invalid identification information, reading task data corresponding to the address information from the shared storage space according to the address information and not processing the task data; and if the identification information is not matched with the invalid identification information, reading task data corresponding to the address information from the shared storage space according to the address information, and performing interrupt processing.
For example, after determining that the update condition is satisfied, the hardware device may check whether the valid queue is empty, if not, check whether identification information corresponding to the current address information in the valid queue is consistent with invalid identification information in the invalid queue, if so, the hardware device may read corresponding task data from the shared memory space on the same SOC chip according to the current address information, continue checking next address information adjacent to the current address information in the valid queue without processing, and if not, the hardware device may read corresponding task data from the shared memory space on the same SOC chip according to the next address information and perform corresponding processing.
In some embodiments, the invalidation identification information stored in the invalidation queue may be identification information of a register group that the user determines through a software device that the invalidation is desired to be skipped.
In one embodiment, before reading corresponding task data from a shared storage space according to the configuration information and processing the task data, a hardware device may send a data reading request to the shared storage space; in some embodiments, the data read request carries the configuration information.
In an embodiment, when the hardware device reads corresponding task data from the shared storage space according to the configuration information, the hardware device may receive the task data corresponding to the configuration information, which is sent by the shared storage space in response to the data reading request.
In one embodiment, the shared memory space comprises dynamic random access memory, the data read request comprises a bus protocol request; when the shared memory space is a dynamic random access memory, the hardware device may send a bus protocol request to the shared memory space.
In one embodiment, the shared memory space includes static random access memory, and the data read request includes a read request of random access memory; and when the shared storage space is a static random access memory, the hardware equipment sends a read request of the random access memory to the shared storage space.
In the embodiment of the invention, when acquiring task data, a software device writes the task data into a shared storage space and determines configuration information for writing the task data into the shared storage space; and transmitting the configuration information to the hardware equipment, wherein the hardware equipment can read corresponding task data from the shared storage space according to the configuration information for processing. Through the implementation mode, a user can store the acquired task data into the shared storage space through the software equipment, and when the hardware equipment meets the updating condition, the task data is read from the shared storage space for processing, so that the problems of congestion, low efficiency, even hardware equipment non-working and the like caused by the fact that the hardware equipment does not have time to process the task data of the software equipment are solved, and the working efficiency of software and hardware interaction is improved.
Referring to fig. 3 in detail, fig. 3 is a schematic flowchart of another interaction method according to an embodiment of the present invention, where the method may be executed by a hardware device in an interaction system. Specifically, the method of the embodiment of the present invention includes the following steps.
S301: and acquiring configuration information sent by the software equipment.
In the embodiment of the invention, the hardware equipment can acquire the configuration information sent by the software equipment.
S302: and reading corresponding task data from the shared storage space according to the configuration information for processing.
In the embodiment of the invention, the hardware equipment can read corresponding task data from the shared storage space according to the configuration information for processing; in some embodiments, the shared memory space is used for storing task data sent by the software device. In an optional real-time scenario, the software device, the hardware device, and the shared memory space are disposed on the same SOC chip.
In an embodiment, when the hardware device reads the corresponding task data from the shared storage space for processing according to the configuration information, it may be determined in the hardware device whether an update condition is satisfied, and when it is determined that the update condition is satisfied, the hardware device may read the corresponding task data from the shared storage space for processing according to the configuration information.
In an embodiment, the condition that the update is satisfied includes that the hardware device receives a data update request sent by the software device, where the data update request carries configuration information.
In an embodiment, when determining that an update condition is satisfied, and reading corresponding task data from a shared storage space according to the configuration information for processing, a hardware device may receive a data update request sent by the software device, where the data update request carries the configuration information, and read corresponding task data from the shared storage space according to the configuration information carried in the data update request for processing.
In one embodiment, the satisfaction of the update condition includes the hardware device completing a current task; and the configuration information is next configuration information adjacent to the configuration information of the current task.
In one embodiment, when the hardware device finishes processing the current task, the next configuration information adjacent to the configuration information of the current task may be obtained from an active queue of the hardware device; and reading corresponding task data from the shared storage space for processing according to the next configuration information adjacent to the configuration information of the current task.
In an embodiment, the condition of satisfying the update includes that the hardware device detects a register update request, where the register update request carries configuration information; wherein the configuration information comprises a start-stop address and a consecutive address length.
In one embodiment, when a register update request is detected, a hardware device may obtain configuration information including a start-stop address and a continuous address length, which is carried in the register update request; and reading corresponding task data from the shared storage space for processing according to the starting address and the ending address and the continuous address length.
In an embodiment, when detecting a register update request, a hardware device may further store configuration information, which includes a start-stop address and a continuous address length, carried in the register update request into a circular queue of the hardware device; detecting whether next configuration information adjacent to the configuration information comprising the start-stop address and the continuous address length exists in the circular queue; and if so, reading corresponding task data from the shared storage space according to next configuration information in the circular queue for processing, and circularly detecting whether next configuration information adjacent to the next configuration information exists in the circular queue until detecting that the next configuration information does not exist in the circular queue.
In one embodiment, the configuration information includes identification information and address information; before the hardware device reads corresponding task data from the shared storage space according to the configuration information and processes the task data, the identification information can be matched with invalid identification information in an invalid queue of the hardware device; if the identification information is matched with the invalid identification information, reading task data corresponding to the address information from the shared storage space according to the address information and not processing the task data; and if the identification information is not matched with the invalid identification information, reading task data corresponding to the address information from the shared storage space according to the address information, and performing interrupt processing.
In an embodiment, if the identification information does not match the invalid identification information, it may be further detected whether the configuration information corresponding to the identification information matches the configuration information in the circular queue, and if so, the matching information may be stored in the circular queue, and according to the configuration information in the circular queue, the task data corresponding to the configuration information is read from the shared storage space in a circular manner for processing until the task data corresponding to the configuration information in the circular queue is completely read.
In an embodiment, before reading corresponding task data from a shared storage space according to the configuration information and processing the task data, a hardware device may further send a data reading request to the shared storage space; in some embodiments, the data read request carries the configuration information.
In an embodiment, when the hardware device reads corresponding task data from the shared storage space according to the configuration information, the hardware device may receive the task data corresponding to the configuration information, which is sent by the shared storage space in response to the data reading request.
In one embodiment, the shared memory space comprises dynamic random access memory, the data read request comprises a bus protocol request; when the shared memory space is a dynamic random access memory, the hardware device may send a bus protocol request to the shared memory space.
In one embodiment, the shared memory space includes static random access memory, and the data read request includes a read request of random access memory; and when the shared storage space is a static random access memory, the hardware equipment sends a read request of the random access memory to the shared storage space.
In the embodiment of the invention, the hardware device can acquire the configuration information sent by the software device and read the corresponding task data from the shared storage space for processing according to the configuration information. Through the implementation mode, a user can store the acquired task data into the shared storage space through the software equipment, and when the hardware equipment meets the updating condition, the task data is read from the shared storage space for processing, so that the problems of congestion, low efficiency, even hardware equipment non-working and the like caused by the fact that the hardware equipment does not have time to process the task data of the software equipment are solved, and the working efficiency of software and hardware interaction is improved.
Referring to fig. 4 in detail, fig. 4 is a flowchart illustrating another interaction method according to an embodiment of the present invention, where the method may be executed by a software device in an interaction system. Specifically, the method of the embodiment of the present invention includes the following steps.
S401: when the task data are acquired, writing the task data into a shared storage space, and determining configuration information for writing the task data into the shared storage space.
In the embodiment of the present invention, when acquiring the task data, the software device may write the task data into the shared storage space, and determine the configuration information for writing the task data into the shared storage space.
In some embodiments, the configuration information is stored in a queue of the hardware device, where the queue includes any one or more of an invalidate queue, a round robin queue, and an validate queue.
In certain embodiments, the configuration information includes identification information and/or address information. In some embodiments, the address information includes a start-stop address and/or a consecutive address length.
S402: and transmitting the configuration information to hardware equipment so that the hardware equipment reads corresponding task data from the shared storage space according to the configuration information for processing.
In the embodiment of the present invention, the software device may transmit the configuration information to the hardware device, so that the hardware device reads corresponding task data from the shared storage space according to the configuration information to perform processing. In an optional real-time scenario, the software device, the hardware device, and the shared memory space are disposed on the same SOC chip.
In an embodiment, the software device may send a data update request to the hardware device, where the data update request carries the configuration information. In some embodiments, the data update request may be generated by the software device based on a user's operation on the software device. In some embodiments, the data update request may be generated from a user setting configuration information on a user interface of the software device.
In one embodiment, a software device may send a register update request to a hardware device, where in some embodiments, the register update request carries configuration information; in some embodiments, the configuration information includes a start-stop address and a consecutive address length. In some embodiments, the configuration information including the start-stop address and the consecutive address length may be generated according to a configuration operation of a user on the software device.
In the embodiment of the present invention, when acquiring task data, a software device may write the task data into a shared storage space, determine configuration information for writing the task data into the shared storage space, and transmit the configuration information to a hardware device, so that the hardware device reads corresponding task data from the shared storage space according to the configuration information to perform processing. Through the implementation mode, a user can store the acquired task data into the shared storage space through the software equipment, and when the hardware equipment meets the updating condition, the task data is read from the shared storage space for processing, so that the problems of congestion, low efficiency, even hardware equipment non-working and the like caused by the fact that the hardware equipment does not have time to process the task data of the software equipment are solved, and the working efficiency of software and hardware interaction is improved.
Please refer to fig. 5 for illustration, fig. 5 is a schematic structural diagram of a hardware device according to an embodiment of the present invention, where the hardware device includes a memory 501, a processor 502, and a data interface 503;
the memory 501 may include a volatile memory (volatile memory); the memory 501 may also include a non-volatile memory (non-volatile memory); the memory 501 may also comprise a combination of memories of the kind described above. The processor 502 may be a Central Processing Unit (CPU). The processor 502 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), or any combination thereof.
The data interface 503 is configured to transmit data between the hardware device and another device.
The processor 502 is configured to perform the following operations:
acquiring configuration information sent by software equipment;
reading corresponding task data from the shared storage space according to the configuration information for processing; and the shared storage space is used for storing the task data sent by the software equipment.
Further, when the processor 502 reads corresponding task data from the shared storage space according to the configuration information for processing, the processor is specifically configured to:
determining whether an update condition is satisfied;
and when the update condition is determined to be met, reading corresponding task data from the shared storage space according to the configuration information for processing.
Further, the condition that the update is satisfied includes that the hardware device receives a data update request sent by the software device, where the data update request carries the configuration information.
Further, when determining that the update condition is satisfied, the processor 502 reads corresponding task data from the shared storage space according to the configuration information for processing, and is specifically configured to:
receiving a data updating request sent by the software equipment, wherein the data updating request carries the configuration information;
and reading corresponding task data from the shared storage space for processing according to the configuration information carried in the data updating request.
Further, the condition of meeting the update condition includes that the hardware device finishes processing the current task;
and the configuration information is next configuration information adjacent to the configuration information of the current task.
Further, when determining that the update condition is satisfied, the processor 502 reads corresponding task data from the shared storage space according to the configuration information for processing, and is specifically configured to:
when the hardware equipment finishes processing the current task, acquiring next configuration information adjacent to the configuration information of the current task from an effective queue of the hardware equipment;
and reading corresponding task data from the shared storage space for processing according to the next configuration information adjacent to the configuration information of the current task.
Further, the condition of meeting the update condition includes that the hardware device detects a register update request, where the register update request carries configuration information;
wherein the configuration information comprises a start-stop address and a consecutive address length.
Further, when determining that the update condition is satisfied, the processor 502 reads corresponding task data from the shared storage space according to the configuration information for processing, and is specifically configured to:
when a register updating request is detected, acquiring configuration information which is carried in the register updating request and comprises a start-stop address and a continuous address length;
and reading corresponding task data from the shared storage space for processing according to the starting address and the ending address and the continuous address length.
Further, the processor 502 is further configured to:
storing configuration information carrying a cycle identifier into a cycle queue of the hardware equipment;
detecting whether next configuration information adjacent to the configuration information comprising the start-stop address and the continuous address length exists in the circular queue;
and if so, reading corresponding task data from the shared storage space according to next configuration information in the circular queue for processing, and circularly detecting whether next configuration information adjacent to the next configuration information exists in the circular queue until detecting that the next configuration information does not exist in the circular queue.
Further, the configuration information includes identification information and address information; before the processor 502 reads corresponding task data from the shared storage space according to the configuration information for processing, the processor is further configured to:
matching the identification information with invalid identification information in an invalid queue of the hardware equipment;
when the processor 502 reads corresponding task data from the shared storage space according to the configuration information for processing, the specific application is to:
if the identification information is matched with the invalid identification information, reading task data corresponding to the address information from the shared storage space according to the address information, and not processing;
and if the identification information is not matched with the invalid identification information, reading task data corresponding to the address information from the shared storage space according to the address information, and performing interrupt processing.
Further, the address information includes a start-stop address and/or a consecutive address length.
Further, before the processor 502 reads the corresponding task data from the shared storage space according to the configuration information, the processor is further configured to:
sending a data reading request to the shared storage space, wherein the data reading request carries the configuration information;
when the processor 502 reads corresponding task data from the shared storage space according to the configuration information, the processor is specifically configured to:
and receiving task data corresponding to the configuration information, which is sent by the shared storage space in response to the data reading request.
Further, the shared memory space includes a dynamic random access memory, the data read request includes a bus protocol request;
when the processor 502 sends a data reading request to the shared storage space, the method is specifically configured to:
and when the shared memory space is a dynamic random access memory, the hardware equipment sends a bus protocol request to the shared memory space.
Further, the shared memory space comprises a static random access memory, and the data read request comprises a read request of the random access memory;
when the processor 502 sends a data reading request to the shared storage space, the method is specifically configured to:
and when the shared storage space is a static random access memory, the hardware equipment sends a read request of the random access memory to the shared storage space.
Further, the configuration information is stored in a queue of the hardware device, where the queue includes any one or more of an invalid queue, a circular queue, and an active queue.
Further, the hardware device is disposed on a System On Chip (SOC).
In the embodiment of the invention, the hardware device can acquire the configuration information sent by the software device and read the corresponding task data from the shared storage space for processing according to the configuration information. Through the implementation mode, a user can store the acquired task data into the shared storage space through the software equipment, and when the hardware equipment meets the updating condition, the task data is read from the shared storage space for processing, so that the problems of congestion, low efficiency, even hardware equipment non-working and the like caused by the fact that the hardware equipment does not have time to process the task data of the software equipment are solved, and the working efficiency of software and hardware interaction is improved.
Referring to fig. 6 for illustration, fig. 6 is a schematic structural diagram of a software device according to an embodiment of the present invention, where the software device includes a memory 601, a processor 602, and a data interface 603;
the memory 601 may include a volatile memory (volatile memory); the memory 601 may also include a non-volatile memory (non-volatile memory); the memory 601 may also comprise a combination of memories of the kind described above. The processor 602 may be a Central Processing Unit (CPU). The processor 602 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), or any combination thereof.
The data interface 603 is used for transmitting data between the software device and other devices.
The processor 602 is configured to perform the following operations:
when task data are acquired, writing the task data into a shared storage space, and determining configuration information for writing the task data into the shared storage space;
and transmitting the configuration information to hardware equipment so that the hardware equipment reads corresponding task data from the shared storage space according to the configuration information for processing.
Further, the configuration information is stored in a queue of the hardware device, where the queue includes any one or more of an invalid queue, a circular queue, and an active queue.
Further, the configuration information includes identification information and/or address information.
Further, the address information includes a start-stop address and/or a consecutive address length.
Further, the software device is disposed on the system on chip SOC.
In the embodiment of the present invention, when acquiring task data, a software device may write the task data into a shared storage space, determine configuration information for writing the task data into the shared storage space, and transmit the configuration information to a hardware device, so that the hardware device reads corresponding task data from the shared storage space according to the configuration information to perform processing. Through the implementation mode, a user can store the acquired task data into the shared storage space through the software equipment, and when the hardware equipment meets the updating condition, the task data is read from the shared storage space for processing, so that the problems of congestion, low efficiency, even hardware equipment non-working and the like caused by the fact that the hardware equipment does not have time to process the task data of the software equipment are solved, and the working efficiency of software and hardware interaction is improved.
An embodiment of the present invention further provides an interactive system, including: a hardware device and a software device, wherein:
the software equipment is used for writing the task data into a shared storage space when the task data is obtained, determining configuration information for writing the task data into the shared storage space, and transmitting the configuration information to the hardware equipment;
the hardware equipment is used for acquiring configuration information sent by the software equipment and reading corresponding task data from the shared storage space according to the configuration information for processing; and the shared storage space is used for storing the task data sent by the software equipment.
Further, when the hardware device reads corresponding task data from the shared storage space according to the configuration information for processing, the hardware device is specifically configured to:
determining whether an update condition is satisfied;
and when the update condition is determined to be met, reading corresponding task data from the shared storage space according to the configuration information for processing.
Further, the condition that the update is satisfied includes that the hardware device receives a data update request sent by the software device, where the data update request carries the configuration information.
Further, when determining that the update condition is satisfied, the hardware device reads corresponding task data from the shared storage space according to the configuration information for processing, and is specifically configured to:
receiving a data updating request sent by the software equipment, wherein the data updating request carries the configuration information;
and reading corresponding task data from the shared storage space for processing according to the configuration information carried in the data updating request.
Further, the condition of meeting the update condition includes that the hardware device finishes processing the current task;
and the configuration information is next configuration information adjacent to the configuration information of the current task.
Further, when determining that the update condition is satisfied, the hardware device reads corresponding task data from the shared storage space according to the configuration information for processing, and is specifically configured to:
when the hardware equipment finishes processing the current task, acquiring next configuration information adjacent to the configuration information of the current task from an effective queue of the hardware equipment;
and reading corresponding task data from the shared storage space for processing according to the next configuration information adjacent to the configuration information of the current task.
Further, the condition of meeting the update condition includes that the hardware device detects a register update request, where the register update request carries configuration information;
wherein the configuration information comprises a start-stop address and a consecutive address length.
Further, when determining that the update condition is satisfied, the hardware device reads corresponding task data from the shared storage space according to the configuration information for processing, and is specifically configured to:
when a register updating request is detected, acquiring configuration information which is carried in the register updating request and comprises a start-stop address and a continuous address length;
and reading corresponding task data from the shared storage space for processing according to the starting address and the ending address and the continuous address length.
Further, the hardware device is further to:
storing configuration information carrying a cycle identifier into a cycle queue of the hardware equipment;
detecting whether next configuration information adjacent to the configuration information comprising the start-stop address and the continuous address length exists in the circular queue;
and if so, reading corresponding task data from the shared storage space according to next configuration information in the circular queue for processing, and circularly detecting whether next configuration information adjacent to the next configuration information exists in the circular queue until detecting that the next configuration information does not exist in the circular queue.
Further, the configuration information includes identification information and address information; before the processor 402 reads corresponding task data from the shared storage space according to the configuration information and processes the task data, the processor is further configured to:
matching the identification information with invalid identification information in an invalid queue of the hardware equipment;
when the hardware device reads corresponding task data from the shared storage space according to the configuration information for processing, the hardware device is specifically configured to:
if the identification information is matched with the invalid identification information, reading task data corresponding to the address information from the shared storage space according to the address information, and not processing;
and if the identification information is not matched with the invalid identification information, reading task data corresponding to the address information from the shared storage space according to the address information, and performing interrupt processing.
Further, the address information includes a start-stop address and/or a consecutive address length.
Further, before the hardware device reads corresponding task data from the shared storage space according to the configuration information, the hardware device is further configured to:
sending a data reading request to the shared storage space, wherein the data reading request carries the configuration information;
when the hardware device reads corresponding task data from the shared storage space according to the configuration information, the hardware device is specifically configured to:
and receiving task data corresponding to the configuration information, which is sent by the shared storage space in response to the data reading request.
Further, the shared memory space includes a dynamic random access memory, the data read request includes a bus protocol request;
when the hardware device sends a data reading request to the shared storage space, the hardware device is specifically configured to:
and when the shared memory space is a dynamic random access memory, the hardware equipment sends a bus protocol request to the shared memory space.
Further, the shared memory space comprises a static random access memory, and the data read request comprises a read request of the random access memory;
when the hardware device sends a data reading request to the shared storage space, the hardware device is specifically configured to:
and when the shared storage space is a static random access memory, the hardware equipment sends a read request of the random access memory to the shared storage space.
Further, the configuration information is stored in a queue of the hardware device, where the queue includes any one or more of an invalid queue, a circular queue, and an active queue.
Further, the hardware device, the software device and the shared memory space in the interactive system are all arranged on the system on chip SOC.
In the embodiment of the invention, when acquiring task data, a software device writes the task data into a shared storage space and determines configuration information for writing the task data into the shared storage space; and transmitting the configuration information to the hardware equipment, wherein the hardware equipment can read corresponding task data from the shared storage space according to the configuration information for processing. Through the implementation mode, a user can store the acquired task data into the shared storage space through the software equipment, and when the hardware equipment meets the updating condition, the task data is read from the shared storage space for processing, so that the problems of congestion, low efficiency, even hardware equipment non-working and the like caused by the fact that the hardware equipment does not have time to process the task data of the software equipment are solved, and the working efficiency of software and hardware interaction is improved.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method described in fig. 1, fig. 2, or fig. 3 in the embodiment of the present invention is implemented, and also the device in the embodiment corresponding to fig. 4 or fig. 5 in the embodiment of the present invention may be implemented, which is not described herein again.
The computer readable storage medium may be an internal storage unit of the device according to any of the foregoing embodiments, for example, a hard disk or a memory of the device. The computer readable storage medium may also be an external storage device of the device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the device. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the apparatus. The computer-readable storage medium is used for storing the computer program and other programs and data required by the terminal. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
The above disclosure is intended to be illustrative of only some embodiments of the invention, and is not intended to limit the scope of the invention.

Claims (57)

1. An interaction method applied to a hardware device, the method comprising:
acquiring configuration information sent by software equipment;
reading corresponding task data from the shared storage space according to the configuration information for processing; and the shared storage space is used for storing the task data sent by the software equipment.
2. The method according to claim 1, wherein reading corresponding task data from a shared storage space according to the configuration information for processing comprises:
determining whether an update condition is satisfied;
and when the update condition is determined to be met, reading corresponding task data from the shared storage space according to the configuration information for processing.
3. The method of claim 2,
the condition meeting the update condition comprises that the hardware equipment receives a data update request sent by the software equipment, and the data update request carries the configuration information.
4. The method according to claim 3, wherein when it is determined that the update condition is satisfied, reading corresponding task data from the shared storage space according to the configuration information for processing includes:
receiving a data updating request sent by the software equipment, wherein the data updating request carries the configuration information;
and reading corresponding task data from the shared storage space for processing according to the configuration information carried in the data updating request.
5. The method of claim 2,
the condition of meeting the update condition comprises that the hardware equipment finishes processing the current task;
and the configuration information is next configuration information adjacent to the configuration information of the current task.
6. The method according to claim 5, wherein when it is determined that the update condition is satisfied, reading corresponding task data from the shared storage space according to the configuration information for processing includes:
when the hardware equipment finishes processing the current task, acquiring next configuration information adjacent to the configuration information of the current task from an effective queue of the hardware equipment;
and reading corresponding task data from the shared storage space for processing according to the next configuration information adjacent to the configuration information of the current task.
7. The method of claim 2,
the condition of meeting the updating condition comprises that the hardware equipment detects a register updating request, and the register updating request carries configuration information;
wherein the configuration information comprises a start-stop address and a consecutive address length.
8. The method according to claim 7, wherein when it is determined that the update condition is satisfied, reading corresponding task data from the shared storage space according to the configuration information for processing includes:
when a register updating request is detected, acquiring configuration information which is carried in the register updating request and comprises a start-stop address and a continuous address length;
and reading corresponding task data from the shared storage space for processing according to the starting address and the ending address and the continuous address length.
9. The method of claim 2, further comprising:
storing the configuration information carrying the cycle identifier into a cycle queue of the hardware equipment;
detecting whether next configuration information adjacent to the configuration information comprising the start-stop address and the continuous address length exists in the circular queue;
and if so, reading corresponding task data from the shared storage space according to next configuration information in the circular queue for processing, and circularly detecting whether next configuration information adjacent to the next configuration information exists in the circular queue until detecting that the next configuration information does not exist in the circular queue.
10. The method of claim 1, wherein the configuration information comprises identification information and address information; before reading corresponding task data from the shared storage space according to the configuration information and processing, the method further includes:
matching the identification information with invalid identification information in an invalid queue of the hardware equipment;
the reading and processing of the corresponding task data from the shared storage space according to the configuration information includes:
if the identification information is matched with the invalid identification information, reading task data corresponding to the address information from the shared storage space according to the address information, and not processing;
and if the identification information is not matched with the invalid identification information, reading task data corresponding to the address information from the shared storage space according to the address information, and performing interrupt processing.
11. The method of claim 10, wherein the address information comprises a start-stop address and/or a consecutive address length.
12. The method according to claim 1, wherein before reading the corresponding task data from the shared storage space according to the configuration information, further comprising:
sending a data reading request to the shared storage space, wherein the data reading request carries the configuration information;
the reading of the corresponding task data from the shared storage space according to the configuration information includes:
and receiving task data corresponding to the configuration information, which is sent by the shared storage space in response to the data reading request.
13. The method of claim 12, wherein the shared memory space comprises dynamic random access memory, and wherein the data read request comprises a bus protocol request;
the sending a data read request to the shared memory space includes:
and when the shared memory space is a dynamic random access memory, the hardware equipment sends a bus protocol request to the shared memory space.
14. The method of claim 12, wherein the shared memory space comprises static random access memory, and the data read request comprises a read request of random access memory;
the sending a data read request to the shared memory space includes:
and when the shared storage space is a static random access memory, the hardware equipment sends a read request of the random access memory to the shared storage space.
15. The method of claim 1,
the configuration information is stored in a queue of the hardware device, wherein the queue comprises any one or more of an invalid queue, a circular queue and an effective queue.
16. An interaction method applied to a software device, the method comprising:
when task data are acquired, writing the task data into a shared storage space, and determining configuration information for writing the task data into the shared storage space;
and transmitting the configuration information to hardware equipment so that the hardware equipment reads corresponding task data from the shared storage space according to the configuration information for processing.
17. The method of claim 16,
the configuration information is stored in a queue of the hardware device, wherein the queue comprises any one or more of an invalid queue, a circular queue and an effective queue.
18. The method of claim 17,
the configuration information includes identification information and/or address information.
19. The method of claim 18,
the address information includes start and stop addresses and/or consecutive address lengths.
20. A hardware device comprising a processor and a memory,
the memory is used for storing programs;
the processor, configured to invoke the program, when the program is executed, is configured to perform the following operations:
acquiring configuration information sent by software equipment;
reading corresponding task data from the shared storage space according to the configuration information for processing; and the shared storage space is used for storing the task data sent by the software equipment.
21. The device according to claim 20, wherein when the processor reads corresponding task data from the shared storage space according to the configuration information and processes the task data, the processor is specifically configured to:
determining whether an update condition is satisfied;
and when the update condition is determined to be met, reading corresponding task data from the shared storage space according to the configuration information for processing.
22. The apparatus of claim 21,
the condition meeting the update condition comprises that the hardware equipment receives a data update request sent by the software equipment, and the data update request carries the configuration information.
23. The device according to claim 22, wherein when determining that the update condition is satisfied, and when reading the corresponding task data from the shared storage space according to the configuration information for processing, the processor is specifically configured to:
receiving a data updating request sent by the software equipment, wherein the data updating request carries the configuration information;
and reading corresponding task data from the shared storage space for processing according to the configuration information carried in the data updating request.
24. The apparatus of claim 21,
the condition of meeting the update condition comprises that the hardware equipment finishes processing the current task;
and the configuration information is next configuration information adjacent to the configuration information of the current task.
25. The device according to claim 24, wherein when determining that the update condition is satisfied, and when reading the corresponding task data from the shared storage space according to the configuration information for processing, the processor is specifically configured to:
when the hardware equipment finishes processing the current task, acquiring next configuration information adjacent to the configuration information of the current task from an effective queue of the hardware equipment;
and reading corresponding task data from the shared storage space for processing according to the next configuration information adjacent to the configuration information of the current task.
26. The apparatus of claim 21,
the condition of meeting the updating condition comprises that the hardware equipment detects a register updating request, and the register updating request carries configuration information;
wherein the configuration information comprises a start-stop address and a consecutive address length.
27. The device according to claim 26, wherein when determining that the update condition is satisfied, and when reading the corresponding task data from the shared storage space according to the configuration information for processing, the processor is specifically configured to:
when a register updating request is detected, acquiring configuration information which is carried in the register updating request and comprises a start-stop address and a continuous address length;
and reading corresponding task data from the shared storage space for processing according to the starting address and the ending address and the continuous address length.
28. The device of claim 21, wherein the processor is further configured to:
storing configuration information carrying a cycle identifier into a cycle queue of the hardware equipment;
detecting whether next configuration information adjacent to the configuration information comprising the start-stop address and the continuous address length exists in the circular queue;
and if so, reading corresponding task data from the shared storage space according to next configuration information in the circular queue for processing, and circularly detecting whether next configuration information adjacent to the next configuration information exists in the circular queue until detecting that the next configuration information does not exist in the circular queue.
29. The apparatus of claim 20, wherein the configuration information comprises identification information and address information; before the processor reads corresponding task data from the shared storage space according to the configuration information and processes the task data, the processor is further configured to:
matching the identification information with invalid identification information in an invalid queue of the hardware equipment;
when the processor reads corresponding task data from the shared storage space according to the configuration information for processing, the processor is specifically configured to:
if the identification information is matched with the invalid identification information, reading task data corresponding to the address information from the shared storage space according to the address information, and not processing;
and if the identification information is not matched with the invalid identification information, reading task data corresponding to the address information from the shared storage space according to the address information, and performing interrupt processing.
30. The apparatus of claim 29, wherein the address information comprises a start-stop address and/or a consecutive address length.
31. The apparatus of claim 20, wherein before the processor reads the corresponding task data from the shared memory space according to the configuration information, the processor is further configured to:
sending a data reading request to the shared storage space, wherein the data reading request carries the configuration information;
when the processor reads corresponding task data from the shared storage space according to the configuration information, the processor is specifically configured to:
and receiving task data corresponding to the configuration information, which is sent by the shared storage space in response to the data reading request.
32. The apparatus of claim 31, wherein the shared memory space comprises a dynamic random access memory, and wherein the data read request comprises a bus protocol request;
when the processor sends a data reading request to the shared storage space, the processor is specifically configured to:
and when the shared memory space is a dynamic random access memory, the hardware equipment sends a bus protocol request to the shared memory space.
33. The apparatus of claim 31, wherein the shared memory space comprises static random access memory, and wherein the data read request comprises a read request of random access memory;
when the processor sends a data reading request to the shared storage space, the processor is specifically configured to:
and when the shared storage space is a static random access memory, the hardware equipment sends a read request of the random access memory to the shared storage space.
34. The apparatus of claim 20,
the configuration information is stored in a queue of the hardware device, wherein the queue comprises any one or more of an invalid queue, a circular queue and an effective queue.
35. The apparatus of any one of claims 20-34,
the hardware device is arranged on the system on chip SOC.
36. A software device, comprising a memory and a processor,
the memory is used for storing programs;
the processor, configured to invoke the program, when the program is executed, is configured to perform the following operations:
when task data are acquired, writing the task data into a shared storage space, and determining configuration information for writing the task data into the shared storage space;
and transmitting the configuration information to hardware equipment so that the hardware equipment reads corresponding task data from the shared storage space according to the configuration information for processing.
37. The apparatus of claim 36,
the configuration information is stored in a queue of the hardware device, wherein the queue comprises any one or more of an invalid queue, a circular queue and an effective queue.
38. The apparatus of claim 37,
the configuration information includes identification information and/or address information.
39. The apparatus of claim 38,
the address information includes start and stop addresses and/or consecutive address lengths.
40. The apparatus of any one of claims 36-39,
the software device is arranged on the system on chip SOC.
41. An interactive system comprising a hardware device and a software device, wherein:
the software equipment is used for writing the task data into a shared storage space when the task data is obtained, and determining configuration information for writing the task data into the shared storage space; and transmitting the configuration information to hardware equipment;
the hardware equipment is used for acquiring configuration information sent by the software equipment; and reading corresponding task data from the shared storage space according to the configuration information for processing.
42. The system according to claim 41, wherein when the hardware device reads corresponding task data from the shared storage space according to the configuration information and processes the task data, the hardware device is specifically configured to:
determining whether an update condition is satisfied;
and when the update condition is determined to be met, reading corresponding task data from the shared storage space according to the configuration information for processing.
43. The system of claim 42,
the condition meeting the update condition comprises that the hardware equipment receives a data update request sent by the software equipment, and the data update request carries the configuration information.
44. The system according to claim 43, wherein when determining that the update condition is satisfied, the hardware device reads corresponding task data from the shared storage space according to the configuration information for processing, and is specifically configured to:
receiving a data updating request sent by the software equipment, wherein the data updating request carries the configuration information;
and reading corresponding task data from the shared storage space for processing according to the configuration information carried in the data updating request.
45. The system of claim 43,
the condition of meeting the update condition comprises that the hardware equipment finishes processing the current task;
and the configuration information is next configuration information adjacent to the configuration information of the current task.
46. The system according to claim 45, wherein when determining that the update condition is satisfied, the hardware device, when reading corresponding task data from the shared storage space according to the configuration information and processing the task data, is specifically configured to:
when the hardware equipment finishes processing the current task, acquiring next configuration information adjacent to the configuration information of the current task from an effective queue of the hardware equipment;
and reading corresponding task data from the shared storage space for processing according to the next configuration information adjacent to the configuration information of the current task.
47. The system of claim 42,
the condition of meeting the updating condition comprises that the hardware equipment detects a register updating request, and the register updating request carries configuration information;
wherein the configuration information comprises a start-stop address and a consecutive address length.
48. The system according to claim 47, wherein when determining that the update condition is satisfied, the hardware device reads corresponding task data from the shared storage space according to the configuration information for processing, and is specifically configured to:
when a register updating request is detected, acquiring configuration information which is carried in the register updating request and comprises a start-stop address and a continuous address length;
and reading corresponding task data from the shared storage space for processing according to the starting address and the ending address and the continuous address length.
49. The system of claim 42, wherein the hardware device is further configured to:
storing configuration information carrying a cycle identifier into a cycle queue of the hardware equipment;
detecting whether next configuration information adjacent to the configuration information comprising the start-stop address and the continuous address length exists in the circular queue;
and if so, reading corresponding task data from the shared storage space according to next configuration information in the circular queue for processing, and circularly detecting whether next configuration information adjacent to the next configuration information exists in the circular queue until detecting that the next configuration information does not exist in the circular queue.
50. The system according to claim 41, wherein said configuration information includes identification information and address information; before the hardware device reads corresponding task data from the shared storage space according to the configuration information and processes the task data, the hardware device is further configured to:
matching the identification information with invalid identification information in an invalid queue of the hardware equipment;
when the hardware device reads corresponding task data from the shared storage space according to the configuration information for processing, the hardware device is specifically configured to:
if the identification information is matched with the invalid identification information, reading task data corresponding to the address information from the shared storage space according to the address information, and not processing;
and if the identification information is not matched with the invalid identification information, reading task data corresponding to the address information from the shared storage space according to the address information, and performing interrupt processing.
51. The system according to claim 50, wherein said address information comprises start and stop addresses and/or consecutive address lengths.
52. The system according to claim 41, wherein before the hardware device reads the corresponding task data from the shared memory space according to the configuration information, the hardware device is further configured to:
sending a data reading request to the shared storage space, wherein the data reading request carries the configuration information;
when the hardware device reads corresponding task data from the shared storage space according to the configuration information, the hardware device is specifically configured to:
and receiving task data corresponding to the configuration information, which is sent by the shared storage space in response to the data reading request.
53. The system of claim 52, wherein the shared memory space comprises a dynamic random access memory, wherein the data read request comprises a bus protocol request;
when the hardware device sends a data reading request to the shared storage space, the hardware device is specifically configured to:
and when the shared memory space is a dynamic random access memory, the hardware equipment sends a bus protocol request to the shared memory space.
54. The system according to claim 52, wherein the shared memory space comprises static random access memory, and the data read request comprises a read request of random access memory;
when the hardware device sends a data reading request to the shared storage space, the hardware device is specifically configured to:
and when the shared storage space is a static random access memory, the hardware equipment sends a read request of the random access memory to the shared storage space.
55. The system of claim 41,
the configuration information is stored in a queue of the hardware device, wherein the queue comprises any one or more of an invalid queue, a circular queue and an effective queue.
56. The system of any one of claims 41 to 55,
and the hardware equipment, the software equipment and the shared storage space in the interactive system are all arranged on the SOC.
57. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 19.
CN201980030298.1A 2019-08-29 2019-08-29 Interaction method, device, system and readable storage medium Pending CN112106036A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/103263 WO2021035609A1 (en) 2019-08-29 2019-08-29 Interaction method, device and system, and readable storage medium

Publications (1)

Publication Number Publication Date
CN112106036A true CN112106036A (en) 2020-12-18

Family

ID=73749023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980030298.1A Pending CN112106036A (en) 2019-08-29 2019-08-29 Interaction method, device, system and readable storage medium

Country Status (2)

Country Link
CN (1) CN112106036A (en)
WO (1) WO2021035609A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR970019245A (en) * 1995-09-26 1997-04-30 양승택 Interprocessor communication method through common memory in multitask environment
CN101243421A (en) * 2005-08-19 2008-08-13 国际商业机器公司 System and method for communicating instructions and data between a processor and external devices
US20120042324A1 (en) * 2010-08-13 2012-02-16 Robert Breker Memory management method and device in a multitasking capable data processing system
CN106131319A (en) * 2016-06-29 2016-11-16 努比亚技术有限公司 A kind of information processing method and device, terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101187908A (en) * 2007-09-27 2008-05-28 上海大学 Single chip multi-processor shared data storage space access method
CN101246466B (en) * 2007-11-29 2012-06-20 华为技术有限公司 Management method and device for sharing internal memory in multi-core system
US8825969B2 (en) * 2009-11-30 2014-09-02 Netapp, Inc. Eliminating duplicate data by sharing file system extents
US9244877B2 (en) * 2013-03-14 2016-01-26 Intel Corporation Link layer virtualization in SATA controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR970019245A (en) * 1995-09-26 1997-04-30 양승택 Interprocessor communication method through common memory in multitask environment
CN101243421A (en) * 2005-08-19 2008-08-13 国际商业机器公司 System and method for communicating instructions and data between a processor and external devices
US20120042324A1 (en) * 2010-08-13 2012-02-16 Robert Breker Memory management method and device in a multitasking capable data processing system
CN106131319A (en) * 2016-06-29 2016-11-16 努比亚技术有限公司 A kind of information processing method and device, terminal

Also Published As

Publication number Publication date
WO2021035609A1 (en) 2021-03-04

Similar Documents

Publication Publication Date Title
CN109726163B (en) SPI-based communication system, method, equipment and storage medium
US9110786B2 (en) Read operation prior to retrieval of scatter gather list
CN108055343B (en) Data synchronization method and device for computer room
US10108372B2 (en) Methods and apparatuses for executing a plurality of queued tasks in a memory
CN102460405B (en) For being carried out the method and system of main control system memory access by storage arrangement
US8156376B2 (en) Method, device and system for storing data in cache in case of power failure
TW201743219A (en) DDR-compatible asynchronous memory module, system and method for operating memory module
JP2003132037A (en) System and method for low overhead message passing between domains in partitioned server
JP4834362B2 (en) Memory controller.
CN111737564B (en) Information query method, device, equipment and medium
JP2006512657A (en) Memory controller and method of writing to memory
CN109446147B (en) Data interaction method of network storage device and pcie device
CN109983749B (en) Computing device and method for increasing data transfer speed
KR20170010810A (en) Method, device and user equipment for reading/writing data in nand flash
CN108132811B (en) FPGA program data loading method and device
CN115470156A (en) RDMA-based memory use method, system, electronic device and storage medium
CN111522706A (en) Method and device for monitoring page abnormity of front-end application
CN111737161B (en) File transmission method, terminal and storage medium of Flash memory
CN113179216A (en) Remote configuration method of register, computer equipment and storage medium
CN112115521B (en) Data access method and device
CN111930528A (en) Message writing method, device and equipment of message middleware and readable storage medium
CN112106036A (en) Interaction method, device, system and readable storage medium
JPWO2006006388A1 (en) Host device, storage device, and access method to storage device
TW202305544A (en) Power supply device, power supply system and non-transitory computer-readable recording medium
CN115248745A (en) Data processing method and device

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