[go: up one dir, main page]

CN107168909A - 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
CN107168909A
CN107168909A CN201710486199.7A CN201710486199A CN107168909A CN 107168909 A CN107168909 A CN 107168909A CN 201710486199 A CN201710486199 A CN 201710486199A CN 107168909 A CN107168909 A CN 107168909A
Authority
CN
China
Prior art keywords
usb
data
urb
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
CN201710486199.7A
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
Individual
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 Individual filed Critical Individual
Priority to CN201710486199.7A priority Critical patent/CN107168909A/en
Publication of CN107168909A publication Critical patent/CN107168909A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0024Peripheral component interconnect [PCI]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

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

Abstract

This application discloses a kind of interconnecting device, telecommunication system, data transmission method and device.Wherein, this method includes:General-purpose serial bus USB transmission descriptor information is read from host device by PCIe interface;USB transmission descriptor information is converted into USB request block URB forms, the first data are obtained;First data are sent to client device.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 continuing to develop for computer technology, the equipment such as personal data or graphic remote work station, data center is got over Come more complicated, the display and input control apparatus for causing equipment need 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 is zoomed 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 is zoomed 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 correspondence 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 be limited, 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 be limited, 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, effective solution is not yet proposed 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 Solve 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 is interconnected (Peripheral Component Interconnect, referred to as PCI) interface, the communication for providing with host device connects Mouthful;Change-over circuit, is connected with PCIe interface, is transmitted for reading general-purpose serial bus USB from host device by PCIe interface Descriptor information, and USB transmission descriptor information is converted into USB request block URB forms, obtain the first data;Transmission circuit, It is connected with change-over circuit, 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 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, the data sent for Receiving Host equipment by interconnecting device, and/or, sent out by interconnecting device to host device Send data.
According to the another aspect of the embodiment of the present application, a kind of data transmission method is additionally provided, including:Pass through PCIe interface General-purpose serial bus USB transmission descriptor information is read from host device;USB transmission descriptor information is converted into USB please Block URB forms are sought, the first data are obtained;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:Read module, is used In 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;Sending module, sets for the first data to be sent to client It is standby.
According to the another aspect of the embodiment of the present application, a kind of storage medium is additionally provided, it is characterised in that storage medium bag The program of storage is included, 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 the above is performed when program is run.
In the embodiment of the present application, using being 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 is zoomed 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 There is the technical problem of limitation 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, constitutes the part of the application, this Shen Schematic description and description please is used to explain the application, does not constitute the improper restriction to the application.In the accompanying drawings:
Fig. 1 is a kind of structural representation of interconnecting device according to the embodiment of the present application;
Fig. 2 a are a kind of structural representations of optional interconnecting device according to the embodiment of the present application;
Fig. 2 b are a kind of structural representations of optional interconnecting device according to the embodiment of the present application;
Fig. 3 is the structural representation of another optional interconnecting device according to the embodiment of the present application;
Fig. 4 a are a kind of flow charts of data transmission method according to the embodiment of the present application;
Fig. 4 b are a kind of structured flowcharts of data transmission device according to the embodiment of the present application;
Fig. 5 a are a kind of structural representations of telecommunication system according to the embodiment of the present application;
Fig. 5 b are a kind of structural representations of telecommunication system according to 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 a kind of structural representation of optional USB link protocol stack according to the embodiment of the present application;
Fig. 8 is the structural representation of another optional telecommunication system according to the embodiment of the present application;
Fig. 9 is a kind of structural representation of optional client device according to the embodiment of the present application;
Figure 10 is a kind of control flow schematic diagram of optional host side according to the embodiment of the present application;
Figure 11 is a kind of control flow schematic diagram of optional client device according to 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;And
Figure 13 is to be closed according to a kind of optional URB data of the embodiment of the present application with the mapping of USB transmission descriptor list 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, 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 using 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 Lid is non-exclusive to be included, for example, the process, method, system, product or the equipment that contain series of steps or unit are not necessarily limited to 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 involved in the embodiment of the present application explanation of technical terms 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 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 The far-end server of many-one mode, i.e., one (HOST) controls 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, is 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, the first data are obtained.
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, 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 show as network communication module, i.e., set by real-time performance main frame and client Data transfer between standby, specifically, as shown in Figure 2 a, above-mentioned transmission circuit 15, including:Network communication module 151, for inciting somebody to action Above-mentioned first data are encapsulated as first network packet, and above-mentioned first network packet is sent to above-mentioned client device. As can be seen here, the interconnecting device that the embodiment of the present application is provided is as the communication bridge between main frame and client device, itself and visitor Family end equipment is communicated by network, and the network can show as different implementations, example according to the difference of usage scenario Such as, it can be Ethernet, local area network etc..
The technical scheme provided using the present embodiment, can solve the problem of USB schemes of zooming out have limitation, for example, need Installation of drive software is wanted, hardware configuration is required, or limited transmission distance.
As the alternative embodiment of the application, transmission circuit 15 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 is arrived 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, is additionally operable to above-mentioned second data being converted to USB transmission descriptor information, i.e. interconnecting device by client by URB forms 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 17, 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 17.So, just URB data can be subsequently uniformly processed.
Alternatively, as shown in Figure 2 a, above-mentioned interconnecting device can also include but is not limited to:Controller 19, 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 19 can also be multiple, or one, That is, one controller correspondence One function or a controller realize multiple functions, flexible with specific reference to actual conditions It is determined that.
Alternatively, in order to improve efficiency, controller noted above 19 is additionally operable to carry out piece of USB device in above-mentioned host 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 each part shown in Fig. 1 and 2 in interconnecting device can be the knot in identical product Structure, or separately positioned part.For the former, in one alternate embodiment, as shown in Figure 2 b, interconnecting device is also wrapped A housing 1 is included, the housing 1 is internally provided with above-mentioned PCIe interface 11, change-over circuit 13, transmission circuit 15, the and of memory 17 Controller 19, be respectively provided with housing 1.
Fig. 3 is the structural representation of another optional interconnecting device according to the embodiment of the present application.As shown in figure 3, should Translational bridging card contains PCIe interface 30, operation note processing module (301), host data read-write processing module and data Modular converter (300), USB device enumeration processing module (302), USB device management and device descriptor management module (303), Data storage cell 102 and network control module 304.Wherein, operation note processing module (301), USB device enumeration processing Module (302), USB device management and device descriptor management module (303) are equivalent to the controller 21 in Fig. 2;Data storage Unit 102 is equivalent to the memory 17 in Fig. 2;Network control module 304 is equivalent to the transmission circuit 15 in Fig. 2.
Wherein, operation note processing module (301) is posted according to the state configuration EHCI/OHCI operations of access USB device Storage, main frame completes enumerating and communicating to USB device by reading and configuring the state of operation note, and wherein main frame passes through Operation note specifies the list of USB transmission descriptor (101) entry reference in host computer system memory cell;Host number The chain table pointer provided according to read-write processing module and data conversion module (300) according to operation note, reads USB transmission description List (101) is accorded with, linked list data is converted to successively URB packets and stored and arrive data storage cell (102), and according to URB Packet performs status modifier the list of USB transmission descriptor (101) state;USB device enumeration processing module (302), in main frame When enumerating equipment, USB device enumeration processing module (302) configures device address (set address) according to main frame and ordered Order, record host assignment is in USB device address to corresponding USB device information table;In addition, in order to reduce device enumeration when Between, during enumerating, USB device enumeration processing module (302) is believed according to the direct returning equipment of existing USB device information Breath;USB device is managed and device descriptor management module (303), safeguards that USB device information table (305) includes USB device in master The address information of generator terminal, USB device descriptor, USB device interface descriptor, in device address of distal end etc., and monitor The hot plug events of Client end equipments;Network control module (304), sends network packet (202) and receives URB packets Returned data.
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), notify HOST end main frames to have equipment access, HOST end main frames carry out enumeration operation to equipment;USB device enumeration processing module It is that the portsc in deletion state, configuration modification operation note processing module is posted to detect USB device in USB device information table Storage, notifies HOST end main frames equipment to 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 are interacted, and are completed equipment and are found and device address management;USB device information table is inquired about, some USB is found Equipment is the portsc registers in deletion state, 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, in main frame configuration 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 client ends USB device and extracts or disconnect, 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 changes USB device information table for deletion state.
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, it is necessary to illustrate, attached The step of flow of figure is illustrated 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 shown to be performed different from order herein Or the step of description.
The data transmission method that the present embodiment is provided, can run in interconnecting device shown in Fig. 1 to Fig. 3, but be not limited to This.Fig. 4 a are a kind of flow charts of optional data transmission method according to the embodiment of the present application.As shown in fig. 4 a, this method bag Include:
Step S402, USB transmission descriptor information is read by PCIe interface from host device;
Step S404, is converted to URB forms by above-mentioned USB transmission descriptor information, 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, URB data corresponding with above-mentioned USB transmission descriptor information are obtained.
Step S406, above-mentioned first data are sent to client 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, detect that above-mentioned client device accesses the access state of USB device, 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, deletion, addition.
It should be noted that the executive agent of each above-mentioned step can be interconnecting device, but not limited to this.
In one alternate embodiment, above-mentioned client device is returned 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 the response message that above-mentioned client device feeds back according to request message.
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:Read module 40, is used General-purpose serial bus USB transmission descriptor information is read from host device in interconnecting PCIe interface by high-speed peripheral component; Modular converter 42, for above-mentioned USB transmission descriptor information to be converted into USB request block URB forms, obtains the first data;Hair Module 44 is sent, 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 46, Send supreme for receiving the second data that above-mentioned client device is returned according to above-mentioned first data, and by above-mentioned second data State modular converter 42;Above-mentioned modular converter 42, 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 44 and receiving module 46 can be realized by a module, for example, lead to Cross a transmission circuit realization, but not limited to this.
Embodiment 3
Fig. 5 a are a kind of structural representations of telecommunication system according to 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, the data sent for Receiving Host equipment 50 by interconnecting device, and/or, pass through switching Equipment sends data to host device.
Alternatively, multiple USB interfaces are provided with client device 54.In one alternate embodiment, said system is also HUB equipment 56 can be included, the HUB equipment 56 is connected with host device 50, for accessing at least one client device 54.
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 PCIe interface (300) access host equipment, according to EHCI/OHCI interface protocols, USB transmission descriptor list (101) is converted to URB (100) data format, and visitor is transferred to by network packet (602) Family machine (i.e. client device), client computer reverts to network bag (102) by client bridge application program the URB of client computer (103) data format.In Fig. 6,104 also illustrate that USB transmission accords with list.
Fig. 7 is a kind of structural representation of optional USB link protocol stack according to 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 operates 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 is all included;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 are defined The SDL of PCI physical interfaces (300), contains the specific functional configuration register of USB controller, operation note With USB transmission descriptor list (101).
Fig. 8 is the structural representation of another optional telecommunication system according to the embodiment of the present application.Such as Fig. 8 institutes Show, the system includes:
The host side protocol conversion bridge joint of host side blocks 80 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 that host side protocol conversion bridges card 80, The USB device for completing the access of client device 82 is zoomed 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 a kind of structural representation of optional client device according to 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 and 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 was included, the enumeration process to USB device can be completed, and conventional data (URB) access is provided to upper strata connecing Mouthful;Distal end bridging device driving 902, belongs to the USB device driving layer of protocol stack, network URB data is converted to Client ends The URB packets of support simultaneously submit to USB drivings and controller module 903;Distal end bridge application program 901, receives and safeguards The network URB packets at HOST ends are submitted to distal end bridge joint and set by the connection request of HOST ends network, management USB device driving Standby driving 902.
Figure 10 is a kind of control flow schematic diagram of optional host side according to the embodiment of the present application.As shown in Figure 10, The flow includes:
1st, host side protocol conversion bridge joint card insertion HOST end main frames, power-up initializing all hardware;
2nd, wait after the network connection of client ends, USB device management and device descriptor management module (403) are read Client ends USB device information;
3rd, operation note processing module (401) notifies HOST ends to have new USB device to connect by configuring operation note Enter;
4th, HOST end main frames provide the operation entry of USB transmission descriptor list (101) by configuring operation note;
5th, 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);
6th, URB packets are forwarded to client ends by network control module (404);
7th, network end data is waited to reply;
8th, the URB bag datas reply of client ends is received, host data read-write processing module and data conversion module (400) will Data recovery is converted into descriptor state;
9th, host data read-write processing module and data conversion module (400) modification HOST end main frame descriptor states;
If the 10, descriptor link also has effective descriptor, 5-8 processes are repeated;
If the 11, the 7th step, the network port or device port, operation note processing module (400) configuration operation are found Register notifies host end main frames equipment port.
Figure 11 is a kind of control flow schematic diagram of optional client device according to the embodiment of the present application.Such as Figure 11 institutes Show,
1st, host side protocol conversion bridge joint card insertion 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, the 7th step to the 10th step is repeated;
12nd, USB device disconnection is detected, notifies HOST end main frames equipment to disconnect.
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.
, can be by the USB in URB data and USB transmission descriptor list in the alternative embodiment of the application 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, there are mapping relations 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;Usb host control to access point Client ends Device is not limited, and can preferably be used in cross-platform scene.
Above-mentioned the embodiment of the present application sequence number is for illustration only, and the quality of embodiment is not represented.
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, 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 division of described unit, Ke Yiwei A kind of division of logic function, can there is other dividing mode when actually realizing, such as 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 the INDIRECT COUPLING or communication link of unit or module by some interfaces Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious 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 the application each embodiment 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, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used When, it can be stored in a computer read/write memory medium.Understood based on such, the technical scheme of the application is substantially The part 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 to cause a computer Equipment (can for personal computer, server or network equipment etc.) perform the application each embodiment methods described 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 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, 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;
Transmission circuit, is connected with the change-over circuit, for first data to be sent to client device.
2. interconnecting device according to claim 1, it is characterised in that
The transmission circuit, is additionally operable to receive the second data that the client device is returned according to first data, and will Second data are sent to the change-over circuit;
The change-over circuit, is additionally operable to second data being converted to USB transmission descriptor information by URB forms.
3. 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.
4. interconnecting device according to claim 1, it is characterised in that
The interconnecting device also includes:Memory, is arranged between the change-over circuit and the transmission circuit, for storing State the first data;
The change-over circuit, 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.
5. interconnecting device according to claim 1, it is characterised in that the change-over circuit, is 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, are obtained and the USB transmission descriptor information Corresponding URB data.
6. interconnecting device according to any one of claim 1 to 5, 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 communicated with the client device.
7. interconnecting device according to claim 6, it is characterised in that the controller, is 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.
8. a kind of telecommunication system, it is characterised in that including:
Host device;
Interconnecting device, interconnecting device of the interconnecting device any one of claim 1 to 7, also, the interconnecting device PCIe interface is interconnected by high-speed peripheral component to be connected with the host device;
Client device, for receiving the data that the host device is sent by the interconnecting device, and/or, by described Interconnecting device sends data to the host device.
9. telecommunication system according to claim 8, it is characterised in that
Multiple general-purpose serial bus USB interfaces are provided with the client device.
10. telecommunication system according to claim 8, it is characterised in that the system also includes:HUB equipment, with institute Host device connection is stated, for accessing at least one described client device.
11. a kind of data transmission method, it is characterised in that including:
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, the first data are obtained;
First data are sent to client device.
12. method according to claim 11, it is characterised in that methods described also includes:
Receive the second data that the client device is returned according to first data;And by second data by URB lattice Formula is converted to USB transmission descriptor information.
13. method according to claim 11, it is characterised in that the USB transmission descriptor information is converted into USB please Block URB forms are sought, including:
Mapping relations based on the USB transmission descriptor information Yu URB data, are obtained and the USB transmission descriptor information Corresponding URB data.
14. method according to claim 11, it is characterised in that methods described also includes:
Setting address instruction from the host device is received by the PCIe interface, and referred to according to the setting address Order determines the address communicated with the client device.
15. method according to claim 11, it is characterised in that methods described also includes:
In the enumeration process that the host device carries out USB device, return to existing USB device to the host device and believe Breath.
16. method according to claim 15, it is characterised in that methods described also includes:
Detect that the client device accesses the access state of 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 data transmission device, it is characterised in that including:
Read module, general-purpose serial bus USB is read for interconnecting PCIe interface by high-speed peripheral component from host device Transmit descriptor information;
Modular converter, for the USB transmission descriptor information to be converted into USB request block URB forms, obtains the first data;
Sending module, for first data to be sent to client device.
18. device according to claim 17, it is characterised in that
Receiving module, for receiving the second data that the client device is returned according to first data, and by described Two data are sent to the modular converter;
The modular converter, is additionally operable to second data being converted to USB transmission descriptor information by URB forms.
19. a kind of storage medium, it is characterised in that the storage medium includes the program of storage, wherein, in described program operation When control the storage medium where data transmission method in equipment perform claim requirement 11 to 16 described in any one.
20. a kind of 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 11 to 16.
CN201710486199.7A 2017-06-23 2017-06-23 Interconnecting device, telecommunication system, data transmission method and device Pending CN107168909A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710486199.7A CN107168909A (en) 2017-06-23 2017-06-23 Interconnecting device, telecommunication system, data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710486199.7A CN107168909A (en) 2017-06-23 2017-06-23 Interconnecting device, telecommunication system, data transmission method and device

