CN112217851A - Data transmission method, data transmission device and electronic equipment - Google Patents

Data transmission method, data transmission device and electronic equipment Download PDF

Info

Publication number
CN112217851A
CN112217851A CN201910627334.4A CN201910627334A CN112217851A CN 112217851 A CN112217851 A CN 112217851A CN 201910627334 A CN201910627334 A CN 201910627334A CN 112217851 A CN112217851 A CN 112217851A
Authority
CN
China
Prior art keywords
data
signal
communication data
communication
electronic device
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.)
Granted
Application number
CN201910627334.4A
Other languages
Chinese (zh)
Other versions
CN112217851B (en
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.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic 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 Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN201910627334.4A priority Critical patent/CN112217851B/en
Publication of CN112217851A publication Critical patent/CN112217851A/en
Application granted granted Critical
Publication of CN112217851B publication Critical patent/CN112217851B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/324Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the data link layer [OSI layer 2], e.g. HDLC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0033Systems modifying transmission characteristics according to link quality, e.g. power backoff arrangements specific to the transmitter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0036Systems modifying transmission characteristics according to link quality, e.g. power backoff arrangements specific to the receiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention discloses a data transmission method, a data transmission device and electronic equipment. The data transmission method is suitable for being applied to a first electronic device to communicate with a second electronic device, wherein the first electronic device comprises a data link layer and a system layer; it is characterized by comprising: the data link layer generates a communication data request signal and a ready signal and sends the communication data request signal and the ready signal to the system layer; the data link layer receives communication data and a data transmission ending signal which are transmitted by the system layer according to the communication data request signal and the ready signal; the data link layer invalidates the ready signal in response to the data transmission end signal; and the data link layer transmits the communication data and the data transmission end signal to the second electronic equipment. The embodiment of the invention solves the problem of overlarge system layer overhead in the current communication process between devices, avoids communication congestion, and realizes that the communication efficiency is not reduced while the system layer overhead is reduced.

Description

Data transmission method, data transmission device and electronic equipment
Technical Field
The present invention relates to the field of data transmission, and in particular, to a data transmission method and an electronic device.
Background
In the data communication process between the devices, in order to ensure the reliability of the communication, an interactive protocol is generally required to be adopted at an upper layer of a communication architecture, that is, for data transmission between respective system layers of the two devices, the respective system layers of the two devices need to communicate through the interactive protocol to perform data transmission between respective data link layers of the two devices, and this data transmission scheme improves the reliability of the data transmission, however, since the protocol interaction process is completed between the system layers of the devices, and only data is transmitted and received between the data link layers of the devices, this will undoubtedly increase the complex layers of the system layers of the devices, increase the system overhead and reduce the communication efficiency.
In addition, in the application process, the resources of the system layer (e.g., microcontroller, digital signal processor, etc.) at the upper layer are generally limited, and the protocol interaction method at the system layer is difficult to implement particularly in the field of complex applications.
Disclosure of Invention
Therefore, embodiments of the present invention provide a data transmission method, an apparatus, and an electronic device, which can reduce overhead of a system layer without reducing communication efficiency.
In one aspect, a data transmission method provided in an embodiment of the present invention is suitable for being applied to a first electronic device and a second electronic device for communication, where the first electronic device includes a data link layer and a system layer; it is characterized by comprising: the data link layer generates a communication data request signal and a ready signal and sends the communication data request signal and the ready signal to the system layer; the data link layer receives communication data and a data transmission ending signal which are transmitted by the system layer according to the communication data request signal and the ready signal; the data link layer disables the ready signal in response to the data transmission end signal; and the data link layer transmits the communication data and the data transmission end signal to the second electronic equipment.
In the above technical solution, through the response interaction between the data link layer of the first electronic device and the system layer of the first electronic device, i.e. a communication data transfer between the data link layer and the system layer of the first electronic device is achieved by means of a data request signal, a ready signal and a reply mechanism of a data end-of-transmission signal, data communication between the first electronic device and the second electronic device is then achieved by the first electronic device sending an end of data signal to the second electronic device, therefore, the communication mechanism that the system layer carries out response interaction and the data link layer only carries out communication data transceiving during data communication among the devices, which is commonly adopted in the prior art, is avoided, the problem of overlarge system layer overhead in the current communication process among the devices is solved, certain intervention is performed on the communication flow, communication congestion is avoided, and the communication efficiency is not reduced while the overhead of a system layer is reduced.
In one embodiment of the present invention, before the data link layer generates a communication data request signal and a ready signal and transmits the communication data request signal and the ready signal to the system layer, the data transmission method further includes: and the data link layer receives a communication data clearing signal sent by the second electronic equipment.
In one embodiment of the present invention, the communication data request signal, the ready signal, the data transmission end signal, and the communication data clear signal are binary status codes.
On the other hand, a data transmission apparatus provided in an embodiment of the present invention includes: the signal generation module is used for generating a communication data request signal and a ready signal and sending the communication data request signal and the ready signal to a system layer; the data receiving module is used for receiving communication data and a data sending end signal sent by the system layer according to the communication data request signal and the ready signal; a signal invalidation module for invalidating the ready signal in response to the data transmission end signal; and the data sending module is used for sending the communication data and the data sending end signal to second electronic equipment.
In the scheme, communication data transmission is realized through response interaction among modules of the data transmission device, namely, by means of a response mechanism of a data request signal, a ready signal and a data transmission end signal, and then data transmission is realized by sending a data transmission end signal to the second electronic equipment through the data transmission module.
In another aspect, an embodiment of the present invention provides an electronic device, including: a data link layer and a system layer, the data link layer to: generating a communication data request signal and a ready signal and transmitting the communication data request signal and the ready signal to the system layer, receiving communication data and a data transmission end signal transmitted by the system layer, disabling the ready signal in response to the data transmission end signal, and transmitting the communication data and the data transmission end signal to the second electronic device; the system layer is to: and sending communication data according to the data request signal and the ready signal, and sending a data sending end signal to the data link layer after the communication data is generated.
In the scheme, communication data transmission is realized through response interaction of a data link layer and a system layer of the electronic equipment, namely, communication data transmission is realized by means of a response mechanism of a data request signal, a ready signal and a data sending end signal, and then data communication between the equipment is realized by sending a data sending end signal to the second electronic equipment through the data link layer of the electronic equipment.
In one embodiment of the invention, the electronic device is a video processor, the data link layer is a programmable logic device, and the system layer is a microcontroller.
In another aspect, a data transmission method provided by the embodiment of the present invention is suitable for being applied to a first electronic device to communicate with a second electronic device, where the second electronic device includes a data link layer and a system layer; it is characterized by comprising: the data link layer receives a data transmission end signal and communication data transmitted by the first electronic equipment; the data link layer generates an interrupt request signal according to the data transmission end signal and transmits the interrupt request signal to the system layer so that the system layer responds to the interrupt request signal to generate interrupt and read the communication data; after the system layer finishes reading the communication data, the data link layer clears the communication data and generates a communication data clearing signal; and the data link layer sends the communication data clear signal to the first electronic device.
In the scheme, communication data transmission is realized through response interaction of a data link layer and a system layer of the second electronic device, namely, communication data transmission is realized by means of a response mechanism of a data sending end signal, an interruption request signal and a communication data clearing signal, and then communication data clearing signals are sent to the first electronic device through the data link layer of the second electronic device to realize data communication among devices.
In another aspect, an embodiment of the present invention provides a data transmission apparatus, including a data receiving module, configured to receive a data transmission end signal and communication data sent from the first electronic device; the data reading module is used for generating an interrupt request signal according to the data sending end signal and sending the interrupt request signal to the system layer so that the system layer responds to the interrupt request signal to generate interrupt and read the communication data; the data clearing module is used for clearing the communication data and generating a communication data clearing signal after the system layer reads the communication data; and the communication data clearing signal sending module is used for sending the communication data clearing signal to the first electronic equipment.
In the scheme, communication data transmission is realized through response interaction among modules of the data transmission device, namely, by means of a response mechanism of a data transmission end signal, an interrupt request signal and a communication data clearing signal, and then, communication data clearing signals are transmitted to the first electronic equipment through a communication data clearing signal transmitting module of the data transmission device to realize data communication among the equipment.
In another aspect, an embodiment of the present invention provides an electronic device, including: a data link layer and a system layer, wherein the data link layer is to: receiving a data sending end signal and communication data sent by the first electronic device, generating an interrupt request signal according to the data sending end signal, sending the interrupt request signal to the system layer, clearing the communication data after the system layer finishes reading the communication data and generating a communication data clearing signal, and sending the communication data clearing signal and the communication data clearing signal to the first electronic device; the system layer is to: generating an interrupt in response to the interrupt request signal and reading the communication data.
In the scheme, communication data transmission is realized through response interaction between a data link layer and a system layer of the electronic equipment, namely, by means of a response mechanism of a data sending end signal, an interruption request signal and a communication data clearing signal, and then, data communication between the equipment is realized by sending the communication data clearing signal to the first electronic equipment through the data link layer of the electronic equipment.
In one embodiment of the invention, the electronic device is a video processor, the data link layer is a programmable logic device, and the system layer is a microcontroller.
One or more of the technical schemes have the following advantages or beneficial effects: the embodiment of the invention solves the problem that the protocol processing is only carried out between a sending end system layer and a receiving end system layer when the data communication is carried out between the prior communication equipment, namely, the protocol processing is carried out between the sending end data link layer and the receiving end system layer in the prior art, namely, the interactive process is responded, and only the data is sent and received between the sending end data link layer and the receiving end data link layer without any analysis process, so that the system layer overhead is overlarge.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced 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 based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a data transmission method according to a first embodiment of the present invention.
Fig. 2 is a schematic view illustrating an interaction flow between a data link layer and a system layer of a first electronic device according to a first embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a data transmission device according to a second embodiment of the present invention.
Fig. 4 is a schematic structural diagram of an electronic device according to a third embodiment of the invention.
Fig. 5 is a flowchart illustrating a data transmission method according to a fourth embodiment of the present invention.
Fig. 6 is a schematic diagram illustrating an interaction flow between a data link layer and a system layer of a second electronic device according to a fourth embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a data transmission device according to a fifth embodiment of the present invention.
Fig. 8 is a schematic structural diagram of an electronic device according to a sixth embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described 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 of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
[ first embodiment ] A method for manufacturing a semiconductor device
As shown in fig. 1, a data transmission method provided in a first embodiment of the present invention is suitable for being applied to a first electronic device and a second electronic device for communication, where the first electronic device includes a data link layer and a system layer, and the data transmission method includes the following steps:
s110, the data link layer generating a communication data request signal and a ready signal, and sending the communication data request signal and the ready signal to the system layer;
s120, the data link layer receives the communication data and the data transmission end signal transmitted by the system layer according to the communication data request signal and the ready signal;
s130, the data link layer invalidates a ready signal in response to the data transmission end signal; and
s140, the data link layer sends the communication data and the data sending end signal to the second electronic device.
In one embodiment, before S110, that is, before the data link layer generates a communication data request signal and a ready signal and transmits the communication data request signal and the ready signal to the system layer, the data transmission method further includes the data link layer receiving a communication data clear signal transmitted by the second electronic device.
In one embodiment, the communication data request signal, the ready signal, the data transmission end signal, and the communication data clear signal are binary status codes.
The data transmission method is described in detail below by a specific embodiment, and referring to fig. 2, a flow chart of data transmission between the system layer 202 and the data link layer 204 of the first electronic device 200 is shown.
Specifically, the first electronic device 200 may be a video processing device, and may also be any electronic device that includes a system layer and a data link layer and is capable of data transmission with other electronic devices. The system layer 202 may be, for example, a microcontroller, an ARM processor, or an upper computer or other main control device, which is not limited herein. The data link layer 204 may be, for example, a programmable logic device, but may also be other processors. The system layer 202 is communicatively coupled to a data link layer 204. The programmable logic device and the microcontroller are, for example, electrical components commonly used in the prior art, but the interaction manner and data transmission manner between the two are different from the prior art.
During the data transmission process, first, the data link layer 204, such as a programmable logic device, of the first electronic device 200 receives a communication data clearing signal sent by the second electronic device, where the communication data clearing signal is used to indicate that the buffer memory of the second electronic device is cleared and ready to receive the communication data of the first electronic device. The data link layer 204, such as a programmable logic device, then sends a communication data request signal to the system layer 202, such as a microcontroller, indicating that the data link layer 204 is requesting communication data from the system layer 202, and a ready signal indicating that the data link layer 204 is ready to receive communication data from the system layer 202. Then, the system layer 1 receives the data request signal and the ready signal and transmits communication data to the data link layer 204 based on the ready signal of the received communication data request signal, and the data link layer 204 receives the communication data and stores the communication data in a memory of the first electronic device 200, which may be a memory of the data link layer 204 itself or a memory independent of the data link layer 204. After the system layer 202 finishes transmitting the communication data, a data transmission end signal for indicating that the system layer 202 has finished transmitting the communication data is transmitted to the data link layer 204. The data link layer 204 receives the data transmission end signal, disables the ready signal, i.e., restricts the system layer 202 from continuing to transmit communication data to the data link layer 204, and transmits the communication data stored by the data link layer 204 itself and the received data transmission end signal to the second electronic device. The data link layer 204 of the first electronic device 200 may transmit the communication data and the data transmission end signal to the second electronic device through the GTX interface, or may transmit the data through another interface, which is not limited herein.
In the embodiment of the present invention, the communication data clear signal, the communication data request signal, the ready signal and the data transmission end signal are present in the form of the status code, for example, a binary status code, for example, the status code of the communication data clear signal is binary data 000, which indicates that the communication data in the memory of the data link layer of the second electronic device has been completely transferred and cleared, the status code of the communication data request signal is binary data 001, which indicates that the data link layer of the first electronic device requests the communication data from the system layer of the first electronic device, the status code of the ready signal is binary data 010, which indicates that the data link layer of the first electronic device is ready to receive the communication data of the system layer of the first electronic device, and the status code of the data transmission end signal is binary data 011 indicating the end of data transmission. Of course, the status code may be in other forms as long as it can be distinguished from the encoding mode of the communication data transmitted between the system layer 202 and the data link layer 204.
In the above embodiment of the present invention, the response interaction between the data link layer of the first electronic device and the system layer of the first electronic device, that is, the response mechanism of the data request signal, the ready signal, the data transmission end signal, and the like is used to implement the communication data transmission between the data link layer of the first electronic device and the system layer, and then the first electronic device sends the data transmission end signal to the second electronic device to implement the data communication between the first electronic device and the second electronic device, so as to avoid the communication mechanism that the system layer performs response interaction and the data link layer only performs communication data transceiving during the inter-device data communication, which is usually adopted in the prior art, solve the problem of too large overhead of the system layer during the current inter-device communication, perform a certain intervention on the communication flow, and avoid communication congestion, the communication efficiency is not reduced while the overhead of a system layer is reduced.
[ second embodiment ]
Referring to fig. 3, a block diagram of a data transmission apparatus 300 according to a second embodiment of the present invention is shown. The data transmission apparatus 300 includes a signal generation module 302, a data reception module 304, a signal invalidation module 306, and a data transmission module 308.
Specifically, the signal generating module 302 is configured to generate a communication data request signal and a ready signal, and send the communication data request signal and the ready signal to a system layer; the data receiving module 304 is configured to receive communication data and a data sending end signal sent by the system layer according to the communication data request signal and the ready signal; the signal disabling module 306 is configured to disable the ready signal in response to the data send complete signal; and the data sending module 308 is configured to send the communication data and the data sending end signal to the second electronic device.
The specific operation and technical effects between the modules in the data transmission device 300 in this embodiment are described in the foregoing first embodiment.
[ third embodiment ]
Referring to fig. 4, a schematic structural diagram of an electronic device 400 according to a third embodiment of the invention is shown. A system layer 402 and a data link layer 404 of the electronic device 400.
Specifically, the data link layer 404 is configured to: generating a communication data request signal and a ready signal and transmitting the communication data request signal and the ready signal to the system layer, receiving communication data and a data transmission end signal transmitted by the system layer, disabling the ready signal in response to the data transmission end signal, and transmitting the communication data and the data transmission end signal to the second electronic device;
the system layer 402 is configured to: and sending communication data according to the data request signal and the ready signal, and sending a data sending end signal to the data link layer after the communication data is generated.
In one embodiment, the electronic device 400 is a video processor, the system layer 402 is a microcontroller, and the data link layer 404 is a programmable logic device.
The specific operation procedure and technical effect between the system layer 402 and the data link layer 404 of the electronic device 400 in the present embodiment are described with reference to the foregoing first embodiment.
[ fourth example ] A
As shown in fig. 5, a data transmission method provided in a first embodiment of the present invention is suitable for being applied to a first electronic device and a second electronic device for communication, where the second electronic device includes a data link layer and a system layer, and the data transmission method includes the following steps:
s510, the data link layer receives a data transmission end signal and communication data transmitted by the first electronic equipment;
s520, the data link layer generates an interrupt request signal according to the data transmission end signal and transmits the interrupt request signal to the system layer so that the system layer responds to the interrupt request signal to generate interrupt and read the communication data;
s530, after the system layer finishes reading the communication data, the data link layer clears the communication data and generates a communication data clearing signal; and
s540, the data link layer sends the communication data clear signal to the first electronic device.
The above data transmission method is described in detail below by a specific embodiment, and referring to fig. 6, the whole process of data transmission between the system layer 602 and the data link layer 604 of the second electronic device 600 is shown.
Specifically, the second electronic device 600 may be a video processing device, and may also be any electronic device that includes a system layer and a data link layer and is capable of data transmission with other electronic devices. The system layer 602 may be, for example, a microcontroller, an ARM processor, or an upper computer or other main control device, which is not limited herein. The data link layer 604 may be, for example, a programmable logic device, but may also be other processors. The system layer 602 is communicatively coupled to a data link layer 604. The programmable logic device and the microcontroller are, for example, electrical components commonly used in the prior art, but the interaction manner and data transmission manner between the two are different from the prior art.
In the data transmission process, first, the data link layer 604 receives a data transmission end signal and communication data transmitted by the data link layer of the first electronic device, and stores the communication data in the memory. The memory is a first-in first-out memory, but may be other types of memory. The memory may be integrated in the data link layer 604 or may be a memory independent from the data link layer 604, and the arrangement of the memory is not limited in the embodiment of the present invention.
Then, the data link layer 604 generates an interrupt request signal according to the received data transmission end signal, and transmits the interrupt request signal to the system layer 602. The system layer 602 generates an interrupt in response to the received interrupt request signal and reads communication data transmitted by the data link layer 604. After the system layer 602 finishes reading the communication data, the data link layer 604 clears the memory storing the communication data and generates a communication data clearing signal, and then the data link layer 604 sends the communication data clearing signal to the first electronic device, so that the first electronic device can know that the second electronic device finishes reading the communication data after receiving the communication data clearing signal, and the next data transmission process can be continued between the first electronic device and the second electronic device. In addition, the data link layer 604 of the second electronic device 600 may transmit the communication data clear signal to the first electronic device through the GTX interface, or may transmit the data through another interface, which is not limited herein.
In the embodiment of the present invention, the data transmission end signal, the interrupt request signal, and the communication data clear signal are in the form of a status code, for example, a binary status code, where the status code of the data transmission end signal is binary data 011 indicating that data transmission is ended, the status code of the interrupt request signal is binary data 100 indicating that the data link layer of the second electronic device requests the system layer of the second electronic device to generate an interrupt, and the status code of the communication data clear signal is binary data 000 indicating that communication data in the memories of the data link layers of the second electronic device has been completely transmitted and cleared. Of course, the status code may be in other forms as long as it can be distinguished from the encoding manner of the communication data transmitted between the system layer 602 and the data link layer 604.
In the above embodiment of the present invention, the communication data transmission is implemented through the response interaction between the data link layer and the system layer of the second electronic device, that is, by means of the response mechanisms of the data transmission end signal, the interrupt request signal, the communication data clear signal, and the like, and then the communication data clear signal is sent to the first electronic device through the data link layer of the second electronic device to implement the inter-device data communication.
[ fifth embodiment ]
Referring to fig. 7, a block diagram of a data transmission device 700 according to a second embodiment of the present invention is shown. The data transmission apparatus 700 includes a data receiving module 702, a data reading module 704, a data clearing module 706, and a communication data clearing signal sending module 708.
Specifically, the data receiving module 702 is configured to receive a data transmission end signal and communication data transmitted from the first electronic device; the data reading module 704 is configured to generate an interrupt request signal according to the data sending end signal and send the interrupt request signal to the system layer, so that the system layer generates an interrupt in response to the interrupt request signal and reads the communication data; the data clearing module 706 is configured to clear the communication data and generate a communication data clearing signal after the system layer reads the communication data; and a communication data clear signal sending module 708 configured to send the communication data clear signal to the first electronic device.
The specific operation and technical effects between the modules in the data transmission device 700 in this embodiment are described in the fourth embodiment.
[ sixth embodiment ]
Referring to fig. 8, a schematic structural diagram of an electronic device 800 according to a third embodiment of the present invention is shown. A system layer 802 and a data link layer 804 of the electronic device 800.
Specifically, the data link layer 804 is configured to: receiving a data sending end signal and communication data sent by the first electronic device, generating an interrupt request signal according to the data sending end signal, sending the interrupt request signal to the system layer, clearing the communication data after the system layer finishes reading the communication data and generating a communication data clearing signal, and sending the communication data clearing signal and the communication data clearing signal to the first electronic device; and the system layer 802 is to: generating an interrupt in response to the interrupt request signal and reading the communication data.
In one embodiment, the electronic device 800 is a video processor, the system layer 802 is a microcontroller, and the data link layer 804 is a programmable logic device.
For the specific operation procedure and technical effect between the system layer 802 and the data link layer 804 of the electronic device 800 in this embodiment, reference is made to the description of the fourth embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of one logic function, and an actual implementation may have another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may also be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A data transmission method is suitable for being applied to a first electronic device to communicate with a second electronic device, wherein the first electronic device comprises a data link layer and a system layer; it is characterized by comprising:
the data link layer generates a communication data request signal and a ready signal and sends the communication data request signal and the ready signal to the system layer;
the data link layer receives communication data and a data transmission ending signal which are transmitted by the system layer according to the communication data request signal and the ready signal;
the data link layer disables the ready signal in response to the data transmission end signal; and
and the data link layer transmits the communication data and the data transmission ending signal to the second electronic equipment.
2. The data transmission method according to claim 1, wherein before the data link layer generates a communication data request signal and a ready signal and transmits the communication data request signal and the ready signal to the system layer, the data transmission method further comprises:
and the data link layer receives a communication data clearing signal sent by the second electronic equipment.
3. The data transmission method according to claim 2, wherein the communication data request signal, the ready signal, the data transmission end signal, and the communication data clear signal are binary status codes.
4. A data transmission apparatus comprising:
the signal generation module is used for generating a communication data request signal and a ready signal and sending the communication data request signal and the ready signal to a system layer;
the data receiving module is used for receiving communication data and a data sending end signal sent by the system layer according to the communication data request signal and the ready signal;
a signal invalidation module for invalidating the ready signal in response to the data transmission end signal; and
and the data sending module is used for sending the communication data and the data sending end signal to second electronic equipment.
5. An electronic device, comprising: a data link layer and a system layer,
the data link layer is to: generating a communication data request signal and a ready signal and transmitting the communication data request signal and the ready signal to the system layer, receiving communication data and a data transmission end signal transmitted by the system layer, disabling the ready signal in response to the data transmission end signal, and transmitting the communication data and the data transmission end signal to the second electronic device;
the system layer is to: and sending communication data according to the data request signal and the ready signal, and sending a data sending end signal to the data link layer after the communication data is generated.
6. The electronic device of claim 5, wherein the electronic device is a video processor, the data link layer is a programmable logic device, and the system layer is a microcontroller.
7. A data transmission method is suitable for being applied to a first electronic device to communicate with a second electronic device, wherein the second electronic device comprises a data link layer and a system layer; it is characterized by comprising:
the data link layer receives a data transmission end signal and communication data transmitted by the first electronic equipment;
the data link layer generates an interrupt request signal according to the data transmission end signal and transmits the interrupt request signal to the system layer so that the system layer responds to the interrupt request signal to generate interrupt and read the communication data;
after the system layer finishes reading the communication data, the data link layer clears the communication data and generates a communication data clearing signal; and
the data link layer sends the communication data clear signal to the first electronic device.
8. A data transmission apparatus comprising:
the data receiving module is used for receiving a data sending end signal and communication data sent by the first electronic equipment;
the data reading module is used for generating an interrupt request signal according to the data sending end signal and sending the interrupt request signal to the system layer so that the system layer responds to the interrupt request signal to generate interrupt and read the communication data;
the data clearing module is used for clearing the communication data and generating a communication data clearing signal after the system layer reads the communication data; and
and the communication data clearing signal sending module is used for sending the communication data clearing signal to the first electronic equipment.
9. An electronic device, comprising: a data link layer and a system layer, wherein,
the data link layer is to: receiving a data sending end signal and communication data sent by the first electronic device, generating an interrupt request signal according to the data sending end signal, sending the interrupt request signal to the system layer, clearing the communication data after the system layer finishes reading the communication data and generating a communication data clearing signal, and sending the communication data clearing signal and the communication data clearing signal to the first electronic device;
the system layer is to: generating an interrupt in response to the interrupt request signal and reading the communication data.
10. The electronic device of claim 9, wherein the electronic device is a video processor, the data link layer is a programmable logic device, and the system layer is a microcontroller.
CN201910627334.4A 2019-07-12 2019-07-12 Data transmission method, data transmission device and electronic equipment Active CN112217851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910627334.4A CN112217851B (en) 2019-07-12 2019-07-12 Data transmission method, data transmission device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910627334.4A CN112217851B (en) 2019-07-12 2019-07-12 Data transmission method, data transmission device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112217851A true CN112217851A (en) 2021-01-12
CN112217851B CN112217851B (en) 2023-05-12

Family

ID=74048455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910627334.4A Active CN112217851B (en) 2019-07-12 2019-07-12 Data transmission method, data transmission device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112217851B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681948A (en) * 2016-12-26 2017-05-17 深圳先进技术研究院 Logic control method and device of programmable logic device
CN106851611A (en) * 2017-02-28 2017-06-13 上海富士施乐有限公司 A kind of data is activation and the method and device for receiving
CN106951388A (en) * 2017-03-16 2017-07-14 湖南博匠信息科技有限公司 A kind of DMA data transfer method and system based on PCIe
CN107014381A (en) * 2017-06-06 2017-08-04 北京京东尚科信息技术有限公司 PLD, DSP, integrated navigation system, data processing method and device
CN107181657A (en) * 2017-05-31 2017-09-19 中车信息技术有限公司 A kind of WTB link layer interfaces adapter and its implementation
CN107748509A (en) * 2017-09-20 2018-03-02 上海辛格林纳新时达电机有限公司 ASI communication slave implementations based on single-chip microcomputer transmitting-receiving control
CN109040004A (en) * 2018-05-25 2018-12-18 北京无线电测量研究所 ICP/IP protocol implementation method, device and storage medium
US20190095363A1 (en) * 2018-05-04 2019-03-28 Intel Corporation High bandwidth link layer for coherent messages
CN109661658A (en) * 2016-10-01 2019-04-19 英特尔公司 Link Physical Layer interface adapter
CN109819065A (en) * 2019-01-30 2019-05-28 山东超越数控电子股份有限公司 Data transmission and storage system, method and data system based on FPGA
CN109828943A (en) * 2019-01-16 2019-05-31 北京左江科技股份有限公司 A kind of the raising serial ports transmission rate processing system and method for low rate communication network

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109661658A (en) * 2016-10-01 2019-04-19 英特尔公司 Link Physical Layer interface adapter
CN106681948A (en) * 2016-12-26 2017-05-17 深圳先进技术研究院 Logic control method and device of programmable logic device
CN106851611A (en) * 2017-02-28 2017-06-13 上海富士施乐有限公司 A kind of data is activation and the method and device for receiving
CN106951388A (en) * 2017-03-16 2017-07-14 湖南博匠信息科技有限公司 A kind of DMA data transfer method and system based on PCIe
CN107181657A (en) * 2017-05-31 2017-09-19 中车信息技术有限公司 A kind of WTB link layer interfaces adapter and its implementation
CN107014381A (en) * 2017-06-06 2017-08-04 北京京东尚科信息技术有限公司 PLD, DSP, integrated navigation system, data processing method and device
CN107748509A (en) * 2017-09-20 2018-03-02 上海辛格林纳新时达电机有限公司 ASI communication slave implementations based on single-chip microcomputer transmitting-receiving control
US20190095363A1 (en) * 2018-05-04 2019-03-28 Intel Corporation High bandwidth link layer for coherent messages
CN109040004A (en) * 2018-05-25 2018-12-18 北京无线电测量研究所 ICP/IP protocol implementation method, device and storage medium
CN109828943A (en) * 2019-01-16 2019-05-31 北京左江科技股份有限公司 A kind of the raising serial ports transmission rate processing system and method for low rate communication network
CN109819065A (en) * 2019-01-30 2019-05-28 山东超越数控电子股份有限公司 Data transmission and storage system, method and data system based on FPGA

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
田辉等: "基于SPI总线的ARM与DSP通信协议设计", 《工业控制计算机》 *
程丽玲: "UART及USB双模通信接口的研究及实现", 《自动化仪表》 *

Also Published As

Publication number Publication date
CN112217851B (en) 2023-05-12

Similar Documents

Publication Publication Date Title
US20140068134A1 (en) Data transmission apparatus, system, and method
CN101895549A (en) Conversion gateway and conversion method of vehicle communication network data
CN105007329B (en) A kind of network share storage system and its storage method based on PCIe
CN111327603A (en) Data transmission method, device and system
KR101990184B1 (en) Communication Method and System based on MQTT/HTTP for IoT Gateway Using Private-IP Address
CN112579311B (en) Method for accessing solid state disk and storage device
US20230152978A1 (en) Data Access Method and Related Device
US20240152290A1 (en) Data writing method, data reading method, apparatus, device, system, and medium
CN105141603A (en) Communication data transmission method and system
CN112817602A (en) JSON format data sending and receiving method, device and medium
CN104461978B (en) Method and device for unidirectional data transmission
US20130332504A1 (en) Station, target apparatus, initiator apparatus, communication system, and communication method
CN111404842B (en) Data transmission method, device and computer storage medium
CN112217851A (en) Data transmission method, data transmission device and electronic equipment
CN101902398A (en) Method and system for receiving and transmitting data packet
CN115514682B (en) Data transmission method, device, equipment and storage medium
CN103347023B (en) A kind of HDLC communication controller under industrial field environment
CN103117955B (en) Method for message transmission and device, system
US8825925B1 (en) Systems and methods for super speed packet transfer
WO2014156020A1 (en) Initiator terminal, target terminal, method of interrupting access of initiator terminal, and method of interrupting access of target terminal
CN114189445A (en) USB signal transparent transmission processing method, device, terminal and storage medium
CN114153781A (en) SSP connection management method and device
CN107193989B (en) NAS cluster cache processing method and system
CN111092817A (en) Data transmission method and device
CN105723670A (en) Self-interference channel estimation 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
GR01 Patent grant
GR01 Patent grant