[go: up one dir, main page]

CN114928377B - Output transmission method, device and equipment for reducing transparent transmission bandwidth of USB data - Google Patents

Output transmission method, device and equipment for reducing transparent transmission bandwidth of USB data Download PDF

Info

Publication number
CN114928377B
CN114928377B CN202210509710.1A CN202210509710A CN114928377B CN 114928377 B CN114928377 B CN 114928377B CN 202210509710 A CN202210509710 A CN 202210509710A CN 114928377 B CN114928377 B CN 114928377B
Authority
CN
China
Prior art keywords
usb
data
response instruction
sends
instruction
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.)
Active
Application number
CN202210509710.1A
Other languages
Chinese (zh)
Other versions
CN114928377A (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.)
Vtron Group Co Ltd
Original Assignee
Vtron Group 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 Vtron Group Co Ltd filed Critical Vtron Group Co Ltd
Priority to CN202210509710.1A priority Critical patent/CN114928377B/en
Publication of CN114928377A publication Critical patent/CN114928377A/en
Application granted granted Critical
Publication of CN114928377B publication Critical patent/CN114928377B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/02Details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/02Details
    • H04B3/04Control of transmission; Equalising
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention relates to an output transmission method, a device and equipment for reducing the transparent transmission bandwidth of USB data, which are applied to a USB transparent transmission system, wherein the USB transparent transmission system comprises a USB data transmitting end, a USB local end, a USB far end and a USB data receiving end, and the transparent transmission of a data set between the USB data transmitting end and the USB data receiving end is completed by the output transmission method for reducing the transparent transmission bandwidth of USB data only needs (1024+5) by 2=2058 bytes of bandwidth, thereby reducing one third of bandwidth compared with the traditional USB data transparent transmission mode, improving one third of speed, improving the transparent transmission speed of USB data, and solving the technical problems of waste of USB bandwidth resources and low transparent transmission speed of the traditional USB transparent transmission mode of an OUT packet.

Description

