Control structure for realizing protocol layer communication of communication protocol by hardware
The protocol-layer communication of communication protocols is realized through hardware, which solves the problem of large chip area and high cost in the prior art requiring integrated microcontrollers, and achieves the effect of saving chip area and cost.
Patent Information
- Application Number
- CN202411696271.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-03-04
AI Technical Summary
The current communication protocol system requires integrated microcontrollers to support protocol communication system software, resulting in large chip area and high cost of communication protocol system.
The protocol layer communication of the communication protocol is realized through hardware, and the upper computer uses the upper computer communication interface to issue communication commands to the communication protocol host. The communication protocol host communicates with the communication protocol slave through the communication protocol interface to realize hardware control of the protocol layer communication.
There is no need to integrate microcontrollers in communication protocol masters and slaves, saving the area and cost of communication protocol system chips.
Smart Images

Figure CN119561993A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication protocol systems, and in particular to a control structure for hardware-implemented communication of a communication protocol layer. Background Art
[0002] The current common communication protocol systems are as follows Figure 1 In the communication protocol system, the communication protocol host and the communication protocol slave perform protocol communication through the communication protocol interface. The communication protocol communication is initiated by the communication protocol host, and the communication protocol slave needs to respond to the communication initiated by the communication protocol host as specified in the protocol.
[0003] The protocol layer of the communication protocol is generally implemented through the protocol communication system software, so it is required that a microcontroller be integrated in both the communication protocol host and the communication protocol slave of the communication protocol system to support the protocol communication system software, resulting in a large area and high cost of the communication protocol system chip. Summary of the invention
[0004] The present invention aims to provide a control structure for hardware-implemented communication protocol layer communication, so as to solve the problem that the current communication protocol system needs to integrate a microcontroller to support the protocol communication system software, resulting in a large area and high cost of the communication protocol system chip.
[0005] The invention provides a control structure for hardware-implemented communication protocol layer communication, comprising a communication protocol host and a communication protocol slave connected via a communication protocol interface, and a host computer connected to the communication protocol host via a host computer communication interface.
[0006] In some embodiments, the host computer is also connected to a communication protocol slave machine.
[0007] In some embodiments, the method for implementing the control structure of the communication protocol layer communication by hardware includes:
[0008] The host computer sends a communication command to the communication protocol host through the host computer communication interface to configure the communication operation that the communication protocol host needs to initiate;
[0009] After receiving the communication command through the upper computer communication interface, the communication protocol host initiates communication with the communication protocol slave through the communication protocol interface;
[0010] The communication protocol slave responds to the communication initiated by the communication protocol master as specified in the protocol.
[0011] In some embodiments, the workflow of the communication protocol host is as follows:
[0012] When the communication protocol system is powered on, the communication protocol host determines whether to support the communication protocol by detecting the status of the communication protocol interface. If the communication protocol is supported, it waits to receive the communication command from the host computer;
[0013] If a communication command from the host computer is received, the communication command is decoded and communication is initiated to the communication protocol slave through the communication protocol interface until the communication command operation of the host computer is completed;
[0014] When the communication command operation of the host computer is completed, a communication protocol host interrupt signal is generated and sent to the host computer, and the communication protocol host operation status is updated.
[0015] In some embodiments, the communication protocol host interrupt signal is directly reported to the host computer, and the host computer can read the latest operation status of the communication protocol host through the host computer communication interface and send a new communication command based on the latest operation status of the communication protocol host.
[0016] In some embodiments, the working process of the communication protocol slave is as follows:
[0017] When the communication protocol system is powered on, the communication protocol slave determines whether to support the communication protocol by detecting the status of the communication protocol interface. If it supports the communication protocol, it waits to receive the communication initiated by the communication protocol host; if it receives the communication initiated by the communication protocol host, it responds to the communication initiated by the communication protocol host.
[0018] In some embodiments, the response result and status of the communication protocol slave are transmitted back to the communication protocol master through the communication protocol interface, and will be updated to the operation status of the communication protocol master.
[0019] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0020] The present invention realizes the protocol layer communication of the communication protocol through hardware, and does not need to integrate a microcontroller in the communication protocol host and the communication protocol slave of the communication protocol system, thereby saving the area and cost of several communication protocol system chips. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a structural diagram of the existing communication protocol system.
[0022] Figure 2 It is a structural diagram of the control structure of the communication layer communication of the communication protocol implemented by hardware in an embodiment of the present invention.
[0023] Figure 3 The figure is a working flow chart of the communication protocol host in the embodiment of the present invention.
[0024] Figure 4 4 is a flowchart of the communication protocol slave in an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0026] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] The current communication protocol system needs to integrate a microcontroller to support the protocol communication system software, which leads to the problem that the communication protocol system chip is large in area and high in cost. If the protocol layer communication of the communication protocol is implemented through hardware, there is no need to integrate a microcontroller in the communication protocol host and the communication protocol slave of the communication protocol system, thereby achieving the effect of saving the area and cost of the communication protocol system chip.
[0028] In view of this, if Figure 2 As shown, an embodiment of the present invention proposes a control structure for hardware-implemented communication protocol layer communications, including a communication protocol host and a communication protocol slave connected via a communication protocol interface, and a host computer connected to the communication protocol host via a host computer communication interface.
[0029] The working method of the control structure of the hardware to implement the communication protocol layer communication is as follows:
[0030] The host computer sends a communication command to the communication protocol host through the host computer communication interface to configure the communication operation that the communication protocol host needs to initiate;
[0031] After receiving the communication command through the upper computer communication interface, the communication protocol host initiates communication with the communication protocol slave through the communication protocol interface;
[0032] The communication protocol slave responds to the communication initiated by the communication protocol master as specified in the protocol.
[0033] It should be noted that the host computer communication interface on the slave side of the communication protocol is optional and not required, so Figure 2 Not marked.
[0034] like Figure 3 The working process of the communication protocol host is as follows:
[0035] When the communication protocol system is powered on, the communication protocol host determines whether to support the communication protocol by detecting the status of the communication protocol interface. If the communication protocol is supported, it waits to receive the communication command from the host computer. The communication command of the host computer is some communication commands specified by the host computer according to the communication protocol type based on the communication protocol detection result. A communication command is similar to the instruction of the microcontroller and requires the communication protocol host to complete a series of operations.
[0036] If a communication command from the host computer is received, the communication command is decoded and communication is initiated to the communication protocol slave through the communication protocol interface until the communication command operation of the host computer is completed;
[0037] When the communication command operation of the host computer is completed, a communication protocol host interrupt signal is generated and sent to the host computer, and the communication protocol host operation status is updated. It should be noted that the communication protocol host interrupt signal is directly reported to the host computer, and the host computer can read the latest operation status of the communication protocol host through the host computer communication interface, and send a new communication command based on the latest operation status of the communication protocol host.
[0038] like Figure 4 As shown, the working process of the communication protocol slave is as follows:
[0039] When the communication protocol system is powered on, the communication protocol slave determines whether to support the communication protocol by detecting the status of the communication protocol interface. If it supports the communication protocol, it waits to receive the communication initiated by the communication protocol master; if it receives the communication initiated by the communication protocol master, it responds to the communication initiated by the communication protocol master. It should be noted that the response result and status of the communication protocol slave are transmitted back to the communication protocol master through the communication protocol interface, and will be updated to the operation status of the communication protocol master.
[0040] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A control structure for hardware-implemented communication protocol layer communication, characterized in that: It includes a communication protocol host and a communication protocol slave connected through a communication protocol interface, and a host computer connected to the communication protocol host through a host computer communication interface.
2. According to the control structure of the hardware-implemented communication protocol layer communication according to claim 1, the host computer is also connected to the communication protocol slave machine.
3. A method for operating a control structure for implementing a communication protocol layer communication by hardware as claimed in claim 1 or 2, characterized in that: include: The host computer sends a communication command to the communication protocol host through the host computer communication interface to configure the communication operation that the communication protocol host needs to initiate; After receiving the communication command through the upper computer communication interface, the communication protocol host initiates communication with the communication protocol slave through the communication protocol interface; The communication protocol slave responds to the communication initiated by the communication protocol master as specified in the protocol.
4. The working method of the control structure of the hardware-implemented communication protocol layer communication according to claim 3 is characterized in that: The working process of the communication protocol host is as follows: When the communication protocol system is powered on, the communication protocol host determines whether to support the communication protocol by detecting the status of the communication protocol interface. If the communication protocol is supported, it waits to receive the communication command from the host computer; If a communication command from the host computer is received, the communication command is decoded and communication is initiated to the communication protocol slave through the communication protocol interface until the communication command operation of the host computer is completed; When the communication command operation of the host computer is completed, a communication protocol host interrupt signal is generated and sent to the host computer, and the communication protocol host operation status is updated.
5. The control structure of the hardware-implemented communication protocol layer communication according to claim 4, characterized in that: The communication protocol host interrupt signal is directly reported to the host computer, and the host computer can read the latest operation status of the communication protocol host through the host computer communication interface, and send a new communication command based on the latest operation status of the communication protocol host.
6. The control structure of the protocol layer communication of the hardware-implemented communication protocol according to claim 3, characterized in that: The working process of the communication protocol slave is as follows: When the communication protocol system is powered on, the communication protocol slave determines whether to support the communication protocol by detecting the status of the communication protocol interface. If the communication protocol is supported, it waits to receive the communication initiated by the communication protocol master. If a communication initiated by a communication protocol host is received, respond to the communication initiated by the communication protocol host.
7. The control structure of the protocol layer communication of the hardware-implemented communication protocol according to claim 6, characterized in that: The response result and status of the communication protocol slave are transmitted back to the communication protocol master through the communication protocol interface, and will be updated to the operation status of the communication protocol master.