WO2015158156A1 - Device for extending universal serial bus transmission distance - Google Patents

Device for extending universal serial bus transmission distance Download PDF

Info

Publication number
WO2015158156A1
WO2015158156A1 PCT/CN2015/000188 CN2015000188W WO2015158156A1 WO 2015158156 A1 WO2015158156 A1 WO 2015158156A1 CN 2015000188 W CN2015000188 W CN 2015000188W WO 2015158156 A1 WO2015158156 A1 WO 2015158156A1
Authority
WO
WIPO (PCT)
Prior art keywords
usb
unit
data
format
extension line
Prior art date
Application number
PCT/CN2015/000188
Other languages
French (fr)
Chinese (zh)
Inventor
丰斌
施鹏
梁科
王元龙
Original Assignee
天津瑞发科半导体技术有限公司
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 天津瑞发科半导体技术有限公司 filed Critical 天津瑞发科半导体技术有限公司
Publication of WO2015158156A1 publication Critical patent/WO2015158156A1/en

Links

Images

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/40Bus structure

Definitions

  • the invention relates to a device for extending the transmission distance of a universal serial bus, in particular to a technology for transmitting USB2.0 data over a long distance cable between a USB 2.0 host and a USB 2.0 device to increase the transmission distance of the USB 2.0.
  • USB Universal Serial Bus
  • USB interface has the characteristics of fast transmission speed, hot plugging, and simultaneous connection of multiple devices.
  • Many application peripherals can be connected to a personal computer via USB using the same standard, including USB hard drive, USB optical drive, USB mouse, USB keyboard, USB printer, USB sound card, USB network card, USB camera, USB video capture device, USB ether.
  • Network adapters, etc. the prior art USB interface includes USB1.1, USB2.0 and USB3.0/USB3.1 which have appeared in recent years. In theory, the transmission speed of USB1.1 can reach 12 megabits per second, while USB2.
  • USB2.0 can reach speed 480 megabits per second, and can be backward compatible with USB1.1; among the three USB interfaces, USB2.0 is currently the most widely used, and the transmitting device and receiving device are respectively compliant with the USB2.0 protocol.
  • USB2.0 host and USB2.0 device, the sending device and the receiving device are connected by USB2.0 cable.
  • USB2.0 cable When the USB2.0 signal is transmitted through the USB2.0 cable, there is signal attenuation, USB2.0 cable
  • the maximum length is only 5 meters.
  • the USB2.0 hub connection can be used between the sending device and the receiving device, only the level 5 hub can be used at most, so the limitation of the use distance largely restricts the application of USB2.0.
  • the technical problem to be solved by the present invention is that, by means of data format conversion, the data of the USB2.0 format that needs to be transmitted is converted into a format suitable for transmission on a long-distance cable at the transmitting end, and the inverse conversion processing is performed at the receiving end. Restore the data into USB2.0 format, so as to achieve the purpose of extended distance transmission.
  • the technical solution adopted by the present invention is: as an apparatus for extending the transmission distance of a universal serial bus of the present invention, the apparatus for extending the transmission distance of the universal serial bus includes a transmitting end device, a receiving end device, and a line.
  • the cable is connected to the transmitting device, the receiving device is connected to the receiving device, and the transmitting device is connected to the receiving device through a cable.
  • the transmitting device and the receiving device respectively comprise a USB receiving processing unit and a USB transmitting and processing unit.
  • the cable is formed long distance, the cable can be different media, different models and specifications of cable, including coaxial cable, double If a twisted pair cable is used as the cable, it is only necessary to selectively use one channel and two channels on several cores of the twisted pair to transmit the corresponding data without more core transmission.
  • Other auxiliary nature signals simplify the implementation of the invention and save on cable costs to some extent.
  • In the number of channels only one channel can be used for communication, or two channels can be used for communication at the same time. When only one channel is used for communication, the signal rate on the channel is twice the signal rate when communicating with two channels.
  • the apparatus for extending the transmission distance of the universal serial bus includes a transmitting end device, a receiving end device and a cable, and the transmitting device is connected to the transmitting end device, and the receiving device is connected.
  • the receiving end device, the transmitting end device is connected to the receiving end device through a cable, and the transmitting end device and the receiving end device respectively comprise a USB receiving processing unit and a USB sending processing unit, and the USB receiving processing unit internally comprises a USB format unpacking unit and management a packet generation unit and a channel division unit; wherein the USB format unpacking unit receives the transmission data packet in the USB format from the transmitting device, and unpacks the data according to the USB data format, and obtains the USB valid data and sends the data to the channel division unit;
  • the packet generation unit is configured to generate management packet valid data to be sent, and the management packet is a data packet different from the USB format data packet, and is used for exchanging respective state information between the transmitting device and the receiving device, and establishing a link in the USB.
  • the management packet transmission is required to handle various abnormal situations, and the management package generation sheet is used.
  • the method of data splitting varies according to the number of channels used. If only one channel is used, the transmitted data will be directly transmitted. Delivered to this channel for transmission. If two channels are used at the same time, the selected transmission data needs to be equally distributed to the two channels and then sent separately.
  • the USB transmission processing unit internally includes a USB format packing unit, a management packet parsing unit, The channel merging unit; wherein the processing of the channel merging unit is different according to the number of channels used, if only one channel is used, the channel merging unit only needs to analyze the data type of the data received on the channel, if the data type is USB data, Then, the received data is sent to the USB format packing unit. If the data type is management packet data, the received data is sent to the management packet parsing unit; if two channels are used at the same time, the channel merging unit needs to firstly use the two channels. The received data is combined into one received data, and then the data type of the combined received data is analyzed.
  • the combined received data is sent to the USB format packing unit, if the data type is management packet data. , then merge this The received data is sent to the management packet parsing unit, and the USB format packing unit receives the USB data from the channel merging unit, and adds a new prefix code and a new suffix code to the USB data according to the USB data format, thereby generating a USB format data packet and transmitting it to the USB.
  • the interface unit, the management packet parsing unit receives the management packet data from the channel merging unit, analyzes the content of the management packet data, and performs corresponding operations, including: power consumption control, state machine reset, and re-operation of the circuit of the device Perform USB2.0 link process, control USB2.0 pull-up or pull-down resistor on/off, notify management packet generation unit to generate management packet to respond, etc.
  • Management in management packet generation unit and USB reception processing unit in USB transmission processing unit The combination of the packet parsing unit makes the hard-to-transfer USB 2.0 format an easy-to-transfer format, turning slow transmission into fast transmission.
  • the apparatus for extending the transmission distance of the universal serial bus includes a transmitting end device, a receiving end device and a cable, and the transmitting device is connected to the transmitting end device, and the receiving device is connected.
  • the receiving end device is connected to the receiving end device by a cable, and the transmitting end device and the receiving end device respectively comprise a USB receiving processing unit and a USB sending processing unit, and the USB receiving processing unit internally comprises a USB format unpacking unit and a channel.
  • the USB format unpacking unit receives the pre-depacked data packet from the USB device of the transmitting device, and unpacks the pre-disassembled data packet according to the USB data format to obtain USB valid data and sends the data to the channel dividing unit; channel division
  • the unit receives the USB valid data from the USB format unpacking unit, and performs data splitting on the USB valid data.
  • the data splitting method varies according to the number of channels used. If only one channel is used, the USB is directly valid. Data is passed to this channel for transmission, If two channels are used at the same time, the USB valid data needs to be evenly distributed to the two channels and then separately sent.
  • the USB transmission processing unit internally includes a USB format packing unit and a channel combining unit; wherein the channel combining unit is processed according to the channel used. The number is different. If only one channel is used, the channel merging unit only needs to send the received data on this channel to the USB format packing unit. If two channels are used at the same time, the channel merging unit needs to receive the two channels first. The data is combined into one received data, and then the combined received data is sent to the USB format packing unit, and the USB format packing unit receives the USB data from the channel combining unit, and adds a prefix code and a suffix code to the USB data according to the USB data format. , thereby generating a transmission packet in a USB format and transmitting it to the USB interface unit.
  • the device for extending the transmission distance of the universal serial bus of the invention converts the data packet of the USB2.0 format by a device for extending the transmission distance of the USB2.0, so that the converted signal is suitable for transmission on the cable of an ultra long distance. It greatly increases the limit distance of USB2.0 transmission; at the same time, the device supports different channels of two channels and two channels for transmission, which increases the applicable range.
  • FIG. 1 is a block diagram of an overall device for extending a universal serial bus transmission distance according to the present invention
  • FIG. 2 is a diagram showing an external connection signal of a USB receiving processing unit in an apparatus for extending a universal serial bus transmission distance according to the present invention, and an internal functional block diagram thereof.
  • FIG. 3 is a diagram showing an external connection signal of a USB transmission processing unit in an apparatus for extending a universal serial bus transmission distance according to the present invention, and an internal functional block diagram thereof.
  • FIG. 4 is a diagram showing an external connection signal of a USB interface unit in a device for extending a universal serial bus transmission distance according to the present invention
  • FIG. 6 is a diagram showing an external connection signal of an extension line receiving processing unit in an apparatus for extending a universal serial bus transmission distance according to the present invention, and an internal functional block diagram thereof;
  • FIG. 7 is a diagram showing an external connection signal of an extension line interface unit in an apparatus for extending a universal serial bus transmission distance according to the present invention
  • the transmitting device 1 is a USB 2.0 host, and is connected to the transmitting device 3 of the present invention through a USB 2.0 cable
  • the receiving device 2 is a USB 2.0 device, and the receiving end of the present invention.
  • the devices 4 are connected by a USB 2.0 cable, and the transmitting end device 3 and the receiving end device 4 are connected to each other by a cable 5; the cable 5 is formed over a long distance, wherein the transmitting end device 3 and the receiving end device 4 are both USB receiving processing list
  • the element 1000, the USB transmission processing unit 2000, the USB interface unit 3000, the extension line transmission processing unit 4000, the extension line interface unit 6000, and the extension line reception processing unit 5000 are provided with the transmitting end device 3 and the receiving end respectively on the two ends of the cable 5 of the present invention.
  • the transmitting device 3 and the receiving device 4 have the same structure and can be used interchangeably. Meanwhile, the transmitting device 3 and the receiving device 4 respectively have a transmitting and receiving function, and the present invention can realize bidirectional transmission, and USB2.0.
  • the transmitting device 1 matches the bidirectional transmission function of the receiving device 2.
  • the USB receiving processing unit 1000 of the present invention internally includes a USB format unpacking unit 1100, a management packet generating unit 1200, and a channel dividing unit 1300.
  • the USB transmitting processing unit 2000 internally includes a USB format packing unit 2100, a management packet parsing unit 2200, and a channel merging unit 2300.
  • the extension line transmission processing unit 4000 internally includes an extension line format packing unit 4100 and an extension line transmission encoding unit 4200.
  • the extension line receiving processing unit 5000 internally includes an extension line receiving decoding unit 5100 and an extension line format unpacking unit 5200.
  • the cable 5 can be a cable of different media, different types and specifications, including a coaxial cable, a twisted pair cable, etc.
  • the cable 5 is a twisted pair cable
  • only the wire cores of the twisted pair cable are needed.
  • the data corresponding to each channel and the two channels are transmitted, and the prior art requires more cores to transmit signals of other auxiliary properties.
  • the invention simplifies the specific technical structure to some extent and saves the cable cost.
  • the signal rate on the channel is twice the signal rate when communicating with two channels;
  • the channel dividing unit 1300 inside the USB receiving processing unit 1000 allocates all the transmitted data to the channel, and only needs to use the extension line corresponding to the channel to send the processing unit 4000.
  • each channel requires its own extension line to receive the processing unit 5000, while each Channel needs an extension line interface unit 6000 each, and also needs to be sent inside the processing unit 2000 channels merge unit 2300 merging the two channels of data for the same data path via USB.
  • the USB format unpacking unit 1100 inside the USB receiving processing unit 1000 receives the pre-depacked data packet 1001 from the USB interface unit 3000.
  • the data packet 1001 is a USB2.0 format data packet.
  • the pre-demolition data packet 1001 includes a USB prefix code 1003, a USB valid data 1110, and a USB suffix code 1004.
  • the function of the USB format unpacking unit 1100 is to be removed.
  • the USB prefix code 1003 and the USB suffix code 1004 in the pre-packet 1001 are removed, leaving only the USB valid data 1110.
  • the USB format unpacking unit 1100 transmits this USB valid data 1110 to the channel dividing unit 1300.
  • the management packet generation unit 1200 generates transmission management packet valid data 1210 that is transmitted to the channel division unit 1300.
  • a management pack is also transmitted.
  • the low-speed level signal is carried out, whether the low-speed level signal exists and the length of the existence time is the handshake content, and then the management packet is needed to transmit the handshake content to the other end of the long-distance cable 5, so as to The low-level level signal is regenerated on the USB interface at the other end to implement the handshake process.
  • the management package is also used to handle various abnormal conditions to ensure the status of the transmitting device 3 and the receiving device 4 at both ends of the cable 5.
  • the channel dividing unit 1300 receives the USB valid data 1110 from the USB format unpacking unit 1100 and the management packet valid data 1210 from the management packet generating unit 1200, and selects the selected ones as needed, and generates the selected transmitted data.
  • the channel dividing unit 1300 generates transmission data 1002 that is transmitted to the extension line transmission processing unit 4000.
  • the channel merging unit 2300 inside the USB transmission processing unit 2000 receives the received data 2310 from the extension line receiving processing unit 5000; if only one channel is used, there is only one extension line receiving processing unit 5000, and no pair is required.
  • the channel merging unit 2300 analyzes the data type of the combined received data, that is, whether the received data is USB data or management packet data; if the type of the received data is USB data, the receiving is sent to the USB 2.0 format packing unit 2100. Data 2310; if the type of the received data is management packet data, the management packet reception data 2320 transmitted to the management packet parsing unit 2200 is generated.
  • the channel dividing unit 1300 is used in combination with the channel combining unit 2300, so that one channel or two channels of the cable 5 can be selected for long-distance transmission, which enhances the applicable range of the device.
  • the USB 2.0 format packing unit 2100 receives the received data 2310 from the channel combining unit 2300, adds a USB prefix code 2002, a USB suffix code 2003, and generates a generated data packet 2001 of the USB 2.0 format transmitted to the USB interface unit 3000.
  • the management packet parsing unit 2200 receives the management packet receiving data 2320 from the channel merging unit 2300, analyzes the management packet receiving data 2320, and performs corresponding operations.
  • the specific operation content can be customized according to requirements, and the operations include: performing circuit on the device The power consumption control, the state machine reset, the USB 2.0 link process is re-executed, the ON/OFF of the USB 2.0 pull-up or pull-down resistor is controlled, the notification management packet generation unit 1200 generates a management packet to respond, and the like.
  • the management pack generation unit 1200 and the management pack parsing unit 2200 are used in combination, so that the USB 2.0 format that is not easily transmitted over long distances becomes a format that is easy to transmit over long distances, and slow transmission becomes a fast transmission.
  • both the transmitting device 1 and the receiving device 2 can send the terminal USB data packet 3001 in the USB2.0 format to the adjacent USB interface unit 3000.
  • the interface unit 3000 receives the terminal USB data packet 3001 in the USB2.0 format, and generates the USB2.0 format pre-demolition data packet 1001 sent to the USB format unpacking unit 1100; meanwhile, the USB interface unit 3000 receives the package from the USB2.0 format.
  • the data packet 2001 is generated in the USB 2.0 format of the unit 2100, and a terminal USB data packet 3001 of the USB 2.0 format transmitted to the transmitting device 1 and the receiving device 2 is generated.
  • the terminal USB data packet 3001 of the USB2.0 format is bidirectional data transmitted on the USB2.0 cable, because the USB2.0 transmission adopts a half-duplex working mode.
  • the receiving device 2 can also send the terminal USB data packet 3001 in the USB2.0 format to the USB interface unit 3000 of the receiving device 4, and transmit it to the transmitting device 3 through the cable 5. Thereby, the receiving device 2 is realized to transmit information to the transmitting device 1, and this process is completely reversible.
  • the extension line transmission processing unit 4000 internally includes an extension line format packing unit 4100 and an extension line transmission encoding unit 4200; the extension line format packing unit 4100 receives transmission data from the channel dividing unit 1300 inside the USB reception processing unit 1000.
  • the extension line format is packaged, and the specific content is as shown in FIG. 5, and an extension line prefix code 4002, an extension line synchronization code 4003, an extension line check code 4004, and an extension line suffix code 4005 are added to the transmission data 1002, thereby
  • the packaged transmission data packet 4110 is obtained, wherein the added extension line prefix code 4002, the extension line synchronization code 4003, the extension line check code 4004, and the extension line suffix code 4005 can be configured as needed, for the source of the transmitted data 1002.
  • the USB valid data 1110 is also the management packet valid data 1210, which can also be configured to be different values; then, the extension line transmission encoding unit 4200 encodes the packetized transmission data packet 4110, and the encoding is performed to be sent to the cable.
  • the code stream on 5 satisfies the characteristics of DC balance, and the available codes include 4B5B, 8B10B, 128B132B, and the like.
  • the extension line transmission coding unit 4200 generates an encoded transmission packet 4001 that is transmitted to the extension line interface unit 6000. For each channel used, there is a separate extension line transmission processing unit 4000 at the transmitting end, that is, if two channels are used at the same time, it is necessary to simultaneously use the corresponding two extension lines to transmit the processing unit 4000.
  • the extension line interface unit 6000 receives the extension line data packet 6001 from the cable 5 and generates the extension line reception data 5001 transmitted to the extension line reception processing unit 5000; meanwhile, the extension line interface unit 6000 receives the extension from The encoded transmission packet 4001 of the line transmission processing unit 4000 generates an extension line packet 6001 that is transmitted to the cable 5. It can be seen that the extension line data packet 6001 is bidirectional data transmitted on the cable 5, because in order to match the USB data transmission, the extension line transmission also adopts a half-duplex working mode.
  • the extension line receiving processing unit 5000 internally includes an extension line receiving decoding unit 5100 and an extension line format unpacking unit 5200.
  • the extension line reception decoding unit 5100 receives the reception data 5001 from the extension line interface unit 6000; corresponds to the inverse process of the extension line transmission coding unit 4200 inside the extension line transmission processing unit 4000, and the extension line reception decoding unit 5100 performs DC on the reception data 5001. Balance code decoding, get solution
  • the received data packet 5110 after the code includes DCB balance patterns for decoding including 4B5B, 8B10B, 128B132B, and the like.
  • the extension line format unpacking unit 5200 performs unpacking of the decoded received data packet 5110 in an extended line format, that is, removes the received data packet 5110.
  • the extension line solution prefix code 51p2, the extension line de-synchronization code 5103, the extension line de-check code 5104, the extension line solution suffix code 5105, etc., are generated after the unpacking is sent to the channel merging unit 2300 inside the USB transmission processing unit 2000.
  • the device for extending the transmission distance of the universal serial bus of the invention converts the data packet of the USB2.0 format by a device for extending the transmission distance of the USB2.0, so that the converted signal is suitable for transmission on the cable, and is multiplied.
  • the transmission distance of USB2.0 at the same time, the device supports transmission in one channel and two channels in different specifications of cables, which increases the applicable range.
  • the device for extending the universal serial bus transmission distance takes the USB2.0 as an example, and can of course be backward compatible with USB1.1, and can be successfully applied to USB3.0 and USB3.1 through simple circuit replacement and parameter adjustment.
  • the present invention fully meets the needs of industrial development in terms of structural design, practicality and cost-effectiveness, and the disclosed structure is also an unprecedented innovative structure, novel, creative, practical, and relevant.

