CN107506324A - Interconnecting device, telecommunication system, data transmission method and device - Google Patents

Interconnecting device, telecommunication system, data transmission method and device Download PDF

Info

Publication number
CN107506324A
CN107506324A CN201710617520.0A CN201710617520A CN107506324A CN 107506324 A CN107506324 A CN 107506324A CN 201710617520 A CN201710617520 A CN 201710617520A CN 107506324 A CN107506324 A CN 107506324A
Authority
CN
China
Prior art keywords
usb
data
client
interconnecting
host
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.)
Pending
Application number
CN201710617520.0A
Other languages
Chinese (zh)
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.)
Xian Wanxiang Electronics Technology Co Ltd
Original Assignee
Xian Wanxiang Electronics Technology 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 Xian Wanxiang Electronics Technology Co Ltd filed Critical Xian Wanxiang Electronics Technology Co Ltd
Priority to CN201710617520.0A priority Critical patent/CN107506324A/en
Publication of CN107506324A publication Critical patent/CN107506324A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • G06F13/4221Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

This application discloses a kind of interconnecting device, telecommunication system, data transmission method and device.Wherein, the interconnecting device includes:PCIe interface, for providing the communication interface with host device;Change-over circuit, it is connected with PCIe interface, descriptor information is transmitted for reading general-purpose serial bus USB from host device by PCIe interface, and USB transmission descriptor information is converted into USB request block URB forms, obtains the first data;Processor, for detecting the hot plug event of the multiple USB devices of client device side, and establish the mapping relations of multiple USB devices and host device that client device is accessed;Transmission circuit, it is connected with change-over circuit, for the first data to be sent to client device, wherein, the mark of at least one USB device in multiple USB devices is carried in the first data.Present application addresses the technical problem that the current USB schemes of zooming out have limitation.

Description

