Transmitting method, receiving method, transmitting device, and receiving device for interface data
Abstract
Disclosed are a transmitting method, a receiving method, a transmitting device and a receiving device for interface data. The transmitting method includes: interface data is obtained by the transmitting device via a first USB interface. The interface data is processed to obtain UDP packet by the transmitting device. The UDP packet is transmitted, by the transmitting device, to a first communication module. The UDP packet is transmitted to the receiving device or switch. By adopting the disclosure, ultra-low latency transmission of USB interface data between devices in long-distance transmission can be achieved.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1. A transmitting method for interface data, comprising:
obtaining, by a transmitting device, interface data via a first universal serial bus (USB) interface;
processing, by the transmitting device, the interface data to obtain a user datagram protocol (UDP) packet; and
transmitting, by the transmitting device, the UDP packet to a first communication module;
wherein processing, by the transmitting device, the interface data to obtain the UDP packet comprises:
processing, by the transmitting device, the interface data to obtain gigabit Ethernet media independent interface (MII) data; and
encapsulating, via a first FPGA module or by a first integrated circuit, the gigabit Ethernet MII data based on the UDP protocol to obtain the UDP packet; wherein the gigabit Ethernet MII data comprises reduced gigabit media independent interface (RGMII) data, GMII interface data or SGMII interface data; and
after transmitting, by the transmitting device, the UDP packet to the first communication module,
framing, by the transmitting device, the UDP packet into a superframe by a framing module of the first communication module;
transmitting, by the transmitting device, the superframe to a first optical module of the first communication module via a first Ethernet media access control (MAC) unit of the first communication module;
converting, by the transmitting device, the superframe into an optical signal by the first optical module; and
transmitting, by the transmitting device, the optical signal to a switch through the UDP;
wherein the switch is configured to forward the optical signal to a receiving device connected to the switch, and the first optical module comprises an optical module with a transmission rate not lower than a first threshold; or
transmitting, by the transmitting device, the superframe to a first electrical module of the first communication module via a first Ethernet MAC unit of the first communication module; and
transmitting, by the transmitting device, the superframe to a switch through the UDP;
wherein the switch is configured to forward the superframe to a receiving device connected to the switch, and the first electrical module comprises a first physical interface transceiver (PHY) and a first RJ-45 interface; the first electrical module comprises an electrical module with a transmission rate not lower than a first threshold.
2. The transmitting method according to claim 1 , wherein
obtaining, by the transmitting device, the interface data via the first USB interface comprises:
obtaining, by the transmitting device, the interface data from a preset device via a USB 2.0 interface;
obtaining, by the transmitting device, the interface data from the preset device via a USB 3.0 interface;
obtaining, by the transmitting device, the interface data from the preset device via a USB 3.1 interface; or,
obtaining, by the transmitting device, the interface data from the preset device via a USB 1.0 interface.
3. The transmitting method according to claim 1 , wherein
the receiving device comprises a first receiving device and a second receiving device,
the switch is configured to forward the optical signal to the first receiving device and the second receiving device, respectively.
4. The transmitting method according to claim 1 , wherein
the receiving device comprises a first receiving device and a second receiving device,
the switch is configured to forward the superframe to the first receiving device and the second receiving device, respectively.
5. The transmitting method according to claim 1 , wherein
the transmitting method further comprises:
after the converting, by the transmitting device, the superframe into an optical signal by the first optical module,
transmitting, by the transmitting device, the optical signal to the receiving device by the first optical module.
6. The transmitting method according to claim 5 , wherein
the receiving device comprises a first receiving device and a second receiving device; and
transmitting, by the transmitting device, the optical signal to the receiving device by the first optical module comprises;
transmitting, by the transmitting device, the optical signal to the first receiving device and the second receiving device respectively by the first optical module.
7. The transmitting method according to claim 1 , wherein
the transmitting method further comprises:
after the transmitting, by the transmitting device, the superframe to the first electrical module of the first communication module via the first Ethernet MAC unit of the first communication module,
transmitting, by the transmitting device, the superframe to the receiving device by the first electrical module.
8. The transmitting method according to claim 7 , wherein
the receiving device comprises a first receiving device and a second receiving device; and
transmitting, by the transmitting device, the superframe to the receiving device by the first electrical module comprises:
transmitting, by the transmitting device, the superframe to the first receiving device and the second receiving device respectively by the first electrical module.
9. A transmitting device for interface data, comprising: a first memory configured to store first application program instruction; and
a first processor coupled to the first memory and configured to invoke the first application program instruction to execute the transmitting method for interface data according to any one of claims 1 - 2 and 3 - 8 ;
a first USB interface, a USB chip, and a first electrical module;
wherein the first USB interface is integrated into the USB chip;
the first USB interface is used to acquire interface data;
the USB chip is used to obtain Gigabit Ethernet MII data based on the interface data; wherein the Gigabit Ethernet MII data includes: RGMII data, GMII data or SGMII data;
the first electrical module is used to receive the Gigabit Ethernet MII data; wherein the first electrical module includes: a first physical transceiver and a first RJ45 interface; wherein the first electrical module includes: transmission rate Electrical modules not below a first threshold.
10. A receiving method for interface data, comprising:
obtaining, by a receiving device, a user datagram protocol (UDP) packet from a second communication module via an output interface of the second communication module;
processing, by the receiving device, the UDP packet to obtain target interface data;
wherein obtaining, by the receiving device, the UDP packet from the second communication module comprises:
obtaining, by the receiving device, an optical signal from a switch or transmitting device based on the UDP protocol by a second optical module of the second communication module;
converting, by the receiving device, the optical signal into a superframe by a second optical module of the second communication module based on UDP; wherein the second optical module comprises an optical module with a transmission rate not lower than a second threshold;
transmitting, by the receiving device, the superframe to a unframing module via a second Ethernet media access control (MAC) unit of the second communication module; and
unframing, by the receiving device, the superframe into the UDP packet by a unframing module; or
obtaining, by the receiving device, the superframe from a switch or transmitting device by a second electrical module of the second communication module; wherein the second electrical module comprises a second physical interface transceiver (PHY) and a second RJ-45 interface; and the second electrical module comprising an electrical module with a transmission rate not lower than a second threshold;
transmitting, by the receiving device, the superframe to the unframing module through the second Ethernet MAC unit; and
unframing, by the receiving device, the superframe into the UDP packet by the unframing module;
wherein processing, by the receiving device, the UDP packet to obtain the target interface data comprises:
decapsulating, by the receiving device, the UDP packet by a second FPGA module or a second integrated circuit based on the UDP to obtain gigabit Ethernet MII data;
processing, by the receiving device, the gigabit Ethernet MII data to obtain the target interface data; wherein the gigabit Ethernet MII data comprises RGMII data, GMII data, or SGMII data.
11. The receiving method according to claim 10 , wherein the receiving method further comprising:
obtaining, by the receiving device, preset interface data via a second USB interface;
processing, by the receiving device, the preset interface data to obtain a preset UDP packet; and
transmitting, by the receiving device, the preset UDP packet to the transmitting device or the switch via the second communication module; wherein the switch is configured to forward the preset UDP packet to the transmitting device.
12. A receiving device for interface data, comprising:
a second memory configured to store a second application program instruction; and
a second processor coupled to the second memory and configured to invoke the second application program instructions to execute the receiving method for interface data according to any one of claims 10 and 11 ;
a second electrical module and a USB chip;
wherein the second electrical module is configured to receive Gigabit Ethernet MII interface data via an output interface of the second electrical module; wherein the Gigabit Ethernet MII data includes: RGMII data, GMII data or SGMII data;
the USB chip is used to obtain target interface data based on the Gigabit Ethernet MII interface data.Join the waitlist — get patent alerts
Track US11601736B2 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.