Abstract

Provided is a device for extending the universal serial bus transmission distance. The device comprises a transmitting end device (3), a receiving end device (4) and a cable (5). The transmitting end device (3) and the receiving end device (4) each comprise a USB reception processing unit (1000), a USB transmission processing unit (2000), a USB interface unit (3000), an extension cable transmission processing unit (4000), an extension cable interface unit (6000) and an extension cable reception processing unit (5000). The cable is formed in a long-distance mode. A management package of the device transmits status information between the transmitting end device (3) and the receiving end device (4). One or two channels are selected for communication in the device. In the device, by means of data format conversion, USB-format data that needs to be transmitted is converted into a format suitable for transmission in the long-distance cable at the transmitting end, and the USB-format data is recovered through inverse conversion at the receiving end, so that the transmission distance is extended.

Description

延长通用串行总线传输距离的装置Device for extending the transmission distance of a universal serial bus 技术领域Technical field
本发明涉及一种延长通用串行总线传输距离的装置,特别涉及到在USB2.0主机和USB2.0设备之间采用长距离线缆传输USB2.0数据以增加USB2.0传输距离的技术。The invention relates to a device for extending the transmission distance of a universal serial bus, in particular to a technology for transmitting USB2.0 data over a long distance cable between a USB 2.0 host and a USB 2.0 device to increase the transmission distance of the USB 2.0.
背景技术Background technique
通用串行总线的英文为Universal Serial Bus,缩写为USB,它是在PC领域广为应用的接口技术,USB接口具有传输速度快、支持热插拔、同时连接多个设备的特点,越来越多的应用外设通过USB都可以用同样的标准与个人电脑连接,包括USB硬盘、USB光驱、USB鼠标、USB键盘、USB打印机、USB声卡、USB网卡、USB摄像头、USB视频采集器、USB以太网适配器等,已有技术的USB接口包括USB1.1、USB2.0以及近年来出现的USB3.0/USB3.1,理论上USB1.1的传输速度可以达到12兆位每秒,而USB2.0则可以达到速度480兆位每秒,并且可以向下兼容USB1.1;在三种USB接口之中,USB2.0目前应用最为广泛,发送设备和接收设备分别是符合USB2.0协议规定的USB2.0主机和USB2.0设备,发送设备和接收设备之间通过USB2.0线缆连接,在通过USB2.0线缆传输USB2.0信号时,由于存在着信号衰减,USB2.0线缆的最大长度只有5米,同时,虽然发送设备和接收设备之间可以采用USB2.0集线器连接,但是最多也只能采用5级集线器,所以使用距离的限制较大程度上制约了USB2.0的应用。The universal serial bus English is Universal Serial Bus, abbreviated as USB. It is an interface technology widely used in the PC field. The USB interface has the characteristics of fast transmission speed, hot plugging, and simultaneous connection of multiple devices. Many application peripherals can be connected to a personal computer via USB using the same standard, including USB hard drive, USB optical drive, USB mouse, USB keyboard, USB printer, USB sound card, USB network card, USB camera, USB video capture device, USB ether. Network adapters, etc., the prior art USB interface includes USB1.1, USB2.0 and USB3.0/USB3.1 which have appeared in recent years. In theory, the transmission speed of USB1.1 can reach 12 megabits per second, while USB2. 0 can reach speed 480 megabits per second, and can be backward compatible with USB1.1; among the three USB interfaces, USB2.0 is currently the most widely used, and the transmitting device and receiving device are respectively compliant with the USB2.0 protocol. USB2.0 host and USB2.0 device, the sending device and the receiving device are connected by USB2.0 cable. When the USB2.0 signal is transmitted through the USB2.0 cable, there is signal attenuation, USB2.0 cable The maximum length is only 5 meters. At the same time, although the USB2.0 hub connection can be used between the sending device and the receiving device, only the level 5 hub can be used at most, so the limitation of the use distance largely restricts the application of USB2.0.
发明内容Summary of the invention
本发明所要解决的技术问题是,通过数据格式转换的方式,在发送端将需要传输的USB2.0格式的数据转换为适合在长距离线缆上传输的格式,在接收端再通过反转换处理恢复成为USB2.0格式的数据,从而达到延长距离传输的目的。 The technical problem to be solved by the present invention is that, by means of data format conversion, the data of the USB2.0 format that needs to be transmitted is converted into a format suitable for transmission on a long-distance cable at the transmitting end, and the inverse conversion processing is performed at the receiving end. Restore the data into USB2.0 format, so as to achieve the purpose of extended distance transmission.
为了解决上述技术问题,本发明采用的技术方案是:作为本发明的一种延长通用串行总线传输距离的装置,该延长通用串行总线传输距离的装置包括发送端装置、接收端装置和线缆,发送设备连接着发送端装置,接收设备连接着接收端装置,发送端装置通过线缆与接收端装置相互连接,发送端装置与接收端装置都分别包括USB接收处理单元、USB发送处理单元、USB接口单元、延长线发送处理单元、延长线接口单元、延长线接收处理单元,线缆长距离地形成,线缆可以是不同介质、不同型号和规格的线缆,包括同轴电缆、双绞线等,如果采用双绞线作为线缆,只需要在此双绞线的若干线芯上选择性地使用一个通道和两个通道,传输所对应的数据,而无需更多的线芯传输其它辅助性质的信号,一定程度上简化了本发明的具体应用实施并节省了线缆成本。在通道数目上,可以只采用一个通道进行通信,也可以同时采用两个通道进行通信,当只采用一个通道进行通信时,通道上的信号速率是采用两个通道通信时信号速率的两倍。In order to solve the above technical problem, the technical solution adopted by the present invention is: as an apparatus for extending the transmission distance of a universal serial bus of the present invention, the apparatus for extending the transmission distance of the universal serial bus includes a transmitting end device, a receiving end device, and a line. The cable is connected to the transmitting device, the receiving device is connected to the receiving device, and the transmitting device is connected to the receiving device through a cable. The transmitting device and the receiving device respectively comprise a USB receiving processing unit and a USB transmitting and processing unit. , USB interface unit, extension line transmission processing unit, extension line interface unit, extension line receiving and processing unit, the cable is formed long distance, the cable can be different media, different models and specifications of cable, including coaxial cable, double If a twisted pair cable is used as the cable, it is only necessary to selectively use one channel and two channels on several cores of the twisted pair to transmit the corresponding data without more core transmission. Other auxiliary nature signals simplify the implementation of the invention and save on cable costs to some extent. In the number of channels, only one channel can be used for communication, or two channels can be used for communication at the same time. When only one channel is used for communication, the signal rate on the channel is twice the signal rate when communicating with two channels.
作为本发明的另一种延长通用串行总线传输距离的装置,该延长通用串行总线传输距离的装置包括发送端装置、接收端装置和线缆,发送设备连接着发送端装置,接收设备连接着接收端装置,发送端装置通过线缆连接着接收端装置,发送端装置与接收端装置都分别包括USB接收处理单元和USB发送处理单元,USB接收处理单元内部包括USB格式拆包单元、管理包生成单元、通道划分单元;其中USB格式拆包单元接收来自发送设备的USB格式的发送数据包,并根据USB数据格式对此数据进行拆包,得到USB有效数据并发送到通道划分单元;管理包生成单元用来产生需要发送的管理包有效数据,管理包是区别于USB格式数据包的数据包,它用来在发送端装置和接收端装置之间交换各自的状态信息,在USB建立链接和处理各种异常情况时需要用到管理包的传输,管理包生成单元产生管理包有效数据并发送到通道划分单元;通道划分单元接收来自USB格式拆包单元的USB有效数据和来自管理包生成单元的管理包有效数据,进行二择一选择且对选择后的发送数据进行数据拆分,数据拆分的方式根据所使用的通道数目不同而不同,如果只采用一个通道,那么直接将选择后的发送数据传 递到此通道进行发送,如果同时采用两个通道,那么需要将选择后的发送数据平均分配到这两个通道再分别进行发送,USB发送处理单元内部包括USB格式打包单元、管理包解析单元、通道合并单元;其中通道合并单元的处理根据所使用通道数目的不同而不同,如果只使用一个通道,那么通道合并单元只需要对此通道上接收数据的数据类型进行分析,如果数据类型USB数据,那么将此接收数据发送到USB格式打包单元,如果数据类型是管理包数据,那么将此接收数据发送到管理包解析单元;如果同时使用两个通道,那么通道合并单元需要首先将两个通道的接收数据合并为一个接收数据,然后再此合并后的接收数据的数据类型进行分析,如果数据类型USB数据,那么将此合并后的接收数据发送到USB格式打包单元,如果数据类型是管理包数据,那么将此合并后的接收数据发送到管理包解析单元,USB格式打包单元接收来自通道合并单元的USB数据,根据USB数据格式为此USB数据添加新前缀码和新后缀码,从而产生USB格式的数据包并发送到USB接口单元,管理包解析单元接收来自通道合并单元的管理包数据,对此管理包数据的内容进行分析并进行相应的操作,这些操作包括:对本装置的电路进行功耗控制、状态机复位、重新进行USB2.0链接过程、控制USB2.0上拉或下拉电阻的通断、通知管理包生成单元产生管理包进行响应等,USB发送处理单元中的管理包生成单元和USB接收处理单元中的管理包解析单元结合使用,使得不易传输的USB2.0格式变成了易传输的格式,将缓慢传输变成了快速传输。As another apparatus for extending the universal serial bus transmission distance of the present invention, the apparatus for extending the transmission distance of the universal serial bus includes a transmitting end device, a receiving end device and a cable, and the transmitting device is connected to the transmitting end device, and the receiving device is connected. The receiving end device, the transmitting end device is connected to the receiving end device through a cable, and the transmitting end device and the receiving end device respectively comprise a USB receiving processing unit and a USB sending processing unit, and the USB receiving processing unit internally comprises a USB format unpacking unit and management a packet generation unit and a channel division unit; wherein the USB format unpacking unit receives the transmission data packet in the USB format from the transmitting device, and unpacks the data according to the USB data format, and obtains the USB valid data and sends the data to the channel division unit; The packet generation unit is configured to generate management packet valid data to be sent, and the management packet is a data packet different from the USB format data packet, and is used for exchanging respective state information between the transmitting device and the receiving device, and establishing a link in the USB. And the management packet transmission is required to handle various abnormal situations, and the management package generation sheet is used. Generating management packet valid data and transmitting it to the channel dividing unit; the channel dividing unit receives the USB valid data from the USB format unpacking unit and the management packet valid data from the management packet generating unit, and performs the second selection and the selected transmission data. For data splitting, the method of data splitting varies according to the number of channels used. If only one channel is used, the transmitted data will be directly transmitted. Delivered to this channel for transmission. If two channels are used at the same time, the selected transmission data needs to be equally distributed to the two channels and then sent separately. The USB transmission processing unit internally includes a USB format packing unit, a management packet parsing unit, The channel merging unit; wherein the processing of the channel merging unit is different according to the number of channels used, if only one channel is used, the channel merging unit only needs to analyze the data type of the data received on the channel, if the data type is USB data, Then, the received data is sent to the USB format packing unit. If the data type is management packet data, the received data is sent to the management packet parsing unit; if two channels are used at the same time, the channel merging unit needs to firstly use the two channels. The received data is combined into one received data, and then the data type of the combined received data is analyzed. If the data type is USB data, the combined received data is sent to the USB format packing unit, if the data type is management packet data. , then merge this The received data is sent to the management packet parsing unit, and the USB format packing unit receives the USB data from the channel merging unit, and adds a new prefix code and a new suffix code to the USB data according to the USB data format, thereby generating a USB format data packet and transmitting it to the USB. The interface unit, the management packet parsing unit receives the management packet data from the channel merging unit, analyzes the content of the management packet data, and performs corresponding operations, including: power consumption control, state machine reset, and re-operation of the circuit of the device Perform USB2.0 link process, control USB2.0 pull-up or pull-down resistor on/off, notify management packet generation unit to generate management packet to respond, etc. Management in management packet generation unit and USB reception processing unit in USB transmission processing unit The combination of the packet parsing unit makes the hard-to-transfer USB 2.0 format an easy-to-transfer format, turning slow transmission into fast transmission.
作为本发明的再一种延长通用串行总线传输距离的装置,该延长通用串行总线传输距离的装置包括发送端装置、接收端装置和线缆,发送设备连接着发送端装置,接收设备连接着接收端装置,发送端装置通过线缆连接着接收端装置,发送端装置与接收端装置都分别包括USB接收处理单元和USB发送处理单元,USB接收处理单元内部包括USB格式拆包单元、通道划分单元;其中USB格式拆包单元接收来自发送设备的USB格式的拆前数据包,并根据USB数据格式对此拆前数据包进行拆包,得到USB有效数据并发送到通道划分单元;通道划分单元接收来自USB格式拆包单元的USB有效数据,并对此USB有效数据进行数据拆分,数据拆分的方式根据所使用的通道数目不同而不同,如果只采用一个通道,那么直接将USB有效数据传递到此通道进行发送, 如果同时采用两个通道,那么需要将USB有效数据平均分配到这两个通道再分别进行发送,USB发送处理单元内部包括USB格式打包单元、通道合并单元;其中通道合并单元的处理根据所使用通道数目的不同而不同,如果只使用一个通道,那么通道合并单元只需要将此通道上接收数据发送到USB格式打包单元;如果同时使用两个通道,那么通道合并单元需要首先将两个通道的接收数据合并为一个接收数据,然后再将此合并后的接收数据发送到USB格式打包单元,USB格式打包单元接收来自通道合并单元的USB数据,根据USB数据格式为此USB数据添加前缀码和后缀码,从而产生USB格式的发送数据包并发送到USB接口单元。As another apparatus for extending the universal serial bus transmission distance of the present invention, the apparatus for extending the transmission distance of the universal serial bus includes a transmitting end device, a receiving end device and a cable, and the transmitting device is connected to the transmitting end device, and the receiving device is connected. The receiving end device is connected to the receiving end device by a cable, and the transmitting end device and the receiving end device respectively comprise a USB receiving processing unit and a USB sending processing unit, and the USB receiving processing unit internally comprises a USB format unpacking unit and a channel. a dividing unit; wherein the USB format unpacking unit receives the pre-depacked data packet from the USB device of the transmitting device, and unpacks the pre-disassembled data packet according to the USB data format to obtain USB valid data and sends the data to the channel dividing unit; channel division The unit receives the USB valid data from the USB format unpacking unit, and performs data splitting on the USB valid data. The data splitting method varies according to the number of channels used. If only one channel is used, the USB is directly valid. Data is passed to this channel for transmission, If two channels are used at the same time, the USB valid data needs to be evenly distributed to the two channels and then separately sent. The USB transmission processing unit internally includes a USB format packing unit and a channel combining unit; wherein the channel combining unit is processed according to the channel used. The number is different. If only one channel is used, the channel merging unit only needs to send the received data on this channel to the USB format packing unit. If two channels are used at the same time, the channel merging unit needs to receive the two channels first. The data is combined into one received data, and then the combined received data is sent to the USB format packing unit, and the USB format packing unit receives the USB data from the channel combining unit, and adds a prefix code and a suffix code to the USB data according to the USB data format. , thereby generating a transmission packet in a USB format and transmitting it to the USB interface unit.
本发明的有益效果是:The beneficial effects of the invention are:
本发明延长通用串行总线传输距离的装置通过一种延长USB2.0传输距离的装置对USB2.0格式的数据包进行信号转换,使转换后的信号适合在超长距离的线缆上传输,很大程度上增加了USB2.0传输的极限距离;同时本装置支持在多种规格线缆上选择一个通道和两个通道的不同方式进行传输,增大了适用范围。The device for extending the transmission distance of the universal serial bus of the invention converts the data packet of the USB2.0 format by a device for extending the transmission distance of the USB2.0, so that the converted signal is suitable for transmission on the cable of an ultra long distance. It greatly increases the limit distance of USB2.0 transmission; at the same time, the device supports different channels of two channels and two channels for transmission, which increases the applicable range.
附图说明DRAWINGS
下面结合附图和实施例对本发明进一步说明:The present invention is further described below in conjunction with the accompanying drawings and embodiments:
图1是本发明延长通用串行总线传输距离的装置整体模块图1 is a block diagram of an overall device for extending a universal serial bus transmission distance according to the present invention;
图2是本发明延长通用串行总线传输距离的装置中USB接收处理单元的外部连接信号图及其内部功能模块图2 is a diagram showing an external connection signal of a USB receiving processing unit in an apparatus for extending a universal serial bus transmission distance according to the present invention, and an internal functional block diagram thereof.
图3是本发明延长通用串行总线传输距离的装置中USB发送处理单元的外部连接信号图及其内部功能模块图3 is a diagram showing an external connection signal of a USB transmission processing unit in an apparatus for extending a universal serial bus transmission distance according to the present invention, and an internal functional block diagram thereof.
图4是本发明延长通用串行总线传输距离的装置中USB接口单元的外部连接信号图4 is a diagram showing an external connection signal of a USB interface unit in a device for extending a universal serial bus transmission distance according to the present invention;
图5是本发明延长通用串行总线传输距离的装置中延长线发送处理单元的外部 连接信号图及其内部功能模块图5 is an external view of an extension line transmission processing unit in an apparatus for extending a universal serial bus transmission distance according to the present invention; Connection signal diagram and its internal function block diagram
图6是本发明延长通用串行总线传输距离的装置中延长线接收处理单元的外部连接信号图及其内部功能模块图6 is a diagram showing an external connection signal of an extension line receiving processing unit in an apparatus for extending a universal serial bus transmission distance according to the present invention, and an internal functional block diagram thereof;
图7是本发明延长通用串行总线传输距离的装置中延长线接口单元的外部连接信号图7 is a diagram showing an external connection signal of an extension line interface unit in an apparatus for extending a universal serial bus transmission distance according to the present invention;
其中:among them:
1        发送设备                    2          接收设备1 sending device 2 receiving device
3        发送端装置                  4          接收端装置3 transmitting device 4 receiving device
5        线缆                        1000     USB接收处理单元5 cable 1000 USB receiving and processing unit
2000     USB发送处理单元             3000     USB接口单元2000 USB Transmitter Processing Unit 3000 USB Interface Unit
4000     延长线发送处理单元          6000     延长线接口单元4000 extension cable transmission processing unit 6000 extension cable interface unit
5000     延长线接收处理单元          1100     USB格式拆包单元5000 extension line receiving and processing unit 1100 USB format unpacking unit
1200     管理包生成单元              1300     通道划分单元1200 Management Pack Generation Unit 1300 Channel Division Unit
2100     USB格式打包单元             2200     管理包解析单元2100 USB format packing unit 2200 management pack parsing unit
2300     通道合并单元                4100     延长线格式打包单元2300 channel merge unit 4100 extension line format packing unit
4200     延长线发送编码单元          5100     延长线接收解码单元4200 extension line transmission coding unit 5100 extension line reception decoding unit
5200     延长线格式拆包单元5200 extension cord format unpacking unit
具体实施方式detailed description
下面,结合附图中的实施例对本发明延长通用串行总线传输距离的装置及其控制方法进行进一步说明。Hereinafter, the apparatus for extending the universal serial bus transmission distance and the control method thereof according to the embodiment in the accompanying drawings will be further described.
如图1所示,发送设备1为一个USB2.0主机,与本发明的发送端装置3之间通过USB2.0线缆连接,接收设备2为一个USB2.0设备,与本发明的接收端装置4之间通过USB2.0线缆连接,该发送端装置3与接收端装置4之间通过线缆5互相连接;线缆5长距离地形成,其中发送端装置3与接收端装置4都分别包括USB接收处理单 元1000、USB发送处理单元2000、USB接口单元3000、延长线发送处理单元4000、延长线接口单元6000和延长线接收处理单元5000,本发明线缆5两端分别设置了发送端装置3与接收端装置4后,发送端装置3与接收端装置4结构相同,可以互换使用,同时,发送端装置3与接收端装置4分别兼具收发功能,本发明可以实现双向传输,与USB2.0的发送设备1与接收装置2的双向传输功能相匹配。As shown in FIG. 1 , the transmitting device 1 is a USB 2.0 host, and is connected to the transmitting device 3 of the present invention through a USB 2.0 cable, and the receiving device 2 is a USB 2.0 device, and the receiving end of the present invention. The devices 4 are connected by a USB 2.0 cable, and the transmitting end device 3 and the receiving end device 4 are connected to each other by a cable 5; the cable 5 is formed over a long distance, wherein the transmitting end device 3 and the receiving end device 4 are both USB receiving processing list The element 1000, the USB transmission processing unit 2000, the USB interface unit 3000, the extension line transmission processing unit 4000, the extension line interface unit 6000, and the extension line reception processing unit 5000 are provided with the transmitting end device 3 and the receiving end respectively on the two ends of the cable 5 of the present invention. After the terminal device 4, the transmitting device 3 and the receiving device 4 have the same structure and can be used interchangeably. Meanwhile, the transmitting device 3 and the receiving device 4 respectively have a transmitting and receiving function, and the present invention can realize bidirectional transmission, and USB2.0. The transmitting device 1 matches the bidirectional transmission function of the receiving device 2.
本发明USB接收处理单元1000内部包括USB格式拆包单元1100、管理包生成单元1200、通道划分单元1300,USB发送处理单元2000内部包括USB格式打包单元2100、管理包解析单元2200、通道合并单元2300,延长线发送处理单元4000内部包括延长线格式打包单元4100、延长线发送编码单元4200,延长线接收处理单元5000内部包括延长线接收解码单元5100、延长线格式拆包单元5200。其中,线缆5可以是不同介质、不同型号和规格的线缆,包括同轴电缆、双绞线等,当线缆5采用双绞线时,只需要在此双绞线的若干线芯上传输一个通道和两个通道各自所对应的数据,而现有技术则需要有更多的线芯传输其它辅助性质的信号,本发明在一定程度上简化了具体技术结构并节省了线缆成本。在通道数目上,可以只采用一个通道进行通信,也可以同时采用两个通道进行通信,当只采用一个通道进行通信时,通道上的信号速率是采用两个通道通信时信号速率的两倍;当只采用某一个通道进行通信时,在发送端,USB接收处理单元1000内部的通道划分单元1300分配所有的发送数据到此通道上,同时只需要用到此通道对应的延长线发送处理单元4000,在接收端,也只需要用到此通道对应的延长线接收处理单元5000,同时也只需要用到此通道对应的延长线接口单元6000;当同时采用两个通道进行通信时,在发送端,USB接收处理单元1000内部的通道划分单元1300将发送数据不设优先级地平均分配到两个通道上,而且针对两个通道的两路数据,每个通道都需要各自的延长线发送处理单元4000,在接收端,每个通道都需要各自的延长线接收处理单元5000,同时每个通道都需要各自的延长线接口单元6000,另外还需要通过USB发送处理单元2000内部的通道合并单元2300将两个通道的数据合并为同一路数据。 The USB receiving processing unit 1000 of the present invention internally includes a USB format unpacking unit 1100, a management packet generating unit 1200, and a channel dividing unit 1300. The USB transmitting processing unit 2000 internally includes a USB format packing unit 2100, a management packet parsing unit 2200, and a channel merging unit 2300. The extension line transmission processing unit 4000 internally includes an extension line format packing unit 4100 and an extension line transmission encoding unit 4200. The extension line receiving processing unit 5000 internally includes an extension line receiving decoding unit 5100 and an extension line format unpacking unit 5200. The cable 5 can be a cable of different media, different types and specifications, including a coaxial cable, a twisted pair cable, etc. When the cable 5 is a twisted pair cable, only the wire cores of the twisted pair cable are needed. The data corresponding to each channel and the two channels are transmitted, and the prior art requires more cores to transmit signals of other auxiliary properties. The invention simplifies the specific technical structure to some extent and saves the cable cost. In the number of channels, only one channel can be used for communication, or two channels can be used for communication at the same time. When only one channel is used for communication, the signal rate on the channel is twice the signal rate when communicating with two channels; When only one channel is used for communication, at the transmitting end, the channel dividing unit 1300 inside the USB receiving processing unit 1000 allocates all the transmitted data to the channel, and only needs to use the extension line corresponding to the channel to send the processing unit 4000. At the receiving end, it is only necessary to use the extension line corresponding to the channel to receive the processing unit 5000, and only need to use the extension line interface unit 6000 corresponding to the channel; when two channels are used for communication at the same time, at the transmitting end The channel dividing unit 1300 inside the USB receiving processing unit 1000 equally distributes the transmission data to the two channels without prioritization, and for each channel of the two channels, each channel needs a separate extension line transmission processing unit. 4000, at the receiving end, each channel requires its own extension line to receive the processing unit 5000, while each Channel needs an extension line interface unit 6000 each, and also needs to be sent inside the processing unit 2000 channels merge unit 2300 merging the two channels of data for the same data path via USB.
如图2所示,USB接收处理单元1000内部的USB格式拆包单元1100接收来自USB接口单元3000的拆前数据包1001。拆前数据包1001是USB2.0格式的数据包,拆包前,拆前数据包1001包括USB前缀码1003、USB有效数据1110和USB后缀码1004,USB格式拆包单元1100的功能是将拆前数据包1001中的USB前缀码1003和USB后缀码1004去除,只保留USB有效数据1110。USB格式拆包单元1100将此USB有效数据1110发送到通道划分单元1300。管理包生成单元1200产生发送到通道划分单元1300的发送管理包有效数据1210。在本装置中,除了对高速的USB2.0数据进行通过使用延长距离的线缆5传输外,还会传输一种管理包。在本实施例中,管理包的功能主要有两个,首先,在建立USB2.0链接时,USB2.0主机作为发送设备1,与接收设备2之间需要一个握手过程,此握手过程是通过低速的电平信号进行的,这个低速电平信号是否存在以及存在时间的长度即握手内容,这时就需要通过管理包来将此握手内容传输到长距离的线缆5的另外一端,以便在另外一端的USB接口上重新生成此低速电平信号,进而实现握手过程;另外,管理包还用来处理各种异常情况,以保证线缆5两端发送端装置3与接收端装置4的状态保持同步。通道划分单元1300接收来自USB格式拆包单元1100的USB有效数据1110和来自管理包生成单元1200的管理包有效数据1210,并根据需要对其进行二选一的选择,产生的选择后的发送数据,再根据当前使用的通道数目的不同对所选择的发送数据进行不同的操作;如果只使用某一个通道,那么将所选择的发送数据全部划分到这一通道;如果同时使用两个通道,那么将所选择的发送数据平均划分到两个通道,这种数据划分在两个通道之间不设置优先级。通道划分单元1300产生发送到延长线发送处理单元4000的发送数据1002。As shown in FIG. 2, the USB format unpacking unit 1100 inside the USB receiving processing unit 1000 receives the pre-depacked data packet 1001 from the USB interface unit 3000. Before demolition, the data packet 1001 is a USB2.0 format data packet. Before unpacking, the pre-demolition data packet 1001 includes a USB prefix code 1003, a USB valid data 1110, and a USB suffix code 1004. The function of the USB format unpacking unit 1100 is to be removed. The USB prefix code 1003 and the USB suffix code 1004 in the pre-packet 1001 are removed, leaving only the USB valid data 1110. The USB format unpacking unit 1100 transmits this USB valid data 1110 to the channel dividing unit 1300. The management packet generation unit 1200 generates transmission management packet valid data 1210 that is transmitted to the channel division unit 1300. In the present device, in addition to transmitting high-speed USB 2.0 data by using the extended length cable 5, a management pack is also transmitted. In this embodiment, there are two main functions of the management package. First, when establishing a USB 2.0 link, the USB 2.0 host functions as the transmitting device 1, and a handshake process is required between the receiving device 2 and the handshake process. The low-speed level signal is carried out, whether the low-speed level signal exists and the length of the existence time is the handshake content, and then the management packet is needed to transmit the handshake content to the other end of the long-distance cable 5, so as to The low-level level signal is regenerated on the USB interface at the other end to implement the handshake process. In addition, the management package is also used to handle various abnormal conditions to ensure the status of the transmitting device 3 and the receiving device 4 at both ends of the cable 5. Stay in sync. The channel dividing unit 1300 receives the USB valid data 1110 from the USB format unpacking unit 1100 and the management packet valid data 1210 from the management packet generating unit 1200, and selects the selected ones as needed, and generates the selected transmitted data. And then perform different operations on the selected transmission data according to the number of channels currently used; if only one channel is used, then the selected transmission data is all divided into this channel; if two channels are used at the same time, then The selected transmission data is equally divided into two channels, and this data division does not set a priority between the two channels. The channel dividing unit 1300 generates transmission data 1002 that is transmitted to the extension line transmission processing unit 4000.
如图3所示,USB发送处理单元2000内部的通道合并单元2300接收来自延长线接收处理单元5000的接收数据2310;如果只使用一个通道,就只存在一个延长线接收处理单元5000,不需要对接收数据2310进行合并;如果同时使用两个通道,就同时存在两个延长线接收处理单元5000,需要将两个延长线接收处理单元5000发送过来的两个接收数据2310合并起来;对于同时使用两个通道需要进行数据合并的情况, 由于两个通道的数据在线缆5上长距离传输后的延时不同,在进行数据合并时需要去除这个延时偏差,即需要首先对两个通道的接收数据2310进行相位对齐,然后再进行数据合并。通道合并单元2300对合并后的接收数据的数据类型进行分析,即辨别接收数据是USB数据还是管理包数据;如果接收数据的类型是USB数据,那么产生发送到USB2.0格式打包单元2100的接收数据2310;如果接收数据的类型是管理包数据,那么产生发送到管理包解析单元2200的管理包接收数据2320。通道划分单元1300与通道合并单元2300结合使用,使得可以选择使用线缆5的一个通道还是两个通道进行长距离传输,增强了本装置的适用范围。USB2.0格式打包单元2100接收来自通道合并单元2300的接收数据2310,对其添加USB前缀码2002、USB后缀码2003,产生发送到USB接口单元3000的USB2.0格式的生成数据包2001。管理包解析单元2200接收来自通道合并单元2300的管理包接收数据2320,对管理包接收数据2320进行分析并作相应的操作,具体操作内容可根据需要自行定义,这些操作包括:对本装置的电路进行功耗控制、状态机复位、重新进行USB2.0链接过程、控制USB2.0上拉或下拉电阻的通断、通知管理包生成单元1200产生管理包进行响应等。管理包生成单元1200和管理包解析单元2200结合使用,使得不易长距离传输的USB2.0格式变成了易于长距离传输的格式,将缓慢传输变成了快速传输。As shown in FIG. 3, the channel merging unit 2300 inside the USB transmission processing unit 2000 receives the received data 2310 from the extension line receiving processing unit 5000; if only one channel is used, there is only one extension line receiving processing unit 5000, and no pair is required. Receiving data 2310 for merging; if two channels are used at the same time, there are two extension line receiving processing units 5000 at the same time, and two receiving data 2310 sent by two extension line receiving processing units 5000 need to be merged; Channels need to be merged with data, Since the delay of the data of the two channels after long-distance transmission on the cable 5 is different, the delay deviation needs to be removed during data merging, that is, the phase alignment of the received data 2310 of the two channels needs to be performed first, and then Data merge. The channel merging unit 2300 analyzes the data type of the combined received data, that is, whether the received data is USB data or management packet data; if the type of the received data is USB data, the receiving is sent to the USB 2.0 format packing unit 2100. Data 2310; if the type of the received data is management packet data, the management packet reception data 2320 transmitted to the management packet parsing unit 2200 is generated. The channel dividing unit 1300 is used in combination with the channel combining unit 2300, so that one channel or two channels of the cable 5 can be selected for long-distance transmission, which enhances the applicable range of the device. The USB 2.0 format packing unit 2100 receives the received data 2310 from the channel combining unit 2300, adds a USB prefix code 2002, a USB suffix code 2003, and generates a generated data packet 2001 of the USB 2.0 format transmitted to the USB interface unit 3000. The management packet parsing unit 2200 receives the management packet receiving data 2320 from the channel merging unit 2300, analyzes the management packet receiving data 2320, and performs corresponding operations. The specific operation content can be customized according to requirements, and the operations include: performing circuit on the device The power consumption control, the state machine reset, the USB 2.0 link process is re-executed, the ON/OFF of the USB 2.0 pull-up or pull-down resistor is controlled, the notification management packet generation unit 1200 generates a management packet to respond, and the like. The management pack generation unit 1200 and the management pack parsing unit 2200 are used in combination, so that the USB 2.0 format that is not easily transmitted over long distances becomes a format that is easy to transmit over long distances, and slow transmission becomes a fast transmission.
如图4所示,发送设备1和接收设备2都可以向临近的USB接口单元3000发送USB2.0格式的终端USB数据包3001,现仅以发送设备1向USB接口单元3000发送为例,USB接口单元3000接收USB2.0格式的终端USB数据包3001,并产生发送到USB格式拆包单元1100的USB2.0格式的拆前数据包1001;同时,USB接口单元3000接收来自USB2.0格式打包单元2100的USB2.0格式的生成数据包2001,并产生发送到发送设备1和接收设备2的USB2.0格式的终端USB数据包3001。可见,USB2.0格式的终端USB数据包3001是传输在USB2.0线缆上的双向数据,这是因为USB2.0传输是采用了半双工的工作模式。接收设备2当然也可以先向接收端装置4的USB接口单元3000发送USB2.0格式的终端USB数据包3001,通过线缆5传递给发送端装置3, 从而实现接收设备2向发送设备1传送信息,这个过程是完全可逆的。As shown in FIG. 4, both the transmitting device 1 and the receiving device 2 can send the terminal USB data packet 3001 in the USB2.0 format to the adjacent USB interface unit 3000. Now, only the transmitting device 1 sends the USB interface unit 3000 to the USB interface unit 3000 as an example. The interface unit 3000 receives the terminal USB data packet 3001 in the USB2.0 format, and generates the USB2.0 format pre-demolition data packet 1001 sent to the USB format unpacking unit 1100; meanwhile, the USB interface unit 3000 receives the package from the USB2.0 format. The data packet 2001 is generated in the USB 2.0 format of the unit 2100, and a terminal USB data packet 3001 of the USB 2.0 format transmitted to the transmitting device 1 and the receiving device 2 is generated. It can be seen that the terminal USB data packet 3001 of the USB2.0 format is bidirectional data transmitted on the USB2.0 cable, because the USB2.0 transmission adopts a half-duplex working mode. The receiving device 2 can also send the terminal USB data packet 3001 in the USB2.0 format to the USB interface unit 3000 of the receiving device 4, and transmit it to the transmitting device 3 through the cable 5. Thereby, the receiving device 2 is realized to transmit information to the transmitting device 1, and this process is completely reversible.
如图5所示,延长线发送处理单元4000内部包括延长线格式打包单元4100和延长线发送编码单元4200;延长线格式打包单元4100接收来自USB接收处理单元1000内部的通道划分单元1300的发送数据1002,对其进行延长线格式打包,具体内容如图5所示,为发送数据1002添加延长线前缀码4002、延长线同步码4003、延长线校验码4004和延长线后缀码4005等,从而得到打包后的发送数据包4110,其中所添加的延长线前缀码4002、延长线同步码4003、延长线校验码4004和延长线后缀码4005等都可以根据需要进行配置,针对发送数据1002来源于USB有效数据1110还是管理包有效数据1210,它们也都可以配置成为不同的值;然后,延长线发送编码单元4200对打包后的发送数据包4110进行编码,编码的目的是使发送到线缆5上的码流满足直流平衡的特点,可采用的编码包括4B5B、8B10B、128B132B等。延长线发送编码单元4200产生发送到延长线接口单元6000的编码后的发送数据包4001。针对所使用的每个通道,在发送端都存在各自的延长线发送处理单元4000,即如果同时使用两个通道,就需要同时用到各自对应的共两个延长线发送处理单元4000。As shown in FIG. 5, the extension line transmission processing unit 4000 internally includes an extension line format packing unit 4100 and an extension line transmission encoding unit 4200; the extension line format packing unit 4100 receives transmission data from the channel dividing unit 1300 inside the USB reception processing unit 1000. 1002, the extension line format is packaged, and the specific content is as shown in FIG. 5, and an extension line prefix code 4002, an extension line synchronization code 4003, an extension line check code 4004, and an extension line suffix code 4005 are added to the transmission data 1002, thereby The packaged transmission data packet 4110 is obtained, wherein the added extension line prefix code 4002, the extension line synchronization code 4003, the extension line check code 4004, and the extension line suffix code 4005 can be configured as needed, for the source of the transmitted data 1002. The USB valid data 1110 is also the management packet valid data 1210, which can also be configured to be different values; then, the extension line transmission encoding unit 4200 encodes the packetized transmission data packet 4110, and the encoding is performed to be sent to the cable. The code stream on 5 satisfies the characteristics of DC balance, and the available codes include 4B5B, 8B10B, 128B132B, and the like. The extension line transmission coding unit 4200 generates an encoded transmission packet 4001 that is transmitted to the extension line interface unit 6000. For each channel used, there is a separate extension line transmission processing unit 4000 at the transmitting end, that is, if two channels are used at the same time, it is necessary to simultaneously use the corresponding two extension lines to transmit the processing unit 4000.
如图6所示,延长线接口单元6000接收来自线缆5的延长线数据包6001,并产生发送到延长线接收处理单元5000的延长线接收数据5001;同时,延长线接口单元6000接收来自延长线发送处理单元4000的编码后的发送数据包4001,并产生发送到线缆5的延长线数据包6001。可见,延长线数据包6001是传输在线缆5上的双向数据,这是由于为了与USB数据传输相匹配,延长线传输也采用了半双工的工作模式。As shown in FIG. 6, the extension line interface unit 6000 receives the extension line data packet 6001 from the cable 5 and generates the extension line reception data 5001 transmitted to the extension line reception processing unit 5000; meanwhile, the extension line interface unit 6000 receives the extension from The encoded transmission packet 4001 of the line transmission processing unit 4000 generates an extension line packet 6001 that is transmitted to the cable 5. It can be seen that the extension line data packet 6001 is bidirectional data transmitted on the cable 5, because in order to match the USB data transmission, the extension line transmission also adopts a half-duplex working mode.
如图7所示,延长线接收处理单元5000内部包括延长线接收解码单元5100和延长线格式拆包单元5200。延长线接收解码单元5100接收来自延长线接口单元6000的接收数据5001;相当于延长线发送处理单元4000内部的延长线发送编码单元4200的逆过程,延长线接收解码单元5100对接收数据5001进行直流平衡码解码,得到解 码后的接收数据包5110,解码用到的直流平衡码型包括4B5B、8B10B、128B132B等。同样,与延长线发送处理单元4000内部的延长线格式打包单元4100作为逆过程,延长线格式拆包单元5200对解码后的接收数据包5110进行延长线格式的拆包,即去除接收数据包5110中的延长线解前缀码51p2、延长线解同步码5103、延长线解校验码5104、延长线解后缀码5105等,拆包后产生发送到USB发送处理单元2000内部的通道合并单元2300的接收数据2310。针对使用的每个通道,在接收端都存在各自的延长线接收处理单元5000,即如果同时使用两个通道,就需要同时用到各自对应的共两个延长线接收处理单元5000。As shown in FIG. 7, the extension line receiving processing unit 5000 internally includes an extension line receiving decoding unit 5100 and an extension line format unpacking unit 5200. The extension line reception decoding unit 5100 receives the reception data 5001 from the extension line interface unit 6000; corresponds to the inverse process of the extension line transmission coding unit 4200 inside the extension line transmission processing unit 4000, and the extension line reception decoding unit 5100 performs DC on the reception data 5001. Balance code decoding, get solution The received data packet 5110 after the code includes DCB balance patterns for decoding including 4B5B, 8B10B, 128B132B, and the like. Similarly, with the extension line format packing unit 4100 inside the extension line transmission processing unit 4000 as an inverse process, the extension line format unpacking unit 5200 performs unpacking of the decoded received data packet 5110 in an extended line format, that is, removes the received data packet 5110. The extension line solution prefix code 51p2, the extension line de-synchronization code 5103, the extension line de-check code 5104, the extension line solution suffix code 5105, etc., are generated after the unpacking is sent to the channel merging unit 2300 inside the USB transmission processing unit 2000. Receive data 2310. For each channel used, there is a respective extension line receiving processing unit 5000 at the receiving end, that is, if two channels are used at the same time, it is necessary to simultaneously use the corresponding two extension lines to receive the processing unit 5000.
本发明延长通用串行总线传输距离的装置通过一种延长USB2.0传输距离的装置对USB2.0格式的数据包进行信号转换,使转换后的信号适合在线缆上传输,成倍地增加了USB2.0的传输距离;同时本装置支持在多种规格线缆上采用一个通道和两个通道的不同方式进行传输,增大了适用范围。The device for extending the transmission distance of the universal serial bus of the invention converts the data packet of the USB2.0 format by a device for extending the transmission distance of the USB2.0, so that the converted signal is suitable for transmission on the cable, and is multiplied. The transmission distance of USB2.0; at the same time, the device supports transmission in one channel and two channels in different specifications of cables, which increases the applicable range.
本发明延长通用串行总线传输距离的装置以USB2.0为例,理所当然能够向下兼容USB1.1,通过简单电路的置换和参数调整就可以成功地应用于USB3.0和USB3.1。The device for extending the universal serial bus transmission distance takes the USB2.0 as an example, and can of course be backward compatible with USB1.1, and can be successfully applied to USB3.0 and USB3.1 through simple circuit replacement and parameter adjustment.
上述装置仅是本发明的较佳实施例而已,并非对本发明的保护范围上的任何限定,本发明请求的保护范围应当以权利要求书所记载的内容为准,凡是依据本发明的技术实质对上述具体实施方式所作的任何简单变化、等同替换或者分解合并,均仍属于本发明请求保护的范围之内。The above described device is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. The scope of the present invention should be determined by the scope of the claims. Any simple changes, equivalent substitutions, or decompositions of the above-described embodiments are still within the scope of the claimed invention.
综上所述,本发明在结构设计、使用实用性及成本效益上,完全符合产业发展所需,且所揭示的结构亦是具有前所未有的创新构造,具有新颖性、创造性、实用性,符合有关新型专利要件的规定,故依法提起申请。 In summary, the present invention fully meets the needs of industrial development in terms of structural design, practicality and cost-effectiveness, and the disclosed structure is also an unprecedented innovative structure, novel, creative, practical, and relevant. The application of new patent requirements, so file an application in accordance with the law.