Interconnecting device, telecommunication system, data transmission method and device
Technical field
The application is related to USB device and redirects field, in particular to a kind of interconnecting device, telecommunication system, number According to transmission method and device.
Background technology
With the continuous development of computer technology, the equipment such as personal data or graphic remote work station, data center is got over Come more complicated, cause the display of equipment and input control apparatus needs USB device to cover extremely complex application scenarios, expedite the emergence of The demand that USB (Universal Serial Bus, referred to as USB) interface equipment zooms out.So-called USB interface is set It is standby to zoom out, refer to the computer that the USB device of local (client) is mounted to distal end (host side).
At present, industry mainly has the implementation that following USB interface device zooms out:
The USB OVER IP scenarios that Linux source codes are supported;Main frame (HOST) end needs to install corresponding virtual USB main frame Controller drives and corresponding software;The driving at HOST ends needs the platform for specifying;HOST ends, which are mounted software, causes former system Security of uniting declines;Also, the USB HOST controller architectures at client (client) end must be with controller knot as defined in agreement Structure is consistent;This method, which can only limit, to be applied in the hardware system of customization;Network link data transmission utilization ratio is low, reduces USB access bandwidth.
Bridge joint schemes of the Teradici based on USB controller control interface;The USB HOST controller architectures at client ends Must be consistent with controller architecture as defined in agreement, therefore, this method, which can only limit, to be applied in the hardware system of customization;Network Link data transfer utilization rate is low, reduces USB access bandwidth.
ICron HUB extenders bridge scheme;The program equivalent to extending USB line, by USB link when Between constrain, distance can only be controlled within 100 meters.
For it is above-mentioned the problem of, not yet propose effective solution at present.
The content of the invention
The embodiment of the present application provides a kind of interconnecting device, telecommunication system, data transmission method and device, with least Solves the technical problem that the current USB schemes of zooming out have limitation.
According to the one side of the embodiment of the present application, there is provided a kind of interconnecting device, including:High-speed peripheral component interconnects (Peripheral Component Interconnect express, referred to as PCIe) interface, for offer and host device Communication interface;Change-over circuit, it is connected with PCIe interface, for reading USB from host device by PCIe interface USB transmission descriptor information, and USB transmission descriptor information is converted into USB request block URB forms, obtain the first data;Place Manage device, for detecting the hot plug event of the multiple USB devices of client device side, and establish client device accessed it is multiple The mapping relations of USB device and host device;Transmission circuit, it is connected with change-over circuit, for the first data to be sent to client End equipment, wherein, the mark of at least one USB device in multiple USB devices is carried in the first data.
According to the another aspect of the embodiment of the present application, a kind of telecommunication system is additionally provided, including:Host device;Turn Equipment is connect, the interconnecting device more than interconnecting device, also, interconnecting device is connected by PCIe interface with host device;Client End equipment, multiple general-purpose serial bus USB interfaces are provided with, are connected with multiple USB devices, for Receiving Host equipment by turning The data of equipment transmission are connect, and the data of reception are sent to USB device, and/or, sent by interconnecting device to host device Data caused by multiple USB devices.
According to the another aspect of the embodiment of the present application, a kind of data transmission method is additionally provided, including:Detection client is set The hot plug event of the multiple USB devices in standby side;In at least one access in detecting multiple USB devices, establish client and set The mapping relations of the standby multiple USB devices and host device accessed;PCIe interface is interconnected from main frame by high-speed peripheral component General-purpose serial bus USB transmission descriptor information is read in equipment;USB transmission descriptor information is converted into USB request blocks URB Form, the first data are obtained, wherein, the mark of at least one USB device in multiple USB devices is carried in the first data;Will First data are sent to client device.
According to the another aspect of the embodiment of the present application, a kind of data transmission device is additionally provided, including:Detection module, use In the hot plug event of the detection multiple USB devices of client device side;Link establishment module, for detecting multiple USB devices In at least one access when, establish the mapping relations of multiple USB devices and host device that client device is accessed;Read Module, for reading USB transmission descriptor information from host device by PCIe interface;Modular converter, for by USB transmission Descriptor information is converted to USB request block URB forms, obtains the first data, wherein, multiple USB are carried in the first data and are set The mark of at least one USB device in standby;Sending module, for the first data to be sent to client device.
According to the another aspect of the embodiment of the present application, a kind of storage medium is additionally provided, storage medium includes the journey of storage Sequence, wherein, equipment performs the data transmission method of the above where controlling storage medium when program is run.
According to the another further aspect of the embodiment of the present application, a kind of processor is additionally provided, processor is used for operation program, its In, the data transmission method of execution above when program is run.
In the embodiment of the present application, using be provided with PCIe interface, for USB transmission descriptor information to be converted into URB The change-over circuit of the data of form and the interconnecting device of transmission circuit, by PCIe interface access host, so as to realize client With the communication of main frame, and then the communication that USB device zooms out is realized, zoomed out due to carrying out USB device using above-mentioned interconnecting device The software and hardware of main frame is not limited during communication, it is thereby achieved that USB device zooms out the versatility of scheme, to 0 and then solved The technical problem of limitation be present in the current USB schemes of zooming out.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, forms the part of the application, this Shen Schematic description and description please is used to explain the application, does not form the improper restriction to the application.In the accompanying drawings:
Fig. 1 is the structural representation according to a kind of interconnecting device of the embodiment of the present application;
Fig. 2 a are the structural representations according to a kind of optional interconnecting device of the embodiment of the present application;
Fig. 2 b are the structural representations according to a kind of optional interconnecting device of the embodiment of the present application
Fig. 3 is the structural representation according to the optional interconnecting device of another kind of the embodiment of the present application;
Fig. 4 a are the flow charts according to a kind of data transmission method of the embodiment of the present application;
Fig. 4 b are the structured flowcharts according to a kind of data transmission device of the embodiment of the present application;
Fig. 5 a are the structural representations according to a kind of telecommunication system of the embodiment of the present application;
Fig. 5 b are the structural representations according to another telecommunication system of the embodiment of the present application;
Fig. 6 is the structural representation that principle is zoomed out according to a kind of network of the embodiment of the present application;
Fig. 7 is the structural representation according to a kind of optional USB link protocol stack of the embodiment of the present application;
Fig. 8 is the structural representation according to the optional telecommunication system of another kind of the embodiment of the present application;
Fig. 9 is the structural representation according to a kind of optional client device of the embodiment of the present application;
Figure 10 is the control flow schematic diagram according to a kind of optional host side of the embodiment of the present application;
Figure 11 is the control flow schematic diagram according to a kind of optional client device of the embodiment of the present application;
Figure 12 is a kind of optional USB transmission descriptor list schematic diagram according to the embodiment of the present application;
Figure 13 is to be closed according to a kind of optional URB data and the mapping of USB transmission descriptor list of the embodiment of the present application It is schematic diagram.
Embodiment
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only The embodiment of the application part, rather than whole embodiments.Based on the embodiment in the application, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model of the application protection Enclose.
It should be noted that term " first " in the description and claims of this application and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use Data can exchange in the appropriate case, so as to embodiments herein described herein can with except illustrating herein or Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
It is below that explanation of technical terms involved in the embodiment of the present application is as follows for ease of understanding the embodiment of the present application:
URB:The data structure that USB drivings are realized in linux kernel;
Operation note (operation regs):Operation note as defined in EHCI agreements, to EHCI USB controllers The interface being controlled;
USB transmission descriptor list (101):transaction descriptors set up in main memory by usb system software,figure(101)。
Embodiment 1
In correlation technique, USB device application of function is more and more extensive, but the difference between USB device driving is also more next It is more;When big data, the user of cloud computing use USB device, it is desirable to it is consistent with local device usage experience, due to customization Embedded driving can not meet all equipment, therefore expedite the emergence of USB OVER IP demand.USB device is supported to zoom out:It is real Existing USB device is inserted on local client, consistent with Consumer's Experience on far-end computer is directly inserted in;Support PCIe interface:Base In the EHCI agreement USB controllers of PCIe interface, procotol transmission can compatible software mode;Support many-one:It can realize Many-one mode, i.e. a far-end server (HOST) control multiple terminal (Client) USB devices;It is easy to implement cross-platform: Exempt from that software-driven is installed on HOST machines, be easy to implement cross-platform.
To achieve the above object, the embodiment of the present application provides a kind of interconnecting device, as shown in figure 1, including:
PCIe interface 11, for providing the communication interface with host device;Interconnecting device is accessed by PCIe interface 11 and led Machine equipment.
Change-over circuit 13, be connected with above-mentioned PCIe interface 11, for by above-mentioned PCIe interface 11 from above-mentioned host device USB transmission descriptor information is read, and above-mentioned USB transmission descriptor information is converted into URB forms, obtains the first data.
The transfer process can show as the mapping relations using USB transmission descriptor information and URB data, obtain above-mentioned The data of URB forms, i.e. the first data.Wherein, USB transmission descriptor information can be the letter in USB transmission descriptor list Breath.
Transmission circuit 15, it is connected with above-mentioned change-over circuit 13, for above-mentioned first data to be sent to client device. In one alternative embodiment, transmission circuit can include network communication module, that is, pass through real-time performance main frame and client device Between data transfer, specifically, as shown in Figure 2 a, above-mentioned transmission circuit 15, including:Network communication module 151, for by State the first data and be encapsulated as first network packet, and above-mentioned first network packet is sent to above-mentioned client device.By This is visible, and the interconnecting device that the embodiment of the present application provides is as the communication bridge between main frame and client device, itself and client End equipment is communicated by network, and the network can show as different implementations according to the difference of usage scenario, for example, It can be Ethernet, local area network etc..
It should be noted that the encapsulation function in network communication module, i.e., be encapsulated as network packet by the first data Function can move to processor to realize, i.e., above-mentioned encapsulation function is completed by processor.
Processor 17, the processor 17 include being used for the module for realizing following functions:HUB modules 171, for detecting client The hot plug event of the multiple USB devices in end equipment side, to extend the support to more USB devices.IP address management module 173, use , so, can be with according to the mapping in the mapping relations for establishing multiple USB devices and host device that client device is accessed Relation establishes the communication link of the USB device accessed with client device, and operation is zoomed out with realize USB device.
It should be noted that above-mentioned HUB modules 171 and IP address management module 173 can be independent hardware circuit, It can be integrated in a hardware circuit:
Wherein, can be by the way that HUB modules 171 and IP address management module 173 be realized for the first implementation Function is realized by first processor and second processor;, can be by the way that two modules be realized for second of implementation Function be located in same processor and realize.
In one alternate embodiment, transmission circuit 15, it is additionally operable to receive multiple USB devices of client device access USB device information;IP address management module 173, for establishing mapping relations according to USB device information.
In one alternate embodiment, HUB modules 171, it is additionally operable to notify to host device by transmission circuit 15 multiple The hot plug event of USB device.
The technical scheme provided using the present embodiment, can solve the problems, such as that the USB schemes of zooming out have limitation, such as need Installation of drive software is wanted, hardware configuration is required, or limited transmission distance.Using such scheme, it may not be necessary in place Extra software is installed on main frame, ensures station data safety;Multiple USB devices of multiple access points can be supported;Docking The USB controller of access point does not limit, cross-platform more preferable.
As the alternative embodiment of the application, transmission circuit 15, it is additionally operable to receive above-mentioned client device according to upper The second data of the first data return are stated, and above-mentioned second data are sent to above-mentioned change-over circuit 13.That is the embodiment of the present application In interconnecting device can not only realize host device to client device data send, can also realize that client device arrives The data of host device are sent, and now, interconnecting device, which may be considered, plays a part of data forwarding.Now, above-mentioned conversion electricity Road 13, it is additionally operable to above-mentioned second data being converted to USB transmission descriptor information by URB forms, i.e. interconnecting device is by client Second data of the URB forms that equipment is sent are converted to USB format, to send data to host device.Alternatively, above-mentioned turn Circuit 13 is changed, is additionally operable to that above-mentioned USB transmission descriptor information is converted into URB forms in the following manner:Passed based on above-mentioned USB The mapping relations of defeated descriptor information and URB data, obtain URB data corresponding with above-mentioned USB transmission descriptor information.
Alternatively, as shown in Figure 2 a, above-mentioned interconnecting device can also include but is not limited to:Memory 21, it is arranged at above-mentioned Between change-over circuit 13 and above-mentioned transmission circuit 15, for storing above-mentioned first data;Above-mentioned change-over circuit 13, is additionally operable to successively Above-mentioned USB transmission descriptor information in usb data descriptor chained list is converted into URB forms, and stored to above-mentioned memory In 21.So, can be so that URB data to be subsequently uniformly processed.
Alternatively, as shown in Figure 2 a, above-mentioned interconnecting device can also include but is not limited to:Controller 23, for by State PCIe interface receive the setting address instruction from above-mentioned host device, and according to above-mentioned setting address instruction determine with it is upper State the address that client device is communicated.It should be noted that the controller 23 can also be multiple, or one, That is, a controller corresponds to One function or a controller realizes multiple functions, flexible with specific reference to actual conditions It is determined that.
Alternatively, in order to improve efficiency, controller noted above 23, it is additionally operable to piece in above-mentioned host device progress USB device During act, existing USB device information is returned to above-mentioned host device.That is controller 19 during USB device is enumerated, According to the direct returning equipment information of existing USB device information.
It should be noted that processor 17 and controller 23 can be two independent devices, or an independence Device, for the latter, the function of processor 17 and controller 23 can be completed simultaneously by a device.
It should be noted that each part shown in Fig. 1,2a and Fig. 2 b in interconnecting device can be identical product In structure, or separately positioned part.For the former, in one alternate embodiment, as shown in Figure 2 b, switching is set Standby also to include a housing 1, the housing 1 is internally provided with above-mentioned PCIe interface 11, change-over circuit 13, transmission circuit 15, HUB moulds Block 171, IP address management module 173, memory 21 and controller 23, may be contained within housing 1.
Fig. 3 is the structural representation according to the optional interconnecting device of another kind of the embodiment of the present application.As shown in figure 3, should Translational bridging card contains PCIe interface 30, operation note processing module 301, and host data read-write processing module and data turn Change the mold block 300, USB device enumeration processing module 302, USB device management and device descriptor management module 303, data storage Unit 102 and network control module 304, USB device IP address management module 306 and USB HUB modules 307.Wherein, operation is posted Storage processing module 301, USB device enumeration processing module 302, USB device management and device descriptor management module 303 are suitable Controller 21 in Fig. 2;Data storage cell 102 is equivalent to the memory 21 in Fig. 2;Network control module 304 equivalent to Transmission circuit 15 in Fig. 2.
Wherein, operation note processing module 301 is deposited according to the state configuration EHCI/OHCI operations of access USB device Device, main frame complete enumerating and communicating to USB device by reading and configuring the state of operation note, and wherein main frame passes through behaviour The entry reference of USB transmission descriptor list 101 in host computer system memory cell is specified as register;Host data is read Write processing module and chain table pointer that data conversion module (300) provides according to operation note, read USB transmission descriptor row Table 101, linked list data is converted to successively URB packets and stored and arrive data storage cell 102, and held according to URB packets The state of row status modifier USB transmission descriptor list 101;USB device enumeration processing module 302, in main frame to equipment progress piece During act, USB device enumeration processing module (302) configures device address (set address) according to main frame and ordered, record main frame point Dispensing USB device address is in corresponding USB device information table;In addition, in order to reduce the time of device enumeration, in the mistake enumerated Cheng Zhong, USB device enumeration processing module 302 is according to the direct returning equipment information of existing USB device information;USB device management And device descriptor management module 303, safeguard USB device information table (305) include USB device host side address information, USB device descriptor, USB device interface descriptor, in device address of distal end etc., and monitor the hot plug of Client end equipments Event;Network control module 304, send network packet 202 and receive URB packet returned datas.
Wherein, USB device management and device descriptor management module obtain the USB at client ends by network control module After device descriptor information, relevant information is saved in USB device information table, and the USB addresses of the equipment are defaulted as 0;
USB device enumeration processing module handles the equipment that USB addresses in USB device information table are 0, USB device piece successively The portsc registers lifted in processing module configuration modification operation note processing module (can support 16 device port shapes State), notice HOST end main frames have equipment access, and HOST end main frames carry out enumeration operation to equipment;USB device enumeration processing module Detect in USB device information table that USB device is deletion state, the portsc in configuration modification operation note processing module is posted Storage, notice HOST end main frames equipment disconnect, and HOST end main frames delete the device-dependent transmission descriptor list;USB device Management and device descriptor management module delete the device-dependent message out of USB device information table.Inquire about USB device information table Interior USB addresses are 0 equipment;Processing equipment address is the transmission descriptor list of default address 0, and configures at operation note Reason module and main frame interact, and complete equipment and find and device address management;USB device information table is inquired about, finds some USB Equipment is deletion state, the portsc registers in configuration modification operation note processing module, notifies HOST end main frame equipment Disconnect;
Host data reads and writes processing module and data conversion module and reads transmission descriptor list from main frame, is configured in main frame Before device address, USB device enumeration processing module is according to the enumeration process of USB device information table response HOST end main frames; After HOST end main frames configuration device address, USB device information table is updated;
Host data is read and write processing module and data conversion module and will read successively from main frame according to USB device information table Transmission descriptor list is converted to URB packets, and submits to network control module;When USB device management and device descriptor Management module detects that client ends USB device is extracted or disconnected, and modification USB device information table is deletion state;Pass through net Network control module obtains the device descriptor information of client ends USB device, and is saved in USB device information table;Detection Client ends USB device disconnects, and it is deletion state to change USB device information table.
USB device IP address management module 306, management and the data link at each Client ends, and with establishing USB device Location mapping table.
USB HUB modules 307, the hot plug events of USB device are simulated, extend the support to more USB devices.
It should be noted that the concrete structure of Fig. 1 to interconnecting device shown in Fig. 3 is only signal, in specific application, this Interconnecting device in application can have more than interconnecting device shown in Fig. 1 to Fig. 3 or few structure.
Embodiment 2
According to the embodiment of the present application, there is provided a kind of embodiment of the method for data transmission method is, it is necessary to illustrate, attached The step of flow of figure illustrates can perform in the computer system of such as one group computer executable instructions, though also, So logical order is shown in flow charts, but in some cases, can be with different from shown by order execution herein Or the step of description.
The data transmission method that the present embodiment provides, can run in interconnecting device shown in Fig. 1 to Fig. 3, but be not limited to This.Fig. 4 a are the flow charts according to a kind of optional data transmission method of the embodiment of the present application.As shown in fig. 4 a, this method bag Include:
Step S402, detect the hot plug event of the multiple USB devices of client device side.
Detection process can show as whether receiving the announcement information of customer equipment equipment transmission, the announcement information herein It is to be sent after client device detects the hot plug event of USB device.
Step S404, at least one access in detecting multiple USB devices, establish what client device was accessed The mapping relations of multiple USB devices and host device.As can be seen here, the scheme that the embodiment of the present application provides supports multiple USB to set It is standby to carry out zooming out communication simultaneously.
Step S406, USB transmission descriptor information is read from host device by PCIe interface.
Step S408, above-mentioned USB transmission descriptor information is converted into URB forms, obtains the first data.
In one alternate embodiment, above-mentioned transfer process can be accomplished by the following way:Retouched based on above-mentioned USB transmission The mapping relations of symbol information and URB data are stated, obtain URB data corresponding with above-mentioned USB transmission descriptor information.
Step S410, above-mentioned first data are sent to client device, wherein, carried in above-mentioned first data multiple The mark of at least one USB device in USB device.
In one alternate embodiment, the setting address from above-mentioned host device is received by above-mentioned PCIe interface to refer to Order, and the address for determining to be communicated with above-mentioned client device according to above-mentioned setting address instruction.Its address style can be with For IP address, but not limited to this.
As the alternative embodiment of the application, in the enumeration process that above-mentioned host device carries out USB device, upwards State host device and return to existing USB device information.
In one alternate embodiment, the access state that above-mentioned client device accesses USB device is detected, wherein, on Stating access state includes at least one of:Above-mentioned USB device accesses above-mentioned client device, above-mentioned USB device disconnect with it is upper State the connection of client device;Above-mentioned existing USB device information is updated according to above-mentioned access state.Wherein, above-mentioned " renewal " Including but not limited to:Modification, delete, addition.
It should be noted that the executive agent of above-mentioned each step can be interconnecting device, but not limited to this.
In one alternate embodiment, above-mentioned client device returns according to above-mentioned first data second can also be received Data;And above-mentioned second data are converted into USB transmission descriptor information by URB forms.For example, above-mentioned first data are to be sent to The request message of client device, above-mentioned second data are response message of the above-mentioned client device according to request message feedback.
The embodiment of the present application also provides a kind of data transmission device, and the device is used to realize the above method, and Fig. 4 b are bases A kind of structured flowchart of the data transmission device of the embodiment of the present application.As shown in Figure 4 b, the device includes:Detection module 40, use In the hot plug event for detecting the above-mentioned multiple USB devices of client device side;
Module 42 is established, at least one access in detecting above-mentioned multiple USB devices, establishing client and setting The mapping relations of the standby multiple USB devices accessed and above-mentioned host device;Read module 44, for passing through high-speed peripheral component Interconnection PCIe interface reads general-purpose serial bus USB transmission descriptor information from host device;Modular converter 46, for by State USB transmission descriptor information and be converted to USB request block URB forms, obtain the first data, carried in the first data multiple The mark of at least one USB device in USB device;Sending module 48, for above-mentioned first data to be sent to client device.
In one alternate embodiment, as shown in Figure 4 b, above-mentioned data transmission device can also include:Receiving module 50, The second data returned for receiving above-mentioned client device according to above-mentioned first data, and the transmission of above-mentioned second data is supreme State modular converter 46;Above-mentioned modular converter 46, it is additionally operable to above-mentioned second data being converted to USB transmission descriptor by URB forms Information.
It should be noted that above-mentioned sending module 48 and receiving module 50 can be realized by a module, for example, it is logical A transmission circuit is crossed to realize, but not limited to this.
Embodiment 3
Fig. 5 a are the structural representations according to a kind of telecommunication system of the embodiment of the present application.As shown in Figure 5 a, this is System includes:
Host device 50;
Interconnecting device 52, the interconnecting device can be the interconnecting device in embodiment 1, also, interconnecting device 52 passes through PCIe interface is connected with host device 50;
Client device 54, multiple USB interfaces are provided with, are connected with multiple USB devices, for receiving above-mentioned host device 50 data sent by above-mentioned interconnecting device, and the data of reception are sent to USB device, and/or, pass through above-mentioned switching Equipment sends data caused by above-mentioned multiple USB devices to above-mentioned host device.Wherein, " produced according to above-mentioned multiple USB devices Data " include but is not limited to control instruction caused by USB device;Or host device is to the control instruction of USB device.
Alternatively, multiple USB interfaces are provided with client device 54.In one alternate embodiment, as shown in Figure 5 b, Said system can also include HUB modules 56, and the HUB modules 56 are connected with host device 50, for accessing at least one client End equipment 54.
Above-mentioned client device, it is additionally operable to send to before USB device by the data of above-mentioned reception, and is connect above-mentioned In the case that the data of receipts are network packet form, the data of above-mentioned reception are converted into URB forms.
Fig. 6 is the structural representation that principle is zoomed out according to a kind of network of the embodiment of the present application.As shown in fig. 6, host side Translational bridging card (i.e. interconnecting device) by the access host equipment of PCIe interface 600, according to EHCI/OHCI interface protocols, USB transmission descriptor list (101) is converted to URB (100) data format, and is transferred to client by network packet (602) Machine (i.e. client device), client computer revert to network bag (102) by client bridge application program the URB of client computer (103) data format, and by the data transfer of URB data formats into the USB device being connected with client computer.In Fig. 6,104 Represent USB transmission symbol list.
Fig. 7 is the structural representation according to a kind of optional USB link protocol stack of the embodiment of the present application.As shown in fig. 7, The USB link protocol stack of usb host controller based on EHCI/OHCI interface protocols is divided into host software part and USB controls Device PCIe interface card portion, host software part operate in work station or data center, and USB controller PCIe interface card passes through PCIe interface cut-in operation station or data center;Host software part includes USB device driving, USB core driving (core Driver), USB controller drives, and is that General System all includes;Wherein USB controller drives the upper strata USB to protocol stack The interface that core driver are provided is the USB request block data-interfaces (abbreviation URB) (100) of standard;USB is controlled Device drives what the on-link mode (OLM) with USB controller was defined by EHCI/OHCI interface protocols, and EHCI/OHCI interface protocols define The SDL of PCI physical interfaces 600, contain the specific functional configuration register of USB controller, operation note and USB transmission descriptor list (101).
Fig. 8 is the structural representation according to the optional telecommunication system of another kind of the embodiment of the present application.Such as Fig. 8 institutes Show, the system includes:
The host side protocol conversion bridge joint card 80 of host side by the cut-in operation station of PCIe interface 800 or data center, Client end equipments 82 are connected by network control module 84 with the network control module 86 of host side protocol conversion bridge joint card 80, The USB device that client device 82 accesses is completed to zoom out in work station or the data center at HOST ends by network;Wherein, Client device 82 includes network control module 84 and client process module 88.
Fig. 9 is the structural representation according to a kind of optional client device of the embodiment of the present application.As shown in figure 9, USB Equipment zooms out client device and contains client process module 90 (equivalent to the client process module 88 in Fig. 8), network Control module 92 and multiple USB devices;Client process module 90 contains distal end bridge application program 901, distal end bridge joint is set 902 and USB of standby driving drivings and controller module 903;Wherein, USB driving and controller module 903 be general computer or What embedded system included, the enumeration process to USB device can be completed, and provide conventional data (URB) access to upper strata and connect Mouthful;Distal end bridging device driving 902, belong to the USB device driving layer of protocol stack, network URB data are converted to Client ends The URB packets of support simultaneously submit to USB drivings and controller module 903;Distal end bridge application program 901, receive and safeguard The connection request of HOST ends network, management USB device driving, the network URB packets at HOST ends are submitted to distal end bridge joint and set Standby driving 902.
Figure 10 is the control flow schematic diagram according to a kind of optional host side of the embodiment of the present application.As shown in Figure 10, The flow includes:
1st, host side protocol conversion bridge joint card insertion enters HOST end main frames, power-up initializing all hardware;
2nd, host side protocol conversion bridge joint cartoon knows that main frame enumerates USB HUB modules;
3rd, after waiting client end network connections, USB device management and device descriptor management module (403) are read Client ends USB device information, USB device IP address management module (406) are established USB device address according to the information of acquisition and reflected Firing table (408);
4th, USB HUB modules (407) notify HOST ends to have new USB device to access by HUB message mechanisms;
5th, HOST end main frames provide the operation entry of usb data descriptor chained list (101) by configuring operation note;
6th, host data read-write processing module and data conversion module (400) read data descriptor chained list, and by data Descriptor is converted into URB packets (102);
7th, URB packets are forwarded to client ends by network control module (404);
8th, network end data is waited to reply;
9th, receive client ends URB bag datas to reply, host data read-write processing module and data conversion module (400) will Data recovery is converted into descriptor state;
10th, host data read-write processing module and data conversion module (400) modification HOST end main frame descriptor states;
If the 11, descriptor link also has effective descriptor, 5-8 processes are repeated;
If the 12, the 7th step, the network port or device port, operation note processing module (400) configuration operation are found Register notice host end main frame equipment has been found that port.
Figure 11 is the control flow schematic diagram according to a kind of optional client device of the embodiment of the present application.Such as Figure 11 institutes Show,
1st, host side protocol conversion bridge joint card insertion enters HOST end main frames, power-up initializing hardware and software;
2nd, USB controller finds new USB device access;
3rd, USB drivings and controller module (503) are enumerated USB device;
4th, after device enumeration terminates, the USB device is mounted to client bridge joint and set by client bridge application program (501) Standby driving (502);
5th, wait normal with HOST ends network link;
6th, client bridge application program (501) sends USB device information table to HOST ends;
7th, client bridge application program (501) waits HOST ends to send network URB packets (102), and by network URB Packet (102) submits to client bridging device driving (502);
8th, USB drivings and control module (503) are submitted in client bridging device driving (502);
The 9th, the pending URB data end-of-packet such as;
10th, USB drivings and controller module (503) reply HOST end main frame URB packet implementing results;
11st, next URB packets are handled, repeat the 7th step to the 10th step;
12nd, detect that USB device disconnects, notice HOST end main frames equipment disconnects.
Figure 12 is a kind of optional USB transmission descriptor list schematic diagram according to the embodiment of the present application.As shown in figure 12, In the alternative embodiment of the application, USB transmission descriptor includes two classes:QH and qTD.
In the alternative embodiment of the application, the USB in URB data and USB transmission descriptor list can be passed through The mapping relations of transmission descriptor information realize that form is changed, and Figure 13 is a kind of optional URB numbers according to the embodiment of the present application According to the mapping relations schematic diagram with USB transmission descriptor list.As shown in figure 13, required for iTD lists contain URN packets All data, mapping relations be present with URB data in it.Wherein, above-mentioned flow path switch includes:Host data reads and writes processing module And the memory pointers that data conversion module (400) is provided by operation note processing module (401), read QH and qTD and pass Defeated descriptor list;QH transmits chained list content as shown in the iTD lists in Figure 13, contains all data required for URB bags. It is URB packets according to URB Data Format Transforms.
The scheme provided using the present embodiment, it is not necessary to extra software is installed on main frame;HOST end systems are not invaded, Ensure original system safety and stability;Convenient across multiple systems platforms, it is easy to use;The usb host at access point Client ends is controlled Device does not limit, and can preferably be used in cross-platform scene.
Above-mentioned the embodiment of the present application sequence number is for illustration only, does not represent the quality of embodiment.
In above-described embodiment of the application, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment The part of detailed description, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, others can be passed through Mode is realized.Wherein, device embodiment described above is only schematical, such as the division of the unit, Ke Yiwei A kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On unit.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the application is substantially The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer Equipment (can be personal computer, server or network equipment etc.) perform each embodiment methods described of the application whole or Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes Medium.
Described above is only the preferred embodiment of the application, it is noted that for the ordinary skill people of the art For member, on the premise of the application principle is not departed from, some improvements and modifications can also be made, these improvements and modifications also should It is considered as the protection domain of the application.