Output transmission method, device and equipment for reducing transparent transmission bandwidth of USB data
Technical Field
The present invention relates to the field of data communication transmission technologies, and in particular, to an output transmission method, device, and equipment for reducing a transparent transmission bandwidth of USB data.
Background
As shown in fig. 4, the USB transparent transmission system generally includes a USB host (such as a PC), a USB local end, a USB remote end, and a USB device; the USB local end is connected with a USB port of the USB host, is simulated into USB equipment, and converts a command sent by the USB host into other medium commands to be sent to a USB remote end at other places; the USB remote receives the commands and converts the commands back to USB commands to be sent to the USB device. Both receipt and reply of these commands follow the definition of the USB protocol.
In a USB transparent transmission system, a command sent by a USB host often cannot obtain a response of a USB device within a response time specified by a USB protocol. The existing command response scheme between the USB host and the USB device is to make the USB command packet sent by the USB local end to the USB host return a NAK response packet to the USB host, which represents that the USB device is not ready, and send the USB host command to the USB remote end through the medium such as the network. After receiving the command, the USB far-end sends the command to the USB equipment through the USB bus. The reply data packet of the USB device is reversely transmitted back to the USB local end through media such as a network. After receiving the NAK response packet returned by the USB local terminal before, the USB host retransmits the previous command packet to the USB local terminal after a certain time, and at this time, the USB local terminal can send the reply data of the USB device back to the USB host as a response, thereby completing a USB data transparent transmission process.
In the USB protocol, the OUT command packet is responsible for writing DATA (DATA) to the USB device, such as writing a file to the USB disk, which occupies more USB bus bandwidth. As shown in fig. 5, the USB transparent transmission of the OUT packet works as follows:
the USB host transmits an OUT command and a corresponding DATA0 DATA packet. The USB local end sends OUT command and DATA0 DATA packet to the USB far end, and the USB local end replies NAK packet of the USB host;
after receiving the OUT command which can be processed by the USB device and the command transmitted by the DATA0 DATA packet, the USB far-end returns an ACK packet to the USB local end, or returns a NAK packet;
3. according to the USB2.0 protocol, after receiving NAK reply of the OUT command, the USB host sends a PING command (without a DATA0 DATA packet) after a certain time to test whether the USB device can receive the DATA DATA, so that bandwidth occupation is reduced;
4. after the USB equipment replies the ACK to the PING command, the USB local end replies an ACK packet to the PING command of the USB host;
the USB host considers the USB device to be ready, the USB host immediately sends OUT packets and DATA0 packets, and the USB local end also sends OUT packets and DATA0 packets to the USB remote end and replies with NAK to the USB host. After receiving NAK, USB host sends PING package again after a certain time;
and 6, the USB equipment returns an ACK packet after receiving the DATA0 packet, the USB local end records an ACK reply and carries out the ACK reply on the PING packet of the next USB host.
And 7, after receiving the PING packet reply ACK, the USB host sends the OUT packet and the DATA0 packet again, and at the moment, the USB local end replies the ACK packet to the USB host to complete the OUT packet transparent transmission process.
From the above, the PING command and the OUT command packet each occupy 5 bytes in length, and the OUT packet has a length of 0 to 1024 bytes. As can be calculated from the USB transparent transmission process of OUT packets, the same OUT packet is transmitted on the bus a minimum of 3 times, and calculated as an OUT packet with a length of 1024 bytes, the minimum occupied (1024+5) by 3=3087 bytes, i.e. 3087 CPU clocks are occupied. It is understood that transmitting an OUT packet of 1024 bytes requires a minimum of 3 times the time or bandwidth to transmit. Therefore, the existing USB transparent transmission mode of the OUT packet not only wastes USB bandwidth, but also causes a great discount on the transparent transmission rate.
Disclosure of Invention
The embodiment of the invention provides an output transmission method, device and equipment for reducing the transparent transmission bandwidth of USB data, which are applied to a USB transparent transmission system and are used for solving the technical problems of waste of USB bandwidth resources and low transparent transmission rate of the conventional USB transparent transmission mode of an OUT packet.
In order to achieve the above object, the embodiment of the present invention provides the following technical solutions:
the output transmission method for reducing the transparent transmission bandwidth of the USB data is applied to a transparent transmission system of the USB, wherein the transparent transmission system of the USB comprises a USB data transmitting end, a USB local end, a USB remote end and a USB data receiving end, and the output transmission method for reducing the transparent transmission bandwidth of the USB data comprises the following steps:
the USB data sending end sends a data set to the USB far end through the USB local end;
the USB far-end stores the data set, and then the USB far-end sends a first command to the USB data receiving end at regular time; the USB data receiving end responds to the first command and then sends a first response instruction to the USB far end;
according to the first response instruction, the USB far end transmits the data set to the USB data receiving end, and the USB data receiving end sends a second response instruction after receiving the data set;
after receiving the second response instruction according to the USB local end, and the USB local end responds to the inquiry instruction sent by the USB data sending end and sends a third response instruction, the USB data receiving end is in a state of a data set to be received;
and according to the second response instruction and the third response instruction, the USB data transmitting end resends the data set to the USB local end, and if the USB local end responds to a fourth response instruction corresponding to resending the data set, the transparent transmission of the data set is completed.
Preferably, the data set includes first data and second data, and after the USB remote end stores the data set, before the USB remote end sends the first command to the USB data receiving end at regular time, the method includes: extracting corresponding address data and endpoint data according to the first data, and then the USB far-end sends a first command to the USB data receiving end at regular time; and the USB data receiving end responds to the first command according to the address data and the endpoint data and then sends a first response instruction to the USB far end.
Preferably, before the USB data transmitting end receives the second response instruction, the output transmission method for reducing the transparent bandwidth of USB data includes: and the USB data transmitting end transmits an inquiry instruction to the USB local end at regular time.
Preferably, the output transmission method for reducing the transparent transmission bandwidth of the USB data comprises the following steps: before the USB local end receives the second response instruction, the USB local end sends a fifth response instruction responding to the inquiry instruction to the USB data sending end according to the inquiry instruction; after the USB local terminal receives the second response instruction, the USB local terminal sends a third response instruction responding to the inquiry instruction to the USB data sending terminal according to the inquiry instruction.
Preferably, the sending, by the USB data sending end, the data set to the USB remote end through the USB local end includes: the USB data sending end sends a data set to the USB local end, the USB local end sends a reply instruction to the USB data sending end after receiving the data set, and the USB local end transmits the data set to the USB remote end.
Preferably, the first DATA is an OUT packet and the second DATA is a DATA packet.
The invention also provides an output transmission device for reducing the transparent transmission bandwidth of the USB data, which is applied to a USB transparent transmission system, wherein the USB transparent transmission system comprises a USB data sending end, a USB local end, a USB far end and a USB data receiving end;
the first data transmission module is used for the USB data sending end to send a data set to the USB far end through the USB local end;
the data storage feedback module is used for the USB far-end to store the data set, and then the USB far-end sends a first command to the USB data receiving end at regular time; the USB data receiving end responds to the first command and then sends a first response instruction to the USB far end;
the second data transmission module is used for transmitting the data set to the USB data receiving end by the USB far end according to the first response instruction, and the USB data receiving end sends a second response instruction after receiving the data set;
the response module is configured to, after receiving the second response instruction according to the USB local end, and when the USB local end responds to the query instruction sent by the USB data sending end and sends a third response instruction, the USB data receiving end is in a state of a data set to be received;
and the response retransmission data module is used for retransmitting the data set to the USB local terminal by the USB data transmitting terminal according to the second response instruction and the third response instruction, and if the USB local terminal responds to a fourth response instruction corresponding to retransmitting the data set, the transparent transmission of the data set is completed.
Preferably, the data set includes first data and second data, the data storage feedback module is further configured to, after the USB remote end stores the data set, extract corresponding address data and endpoint data according to the first data before the USB remote end sends a first command to the USB data receiving end at regular time, and then send the first command to the USB data receiving end at regular time; and the USB data receiving end responds to the first command according to the address data and the endpoint data and then sends a first response instruction to the USB far end.
Preferably, the first data transmission module is further configured to, before the USB data transmitting end receives the second response instruction, send an inquiry instruction to the USB local end at regular time by the USB data transmitting end, and according to the inquiry instruction, send a fifth response instruction responding to the inquiry instruction to the USB data transmitting end by the USB local end; and the USB local end is used for sending a third response instruction responding to the inquiry instruction to the USB data sending end according to the inquiry instruction after the USB local end receives the second response instruction.
The invention also provides a terminal device, which comprises a processor and a memory;
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the above-described output transmission method for reducing the transparent bandwidth of USB data according to an instruction in the program code.
From the above technical solutions, the embodiment of the present invention has the following advantages: the output transmission method, device and equipment for reducing the transparent transmission bandwidth of USB data are applied to a transparent transmission system of USB, wherein the transparent transmission system of USB comprises a USB data transmitting end, a USB local end, a USB far end and a USB data receiving end, and the method comprises the following steps: the USB data transmitting terminal transmits a data set to the USB remote terminal through the USB local terminal; the USB remote end stores the data set, and then the USB remote end sends a first command to the USB data receiving end at regular time; the USB data receiving end responds to the first command and then sends a first response instruction to the USB far end; according to the first response instruction, the USB far end transmits the data set to the USB data receiving end, and the USB data receiving end receives the data set and then sends out a second response instruction; after receiving the second response instruction according to the USB local terminal, and the USB local terminal responds to the inquiry instruction sent by the USB data sending terminal and sends a third response instruction, the USB data receiving terminal is in a state of a data set to be received; and according to the second response instruction and the third response instruction, the USB data transmitting end transmits the data set to the USB local end again, and if the USB local end responds to a fourth response instruction corresponding to the retransmitted data set, the transparent transmission of the data set is completed. The transmission of the data set between the USB data transmitting end and the USB data receiving end is completed by the output transmission method for reducing the transmission bandwidth of the USB data, only (1024+5) 2=2058 bytes of bandwidth is needed, one third of bandwidth is reduced compared with the traditional USB data transmission mode, one third of speed is increased, the transmission rate of the USB data is increased, and the technical problems of waste of USB bandwidth resources and low transmission rate of the traditional USB transmission mode of the OUT packet are solved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained from these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a flowchart illustrating steps of an output transmission method for reducing transparent transmission bandwidth of USB data according to an embodiment of the present invention;
FIG. 2 is a data transmission diagram of an output transmission method for reducing the transparent transmission bandwidth of USB data according to an embodiment of the present invention;
FIG. 3 is a block diagram of an output transmission device for reducing the transparent transmission bandwidth of USB data according to an embodiment of the present invention;
FIG. 4 is a block diagram of a conventional USB data transparent transmission;
fig. 5 is a data transmission diagram of conventional USB data transparent transmission.
Detailed Description
In order to make the objects, features and advantages of the present invention more comprehensible, the technical solutions in the embodiments of the present invention are described in detail below with reference to the accompanying drawings, and it is apparent that the embodiments described below are only some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the application provides an output transmission method, device and equipment for reducing the transparent transmission bandwidth of USB data, which are applied to a USB transparent transmission system and are used for solving the technical problems of waste of USB bandwidth resources and low transparent transmission rate of the conventional USB transparent transmission mode of an OUT packet.
Embodiment one:
fig. 1 is a flow chart of steps of an output transmission method for reducing a transparent bandwidth of USB data according to an embodiment of the present invention, and fig. 2 is a data transmission diagram of an output transmission method for reducing a transparent bandwidth of USB data according to an embodiment of the present invention.
As shown in fig. 1 and fig. 2, an embodiment of the present invention provides an output transmission method for reducing a transparent transmission bandwidth of USB data, which is applied to a transparent transmission system of USB, where the transparent transmission system of USB includes a USB data transmitting end, a USB local end, a USB remote end, and a USB data receiving end, and the output transmission method for reducing the transparent transmission bandwidth of USB data includes the following steps:
s1, a USB data transmitting terminal transmits a data set to the USB remote terminal through a USB local terminal.
It should be noted that, the data set sent by the USB data sending end is mainly transmitted to the USB remote end through the USB local end. In this embodiment, the USB data transmitting end may be a USB host (such as a mobile terminal including a PC, an iPad, and a mobile phone), and the USB data receiving end may be a USB device (such as a USB disk and a hard disk).
S2, the USB far-end stores a data set, and then the USB far-end sends a first command to a USB data receiving end at regular time; the USB data receiving end responds to the first command and then sends a first response instruction to the USB far end.
It should be noted that, the USB remote may temporarily store the data set sent by the USB data sending end, as shown in fig. 2, and then the USB remote periodically generates the first command PING1 to send the first command PING1 to the USB data receiving end, and waits for the USB data receiving end to send the first response command ACK1 in response to the first command. Only after the USB receiving end sends the first response command ACK1, it is indicated that the USB data receiving end is ready to receive data.
S3, according to the first response instruction, the USB far end transmits the data set to the USB data receiving end, and the USB data receiving end receives the data set and then sends out a second response instruction.
It should be noted that, as shown in fig. 2, after the USB far-end receives the first response command ACK1, the USB far-end transmits the temporarily stored data set to the USB data receiving end, and after the USB data receiving end receives the data set, the USB data receiving end generates the second response command ACK2 and transmits the second response command ACK2 to the USB local end through a medium such as a network. In this embodiment, the medium such as a network may be a wireless communication network or a communication data line.
S4, after the USB local terminal receives the second response instruction, and the USB local terminal responds to the inquiry instruction sent by the USB data sending terminal and sends a third response instruction, the USB data receiving terminal is in a state of a data set to be received.
It should be noted that, as shown in fig. 2, in step S4, after the USB local terminal receives the second response instruction ACK2 and the USB local terminal responds to the query instruction PING2 sent by the USB data sending terminal and sends the third response instruction ACK3, it is indicated that the USB data receiving terminal is in a state of waiting for receiving the data set, that is, waiting for the USB data sending terminal to send the data packet to the USB data receiving terminal again.
S5, according to the second response instruction and the third response instruction, the USB data transmitting end transmits the data set to the USB local end again, and if the USB local end responds to a fourth response instruction corresponding to the retransmitted data set, transparent transmission of the data set is completed.
It should be noted that, in step S5, after the USB local terminal receives the second response command ACK2, the USB data transmitting terminal also receives the third response command ACK3, and the USB data transmitting terminal resends the data set to the USB local terminal, and after the USB local terminal receives the resent data set, responds to generate the fourth response command ACK4, and transmits the fourth response command ACK4 to the USB data receiving terminal, so as to complete transparent transmission of the data set between the USB data transmitting terminal and the USB data receiving terminal.
In the embodiment of the invention, the output transmission method for reducing the transparent transmission bandwidth of the USB data only needs (1024+5) x 2=2058 byte bandwidth to finish the transparent transmission of the data set between the USB data transmitting end and the USB data receiving end, reduces one third of the bandwidth compared with the traditional transparent transmission mode of the USB data, and improves one third of the speed. If the output transmission method for reducing the transparent transmission bandwidth of the USB data is adopted to transparently transmit a 1024-byte data set, the transmission can be completed only by at least twice the time.
The invention provides an output transmission method for reducing the transparent transmission bandwidth of USB data, which is applied to a USB transparent transmission system, wherein the USB transparent transmission system comprises a USB data transmitting end, a USB local end, a USB far end and a USB data receiving end, and the method comprises the following steps: the USB data transmitting terminal transmits a data set to the USB remote terminal through the USB local terminal; the USB remote end stores the data set, and then the USB remote end sends a first command to the USB data receiving end at regular time; the USB data receiving end responds to the first command and then sends a first response instruction to the USB far end; according to the first response instruction, the USB far end transmits the data set to the USB data receiving end, and the USB data receiving end receives the data set and then sends out a second response instruction; after receiving the second response instruction according to the USB local terminal, and the USB local terminal responds to the inquiry instruction sent by the USB data sending terminal and sends a third response instruction, the USB data receiving terminal is in a state of a data set to be received; and according to the second response instruction and the third response instruction, the USB data transmitting end transmits the data set to the USB local end again, and if the USB local end responds to a fourth response instruction corresponding to the retransmitted data set, the transparent transmission of the data set is completed. The transmission of the data set between the USB data transmitting end and the USB data receiving end is completed by the output transmission method for reducing the transmission bandwidth of the USB data, only (1024+5) 2=2058 bytes of bandwidth is needed, one third of bandwidth is reduced compared with the traditional USB data transmission mode, one third of speed is increased, the transmission rate of the USB data is increased, and the technical problems of waste of USB bandwidth resources and low transmission rate of the traditional USB transmission mode of the OUT packet are solved.
In one embodiment of the present invention, the data set includes first data and second data, and after the USB remote end stores the data set, before the USB remote end sends the first command to the USB data receiving end at a fixed time, the output transmission method for reducing the transparent transmission bandwidth of the USB data includes: extracting corresponding address data and endpoint data according to the first data, and then the USB far end sends a first command to the USB data receiving end at regular time; the USB data receiving end responds to the first command according to the address data and the endpoint data and then sends a first response instruction to the USB far end.
It should be noted that, as shown in fig. 2, the first DATA may be an OUT packet, and the second DATA may be a DATA0 packet. After the USB remote temporarily stores the data set, the address data and the endpoint data in the first data are extracted from the first data before the USB remote periodically generates the first command PING1. Based on the address data and the endpoint data, the USB far-end sends a first command PING1 to the USB data receiving end at regular time, and the USB data receiving end sends a first response instruction ACK1 to the USB far-end after responding to the first command PING1 according to the address data and the endpoint data, so that the USB data receiving end can accurately receive the first command PING1, and the data transparent transmission accuracy between the USB data sending end and the USB data receiving end is ensured.
In this embodiment, each USB data sink has a device address and a set of endpoints. The device address is used for distinguishing different USB data receiving ends, such as different USB data receiving ends of USB flash disks, and the like, and the device address is connected with the USB data receiving end which can only be accessed. The endpoints of the USB data receiving end, that is, simply a data transmission service identification number between the USB data transmitting end and the USB data receiving end, each endpoint is a single connection, and supports a data stream in one direction. If the USB flash disk is provided with endpoints 0, 1 and 2, the endpoint 0 is used for configuring the USB flash disk and acquiring the basic attribute of the USB flash disk; endpoint 1 is used to write data and endpoint 2 is used to read USB flash disk data. After the address data and the endpoint data are received, the USB data receiving end can correctly receive the first command PING1.
In one embodiment of the present invention, before the USB data transmitting end receives the second response instruction, the output transmission method for reducing the transparent bandwidth of the USB data includes: the USB data transmitting end regularly transmits an inquiry command to the USB local end;
before the USB local end receives the second response instruction, the USB local end sends a fifth response instruction for responding to the inquiry instruction to the USB data sending end according to the inquiry instruction;
after the USB local end receives the second response instruction, the USB local end sends a third response instruction for responding to the inquiry instruction to the USB data sending end according to the inquiry instruction.
It should be noted that, according to the definition of the USB2.0 protocol, during the data set transmission process, the USB data transmitting end periodically transmits the query instruction PING2 to the USB local end, and the USB local end generates the fifth response instruction NAK2 after responding to the query instruction PING2, which represents that the USB data receiving end may not receive the data set because the data processing is not performed. In order to reduce the occupation of bandwidth, the USB data transmitting end does not transmit the data set to the USB data receiving end again, but periodically transmits an inquiry command PING2 to inquire whether the USB data receiving end is ready to receive data, if the USB local end generates a third response command ACK3 in response to the inquiry command PING2, the USB data transmitting end can receive the data, and the USB data transmitting end transmits the data set to the USB data receiving end again.
In one embodiment of the present application, the sending, by the USB data sending end, the data set to the USB remote end through the USB local end includes: the USB data sending end sends the data set to the USB local end, the USB local end receives the data set and then sends a reply instruction to the USB data sending end, and the USB local end transmits the data set to the USB remote end.
It should be noted that, the USB data transmitting end sends the data set to the USB local end, and after the USB local end receives the data set, the USB data transmitting end sends a reply command NAK1, which indicates that the USB data receiving end may not receive the data set because the data processing is not performed. In order to reduce the bandwidth occupation, the USB data transmitting end will not send the data set to the USB data receiving end again and the USB local end will transmit the data set to the USB remote end.
Embodiment two:
fig. 3 is a frame diagram of an output transmission device for reducing a transparent transmission bandwidth of USB data according to an embodiment of the present invention.
As shown in fig. 3, the embodiment of the present invention further provides an output transmission device for reducing a transparent transmission bandwidth of USB data, which is applied to a USB transparent transmission system, where the USB transparent transmission system includes a USB data transmitting end, a USB local end, a USB remote end, and a USB data receiving end, and the output transmission device for reducing the transparent transmission bandwidth of USB data includes a first data transmission module 10, a data storage feedback module 20, a second data transmission module 30, a response module 40, and a response retransmission data module 50;
the first data transmission module 10 is configured to send a data set to the USB remote end through the USB local end by using the USB data sending end;
the data storage feedback module 20 is configured to store the data set at the USB remote end, and then send the first command to the USB data receiving end at the USB remote end timing; the USB data receiving end responds to the first command and then sends a first response instruction to the USB far end;
the second data transmitting module 30 is configured to transmit the data set to the USB data receiving end by using the USB remote end according to the first response instruction, and the USB data receiving end receives the data set and then sends out a second response instruction;
the response module 40 is configured to, after receiving the second response instruction according to the USB local terminal, and when the USB local terminal responds to the query instruction sent by the USB data sending terminal and sends a third response instruction, enable the USB data receiving terminal to be in a state of a data set to be received;
and the response retransmission data module 70 is configured to retransmit the data set to the USB local terminal by the USB data transmitting terminal according to the second response instruction and the third response instruction, and if the USB local terminal responds to the fourth response instruction corresponding to the retransmitted data set, complete transparent transmission of the data set.
In this embodiment of the present application, the data set includes first data and second data, and the data storage feedback module is further configured to, after the data set is stored at the USB remote end, extract address data and endpoint data corresponding to the first data before the USB remote end sends the first command to the USB data receiving end at regular time, and then send the first command to the USB data receiving end at regular time at the USB remote end; the USB data receiving end responds to the first command according to the address data and the endpoint data and then sends a first response instruction to the USB far end.
In this embodiment of the present application, before the USB data transmitting end receives the second response instruction, the USB data transmitting end is further configured to send an inquiry instruction to the USB local end at regular time, and according to the inquiry instruction, the USB local end sends a fifth response instruction for responding to the inquiry instruction to the USB data transmitting end; and the USB local end is used for sending a third response instruction for responding to the inquiry instruction to the USB data sending end according to the inquiry instruction after the USB local end receives the second response instruction.
It should be noted that, the modules in the second device correspond to the steps in the method in the first embodiment, and the content of the output transmission method for reducing the transparent transmission bandwidth of the USB data has been described in detail in the first embodiment, and the content of the modules in the second device will not be described in detail in the second embodiment.
Embodiment III:
the embodiment of the invention provides terminal equipment, which comprises a processor and a memory;
a memory for storing program code and transmitting the program code to the processor;
and the processor is used for executing the output transmission method for reducing the transparent transmission bandwidth of the USB data according to the instructions in the program codes.
It should be noted that the processor is configured to execute the steps in the above-described embodiment of the output transmission method for reducing the transparent bandwidth of USB data according to the instructions in the program code. In the alternative, the processor, when executing the computer program, performs the functions of the modules/units in the system/apparatus embodiments described above.
For example, a computer program may be split into one or more modules/units, which are stored in a memory and executed by a processor to complete the present application. One or more of the modules/units may be a series of computer program instruction segments capable of performing specific functions for describing the execution of the computer program in the terminal device.
The terminal device may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The terminal device may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that the terminal device is not limited and may include more or less components than those illustrated, or may be combined with certain components, or different components, e.g., the terminal device may also include input and output devices, network access devices, buses, etc.
The processor may be a central processing unit (Central Processing Unit, CPU), other general purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), off-the-shelf Programmable gate array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may be an internal storage unit of the terminal device, such as a hard disk or a memory of the terminal device. The memory may also be an external storage device of the terminal device, such as a plug-in hard disk provided on the terminal device, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like. Further, the memory may also include both an internal storage unit of the terminal device and an external storage device. The memory is used for storing computer programs and other programs and data required by the terminal device. The memory may also be used to temporarily store data that has been output or is to be output.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, randomAccess Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. The output transmission method for reducing the transparent transmission bandwidth of the USB data is applied to a transparent transmission system of the USB, and the transparent transmission system of the USB comprises a USB data transmitting end, a USB local end, a USB remote end and a USB data receiving end, and is characterized by comprising the following steps of:
the USB data sending end sends a data set to the USB far end through the USB local end;
the USB far-end stores the data set, and then the USB far-end sends a first command to the USB data receiving end at regular time; the USB data receiving end responds to the first command and then sends a first response instruction to the USB far end;
according to the first response instruction, the USB far end transmits the data set to the USB data receiving end, and the USB data receiving end sends a second response instruction after receiving the data set;
after receiving the second response instruction according to the USB local end, and the USB local end responds to the inquiry instruction sent by the USB data sending end and sends a third response instruction, the USB data receiving end is in a state of a data set to be received;
and according to the second response instruction and the third response instruction, the USB data transmitting end resends the data set to the USB local end, and if the USB local end responds to a fourth response instruction corresponding to resending the data set, the transparent transmission of the data set is completed.
2. The method for reducing transparent bandwidth of USB data transmission according to claim 1, wherein the data set includes first data and second data, and after the USB remote stores the data set, before the USB remote sends the first command to the USB data receiving end at a timing, the method comprises: extracting corresponding address data and endpoint data according to the first data, and then the USB far-end sends a first command to the USB data receiving end at regular time; and the USB data receiving end responds to the first command according to the address data and the endpoint data and then sends a first response instruction to the USB far end.
3. The output transmission method for reducing the transparent bandwidth of USB data according to claim 1, wherein the output transmission method for reducing the transparent bandwidth of USB data before the USB data transmitting end receives the second response instruction includes: and the USB data transmitting end transmits an inquiry instruction to the USB local end at regular time.
4. The output transmission method for reducing the transparent transmission bandwidth of USB data according to claim 3, comprising: before the USB local end receives the second response instruction, the USB local end sends a fifth response instruction responding to the inquiry instruction to the USB data sending end according to the inquiry instruction; after the USB local terminal receives the second response instruction, the USB local terminal sends a third response instruction responding to the inquiry instruction to the USB data sending terminal according to the inquiry instruction.
5. The output transmission method for reducing a transparent bandwidth of USB data according to claim 1, wherein the USB data transmitting end transmitting the data set to the USB remote end through the USB local end includes: the USB data sending end sends a data set to the USB local end, the USB local end sends a reply instruction to the USB data sending end after receiving the data set, and the USB local end transmits the data set to the USB remote end.
6. The output transmission method for reducing a transparent transmission bandwidth of USB DATA according to claim 2, wherein the first DATA is an OUT packet and the second DATA is a DATA packet.
7. The output transmission device for reducing the transparent transmission bandwidth of the USB data is applied to a transparent transmission system of the USB, and the transparent transmission system of the USB comprises a USB data sending end, a USB local end, a USB remote end and a USB data receiving end, and is characterized by comprising a first data transmission module, a data storage feedback module, a second data transmission module, a response module and a response retransmission data module;
the first data transmission module is used for the USB data sending end to send a data set to the USB far end through the USB local end;
the data storage feedback module is used for the USB far-end to store the data set, and then the USB far-end sends a first command to the USB data receiving end at regular time; the USB data receiving end responds to the first command and then sends a first response instruction to the USB far end;
the second data transmission module is used for transmitting the data set to the USB data receiving end by the USB far end according to the first response instruction, and the USB data receiving end sends a second response instruction after receiving the data set;
the response module is configured to, after receiving the second response instruction according to the USB local end, and when the USB local end responds to the query instruction sent by the USB data sending end and sends a third response instruction, the USB data receiving end is in a state of a data set to be received;
and the response retransmission data module is used for retransmitting the data set to the USB local terminal by the USB data transmitting terminal according to the second response instruction and the third response instruction, and if the USB local terminal responds to a fourth response instruction corresponding to retransmitting the data set, the transparent transmission of the data set is completed.
8. The output transmission device for reducing a transparent bandwidth of USB data according to claim 7, wherein the data set includes first data and second data, the data storage feedback module is further configured to extract corresponding address data and endpoint data according to the first data before the USB remote timing sends the first command to the USB data receiving end after the USB remote storing the data set, and then the USB remote timing sends the first command to the USB data receiving end; and the USB data receiving end responds to the first command according to the address data and the endpoint data and then sends a first response instruction to the USB far end.
9. The output transmission device for reducing a transparent bandwidth of USB data according to claim 7, wherein the first data transmission module is further configured to, before the USB data transmitting end receives the second response instruction, send an inquiry instruction to the USB local end at regular time, and according to the inquiry instruction, the USB local end sends a fifth response instruction to the USB data transmitting end, the fifth response instruction responding to the inquiry instruction; and the USB local end is used for sending a third response instruction responding to the inquiry instruction to the USB data sending end according to the inquiry instruction after the USB local end receives the second response instruction.
10. A terminal device comprising a processor and a memory;
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the output transmission method for reducing the transparent transmission bandwidth of USB data according to any one of claims 1 to 6 according to the instructions in the program code.
CN202210509710.1A 2022-05-11 2022-05-11 Output transmission method, device and equipment for reducing transparent transmission bandwidth of USB data Active CN114928377B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210509710.1A CN114928377B (en) 2022-05-11 2022-05-11 Output transmission method, device and equipment for reducing transparent transmission bandwidth of USB data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210509710.1A CN114928377B (en) 2022-05-11 2022-05-11 Output transmission method, device and equipment for reducing transparent transmission bandwidth of USB data

