Nothing Special   »   [go: up one dir, main page]

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

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

Info

Publication number
CN114928377A
CN114928377A CN202210509710.1A CN202210509710A CN114928377A CN 114928377 A CN114928377 A CN 114928377A CN 202210509710 A CN202210509710 A CN 202210509710A CN 114928377 A CN114928377 A CN 114928377A
Authority
CN
China
Prior art keywords
usb
data
local
transparent transmission
response 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.)
Granted
Application number
CN202210509710.1A
Other languages
Chinese (zh)
Other versions
CN114928377B (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 USB data transparent transmission bandwidth, which are 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 remote end and a USB data receiving end, the transparent transmission of a data set between the USB data sending end and the USB data receiving end is completed by the output transmission method for reducing the USB data transparent transmission bandwidth only needs (1024+5) × 2 ═ 2058 bytes of bandwidth, one third of bandwidth is reduced compared with the existing USB data transparent transmission mode, the speed of one third is increased, the speed of the USB data transparent transmission is increased, and the technical problems of the existing OUT packet USB transparent transmission mode that USB bandwidth resources are wasted and the transparent transmission speed is low are solved.

Description

Output transmission method, device and equipment for reducing USB data transparent transmission bandwidth
Technical Field
The invention relates to the technical field of data communication transmission, in particular to an output transmission method, device and equipment for reducing USB data transparent transmission bandwidth.
Background
As shown in fig. 4, the USB transparent transmission system generally includes a USB host (e.g. PC), a USB local end, a USB remote end, and a USB device; the local USB end is connected with a USB port of a USB host, is simulated into USB equipment, converts a command sent by the USB host into a command of other media and sends the command to a remote USB end of other places; the USB remote end receives the commands and converts the commands back into USB commands to be sent to the USB equipment. The receipt and reply of these commands follow the definition of the USB protocol.
In the USB transparent transmission system, the command issued by the USB host often cannot be responded by the USB device within the response time specified by the USB protocol. The existing command response scheme between the USB host and the USB device is to make the USB local side send a NAK response packet back to the USB host for the USB command packet sent by the USB host, which represents that the USB device is not ready, and send the USB host command to the USB remote side through the media such as network. And the USB remote end receives the command and then 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 the media such as the network. After receiving the NAK response packet returned by the local USB end, the USB host resends the previous command packet to the local USB end after a certain time, and at this time, the local USB end 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) into USB devices, such as writing files into a USB disk, and occupies a large USB bus bandwidth. As shown in fig. 5, the USB transparent transmission of the OUT packet includes the following working processes:
the USB host sends OUT the OUT command and its corresponding DATA0 packet. The USB local end sends the OUT command and the DATA0 DATA packet to the USB remote end, and simultaneously the USB local end replies a NAK packet of the USB host;
2, after receiving the OUT command and the command transmitted by the DATA0 DATA packet which can be processed by the USB equipment, the USB remote end returns an ACK packet to the USB local end, otherwise returns a NAK packet;
3. according to the USB2.0 protocol, after receiving a NAK reply of an 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 DATA DATA, so that the bandwidth occupation is reduced;
4. when the USB equipment replies 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 that the USB device is ready, the USB main body immediately sends an OUT packet and a DATA0 packet, and the USB local end also sends the OUT packet and the DATA0 packet to the USB remote end and replies a NAK to the USB host. After receiving NAK, the USB host sends a PING packet again after a certain time;
and 6, after receiving the DATA0 packet, the USB device returns an ACK packet, the local USB end records an ACK reply, and performs the ACK reply on the PING packet of the next USB host.
And 7, after receiving the Acknowledgement (ACK) replied by the PING packet, 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.
As can be seen from the above, the PING command and the OUT command packet each occupy 5 bytes in length, and the OUT packet is 0 to 1024 bytes in length. It can be calculated from the USB transparent transmission process of the OUT packet that similarly one OUT packet is transmitted on the bus at least 3 times, and calculated by one OUT packet with a length of 1024 bytes, it occupies (1024+5) × 3 ═ 3087 bytes at least, that is, it occupies 3087 CPU clocks. It can be understood that a minimum of 3 times the time or bandwidth is required to transmit a 1024 byte OUT packet. Therefore, the existing USB transparent transmission mode of the OUT packet not only wastes the USB bandwidth, but also reduces 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 used for solving the technical problems of waste of USB bandwidth resources and low transparent transmission rate in the USB transparent transmission mode of the existing OUT packet.
In order to achieve the above object, the embodiments of the present invention provide the following technical solutions:
an output transmission method for reducing the USB data transparent transmission bandwidth is applied to a USB transparent transmission system, the USB transparent transmission system comprises a USB data sending end, a USB local end, a USB remote end and a USB data receiving end, and the output transmission method for reducing the USB data transparent transmission bandwidth comprises the following steps:
the USB data sending end sends a data set to the USB remote end through the USB local end;
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 sends a first response instruction to the USB far end after responding to the first command;
according to the first response instruction, the USB remote 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 the local USB end receives the second response instruction, the local USB end responds to the inquiry instruction sent by the USB data sending end and sends a third response instruction, and then 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 sending end resends the data set to the USB local end, and if the USB local end responds to a fourth response instruction corresponding to the resending of 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 a first command to the USB data receiving end in a timed manner, the method includes: extracting corresponding address data and endpoint data according to the first data, and then sending a first command to the USB data receiving end by the USB remote 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 USB data transparent transmission bandwidth includes: and the USB data sending end sends an inquiry instruction to the USB local end at regular time.
Preferably, the output transmission method for reducing the USB data transparent transmission bandwidth includes: before the local USB end receives the second response instruction, the local USB end sends a fourth response instruction responding to the inquiry instruction to the USB data sending end according to the inquiry instruction; after the local USB end receives the second response instruction, the local USB end sends a third response instruction responding to the inquiry instruction to the USB data sending end according to the inquiry instruction.
Preferably, the sending the USB data to the USB remote end through the USB local end includes: the USB data transmitting terminal transmits a data set to the USB local terminal, the USB local terminal transmits a reply instruction to the USB data transmitting terminal after receiving the data set, and the USB local terminal transmits the data set to the USB remote terminal.
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 USB data transparent transmission bandwidth, 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 remote end through the USB local end;
the data storage feedback module is used for storing the data set by the USB remote end, and then the USB remote end sends a first command to the USB data receiving end at regular time; the USB data receiving end sends a first response instruction to the USB far end after responding to the first command;
the second data transmission module is configured to transmit the data set to the USB data receiving end by the USB remote 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 used for responding to the inquiry instruction sent by the USB data sending end and sending a third response instruction according to the condition that the USB local end receives the second response instruction, and then the USB data receiving end is in a state of a data set to be received;
and the response retransmission data module is configured to, according to the second response instruction and the third response instruction, retransmit the data set to the local USB end by the local USB end, and if the local USB end responds to a fourth response instruction corresponding to the retransmitted data set, complete transparent transmission of the data set.
Preferably, the data set includes first data and second data, and the data storage feedback module is further configured to, after the USB remote stores the data set and before the USB remote sends a first command to the USB data receiving end at regular time, extract address data and endpoint data corresponding to the first data according to the first data, 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 sending end receives the second response instruction, send an inquiry instruction to the USB local end at a fixed time by the USB data sending end, and according to the inquiry instruction, send a fourth response instruction responding to the inquiry instruction to the USB data sending end by the USB local end; and after the local USB end receives the second response instruction, the local USB end sends a third response instruction responding to the inquiry instruction to the USB data sending end according to the inquiry instruction.
The invention also provides terminal equipment, 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 output transmission method for reducing the transparent transmission bandwidth of USB data according to the instruction in the program code.
According to the technical scheme, the embodiment of the invention has the following advantages: the output transmission method, the device and the equipment for reducing the USB data transparent transmission bandwidth are 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 remote 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 sends a first command to the USB data receiving end at regular time; the USB data receiving end sends a first response instruction to the USB far end after responding to the first command; according to the first response instruction, the USB remote end transmits the data set to a USB data receiving end, and the USB data receiving end sends out a second response instruction after receiving the data set; according to the condition that the local USB end receives the second response instruction, the local USB 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 sending end resends the data set to the USB local end, and if the USB local end responds to a fourth response instruction corresponding to the resent data set, the transparent transmission of the data set is completed. The output transmission method for reducing the USB data transparent transmission bandwidth only needs (1024+5) × 2 ═ 2058 byte bandwidth to complete transparent transmission of a data set between the USB data sending end and the USB data receiving end, reduces one third of bandwidth compared with the existing USB data transparent transmission mode, improves one third of speed, improves the USB data transparent transmission rate, and solves the technical problems of waste of USB bandwidth resources and low transparent transmission rate of the existing USB transparent transmission mode of OUT packets.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating steps of an output transmission method for reducing a USB data transparent transmission bandwidth according to an embodiment of the present invention;
fig. 2 is a data transmission diagram of an output transmission method for reducing a USB data transparent transmission bandwidth according to an embodiment of the present invention;
FIG. 3 is a block diagram of an output transmission apparatus for reducing the USB data transparent transmission bandwidth 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 obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present 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 used for solving the technical problems of waste of USB bandwidth resources and low transparent transmission rate of the existing USB transparent transmission mode of an OUT packet.
The first embodiment is as follows:
fig. 1 is a flowchart illustrating steps of an output transmission method for reducing a USB data transparent transmission bandwidth according to an embodiment of the present invention, and fig. 2 is a data transmission diagram illustrating the output transmission method for reducing the USB data transparent transmission bandwidth according to the 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 USB data transparent transmission bandwidth, 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 method for reducing the USB data transparent transmission bandwidth includes the following steps:
and S1, the USB data sending end sends a data set to the USB remote end through the USB local end.
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 (e.g., a mobile terminal such as a PC, iPad, or a mobile phone), and the USB data receiving end may be a USB device (e.g., a USB disk, a hard disk, or the like).
S2, the USB remote end stores the data set, and then the USB remote end sends a first command to a USB data receiving end at regular time; and 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 end may first temporarily store the data set sent by the USB data sender, as shown in fig. 2, and then the USB remote end periodically generates the first command PING1 to send to the USB data receiver, and waits for the USB data receiver to send the first response command ACK1 in response to the first command. Only after the USB receiver issues the first response ACK1, it indicates that the USB data receiver is ready to receive data.
And S3, according to the first response instruction, the USB remote end transmits the data set to a USB data receiving end, and the USB data receiving end receives the data set and then sends a second response instruction.
It should be noted that, as shown in fig. 2, after the USB remote end receives the first response ACK1, the USB remote 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 ACK2 and transmits the second response ACK2 to the USB local end through media such as a network. In this embodiment, the medium such as the network may be a wireless communication network, or may be a communication data line or the like.
And S4, after the local USB end receives the second response instruction, the local USB end responds to the inquiry instruction sent by the USB data sending end and sends a third response instruction, and the USB data receiving end 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 side receives the second response command ACK2 and the USB local side responds to the inquiry command PING2 sent by the USB data sending side and sends the third response command ACK3, it indicates that the USB data receiving side is in the state of the data set to be received, that is, it waits for the USB data sending side to send the data packet to the USB data receiving side again.
And S5, according to the second response instruction and the third response instruction, the USB data sending end sends the data set to the USB local end again, and if the USB local end responds to a fourth response instruction corresponding to the data set to be sent again, transparent transmission of the data set is completed.
It should be noted that, in step S5, after the USB local end receives the second response command ACK2, the USB data sending end also receives the third response command ACK3, the USB data sending end resends the data set to the USB local end, the USB local end receives the resent data set and then responds to the data set to generate a fourth response command ACK4, and transmits the fourth response command ACK4 to the USB data receiving end, thereby completing transparent transmission of the data set between the USB data sending end and the USB data receiving end.
In the embodiment of the present invention, the output transmission method for reducing the USB data transparent transmission bandwidth only needs (1024+5) × 2 ═ 2058 bytes of bandwidth to complete transparent transmission of a data set between a USB data transmitting end and a USB data receiving end, which reduces one third of the bandwidth and increases one third of the speed compared with the existing USB data transparent transmission mode. If the output transmission method for reducing the USB data transparent transmission bandwidth is adopted to transparently transmit a 1024-byte data set, the transmission can be completed in at least twice time.
The invention provides an output transmission method for reducing USB data transparent transmission bandwidth, 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 remote 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 sends a first command to the USB data receiving end at regular time; the USB data receiving end sends a first response instruction to the USB far end after responding to the first command; according to the first response instruction, the USB far end transmits the data set to a USB data receiving end, and the USB data receiving end sends out a second response instruction after receiving the data set; according to the condition that the local USB end receives the second response instruction, the local USB 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 sending end resends the data set to the USB local end, and if the USB local end responds to a fourth response instruction corresponding to the resent data set, the transparent transmission of the data set is completed. The output transmission method for reducing the USB data transparent transmission bandwidth only needs (1024+5) × 2 ═ 2058 byte bandwidth to complete transparent transmission of a data set between the USB data sending end and the USB data receiving end, reduces one third of bandwidth compared with the existing USB data transparent transmission mode, improves one third of speed, improves the USB data transparent transmission rate, and solves the technical problems of waste of USB bandwidth resources and low transparent transmission rate of the existing USB transparent transmission mode of OUT packets.
In an embodiment of the present invention, the data set includes first data and second data, and after the USB remote stores the data set and before the USB remote sends the first command to the USB data receiving end at regular time, the output transmission method for reducing the USB data transparent transmission bandwidth includes: extracting corresponding address data and endpoint data according to the first data, and then sending a first command to a USB data receiving end by the USB remote end at regular time; and the USB data receiving end sends a first response instruction to the USB far end according to the address data and the endpoint data response first command.
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 DATA packet. After the USB remote temporarily stores the data set, the USB remote extracts the address data and the endpoint data in the first data before the USB remote periodically generates the first command PING 1. 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 responds to the first command PING1 according to the address data and the endpoint data and sends a first response command ACK1 to the USB far end, 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 a USB flash disk, and the device address is connected with the paired USB data receiving ends to access the paired USB data receiving ends. The end points of the USB data receiving end are simply data transmission service identification numbers between the USB data transmitting end and the USB data receiving end, and each end point is a single connection and supports data flow in one direction. For example, the U disk has endpoints 0, 1 and 2, where the endpoint 0 is used to configure the U disk and obtain the basic attribute of the U disk; endpoint 1 is used to write data and endpoint 2 is used to read usb-disk data. Wherein, the USB data receiving end can correctly receive the first command PING1 according to the address data and the endpoint data.
In an embodiment of the present invention, before the USB data transmitting end receives the second response instruction, the output transmission method for reducing the transparent transmission bandwidth of USB data includes: the USB data sending end sends an inquiry instruction to the USB local end at regular time;
before the local USB end receives the second response instruction, the local USB end sends a fourth response instruction for responding to the inquiry instruction to the USB data sending end according to the inquiry instruction;
after the local USB end receives the second response instruction, the local USB end sends a third response instruction responding to the inquiry instruction to the USB data sending end according to the inquiry instruction.
It should be noted that, according to the USB2.0 protocol definition, during the data set transmission process, the USB data sending end periodically sends the query command PING2 to the USB local end, and the USB local end generates the response command NAK2 after responding to the query command PING2, which means 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 sender does not send the data set to the USB data receiver again, but sends a query command PING2 regularly to query whether the USB data receiver is ready to receive data, if the USB local end responds to the query command PING2 and generates a third response command ACK3, the USB data sender represents that the USB data receiver can receive data, and the USB data sender sends the data set to the USB data receiver again.
In an embodiment of the present application, the sending the data set from the USB data sending end to the USB remote end via the USB local end includes: the USB data transmitting end transmits a data set to the USB local end, the USB local end transmits a reply instruction to the USB data transmitting end after receiving the data set, and the USB local end transmits the data set to the USB remote end.
It should be noted that, the USB data sending end sends the data set to the USB local end, and the USB local end sends the reply command NAK1 to the USB data sending end after receiving the data set, which indicates that the USB data receiving end may not receive the data set because the data processing is not done. 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 and the USB local end transmits the data set to the USB remote end.
Example two:
fig. 3 is a block diagram of an output transmission apparatus for reducing a USB data transparent transmission bandwidth according to an embodiment of the invention.
As shown in fig. 3, an embodiment of the present invention further provides an output transmission apparatus for reducing a USB data transparent transmission bandwidth, 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 apparatus for reducing the USB data transparent transmission bandwidth 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;
a first data transmission module 10, configured to send a data set to a USB remote end through a USB local end by a USB data sending end;
the data storage feedback module 20 is used for the USB remote end to store 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 sends a first response instruction to the USB far end after responding to the first command;
the second data transmission module 30 is configured to transmit the data set to a USB data receiving 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 40 is configured to, after receiving the second response instruction according to the USB local end, respond to the inquiry instruction sent by the USB data sending end and send a third response instruction according to the USB local end, and then the USB data receiving end is in a state of a data set to be received;
and a data retransmission responding module 70, configured to retransmit the data set to the USB local end by the USB data transmitting end according to the second response instruction and the third response instruction, and complete transparent transmission of the data set if the USB local end responds to a fourth response instruction corresponding to the retransmitted data set.
In the embodiment of the application, the data set comprises first data and second data, and the data storage feedback module is further configured to, after the USB remote end stores the data set and before the USB remote end sends the first command to the USB data receiving end at regular time, extract address data and endpoint data corresponding to the first data according to the first data, and then send the first command to the USB data receiving end at regular time by the USB remote end; and the USB data receiving end sends a first response instruction to the USB far end according to the address data and the endpoint data response first command.
In this embodiment of the application, the first data transfer module is further configured to, before the USB data sending end receives the second response instruction, send an inquiry instruction to the USB local end at a fixed time, and according to the inquiry instruction, the USB local end sends a fourth response instruction responding to the inquiry instruction to the USB data sending end; and a third response instruction used for sending the response inquiry instruction to the USB data sending end by the local USB end according to the inquiry instruction after the local USB end receives the second response instruction.
It should be noted that the modules in the second embodiment of the present invention correspond to the steps in the first embodiment of the present invention, and the contents of the output transmission method for reducing the USB data transparent transmission bandwidth are described in detail in the first embodiment, and the contents of the modules in the second embodiment of the present invention are not described in detail in this second embodiment.
Example three:
the embodiment of the invention provides terminal equipment, which comprises a processor and a memory;
a memory for storing the program code and transmitting the program code to the processor;
and the processor is used for executing the output transmission method for reducing the USB data transparent transmission bandwidth according to the instructions in the program codes.
It should be noted that, the processor is configured to execute the steps in the above-mentioned embodiment of the output transmission method for reducing the USB data transparent transmission bandwidth according to the instructions in the program code. Alternatively, the processor, when executing the computer program, implements the functions of each module/unit in each system/apparatus embodiment described above.
Illustratively, a computer program may be partitioned into one or more modules/units, stored in memory and executed by a processor to complete the application. One or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of a computer program in a terminal device.
The terminal device may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor, a memory. Those skilled in the art will appreciate that the terminal device is not limited and may include more or fewer components than those shown, or some components may be combined, or different components, e.g., the terminal device may also include input output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 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), and 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 is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute 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), a magnetic disk, or an optical disk, and various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. An output transmission method for reducing USB data transparent transmission bandwidth is applied to a USB transparent transmission system, the USB transparent transmission system comprises a USB data sending end, a USB local end, a USB remote end and a USB data receiving end, and the output transmission method for reducing the USB data transparent transmission bandwidth is characterized by comprising the following steps:
the USB data sending end sends a data set to the USB remote end through the USB local end;
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 sends a first response instruction to the USB far end after responding to the first command;
according to the first response instruction, the USB remote end transmits the data set to the USB data receiving end, and the USB data receiving end sends out a second response instruction after receiving the data set;
according to the condition that the local USB end receives the second response instruction, 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 sending end resends the data set to the USB local end, and if the USB local end responds to a fourth response instruction corresponding to the resending of the data set, the transparent transmission of the data set is completed.
2. The output transmission method for reducing the USB data transparent transmission bandwidth according to claim 1, wherein the data set includes a first data and a second data, and after the USB remote stores the data set, before the USB remote periodically sends a first command to the USB data receiving end, the method includes: extracting corresponding address data and endpoint data according to the first data, and then sending a first command to the USB data receiving end by the USB remote 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 USB data transparent transmission bandwidth according to claim 1, wherein before the USB data sending end receives the second response command, the output transmission method for reducing the USB data transparent transmission bandwidth includes: and the USB data sending end sends an inquiry instruction to the USB local end at regular time.
4. The output transmission method for reducing the USB data transparent transmission bandwidth according to claim 3, comprising: before the local USB end receives the second response instruction, the local USB end sends a fourth response instruction responding to the inquiry instruction to the USB data sending end according to the inquiry instruction; after the local USB end receives the second response instruction, the local USB end sends a third response instruction responding to the inquiry instruction to the USB data sending end according to the inquiry instruction.
5. The output transmission method for reducing the USB data transparent transmission bandwidth according to claim 1, wherein the sending the data set from the USB data sending end to the USB remote end via the USB local end includes: the USB data transmitting terminal transmits a data set to the USB local terminal, the USB local terminal transmits a reply instruction to the USB data transmitting terminal after receiving the data set, and the USB local terminal transmits the data set to the USB remote terminal.
6. The output transmission method for reducing the USB DATA transparent transmission bandwidth as claimed in claim 2, wherein the first DATA is an OUT packet and the second DATA is a DATA packet.
7. An output transmission device for reducing the USB data transparent transmission bandwidth 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 remote end through the USB local end;
the data storage feedback module is used for storing the data set by the USB remote end, and then the USB remote end sends a first command to the USB data receiving end at regular time; the USB data receiving end sends a first response instruction to the USB far end after responding to the first command;
the second data transmission module is configured to transmit the data set to the USB data receiving end by the USB remote 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 used for responding to the inquiry instruction sent by the USB data sending end and sending a third response instruction according to the condition that the USB local end receives the second response instruction, and then the USB data receiving end is in a state of a data set to be received;
and the response retransmission data module is configured to, according to the second response instruction and the third response instruction, retransmit the data set to the USB local end by the USB data transmitting end, and complete transparent transmission of the data set if the USB local end responds to a fourth response instruction corresponding to the retransmitted data set.
8. The output transport device for reducing the USB data transparent transmission bandwidth according to claim 7, wherein the data set includes a first data and a second data, the data storage feedback module is further configured to extract the corresponding address data and endpoint data according to the first data after the data set is stored at the USB remote end and before the USB remote end sends a first command to the USB data receiving end at regular time, and then the USB remote end sends 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.
9. The output transmission apparatus for reducing the USB data transparent transmission bandwidth according to claim 7, wherein the first data transmission module is further configured to, before the USB data sending end receives the second response instruction, send an inquiry instruction to the USB local end at a fixed time by the USB data sending end, and according to the inquiry instruction, send a fourth response instruction to the USB data sending end by the USB local end in response to the inquiry instruction; and after the local USB end receives the second response instruction, the local USB end sends a third response instruction responding to the inquiry instruction to the USB data sending end according to the inquiry 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 used for executing the output transmission method for reducing the USB data transparent transmission bandwidth according to any one of claims 1-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 true CN114928377A (en) 2022-08-19
CN114928377B 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 (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040122988A1 (en) * 2002-12-20 2004-06-24 Han Jong Seok System for controlling data transfer protocol with a host bus interface
JP2004362422A (en) * 2003-06-06 2004-12-24 Seiko Epson Corp Data transfer control device, connecting equipment, and data transfer control method
WO2007076214A2 (en) * 2005-12-08 2007-07-05 Sandisk Corporation Media card with command pass through mechanism
US20080282016A1 (en) * 2007-05-10 2008-11-13 Liao Chun-Ting Method for expediting data access of universal serial bus stoarage device
US20190324431A1 (en) * 2017-08-02 2019-10-24 Strong Force Iot Portfolio 2016, Llc Data collection systems and methods with alternate routing of input channels
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
CN114338707A (en) * 2021-12-03 2022-04-12 威创集团股份有限公司 Data management method and related device for USB signal transparent transmission multiple devices

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040122988A1 (en) * 2002-12-20 2004-06-24 Han Jong Seok System for controlling data transfer protocol with a host bus interface
JP2004362422A (en) * 2003-06-06 2004-12-24 Seiko Epson Corp Data transfer control device, connecting equipment, and data transfer control method
WO2007076214A2 (en) * 2005-12-08 2007-07-05 Sandisk Corporation Media card with command pass through mechanism
US20080282016A1 (en) * 2007-05-10 2008-11-13 Liao Chun-Ting Method for expediting data access of universal serial bus stoarage device
US20190324431A1 (en) * 2017-08-02 2019-10-24 Strong Force Iot Portfolio 2016, Llc Data collection systems and methods with alternate routing of input channels
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
CN114338707A (en) * 2021-12-03 2022-04-12 威创集团股份有限公司 Data management method and related device for USB signal transparent transmission multiple devices

Also Published As

Publication number Publication date
CN114928377B (en) 2023-04-21

Similar Documents

Publication Publication Date Title
CN110460412B (en) Method and RDMA network card for data transmission
CN109547474A (en) A kind of data transmission method and device
CN105141603A (en) Communication data transmission method and system
US20130227184A1 (en) Low latency interconnect bus protocol
CN104394234A (en) Multi-window UDP (user datagram protocol) wireless transmission method applied to environment monitoring
US11573919B2 (en) Multi-slave serial communication
CN112422485B (en) Communication method and device of transmission control protocol
CN115396527B (en) PCIE and SRIO protocol conversion system and method based on FPGA
CN114826542B (en) Data transmission method, device, equipment and medium based on asynchronous serial communication
CN105630424A (en) Data processing method, device and system
CN104065465A (en) Message retransmitting method, request end, response end and system
CN110913431A (en) Data wireless transmission method and device, computer equipment and storage medium
CN104270550A (en) Reliable image data transmission method based on CAN bus
CN116226027B (en) Data transmission system, method, device, communication equipment and storage medium
CN113238856B (en) RDMA-based memory management method and device
JP7210867B2 (en) Acknowledgment packet transmission method and communication device
CN115982090B (en) Method and device for realizing remote memory access by cooperation of software and hardware
CN106788916B (en) Data transmission method and data transmission device for bus
CN111147597B (en) File transmission method, terminal, electronic device and storage medium
CN110659143B (en) Communication method and device between containers and electronic equipment
WO2021036189A1 (en) Rdma data sending and receiving methods, electronic device and readable storage medium
CN104850518A (en) Method for remotely logging in computer
CN114928377B (en) Output transmission method, device and equipment for reducing transparent transmission bandwidth of USB data
CN111405534A (en) Information transmission method, first terminal and computer storage medium
CN114116574B (en) Data transmission method, device, electronic equipment and storage medium

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