Claims (20)

  1. A kind of 1. interconnecting device, it is characterised in that including:
    High-speed peripheral component interconnects PCIe interface, for providing the communication interface with host device;
    Change-over circuit, it is connected with the PCIe interface, for reading general string from the host device by the PCIe interface Row bus USB transmission descriptor information, and the USB transmission descriptor information is converted into USB request block URB forms, obtain First data;
    Processor, for detecting the hot plug event of the multiple USB devices of client device side, and establish client device and accessed Multiple USB devices and the host device mapping relations;
    Transmission circuit, it is connected with the change-over circuit, for first data to be sent to client device, wherein, it is described The mark of at least one USB device in the multiple USB device is carried in first data.
  2. 2. interconnecting device according to claim 1, it is characterised in that
    The transmission circuit, it is additionally operable to receive the second data that the multiple USB device is returned by the client device, and Second data are sent to the change-over circuit, wherein, carried in second data and produce second data The mark of USB device;
    The change-over circuit, it is additionally operable to second data being converted to USB transmission descriptor information by URB forms.
  3. 3. interconnecting device according to claim 1, it is characterised in that the transmission circuit, be additionally operable to receive the client The USB device information of multiple USB devices of end equipment access;The processor, for establishing institute according to the USB device information State mapping relations.
  4. 4. interconnecting device according to claim 1, it is characterised in that the transmission circuit, including:Network communication module, For first data to be encapsulated as into first network packet, and the first network packet is sent to the client Equipment.
  5. 5. interconnecting device according to claim 1, it is characterised in that
    The interconnecting device also includes:Memory, it is arranged between the change-over circuit and the transmission circuit, for storing State the first data;
    The change-over circuit, it is additionally operable to successively be converted to the USB transmission descriptor information in usb data descriptor chained list URB forms, and store into the memory.
  6. 6. interconnecting device according to claim 1, it is characterised in that the change-over circuit, be additionally operable in the following manner The USB transmission descriptor information is converted into URB forms:
    Mapping relations based on the USB transmission descriptor information Yu URB data, obtain and the USB transmission descriptor information Corresponding URB data.
  7. 7. interconnecting device according to claim 1, it is characterised in that
    The processor, it is additionally operable to notify the plug of the multiple USB device to the host device by the transmission circuit Event.
  8. 8. interconnecting device according to any one of claim 1 to 7, it is characterised in that the interconnecting device also includes:
    Controller, for receiving the setting address instruction from the host device by the PCIe interface, and according to institute State and set address instruction to determine the address to be communicated with the client device.
  9. 9. interconnecting device according to claim 8, it is characterised in that the controller, be additionally operable in the host device In the enumeration process for carrying out USB device, existing USB device information is returned to the host device.
  10. A kind of 10. telecommunication system, it is characterised in that including:
    Host device;
    Interconnecting device, interconnecting device of the interconnecting device any one of claim 1 to 9, also, the interconnecting device PCIe interface is interconnected by high-speed peripheral component to be connected with the host device;
    Client device, multiple general-purpose serial bus USB interfaces are provided with, are connected with multiple USB devices, for receiving the master The data that machine equipment is sent by the interconnecting device, and the data of reception are sent to USB device, and/or, pass through described turn Connect equipment and send data caused by the multiple USB device to the host device.
  11. 11. telecommunication system according to claim 10, it is characterised in that the client device, be additionally operable to inciting somebody to action The data of the reception are sent to before USB device, and in the case where the data of the reception are network packet form, The data of the reception are converted into URB forms.
  12. 12. the telecommunication system according to claim 10 or 11, it is characterised in that the client device is multiple.
  13. A kind of 13. data transmission method, it is characterised in that including:
    Detect the hot plug event of the multiple USB devices of client device side;
    In at least one access in detecting the multiple USB device, establish multiple USB that client device is accessed and set The standby mapping relations with host device;
    PCIe interface is interconnected by high-speed peripheral component general-purpose serial bus USB transmission descriptor letter is read from host device Breath;
    The USB transmission descriptor information is converted into USB request block URB forms, obtains the first data, wherein, described first The mark of at least one USB device in the multiple USB device is carried in data;
    First data are sent to client device.
  14. 14. according to the method for claim 13, it is characterised in that sent first data to visitor by communication link After the end equipment of family, methods described also includes:
    Receive the USB device indicated by the mark of at least one USB device carried in first data and pass through client The second data that end equipment returns;And second data are converted into USB transmission descriptor information by URB forms, wherein, institute It is according to data caused by first data to state the second data, is carried in second data and produces second data The mark of USB device.
  15. 15. according to the method for claim 13, it is characterised in that methods described also includes:
    During the host device enumerates USB device, existing USB device information is returned to the host device.
  16. 16. according to the method for claim 15, it is characterised in that methods described also includes:
    Detect the access state that the client device accesses USB device, wherein, the access state include it is following at least it One:The USB device accesses the client device, and the USB device disconnects the connection with the client device;
    The existing USB device information is updated according to the access state.
  17. A kind of 17. data transmission device, it is characterised in that including:
    Detection module, for detecting the hot plug event of the multiple USB devices of the client device side;
    Module is established, at least one access in detecting the multiple USB device, establishing client device and being connect The mapping relations of the multiple USB devices and host device that enter;
    Read module, general-purpose serial bus USB is read from host device for interconnecting PCIe interface by high-speed peripheral component Transmit descriptor information;
    Modular converter, for the USB transmission descriptor information to be converted into USB request block URB forms, the first data are obtained, Wherein, the mark of at least one USB device in the multiple USB device is carried in first data;
    Sending module, for first data to be sent to client device.
  18. 18. device according to claim 17, it is characterised in that
    Described device also includes:Receiving module, second returned for receiving the client device according to first data Data, and second data are sent to the modular converter;
    The modular converter, it is additionally operable to second data being converted to USB transmission descriptor information by URB forms.
  19. A kind of 19. storage medium, it is characterised in that the storage medium includes the program of storage, wherein, run in described program When control the storage medium where data transmission method in equipment perform claim requirement 13 to 15 described in any one.
  20. A kind of 20. processor, it is characterised in that the processor is used for operation program, wherein, right of execution when described program is run Profit requires the data transmission method described in any one in 13 to 15.