Publications (2)

Publication Number Publication Date
CN114928377A CN114928377A (en) 2022-08-19
CN114928377B true CN114928377B (en) 2023-04-21

Family

ID=82808213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210509710.1A Active CN114928377B (en) 2022-05-11 2022-05-11 Output transmission method, device and equipment for reducing transparent transmission bandwidth of USB data

Country Status (1)

Country Link
CN (1) CN114928377B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004362422A (en) * 2003-06-06 2004-12-24 Seiko Epson Corp Data transfer control device, connection device, and data transfer control method
CN111147564A (en) * 2019-12-20 2020-05-12 国久大数据有限公司 Data file transmission method, system and communication terminal
CN114189445A (en) * 2021-12-03 2022-03-15 威创集团股份有限公司 USB signal transparent transmission processing method, device, terminal and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100449807B1 (en) * 2002-12-20 2004-09-22 한국전자통신연구원 System for controlling Data Transfer Protocol with a Host Bus Interface
JP2009518759A (en) * 2005-12-08 2009-05-07 サンディスク コーポレーション Media card with command pass-through mechanism
TW200844841A (en) * 2007-05-10 2008-11-16 Realtek Semiconductor Corp Method for expediting data access of universal serial bus stoarage device
US10678233B2 (en) * 2017-08-02 2020-06-09 Strong Force Iot Portfolio 2016, Llc Systems and methods for data collection and data sharing in an industrial environment
CN114338707B (en) * 2021-12-03 2023-03-24 威创集团股份有限公司 Data management method and related device for USB signal transparent transmission multiple devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004362422A (en) * 2003-06-06 2004-12-24 Seiko Epson Corp Data transfer control device, connection device, and data transfer control method
CN111147564A (en) * 2019-12-20 2020-05-12 国久大数据有限公司 Data file transmission method, system and communication terminal
CN114189445A (en) * 2021-12-03 2022-03-15 威创集团股份有限公司 USB signal transparent transmission processing method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN114928377A (en) 2022-08-19