Claims (10)

  1. 一种延长通用串行总线传输距离的装置,其特征在于:所述延长通用串行总线传输距离的装置包括发送端装置(3)、接收端装置(4)和线缆(5),发送设备(1)连接着发送端装置(3),接收设备(2)连接着接收端装置(4),发送端装置(3)通过线缆(5)连接着接收端装置(4),发送端装置(3)与接收端装置(4)都分别包括USB接收处理单元(1000)、USB发送处理单元(2000)、USB接口单元(3000)、延长线发送处理单元(4000)、延长线接口单元(6000)和延长线接收处理单元(5000),USB接口单元(3000)接收来自发送设备(1)和接收设备(2)的USB格式的终端USB数据包(3001),并产生发送到USB接收处理单元(1000)的USB格式的拆前数据包(1001);USB接收处理单元(1000)产生发送到延长线发送处理单元(4000)的发送数据(1002);延长线接口单元(6000)接收来自延长线发送处理单元(4000)的发送数据包(4001),并产生发送到线缆(5)的延长线数据包(6001);延长线接口单元(6000)接收来自线缆(5)的延长线数据包(6001),并产生发送到延长线接收处理单元(5000)的延长线接收数据(5001);延长线数据包(6001)是传输在线缆(5)上的双向数据;延长线接收处理单元(5000)产生发送到USB发送处理单元(2000)的延长线接收处理数据(5002),USB接口单元(3000)接收来自USB发送处理单元(2000)的USB格式的生成数据包(2001),并产生发送到发送设备(1)和接收设备(2)的USB格式的终端USB数据包(3001);USB格式的终端USB数据包(3001)是传输在USB线缆上的双向数据,线缆(5)长距离地形成。The device for extending the transmission distance of the universal serial bus is characterized in that: the device for extending the transmission distance of the universal serial bus comprises a transmitting end device (3), a receiving end device (4) and a cable (5), and a transmitting device (1) connected to the transmitting device (3), the receiving device (2) is connected to the receiving device (4), and the transmitting device (3) is connected to the receiving device (4) via the cable (5), the transmitting device (3) and the receiving end device (4) respectively include a USB receiving processing unit (1000), a USB transmitting processing unit (2000), a USB interface unit (3000), an extension line transmitting processing unit (4000), and an extension line interface unit ( 6000) and an extension line receiving processing unit (5000), the USB interface unit (3000) receives the terminal USB data packet (3001) in USB format from the transmitting device (1) and the receiving device (2), and generates a transmission to the USB receiving process The pre-depacked data packet (1001) of the USB format of the unit (1000); the USB receiving processing unit (1000) generates the transmission data (1002) sent to the extension line transmission processing unit (4000); the extension line interface unit (6000) receives the reception data from The extension line transmits a transmission packet (4001) of the processing unit (4000), and generates a delay sent to the cable (5) Line data packet (6001); the extension line interface unit (6000) receives the extension line data packet (6001) from the cable (5) and generates extension line reception data (5001) sent to the extension line reception processing unit (5000) The extension line data packet (6001) is bidirectional data transmitted on the cable (5); the extension line reception processing unit (5000) generates extension line reception processing data (5002) sent to the USB transmission processing unit (2000), USB The interface unit (3000) receives the generated data packet (2001) in the USB format from the USB transmission processing unit (2000), and generates a terminal USB data packet (3001) in USB format transmitted to the transmitting device (1) and the receiving device (2). The USB format terminal USB data packet (3001) is bidirectional data transmitted on the USB cable, and the cable (5) is formed over a long distance.
  2. 根据权利要求1所述的延长通用串行总线传输距离的装置,其特征在于:所述线缆(5)择一地采用一个和两个通道进行通信,当只采用一个通道进行通信时,通道上的信号速率是采用两个通道通信时每个通道上信号速率的两倍。The apparatus for extending the transmission distance of a universal serial bus according to claim 1, wherein said cable (5) is selectively used to communicate with one or two channels, and when only one channel is used for communication, the channel The signal rate above is twice the signal rate on each channel when communicating on two channels.
  3. 根据权利要求1所述的延长通用串行总线传输距离的装置,其特征在于:所述的USB接收处理单元(1000)内部包括USB格式拆包单元(1100)和通道划分单元(1300),USB格式拆包单元(1100)接收来自USB接口单元(3000)的USB格式的拆前数据包(1001),根据USB数据格式对USB格式的拆前数据包(1001)进行拆包,从中去除 前缀码(1003)和后缀码(1004)后得到USB有效数据(1110)并发送到通道划分单元(1300),通道划分单元(1300)产生发送到USB发送处理单元(2000)的USB发送数据(1002);USB发送处理单元(2000)内部包括USB格式打包单元(2100)和通道合并单元(2300),通道合并单元(2300)接收来自延长线接收处理单元(5000)的延长线接收处理数据(5002),USB格式打包单元(2100)接收来自通道合并单元(2300)的接收数据(2310),根据USB数据格式为接收数据(2310)添加新前缀码(2002)和新后缀码(2003),从而产生USB格式的生成数据包(2001)并发送到USB接口单元(3000)。The apparatus for extending a universal serial bus transmission distance according to claim 1, wherein said USB receiving processing unit (1000) internally comprises a USB format unpacking unit (1100) and a channel dividing unit (1300), USB. The format unpacking unit (1100) receives the pre-demolition data packet (1001) of the USB format from the USB interface unit (3000), and unpacks the pre-demolition data packet (1001) of the USB format according to the USB data format, and removes the data packet (1001) from the USB format. The prefix valid code (1003) and the suffix code (1004) are followed by the USB valid data (1110) and sent to the channel dividing unit (1300), and the channel dividing unit (1300) generates USB transmission data transmitted to the USB transmission processing unit (2000) ( 1002); the USB transmission processing unit (2000) internally includes a USB format packing unit (2100) and a channel combining unit (2300), and the channel combining unit (2300) receives the extension line receiving processing data from the extension line receiving processing unit (5000) ( 5002), the USB format packing unit (2100) receives the received data (2310) from the channel combining unit (2300), and adds a new prefix code (2002) and a new suffix code (2003) to the received data (2310) according to the USB data format. Thereby, a generated data packet (2001) in a USB format is generated and transmitted to the USB interface unit (3000).
  4. 根据权利要求1、3所述的延长通用串行总线传输距离的装置,其特征在于:所述USB接收处理单元(1000)内部还包括一个管理包生成单元(1200),USB发送处理单元(2000)内部还包括一个管理包解析单元(2200),在发送端,USB接收处理单元(1000)内部的管理包生成单元(1200)生成管理包有效数据(1210)并发送到通道划分单元(1300);在接收端,USB发送处理单元(2000)内部的管理包解析单元(2200)接收来自通道合并单元(2300)的管理包接收数据(2320)且进行解析,且对本装置的电路进行功耗控制、状态机复位、重新进行USB链接过程、控制USB上拉和下拉电阻的通断、通知管理包生成单元(1200)产生管理包进行响应,USB接收处理单元(1000)中的管理包生成单元(1200)和USB发送处理单元(2000)中的管理包解析单元(2200)结合使用,使得不易长距离传输的USB低频握手信号变成了易于长距离传输的高频握手数据包,将缓慢传输变成了快速传输。The apparatus for extending the transmission distance of a universal serial bus according to claim 1, wherein the USB receiving processing unit (1000) further comprises a management packet generating unit (1200) and a USB transmitting processing unit (2000). The inside also includes a management packet parsing unit (2200). At the transmitting end, the management packet generating unit (1200) inside the USB receiving processing unit (1000) generates management packet valid data (1210) and sends it to the channel dividing unit (1300). At the receiving end, the management packet parsing unit (2200) inside the USB transmission processing unit (2000) receives the management packet receiving data (2320) from the channel combining unit (2300) and performs parsing, and performs power consumption control on the circuit of the device. , state machine reset, re-execute USB link process, control USB pull-up and pull-down resistor on/off, notification management packet generation unit (1200) generates management packet to respond, and management packet generation unit in USB reception processing unit (1000) 1200) is used in combination with the management packet parsing unit (2200) in the USB transmission processing unit (2000), so that the USB low-frequency handshake signal that is not easy to be transmitted over a long distance becomes a high-frequency that is easy to transmit over long distances. Hand packet, the slow transfer into a fast transfer.
  5. 根据权利要求1、3所述的延长通用串行总线传输距离的装置,其特征在于:所述延长线发送处理单元(4000)内部包括延长线格式打包单元(4100)和延长线发送编码单元(4200),延长线格式打包单元(4100)接收来自通道划分单元(1300)的发送数据(1002),为发送数据(1002)添加延长线前缀码(4002)、延长线同步码(4003)、延长线校验码(4004)和延长线后缀码(4005),从而得到打包后的发送数据包(4110),延长线前缀码(4002)、延长线同步码(4003)、延长线校验码(4004)和延长线后缀码(4005)都根据需要进行配置,区别发送数据(1002)来源于USB有效数据(1110)还是管理包有效数据(1210)进行配置;然后,延长线发送编码单元(4200)对打包后的发送数据包 (4110)进行编码,编码使发送到线缆(5)上的码流满足直流平衡的特点,延长线发送编码单元(4200)产生发送到延长线接口单元(6000)的编码后的发送数据包(4001),每个通道在发送端都存在各自的延长线发送处理单元(4000),当同时使用两个通道时,同时用到各自对应的共两个延长线发送处理单元(4000)。The apparatus for extending a universal serial bus transmission distance according to claim 1, wherein the extension line transmission processing unit (4000) internally includes an extension line format packing unit (4100) and an extension line transmission coding unit ( 4200), the extension line format packing unit (4100) receives the transmission data (1002) from the channel division unit (1300), adds an extension line prefix code (4002), an extension line synchronization code (4003), and extends the transmission data (1002). Line check code (4004) and extension line suffix code (4005), to obtain the packaged transmission data packet (4110), extension line prefix code (4002), extension line synchronization code (4003), extension line check code ( 4004) and the extension line suffix code (4005) are configured as needed, and the difference transmission data (1002) is derived from USB valid data (1110) or management packet valid data (1210) for configuration; then, the extension line transmission coding unit (4200) ) for the packaged send packet (4110) encoding, encoding so that the code stream transmitted to the cable (5) satisfies the DC balance, and the extension line transmission coding unit (4200) generates the encoded transmission packet sent to the extension line interface unit (6000). (4001), each channel has its own extension line transmission processing unit (4000) at the transmitting end. When two channels are used at the same time, the corresponding two extension lines are simultaneously used to transmit the processing unit (4000).
  6. 根据权利要求1、3所述的延长通用串行总线传输距离的装置,其特征在于:所述延长线接收处理单元(5000)内部包括延长线接收解码单元(5100)和延长线格式拆包单元(5200),延长线接收解码单元(5100)接收来自延长线接口单元(6000)的接收数据(5001),并对接收数据(5001)进行直流平衡码解码,得到解码后的接收数据包(5110),然后,延长线格式拆包单元(5200)对解码后的接收数据包(5110)进行延长线格式的拆包,去除接收数据包(5110)中的延长线解前缀码(5102)、延长线解同步码(5103)、延长线解校验码(5104)、延长线解后缀码(5105),拆包后产生发送到USB发送处理单元(2000)内部的通道合并单元(2300)的接收数据(5002),针对使用的每个通道,在接收端都存在各自的延长线接收处理单元(5000),当同时使用两个通道时,同时用到各自对应的共两个延长线接收处理单元(5000)。The apparatus for extending a universal serial bus transmission distance according to claim 1, wherein the extension line receiving processing unit (5000) internally comprises an extension line receiving decoding unit (5100) and an extension line format unpacking unit. (5200), the extension line receiving and decoding unit (5100) receives the received data (5001) from the extension line interface unit (6000), and performs DC balance code decoding on the received data (5001) to obtain a decoded received data packet (5110). Then, the extension line format unpacking unit (5200) performs unpacking of the decoded received data packet (5110) in an extended line format, and removes the extended line prefix prefix code (5102) in the received data packet (5110), and extends Line desynchronization code (5103), extension line de-check code (5104), extension line solution suffix code (5105), after unpacking, the channel merging unit (2300) sent to the USB transmission processing unit (2000) is received. Data (5002), for each channel used, there is a separate extension line receiving processing unit (5000) at the receiving end. When two channels are used at the same time, the corresponding two extended line receiving processing units are simultaneously used. (5000).
  7. 根据权利要求1、3所述的延长通用串行总线传输距离的装置,其特征在于:当只使用一个通道并且未进行管理包传输时,所述USB接收处理单元(1000)内部包括USB格式拆包单元(1100)、通道划分单元(1300),USB发送处理单元(2000)内部包括USB格式打包单元(2100)、通道合并单元(2300),在发送端,USB格式拆包单元(1100)接收来自USB接口单元(3000)的USB格式的拆前数据包(1001),根据USB数据格式对USB格式的拆前数据包(1001)进行拆包,从中去除前缀码(1003)和后缀码(1004)后得到USB有效数据(1110)并发送到通道划分单元(1300);通道划分单元(1300)接收来自USB格式拆包单元(1100)的USB有效数据(1110),并直接将USB有效数据(1110)作为发送数据(1002)发送到延长线发送处理单元(4000),通道划分单元(1300)完成了数据传递,在接收端,通道合并单元(2300)直接将来自延长线接收处理单元(5000)的接收数据(5002)作为接收数据(2310)发送到USB格式打包单元(2100),通道合并单元(2300)完成了数据传递;USB格式打包单元(2100)接收来自通道合并单元(2300)的接 收数据(2310),根据USB数据格式为接收数据(2310)添加新前缀码(2002)和新后缀码(2003),从而产生USB格式的生成数据包(2001)并发送到USB接口单元(3000)。The apparatus for extending the transmission distance of a universal serial bus according to claims 1, 3, characterized in that, when only one channel is used and management packet transmission is not performed, the USB receiving processing unit (1000) internally includes a USB format. The packet unit (1100), the channel dividing unit (1300), and the USB transmission processing unit (2000) internally include a USB format packing unit (2100) and a channel combining unit (2300). At the transmitting end, the USB format unpacking unit (1100) receives The pre-depacked data packet (1001) of the USB format from the USB interface unit (3000) is unpacked according to the USB data format for the pre-removal data packet (1001) of the USB format, and the prefix code (1003) and the suffix code (1004) are removed therefrom. After the USB valid data (1110) is obtained and sent to the channel dividing unit (1300); the channel dividing unit (1300) receives the USB valid data (1110) from the USB format unpacking unit (1100), and directly transfers the USB valid data ( 1110) sent as the transmission data (1002) to the extension line transmission processing unit (4000), the channel division unit (1300) completes the data transmission, and at the receiving end, the channel merging unit (2300) directly receives the processing unit from the extension line (5000) Receive data (5 002) sent as the received data (2310) to the USB format packing unit (2100), the channel combining unit (2300) completes the data transfer; the USB format packing unit (2100) receives the connection from the channel combining unit (2300) Receiving data (2310), adding a new prefix code (2002) and a new suffix code (2003) to the received data (2310) according to the USB data format, thereby generating a generated data packet (2001) in a USB format and transmitting it to the USB interface unit (3000) ).
  8. 根据权利要求1、2、3所述的延长通用串行总线传输距离的装置,其特征在于:当同时使用两个通道并且未进行管理包传输时,所述USB接收处理单元(1000)内部包括USB格式拆包单元(1100)、通道划分单元(1300),USB发送处理单元(2000)内部包括USB格式打包单元(2100)、通道合并单元(2300),在发送端,USB格式拆包单元(1100)接收来自USB接口单元(3000)的USB格式的拆前数据包(1001),根据USB数据格式对USB格式的拆前数据包(1001)进行拆包,从中去除前缀码(1003)和后缀码(1004)后得到USB有效数据(1110)并发送到通道划分单元(1300);通道划分单元(1300)接收来自USB格式拆包单元(1100)的USB有效数据(1110)并在两个通道之间进行平均分配,得到各自通道的发送数据(1002)并发送到各自通道对应的延长线发送处理单元(4000),通道划分单元(1300)完成数据划分和数据传递,在接收端,通道合并单元(2300)将来自两个通道的延长线接收处理单元(5000)的两个接收数据(5002)合并在一起,并作为接收数据(2310)发送到USB格式打包单元(2100),通道合并单元(2300)完成数据合并和数据传递;USB格式打包单元(2100)接收来自通道合并单元(2300)的接收数据(2310),根据USB数据格式为接收数据(2310)添加新前缀码(2002)和新后缀码(2003),从而产生USB格式的生成数据包(2001)并发送到USB接口单元(3000)。The apparatus for extending a universal serial bus transmission distance according to claims 1, 2, 3, characterized in that, when two channels are simultaneously used and management packet transmission is not performed, the USB reception processing unit (1000) internally includes The USB format unpacking unit (1100), the channel dividing unit (1300), and the USB sending processing unit (2000) internally include a USB format packing unit (2100), a channel combining unit (2300), and a USB format unpacking unit at the transmitting end ( 1100) receiving the pre-removed data packet (1001) of the USB format from the USB interface unit (3000), unpacking the pre-demolition data packet (1001) of the USB format according to the USB data format, and removing the prefix code (1003) and the suffix therefrom The code (1004) is followed by the USB valid data (1110) and sent to the channel dividing unit (1300); the channel dividing unit (1300) receives the USB valid data (1110) from the USB format unpacking unit (1100) and is in two channels. The average distribution is performed to obtain the transmission data of the respective channels (1002) and sent to the extension line transmission processing unit (4000) corresponding to the respective channels, and the channel division unit (1300) completes data division and data transmission, and at the receiving end, the channel is merged. Unit (230 0) Combine the two received data (5002) from the extension line receiving processing unit (5000) of the two channels, and send it as the received data (2310) to the USB format packing unit (2100), the channel combining unit (2300) Completing data merging and data transfer; the USB format packing unit (2100) receives the received data (2310) from the channel merging unit (2300), adds a new prefix code (2002) and a new suffix to the received data (2310) according to the USB data format. Code (2003), thereby generating a generated data packet (2001) in USB format and transmitting it to the USB interface unit (3000).
  9. 根据权利要求1、3、4所述的延长通用串行总线传输距离的装置,其特征在于:只使用一个通道并且进行管理包传输,所述USB接收处理单元(1000)内部包括USB格式拆包单元(1100)、管理包生成单元(1200)、通道划分单元(1300),USB发送处理单元(2000)内部包括USB格式打包单元(2100)、管理包解析单元(2200)、通道合并单元(2300),在发送端,USB格式拆包单元(1100)接收来自USB接口单元(3000)的USB格式的拆前数据包(1001),根据USB数据格式对USB格式的拆前数据包(1001)进行拆包,从中去除前缀码(1003)和后缀码(1004)后得到USB有效数据(1110)并发送到通道划分单元(1300);管理包生成单元(1200)根据需要生成管理包有效数据(1210) 并发送到通道划分单元(1300);通道划分单元(1300)接收来自USB格式拆包单元(1100)的USB有效数据(1110)和来自管理包生成单元(1200)的管理包有效数据(1210),根据需要对这两个数据进行二择一的选择得到发送数据(1002)发送到延长线发送处理单元(4000),通道划分单元(1300)完成数据选择、数据传递,在接收端,通道合并单元(2300)接收来自延长线接收处理单元(5000)的接收数据(5002)并对数据类型进行识别,当接收数据的数据类型是USB数据时,产生发送到USB格式打包单元(2100)的接收数据(2310),而当接收数据的数据类型是管理包数据时,产生发送到管理包解析单元(2200)的管理包接收数据(2320),通道合并单元(2300)完成数据类型识别和数据传递,USB格式打包单元(2100)接收来自通道合并单元(2300)的接收数据(2310),根据USB数据格式为接收数据(2310)添加新前缀码(2002)和新后缀码(2003),从而产生USB格式的生成数据包(2001)并发送到USB接口单元(3000);管理包解析单元(2200)接收来自通道合并单元(2300)的管理包接收数据(2320)并进行解析。The apparatus for extending the transmission distance of a universal serial bus according to claims 1, 3 and 4, characterized in that only one channel is used and management packet transmission is performed, and the USB receiving processing unit (1000) internally includes a USB format unpacking The unit (1100), the management packet generating unit (1200), the channel dividing unit (1300), and the USB transmission processing unit (2000) internally include a USB format packing unit (2100), a management packet parsing unit (2200), and a channel merging unit (2300). At the transmitting end, the USB format unpacking unit (1100) receives the pre-depacked data packet (1001) of the USB format from the USB interface unit (3000), and performs the pre-demolition data packet (1001) of the USB format according to the USB data format. Unpacking, removing the prefix code (1003) and the suffix code (1004) therefrom to obtain USB valid data (1110) and transmitting to the channel dividing unit (1300); the management packet generating unit (1200) generates management packet valid data as needed (1210) ) And sent to the channel dividing unit (1300); the channel dividing unit (1300) receives USB valid data (1110) from the USB format unpacking unit (1100) and management packet valid data (1210) from the management packet generating unit (1200) The two data are selectively selected according to the need to obtain the transmission data (1002) and sent to the extension line transmission processing unit (4000). The channel division unit (1300) completes data selection and data transmission, and at the receiving end, the channel is merged. The unit (2300) receives the received data (5002) from the extension line receiving processing unit (5000) and identifies the data type, and when the data type of the received data is USB data, generates a reception sent to the USB format packing unit (2100). Data (2310), and when the data type of the received data is management packet data, the management packet receiving data sent to the management packet parsing unit (2200) is generated (2320), and the channel merging unit (2300) performs data type identification and data transfer. The USB format packing unit (2100) receives the received data (2310) from the channel combining unit (2300), and adds a new prefix code (2002) and a new suffix code (200) to the received data (2310) according to the USB data format. 3), thereby generating a generated data packet in the USB format (2001) and transmitting it to the USB interface unit (3000); the management packet parsing unit (2200) receives the management packet receiving data (2320) from the channel combining unit (2300) and parsing .
  10. 根据权利要求1、2、3、4所述的延长通用串行总线传输距离的装置,其特征在于:同时使用两个通道并且进行管理包传输,所述USB接收处理单元(1000)内部包括USB格式拆包单元(1100)、管理包生成单元(1200)、通道划分单元(1300),USB发送处理单元(2000)内部包括USB格式打包单元(2100)、管理包解析单元(2200)、通道合并单元(2300),在发送端,USB格式拆包单元(1100)接收来自USB接口单元(3000)的USB格式的拆前数据包(1001),根据USB数据格式对USB格式的拆前数据包(1001)进行拆包,从中去除前缀码(1003)和后缀码(1004)后得到USB有效数据(1110)并发送到通道划分单元(1300);管理包生成单元(1200)根据需要生成管理包有效数据(1210)并发送到通道划分单元(1300);通道划分单元(1300)接收来自USB格式拆包单元(1100)的USB有效数据(1110)和来自管理包生成单元(1200)的管理包有效数据(1210),根据需要对这两个数据进行二择一的选择,然后对选择后的发送数据在两个通道之间进行平均分配,得到两个发送数据(1002)分别发送到各自对应的延长线发送处理单元(4000),通道划分单元(1300)完成数据选择、数据划分和数据传递,在接收 端,通道合并单元(2300)接收来自两个通道各自对应的延长线接收处理单元(5000)的两个接收数据(5002),首先将两个接收数据(5002)合并为一个接收数据,然后对合并后数据的数据类型进行识别,即当接收数据的数据类型是USB数据时,那么产生发送到USB格式打包单元(2100)的接收数据(2310),而当接收数据的数据类型是管理包数据时,产生发送到管理包解析单元(2200)的管理包接收数据(2320),通道合并单元(2300)完成数据类型识别、数据合并和数据传递,USB格式打包单元(2100)接收来自通道合并单元(2300)的接收数据(2310),根据USB数据格式为接收数据(2310)添加新前缀码(2002)和新后缀码(2003),从而产生USB格式的生成数据包(2001)并发送到USB接口单元(3000);管理包解析单元(2200)接收来自通道合并单元(2300)的管理包接收数据(2320)并进行解析。 The apparatus for extending the transmission distance of a universal serial bus according to claims 1, 2, 3 and 4, characterized in that two channels are simultaneously used and management packet transmission is performed, and the USB receiving processing unit (1000) internally includes a USB. The format unpacking unit (1100), the management pack generating unit (1200), the channel dividing unit (1300), and the USB transmitting processing unit (2000) internally include a USB format packing unit (2100), a management pack parsing unit (2200), and a channel merge. Unit (2300), at the transmitting end, the USB format unpacking unit (1100) receives the pre-depacked data packet (1001) of the USB format from the USB interface unit (3000), and the pre-depacked data packet of the USB format according to the USB data format ( 1001) performing unpacking, removing the prefix code (1003) and the suffix code (1004) therefrom to obtain USB valid data (1110) and transmitting to the channel dividing unit (1300); the management packet generating unit (1200) generating the management package as needed The data (1210) is sent to the channel dividing unit (1300); the channel dividing unit (1300) receives the USB valid data (1110) from the USB format unpacking unit (1100) and the management pack from the management pack generating unit (1200) is valid. Data (1210), as needed The two data are selected one by one, and then the selected transmission data is evenly distributed between the two channels, and two transmission data (1002) are respectively sent to the corresponding extension line transmission processing unit (4000). The channel dividing unit (1300) performs data selection, data division, and data transmission, and receives End, the channel combining unit (2300) receives two received data (5002) from the corresponding extension line receiving processing unit (5000) of the two channels, first combining the two received data (5002) into one receiving data, and then The data type of the merged data is identified, that is, when the data type of the received data is USB data, then the received data sent to the USB format packing unit (2100) is generated (2310), and when the data type of the received data is the management pack data The management packet receiving data (2320) sent to the management packet parsing unit (2200) is generated, the channel merging unit (2300) completes data type identification, data merging, and data transfer, and the USB format packing unit (2100) receives the channel merging unit. The received data (2310) of (2300) adds a new prefix code (2002) and a new suffix code (2003) to the received data (2310) according to the USB data format, thereby generating a generated data packet (2001) in the USB format and transmitting it to the USB. The interface unit (3000); the management packet parsing unit (2200) receives the management packet reception data (2320) from the channel merging unit (2300) and performs parsing.