CN201710617520.0A 2017-07-26 2017-07-26 Interconnecting device, telecommunication system, data transmission method and device Pending CN107506324A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710617520.0A CN107506324A (en) 2017-07-26 2017-07-26 Interconnecting device, telecommunication system, data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710617520.0A CN107506324A (en) 2017-07-26 2017-07-26 Interconnecting device, telecommunication system, data transmission method and device

Publications (1)

Publication Number Publication Date
CN107506324A true CN107506324A (en) 2017-12-22

Family

ID=60689003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710617520.0A Pending CN107506324A (en) 2017-07-26 2017-07-26 Interconnecting device, telecommunication system, data transmission method and device

Country Status (1)

Country Link
CN (1) CN107506324A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069288A (en) * 2019-03-13 2019-07-30 北京淳中科技股份有限公司 USB device sharing method, apparatus and system
CN113395236A (en) * 2020-03-12 2021-09-14 杭州海康威视数字技术股份有限公司 Method, system, device and storage medium for USB data transparent transmission
CN114218138A (en) * 2021-11-30 2022-03-22 山东云海国创云计算装备产业创新中心有限公司 USB equipment simulation device and test system
CN114385534A (en) * 2020-10-19 2022-04-22 华为技术有限公司 Data processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050209842A1 (en) * 2004-03-16 2005-09-22 Digi International Inc. Remote USB port system and method
US20050289370A1 (en) * 2000-04-18 2005-12-29 Digi International Inc. Bus control module for improving legacy support
CN101035039A (en) * 2007-04-20 2007-09-12 福建升腾资讯有限公司 USB mapping method
CN102789432A (en) * 2011-05-19 2012-11-21 中国电信股份有限公司 USB (universal serial bus) equipment drive method and system
CN105391719A (en) * 2015-11-19 2016-03-09 苏州跬步信息技术有限公司 Intelligent equipment remote control system based on TCP/IP network and interaction method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050289370A1 (en) * 2000-04-18 2005-12-29 Digi International Inc. Bus control module for improving legacy support
US20050209842A1 (en) * 2004-03-16 2005-09-22 Digi International Inc. Remote USB port system and method
CN101035039A (en) * 2007-04-20 2007-09-12 福建升腾资讯有限公司 USB mapping method
CN102789432A (en) * 2011-05-19 2012-11-21 中国电信股份有限公司 USB (universal serial bus) equipment drive method and system
CN105391719A (en) * 2015-11-19 2016-03-09 苏州跬步信息技术有限公司 Intelligent equipment remote control system based on TCP/IP network and interaction method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨勇: ""基于Linux的USB over IP系统设计"", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069288A (en) * 2019-03-13 2019-07-30 北京淳中科技股份有限公司 USB device sharing method, apparatus and system
CN110069288B (en) * 2019-03-13 2022-03-04 北京淳中科技股份有限公司 USB equipment sharing method, device and system
CN113395236A (en) * 2020-03-12 2021-09-14 杭州海康威视数字技术股份有限公司 Method, system, device and storage medium for USB data transparent transmission
CN114385534A (en) * 2020-10-19 2022-04-22 华为技术有限公司 Data processing method and device
CN114218138A (en) * 2021-11-30 2022-03-22 山东云海国创云计算装备产业创新中心有限公司 USB equipment simulation device and test system