Similar Documents

Publication Publication Date Title
CN106951388B (en) PCIe-based DMA data transmission method and system
CN110460412B (en) Method and RDMA network card for data transmission
US10116746B2 (en) Data storage method and network interface card
US11573919B2 (en) Multi-slave serial communication
CN116414767B (en) Reordering method and system for AXI protocol-based out-of-order response
CN115499505B (en) USB network card and communication method
US7822040B2 (en) Method for increasing network transmission efficiency by increasing a data updating rate of a memory
CN115941382A (en) Flow control method and device for SPI communication, terminal equipment and storage medium
CN118381774A (en) Sensing data transmission architecture used in intelligent equipment platform
CN106788916B (en) Data transmission method and data transmission device for bus
CN116827715A (en) Method, device and equipment for transmitting message data of vehicle-mounted terminal and readable storage medium
JP7210867B2 (en) Acknowledgment packet transmission method and communication device
CN113485951B (en) DMA read operation implementation method based on FPGA, FPGA equipment and communication system
CN114928377B (en) Output transmission method, device and equipment for reducing transparent transmission bandwidth of USB data
CN112422485A (en) Communication method and device of transmission control protocol
CN113238856B (en) RDMA-based memory management method and device
CN115982090B (en) Method and device for realizing remote memory access by cooperation of software and hardware
CN118012351A (en) Data read-write order keeping method and device based on remote storage protocol, electronic equipment and storage medium
CN115348333B (en) Data transmission method, system and equipment based on UDP double-end communication interaction
WO2017063589A1 (en) Data transmission method and apparatus
CN117692109B (en) Remote direct memory access data retransmission method and related equipment
US20240394211A1 (en) Signal transmission method and associated host device and electronic device
CN111200594B (en) Method, apparatus, data receiving device and storage medium for receiving data
CN117061621A (en) Bus communication signal processing method, system, device, equipment and medium
CN115567080A (en) USART-based communication method, system and equipment

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