Ultra-high-speed serial communication method and system for expansion unit
The LVDS-based ultra-high-speed serial communication method and system for expansion units in programmable controllers addresses speed limitations by using LVDS and CPLD to achieve a 400M maximum transmission rate, ensuring efficient data exchange.
Patent Information
- Application Number
- CN202311121436.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-31
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2043-08-31
AI Technical Summary
Existing programmable controllers face limitations in bus speed, with maximum transmission rates not exceeding 2M due to the use of 485 or CAN bus interfaces, which cannot meet the increasing speed requirements of modern expansion units.
An ultra-high-speed serial communication method and system utilizing LVDS signal transmission to establish an Ebus network, enabling communication links between a host and expansion units with unique ID numbers, and employing CPLD for data decoding to achieve a maximum transmission rate of 400M.
The method and system enable ultra-high-speed data transmission between expansion units, exceeding previous speeds by establishing an ultra-high-speed transmission hardware and software channel, allowing for efficient data exchange without delay.
Smart Images

Figure CN117349215B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of programmable logic control or motion control, and in particular to an ultra-high-speed serial communication method and system for an expansion unit. Background Art
[0002] In general programmable controllers, expansion units are indispensable. The traditional connection between the host and the expansion unit uses 485 or CAN bus to mount the system. Limited by the speed of these bus interfaces, the maximum transmission rate does not exceed 2M.
[0003] As the types and performance requirements of expansion units increase, the bus speed requirements become higher and higher. Summary of the invention
[0004] Aiming at the technical problems existing in the prior art, the present invention provides an ultra-high-speed serial communication method and system for an expansion unit, designs an ultra-high-speed protocol based on LVDS signal transmission, combines LVDS signals into an Ebus network, realizes the identification and data transmission of multiple units, and has a theoretical maximum rate of 400M, which greatly exceeds the previous speed.
[0005] According to a first aspect of the present invention, there is provided an ultra-high-speed serial communication method of an extension unit, comprising:
[0006] Step 1, each expansion unit of the host is used as a slave of the host and a unique ID number is set for each of the slaves, and the host and each of the slaves are connected in series in sequence according to the ID number through LVDS to establish a communication link;
[0007] Step 2: The host sends and receives data with the designated slave based on the ID number and the communication link.
[0008] Based on the above technical solution, the present invention can also make the following improvements.
[0009] Optionally, after the host and each of the slaves are connected via an LVDS-based expansion unit interface, the communication link forms an Ebus bus, and the connection identification between the host and each of the slaves is achieved through a CPLd.
[0010] Optionally, during data transmission between the host and each of the slaves, a CPLD is used to decode the transmitted data.
[0011] Optionally, the process in step 2 whereby the host sends data to a slave m with a designated ID number of m includes:
[0012] Step 201, the host sends a data packet carrying an ID number of m to slave 1;
[0013] Step 202, slave 1 uses the characteristics of cpld to transparently transmit the data packet to slave 2;
[0014] Step 203 , slaves 2 to m-1 transparently transmit the data packet to slave m in sequence.
[0015] Optionally, in the process of the host sending data to the slave with the specified ID number m in step 2, any of the slaves detects whether the ID number carried in the data packet is its own ID number after receiving the data packet:
[0016] When slave 2 detects that the ID number m carried by slave m-1 is not its own ID number, it transparently transmits the data packet to the next slave;
[0017] When the slave m detects that the ID number m carried is its own ID number, it saves and processes the data and returns the processed data.
[0018] Optionally, the process of returning the processed data from the slave m in step 2 includes:
[0019] Step 204, slave m returns the processed data to slave m-1, and slave m-1 and slave 1 transmit the data packet to the host in sequence, thereby completing a communication loop cycle.
[0020] According to a second aspect of the present invention, there is provided an ultra-high-speed serial communication system of an expansion unit, comprising: a host and slaves representing the expansion units of the host; each of the slaves is provided with a unique ID number;
[0021] The host and each of the slaves are connected in series in sequence according to the ID number through LVDS to establish a communication link; the host sends and receives data with the designated slave based on the ID number and the communication link.
[0022] According to a third aspect of the present invention, there is provided an electronic device comprising a memory and a processor, wherein the processor is configured to implement the steps of an ultra-high-speed serial communication method of an expansion unit when executing a computer management program stored in the memory.
[0023] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium on which a computer management program is stored, and when the computer management program is executed by a processor, the steps of the ultra-high-speed serial communication method of the expansion unit are implemented.
[0024] The present invention provides an ultra-high-speed serial communication method, system, electronic device and storage medium of an expansion unit, designs an ultra-high-speed protocol based on LVDS signal transmission, the LVDS signal can establish an ultra-high-speed transmission hardware channel, and then based on cpld to achieve decoding, it can achieve the establishment of an ultra-high-speed transmission software channel; the communication rate depends on the communication bus speed, and the maximum LVDS can reach 400M, thereby realizing ultra-high-speed data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 A structural block diagram of an ultra-high-speed serial communication system of an expansion unit provided by the present invention;
[0026] Figure 2 A schematic diagram of the hardware structure of a possible electronic device provided by the present invention;
[0027] Figure 3 A schematic diagram of the hardware structure of a possible computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0028] The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.
[0029] The present invention provides an ultra-high-speed serial communication method of an expansion unit, comprising:
[0030] Step 1: Use each expansion unit of the host as a slave of the host and set a unique ID number for each slave. Connect the host and each slave in series in sequence according to the ID number through LVDS (Low Voltage Differential Signaling) to establish a communication link.
[0031] In a specific implementation, the host is connected to slave 1, slave 1 is connected to slave 2, slave 2 is connected to slave 3, and so on.
[0032] Step 2: The host sends and receives data with the designated slave based on the ID number and the communication link. The data sent by the host reaches the slave without delay, and the slave returns to the host without delay, thus achieving high-speed data transmission.
[0033] The present invention provides an ultra-high-speed serial communication method for an expansion unit, designs an ultra-high-speed protocol based on LVDS signal transmission, combines an Ebus network through LVDS signals, realizes identification and data transmission of multiple units, and has a theoretical maximum rate of 400M, which greatly exceeds the previous speed.
[0034] Example 1
[0035] Embodiment 1 provided by the present invention is an embodiment of an ultra-high-speed serial communication method of an expansion unit provided by the present invention, combined with Figure 2 It can be seen that the embodiment of the serial communication method includes:
[0036] Step 1: Use each expansion unit of the host as a slave of the host and set a unique ID number for each slave. Connect the host and each slave in series in sequence according to the ID number through LVDS to establish a communication link.
[0037] In a possible implementation manner, after the host and each slave are connected based on the LVDS expansion unit interface, the communication link forms an Ebus bus, and the connection identification between the host and each slave is realized through CPLD.
[0038] EBUS is a data transmission standard defined by the LVDS standard. It can be directly connected to the ESC chip without the need for an additional physical layer chip, thus avoiding the additional transmission delay of the physical layer. The transmission delay of one port is about 100ns.
[0039] In a possible implementation manner, during data transmission between the host and each slave, a cpld is used to decode the transmitted data.
[0040] Step 2: The host sends and receives data with the designated slave based on the ID number and the communication link.
[0041] In a possible implementation manner, the process in step 2 where the host sends data to the slave m with a designated ID number of m includes:
[0042] Step 201, the host sends a data packet carrying an ID number of m to slave 1.
[0043] Step 202: slave 1 transparently transmits the data packet to slave 2 by utilizing the characteristics of cpld.
[0044] Step 203 , slaves 2 to m-1 transparently transmit the data packets to slave m in sequence, so that the data packets can reach each slave without any delay from the host.
[0045] In a possible implementation manner, in step 2, when the host sends data to the slave with the specified ID number m, any slave detects whether the ID number carried in the data packet is its own ID number after receiving the data packet:
[0046] When slave 2 to slave m-1 detects that the ID number m carried is not its own ID number, it transparently transmits the data packet to the next slave.
[0047] When the slave m detects that the ID number m carried is its own ID number, it saves and processes the data and returns the processed data.
[0048] In a possible implementation manner, the process of returning the processed data from the slave m in step 2 includes:
[0049] Step 204, slave m returns the processed data to slave m-1, and slave m-1 transmits the data to the host after transparent transmission to slave 1, thus completing a communication loop cycle.
[0050] The returned data needs to pass through the slave device before it, so the slave device will immediately transmit the returned data it receives, so it can be transmitted to the host without any delay.
[0051] Example 2
[0052] Embodiment 2 provided by the present invention is an embodiment of an ultra-high-speed serial communication system of an expansion unit provided by the present invention. Figure 1 The ultra-high-speed serial communication system structure diagram of an expansion unit provided in an embodiment of the present invention is combined with Figure 1 It can be known that the embodiment of the serial communication system includes: a host and each slave representing each expansion unit of the host; each slave is provided with a unique ID number.
[0053] The host and each slave are connected in series in sequence according to the ID number through LVDS to establish a communication link; the host sends and receives data with the designated slave based on the ID number and the communication link.
[0054] It can be understood that the ultra-high-speed serial communication system of an extension unit provided by the present invention corresponds to the ultra-high-speed serial communication method of the extension unit provided in the aforementioned embodiments. The relevant technical features of the ultra-high-speed serial communication system of the extension unit can refer to the relevant technical features of the ultra-high-speed serial communication method of the extension unit, which will not be repeated here.
[0055] See also Figure 2 , Figure 2 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 2 As shown, an embodiment of the present invention provides an electronic device, including a memory 1310, a processor 1320, and a computer program 1311 stored in the memory 1310 and executable on the processor 1320. When the processor 1320 executes the computer program 1311, the following steps are implemented: each expansion unit of the host is used as a slave of the host and a unique ID number is set for each slave; the host and each slave are connected in series in sequence according to the ID number through LVDS to establish a communication link; the host sends and receives data with the designated slave based on the ID number and the communication link.
[0056] See also Figure 3 , Figure 3Schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. Figure 3 As shown, this embodiment provides a computer-readable storage medium 1400, on which a computer program 1411 is stored. When the computer program 1411 is executed by a processor, the following steps are implemented: each expansion unit of the host is used as a slave of the host and a unique ID number is set for each slave, and the host and each slave are connected in series in sequence according to the ID number through LVDS to establish a communication link; the host sends and receives data with the designated slave based on the ID number and the communication link.
[0057] An ultra-high-speed serial communication method, system, electronic device and storage medium of an expansion unit provided in an embodiment of the present invention are designed with an ultra-high-speed protocol based on LVDS signal transmission. The LVDS signal can establish an ultra-high-speed transmission hardware channel, and then decode based on cpld to establish an ultra-high-speed transmission software channel. The communication rate depends on the communication bus speed, and the maximum LVDS can reach 400M, thereby realizing ultra-high-speed data transmission.
[0058] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0059] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0060] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0061] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0062] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0063] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0064] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. An ultra-high-speed serial communication method for an expansion unit, characterized in that: The serial communication method comprises: Step 1, each expansion unit of the host is used as a slave of the host and a unique ID number is set for each of the slaves, and the host and each of the slaves are connected in series in sequence according to the ID number through LVDS to establish a communication link; Step 2, the host sends and receives data with the designated slave based on the ID number and the communication link; After the host and each of the slaves are connected via an LVDS-based expansion unit interface, the communication link forms an Ebus bus, and the connection identification between the host and each of the slaves is realized via a CPLD; The process in step 2 whereby the host sends data to the slave m with the specified ID number m includes: Step 201, the host sends a data packet carrying an ID number of m to slave 1; Step 202, slave 1 uses the characteristics of cpld to transparently transmit the data packet to slave 2; Step 203, slaves 2 to m-1 transparently transmit the data packet to slave m in sequence; In the process of the host sending data to the slave with the specified ID number m in step 2, any of the slaves detects whether the ID number carried in the data packet is its own ID number after receiving the data packet: When slave 2 detects that the ID number m carried by slave m-1 is not its own ID number, it transparently transmits the data packet to the next slave; When the slave m detects that the ID number m carried is its own ID number, it saves and processes the data and returns the processed data.
2. The serial communication method according to claim 1, characterized in that: During the data transmission between the host and each of the slaves, the cpld is used to decode the transmitted data.
3. The serial communication method according to claim 1, characterized in that: The process of returning the processed data from the slave m in step 2 includes: Step 204, slave m returns the processed data to slave m-1, and slave m-1 and slave 1 transmit the data packet to the host in sequence, thereby completing a communication loop cycle.
4. An ultra-high-speed serial communication system of an expansion unit, characterized in that: The serial communication system comprises: a host and each slave representing each expansion unit of the host; each slave is provided with a unique ID number; The host and each of the slaves are connected in series in sequence according to the ID number through LVDS to establish a communication link; the host sends and receives data with the designated slave based on the ID number and the communication link; After the host and each of the slaves are connected based on the LVDS expansion unit interface, the communication link constitutes an ebus bus, and the connection identification between the host and each of the slaves is realized by cpld; The process of the host sending data to the slave m with the specified ID number m includes: Step 201, the host sends a data packet carrying an ID number of m to slave 1; Step 202, slave 1 uses the characteristics of cpld to transparently transmit the data packet to slave 2; Step 203, slaves 2 to m-1 transparently transmit the data packet to slave m in sequence; When the host sends data to a slave with a designated ID number m, any slave receives the data packet and detects whether the ID number carried in the data packet is its own ID number: When slave 2 detects that the ID number m carried by slave m-1 is not its own ID number, it transparently transmits the data packet to the next slave; When the slave m detects that the ID number m carried is its own ID number, it saves and processes the data and returns the processed data.
5. An electronic device, characterized in that: It comprises a memory and a processor, wherein the processor is used to implement the steps of the ultra-high-speed serial communication method of the extension unit as claimed in any one of claims 1 to 3 when executing the computer management program stored in the memory.
6. A computer-readable storage medium, characterized in that: A computer management program is stored thereon, and when the computer management program is executed by a processor, the steps of the ultra-high-speed serial communication method of the extension unit as claimed in any one of claims 1 to 3 are implemented.