Similar Documents

Publication Publication Date Title
US6272551B1 (en) Network adapter for transmitting network packets between a host device and a power line network
CN101849230B (en) Sharing legacy devices in a multi-host environment
JP5917474B2 (en) System and routing method using integrated multi-transfer media connector
JP3799184B2 (en) COMMUNICATION METHOD, TRANSMISSION METHOD, RECEPTION METHOD, AND DEVICE FOR IMPLEMENTING THEM
CN107506324A (en) Interconnecting device, telecommunication system, data transmission method and device
US8407367B2 (en) Unified connector architecture
CN101689171B (en) End-to-end flow control in a network
US7458075B2 (en) Virtual USB port system and method
CN102541791A (en) Data transferring apparatus and control method thereof
CN101937406B (en) Method and system for driving 1394 devices in VxWorks operating system
WO2006110844A2 (en) Tunneling sata targets through fibre channel
WO2008011727A1 (en) Method and apparatus for distributing usb hub functions across a network
CN102821082A (en) Data transmission method, device and system
CN110532208A (en) A kind of data processing method, interface conversion structure and equipment
CN103207801B (en) The methods, devices and systems of virtual machine (vm) migration and fibre channel media
CN107391409B (en) PCI-E network controller, network equipment and data transmission method
CN106610789A (en) Data processing method, device and system
CN107168909A (en) Interconnecting device, telecommunication system, data transmission method and device
CN106649186A (en) Communication method and device for application program and serial port peripheral
CN106407151A (en) Information processing method and device
CN108920193A (en) SDIO communication interface realization method and device between FPGA and CPU
CN101212480B (en) Method and apparatus for communication between universal serial bus (USB) host and USB device
CN204595794U (en) USB computer switcher signal extender and extender system
JPH07120320B2 (en) Data transmission system between computer bus and high speed ring network
CN207676336U (en) Interconnecting device, telecommunication system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171222