PCT/CN2015/000188 2014-04-17 2015-03-19 Device for extending universal serial bus transmission distance WO2015158156A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410153848.8A CN103885918B (en) 2014-04-17 2014-04-17 Extend the device of universal serial bus transmission distance
CN201410153848.8 2014-04-17

Publications (1)

Publication Number Publication Date
WO2015158156A1 true WO2015158156A1 (en) 2015-10-22

Family

ID=50954815

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/000188 WO2015158156A1 (en) 2014-04-17 2015-03-19 Device for extending universal serial bus transmission distance

Country Status (2)

Country Link
CN (1) CN103885918B (en)
WO (1) WO2015158156A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491489A (en) * 2018-12-08 2019-03-19 深圳市新龙鹏科技有限公司 A kind of Type-C power supply video data extender
CN113573265A (en) * 2021-07-13 2021-10-29 江苏辰午节能科技股份有限公司 General wireless communication module based on oil field net electricity digital equipment

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103885918B (en) * 2014-04-17 2015-12-02 天津瑞发科半导体技术有限公司 Extend the device of universal serial bus transmission distance
US9843436B2 (en) * 2015-06-27 2017-12-12 Intel Corporation Flexible interconnect architecture
CN106250343B (en) * 2016-08-30 2019-03-01 江苏沁恒股份有限公司 A kind of digital signal and usb signal mixed transport device and method
CN106354682A (en) * 2016-08-30 2017-01-25 江苏沁恒股份有限公司 Digital signal and USB signal mixed transmission device and method
CN112527716B (en) * 2020-12-18 2024-01-30 深圳市度申科技有限公司 Data transmission method, acquisition card and system based on USB3.0 wire

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100399239C (en) * 2003-08-03 2008-07-02 清华大学 Universal bidirectional serial data transmission interface and data transmission method thereof
WO2008131067A1 (en) * 2007-04-18 2008-10-30 Video Products, Inc. Usb flash media extender
CN102541793A (en) * 2011-12-26 2012-07-04 浙江大学 USB (universal serial bus) based high-speed dual-computer data exchange method and data exchange device
CN103546395A (en) * 2013-10-31 2014-01-29 龙迅半导体科技(合肥)有限公司 Data transmission method and system of USB camera
CN103885918A (en) * 2014-04-17 2014-06-25 天津瑞发科半导体技术有限公司 Device for lengthening universal serial bus transmission distance

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0517543D0 (en) * 2005-08-27 2005-10-05 Amulet Electronics Ltd Usb extender
CN103257944B (en) * 2013-04-24 2016-10-05 江苏沁恒股份有限公司 Method and device for long-distance transmissions usb signal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100399239C (en) * 2003-08-03 2008-07-02 清华大学 Universal bidirectional serial data transmission interface and data transmission method thereof
WO2008131067A1 (en) * 2007-04-18 2008-10-30 Video Products, Inc. Usb flash media extender
CN102541793A (en) * 2011-12-26 2012-07-04 浙江大学 USB (universal serial bus) based high-speed dual-computer data exchange method and data exchange device
CN103546395A (en) * 2013-10-31 2014-01-29 龙迅半导体科技(合肥)有限公司 Data transmission method and system of USB camera
CN103885918A (en) * 2014-04-17 2014-06-25 天津瑞发科半导体技术有限公司 Device for lengthening universal serial bus transmission distance

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491489A (en) * 2018-12-08 2019-03-19 深圳市新龙鹏科技有限公司 A kind of Type-C power supply video data extender
CN113573265A (en) * 2021-07-13 2021-10-29 江苏辰午节能科技股份有限公司 General wireless communication module based on oil field net electricity digital equipment