Publications (1)

Publication Number Publication Date
CN107168909A true CN107168909A (en) 2017-09-15

Family

ID=59819202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710486199.7A Pending CN107168909A (en) 2017-06-23 2017-06-23 Interconnecting device, telecommunication system, data transmission method and device

Country Status (1)

Country Link
CN (1) CN107168909A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108132900A (en) * 2017-11-10 2018-06-08 西安万像电子科技有限公司 Interconnecting device, telecommunication system and data transmission method
CN112672091A (en) * 2020-12-18 2021-04-16 厦门亿联网络技术股份有限公司 Network-based video communication method, system, storage medium and UVC (ultraviolet video coding) equipment

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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108132900A (en) * 2017-11-10 2018-06-08 西安万像电子科技有限公司 Interconnecting device, telecommunication system and data transmission method
CN112672091A (en) * 2020-12-18 2021-04-16 厦门亿联网络技术股份有限公司 Network-based video communication method, system, storage medium and UVC (ultraviolet video coding) equipment
CN112672091B (en) * 2020-12-18 2023-05-09 厦门亿联网络技术股份有限公司 Network-based video communication method, system, storage medium and UVC (ultraviolet light control) equipment

Similar Documents

Publication Publication Date Title
CN101529401B (en) Method and apparatus for distributing USB hub functions across a network
US8407367B2 (en) Unified connector architecture
JP5917474B2 (en) System and routing method using integrated multi-transfer media connector
US6799220B1 (en) Tunneling management messages over a channel architecture network
US7458075B2 (en) Virtual USB port system and method
CN101242371B (en) Method, system and device router overlapping based on PCIe exchange architecture
CN102790777B (en) Network interface adapter register method and driving equipment, server
CN109710548A (en) A kind of DMA control data transmission method, system and equipment
WO2013136522A1 (en) Computer system and method for communicating data between computers
US5408609A (en) Computer architecture having elements distributed over and adaptable to a plurality of local area networks of various types, and a microprograms architecture therefore
CN114138700B (en) Flow control method, device, equipment and storage medium for serial port data transmission
CN101937406A (en) Method and system for driving 1394 devices in VxWorks operating system
CN102821082A (en) Data transmission method, device and system
CN109412922A (en) A kind of method of transmitting message, forwarding device, controller and system
CN107506324A (en) Interconnecting device, telecommunication system, data transmission method and device
KR101559089B1 (en) Communication protocol for sharing memory resources between components of a device
CN107168909A (en) Interconnecting device, telecommunication system, data transmission method and device
CN114124683A (en) Network card configuration method, device, electronic device and storage medium
CN112988633A (en) Electronic equipment and data transmission method
WO2001006385A1 (en) A communication system for general connection interface machines
CN207676336U (en) Interconnecting device, telecommunication system
CN204595794U (en) USB computer switcher signal extender and extender system
CN109168185A (en) A kind of network scanning method and device based on network namespace
CN108132900A (en) Interconnecting device, telecommunication system and data transmission method
CN107729281A (en) A kind of high-speed transfer implementation method based on RapidIO

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
TA01 Transfer of patent application right

Effective date of registration: 20171124

Address after: 710075 D102 room, building 4, Maple new city, F District, Xi'an hi tech Zone, Shaanxi

Applicant after: XI'AN WANXIANG ELECTRONIC TECHNOLOGY CO., LTD.

Address before: 710065 Room 501, building B, 8 cool Industrial Park, Tang Yan Nan Road, Xi'an, Shaanxi

Applicant before: Su Rui

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20170915

RJ01 Rejection of invention patent application after publication