Also Published As

Publication number Publication date
CN103885918B (en) 2015-12-02
CN103885918A (en) 2014-06-25

Similar Documents

Publication Publication Date Title
WO2015158156A1 (en) Device for extending universal serial bus transmission distance
US10261930B2 (en) System, device and method for transmitting signals between different communication interfaces
EP3462328B1 (en) Serial connection between management controller and microcontroller
KR20150131339A (en) Physical layer and virtualized physical layer adapted for ehf contactless communication
CA2880979C (en) Usb 3.0 link layer timer adjustment to extend distance
JP5092109B2 (en) Serial bus device and differential clock compensation method thereof
CN109818886B (en) Method and device for configuring equalization parameters
US20090063717A1 (en) Rate Adaptation for Support of Full-Speed USB Transactions Over a High-Speed USB Interface
US7493431B2 (en) Method and apparatus for extending the range of the universal serial bus protocol
JP6626119B2 (en) Multi-gigabit wireless tunneling system
WO2008053858A2 (en) Interface device and electronic device
CN108780430B (en) Sending Universal Serial Bus (USB) data over an alternate mode connection
TWI492063B (en) Universal serial bus network interface controller and operation mode switch method
CN210776647U (en) Optical port and network port double-transmission display card, optical port transmission display card and network port transmission display card
JP6465965B2 (en) Stack timing adjustment for serial communication
US9722702B2 (en) SATA host bus adapter using optical signal and method for connecting SATA storage using the same
CN205657698U (en) Novel USB optical transmitter and receiver
CN112882969A (en) Data connection interface and data transmission device, system and method
CN103905090B (en) Power line communications apparatus and method
CN111884985A (en) Network physical isolation network gate development platform
CN104123258A (en) USB data transmission interface and system
CN105226474B (en) A kind of 100G cable modules based on QSFP28 interfaces
CN203135942U (en) A multiprotocol interface adapter
CN103514125A (en) Main control electronic device and main control end operating method
CN202975735U (en) 12C optical fiber communication driving system used for high-speed camera ball machine

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15780613

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15780613

Country of ref document: EP

Kind code of ref document: A1