CN106021160A - USB signal monitoring apparatus and monitoring method - Google Patents

USB signal monitoring apparatus and monitoring method Download PDF

Info

Publication number
CN106021160A
CN106021160A CN201610323920.6A CN201610323920A CN106021160A CN 106021160 A CN106021160 A CN 106021160A CN 201610323920 A CN201610323920 A CN 201610323920A CN 106021160 A CN106021160 A CN 106021160A
Authority
CN
China
Prior art keywords
data
unit
usb
transceiving unit
data transceiving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610323920.6A
Other languages
Chinese (zh)
Inventor
王春华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
JIANGSU QINHENG CO Ltd
Original Assignee
JIANGSU QINHENG CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by JIANGSU QINHENG CO Ltd filed Critical JIANGSU QINHENG CO Ltd
Priority to CN201610323920.6A priority Critical patent/CN106021160A/en
Publication of CN106021160A publication Critical patent/CN106021160A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4072Drivers or receivers

Abstract

The invention discloses a USB signal monitoring apparatus. The apparatus comprises a first data transceiver unit and a second data transceiver unit, wherein a data monitoring unit, a data flow direction arbitration unit and a USB communication establishment unit are connected in parallel between the first data transceiver unit and the second data transceiver unit; the other end of the first data transceiver unit and the other end of the second data transceiver unit are connected with a host and a USB device through a USB bus respectively; the USB communication establishment unit controls the first data transceiver unit and the second data transceiver unit according to a USB protocol so as to enable a USB communication system to enter a data packet transmission state; the data flow direction arbitration unit performs arbitration on a data flow direction according to states of the first data transceiver unit and the second data transceiver unit; and the data monitoring unit sends USB communication information and transmission state information to an upper computer. According to the apparatus, a USB signal monitoring function is realized without influencing the reliability and communication speed of the USB system.

Description

A kind of usb signal monitoring device and monitor method
Technical field
The present invention relates to information science technology field, particularly relate to a kind of usb signal monitoring device and monitor method.
Background technology
The superiority of USB technology is more and more obvious, supports that the equipment of USB technology gets more and more, the monitoring of USB communication system Third party can be allowed to obtain main frame with the Content of communciation between USB device, for supporting that the equipment of USB technology provides information security to protect Barrier.
Usb signal is received circuit and is directly connected in parallel between main frame and USB device by existing usb signal monitoring technique On usb bus, receive circuit by usb signal and observe the communication process on usb bus.This solution is total to USB Line introduces extra load, affects the signal quality on usb bus, and the communication cable between main frame and USB device is relatively When length or long-time communication, transmission may be failed.
Summary of the invention
For the problems referred to above, the present invention provides a kind of usb signal monitoring device, is not affecting USB system reliability and communication speed In the case of degree, it is achieved usb signal monitor function.
A kind of usb signal monitoring device, including the first data transceiving unit, the second data transceiving unit, described first data are received It is connected with data decryptor unit, data flow direction arbitration unit and USB communication side by side between bill unit and the second data transceiving unit to build Vertical unit;The other end of described first data transceiving unit and the other end of described second data transceiving unit are divided by usb bus Lian Jie main frame or USB device;Wherein said first data transceiving unit and the second data transceiving unit are believed for usb bus Number reception, transmission and the control of usb bus terminal resistance;Described USB communication sets up unit according to usb protocol control Described first data transceiving unit and the second data transceiving unit, make USB communication system enter the state of packet transmission;Described Data flow direction arbitration unit is according to described first data transceiving unit and the state of the second data transceiving unit, the side to data stream To making arbitration;USB communication information and transmission state information are sent to host computer by described data decryptor unit.
Described first data transceiving unit and the second data transceiving unit all include usb signal transmission circuit and control logic circuit.
Described data decryptor unit includes data reception module, data buffer circuit and interface circuit, described data reception module with Described data buffer circuit connects, and data are entered described data buffer circuit, described data buffering electricity by described data reception module Road is connected with described interface circuit.
Described data buffer circuit is dual port RAM or the buffer circuit being made up of trigger or latch.
Described data decryptor unit includes data reception module, moderator, memory device and interface circuit, described data reception Block, described moderator and described interface circuit are sequentially connected with, and described moderator is also connected with described memory device.
It is programming device that unit is set up in described data decryptor unit, described data flow direction arbitration unit and described USB communication, Described first data transceiving unit and the second data transceiving unit are external usb signal transceiving chip.
Described programming device is the one in FPGA, CPLD, EPLD, GAL, PAL.
Unit, described first data are set up in described data decryptor unit, described data flow direction arbitration unit, described USB communication Transmit-Receive Unit and the second data transceiving unit are integrated on an asic chip.
The present invention also provides for a kind of method carrying out signal monitoring based on above-mentioned usb signal monitoring device, a kind of usb signal prison Listen method, after the data that usb host sends are received by described first data transceiving unit, through described data decryptor unit, Described USB communication is set up under unit and the control of described data flow direction arbitration unit, described second data transceiving unit be sent to USB device, or USB device send data by described second data transceiving unit receive after, through described data decryptor list Unit, sets up under unit control at described data flow direction arbitration unit and described USB communication, by described first data transceiving unit Be sent to usb host, described data decryptor unit the first data transceiving unit and the second data transceiving unit are received whole/ Part USB communication information and transmission state information are sent to host computer.
The present invention is not in the case of affecting USB system reliability and communication speed, it is achieved usb signal monitor function.
Accompanying drawing explanation
Fig. 1 is the theory diagram of usb signal monitoring device;
Fig. 2 is first (or second) data transceiving unit structure chart in usb signal monitoring device embodiment;
Fig. 3 is data decryptor cellular construction figure in usb signal monitoring device embodiment.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, to this Bright it is further elaborated.Should be appreciated that specific embodiment described herein, and need not only in order to explain the present invention In limiting the present invention.
As it is shown in figure 1, the present embodiment usb signal monitoring device include the first data transceiving unit, the second data transceiving unit with And unit, data flow direction arbitration unit, data decryptor unit are set up in the USB communication connected arranged side by side between the two, the first data are received The other end of bill unit connects main frame by usb bus, and the other end of the second data transceiving unit is then connected by usb bus USB device.It is of course also possible to the first data transceiving unit connects USB device, and the second data transceiving unit connects main frame.
After the present embodiment usb signal monitoring device is connected with main frame and USB device foundation, USB communication is set up unit and can be examined Measure the connection of equipment and the speed type of equipment, by connecting the first data transceiving unit corresponding usb bus terminal resistance Inform main frame, when USB communication set up unit detect that USB device disconnects time, corresponding by disconnecting the first data transceiving unit Usb bus terminal resistance inform main frame.
USB communication set up unit by reset, shake hands, hang up and host wake-up regard as a kind of need forward signal transmission, i.e. USB communication is set up unit and is detected that main frame is sent reset, shaken hands, hangs up and host wake-up signal by the first data transceiving unit After, it being transmitted to USB device by the second data transceiving unit immediately, correspondence, when USB communication sets up unit by second After data transceiving unit detects that USB device sends handshake, then it is transmitted to main frame by the first data transceiving unit.
When USB device carries out Remote Wake Up, send wake-up signal K and set up unit detect to usb bus, USB communication By the first data transceiving unit transmission 3ms K to main frame after K, meanwhile, start to return K to USB device within 1ms, Until EOP (End of Packet, end-of-packet) or high speed Idle state being detected by the first data transceiving unit.
USB communication is set up unit and is detected that USB device connects and identify the speed of equipment, then by the second data transceiving unit Velocity information is informed main frame by the pull-up resistor of the first data transceiving unit or hypervelocity interface.If USB device is at full speed Then enter state of shaking hands at a high speed, shake hands and after terminating, enter the USB bag transmitting state of corresponding speed;If the USB device connected is not It it is the USB bag transmitting state being then directly entered corresponding speed at full speed.After entering USB bag transmitting state, when unit is set up in USB communication Detect and inform main frame by the first data transceiving unit when USB device disconnects.
Under USB bag transmitting state, in the case of data flow direction arbitration unit receives data in learning data decryptor unit, Reception according to the first data transceiving unit and the second data transceiving unit/transmission state receives data to data monitoring unit Arbitration is made in transmission direction, and such as main frame sends packet and learns data decryptor list to USB device, data flow direction arbitration unit Unit receives data, and the first data transceiving unit is in reception state, the second data transceiving unit is in non-receptive state, So, it is to be understood that be to be sent to USB device from main frame by the data received in data decryptor unit.
The present embodiment usb signal monitoring device entirety can be integrated in an asic chip, or USB communication set up unit, Data decryptor unit and data flow direction arbitration unit use programming device or other similar circuit, the first data transmit-receive list simultaneously Unit and the second data transceiving unit all use external usb signal transceiving chip (such as USB3500, ISP1507, TUSB1310), As described in Figure 2, usb signal transmission circuit meets existing USB to its structure, passes through USB with main frame or USB device Bus connects;Control logic circuit and data decryptor unit, data flow direction arbitration unit, USB communication are set up can between unit Use the interfaces such as UTMI/ULPI/PIPE.
Fig. 3 (a) is a kind of implementation of data decryptor unit, and data reception module completes the reception of data and writes twoport RAM, transfers data to host computer by interface circuit, and interface circuit can be USB, SPI, I2C, serial ports or parallel port etc. Interface;Also dual port RAM can be replaced with the buffer circuit that trigger or latch form.Fig. 3 (b) is another kind of implementation, I.e. replace the dual port RAM in Fig. 3 (a) with moderator and memory device (as a example by single port RAM).
Technological means disclosed in the present invention program is not limited only to the technological means disclosed in above-mentioned embodiment, also include by more than The technical scheme that technical characteristic combination in any is formed.

Claims (9)

1. a usb signal monitoring device, it is characterised in that: include the first data transceiving unit, the second data transceiving unit, Data decryptor unit, data flow direction arbitration list it is connected with side by side between described first data transceiving unit and the second data transceiving unit Unit is set up in unit and USB communication;The other end of described first data transceiving unit and the other end of described second data transceiving unit Main frame or USB device is connected respectively by usb bus;Wherein
Described first data transceiving unit and the second data transceiving unit are for the reception of usb bus signal, transmission and USB The control of bus termination resistance;
Described USB communication is set up unit and is controlled described first data transceiving unit and the second data transceiving unit according to usb protocol, USB communication system is made to enter the state of packet transmission;
Described data flow direction arbitration unit is according to described first data transceiving unit and the state of the second data transceiving unit, logarithm Arbitration is made according to the direction of stream;
USB communication information and transmission state information are sent to host computer by described data decryptor unit.
Usb signal monitoring device the most according to claim 1, it is characterised in that: described first data transceiving unit with Second data transceiving unit all includes usb signal transmission circuit and control logic circuit.
Usb signal monitoring device the most according to claim 1, it is characterised in that: described data decryptor unit includes number According to receiver module, data buffer circuit and interface circuit, described data reception module is connected with described data buffer circuit, data Being entered described data buffer circuit by described data reception module, described data buffer circuit is connected with described interface circuit.
Usb signal monitoring device the most according to claim 3, it is characterised in that: described data buffer circuit is twoport RAM or the buffer circuit being made up of trigger or latch.
Usb signal monitoring device the most according to claim 1, it is characterised in that: described data decryptor unit includes number According to receiver module, moderator, memory device and interface circuit, described data reception module, described moderator and described interface electricity Road is sequentially connected with, and described moderator is also connected with described memory device.
Usb signal monitoring device the most according to claim 1, it is characterised in that: described data decryptor unit, described It is programming device that unit is set up in data flow direction arbitration unit and described USB communication, described first data transceiving unit and second Data transceiving unit is external usb signal transceiving chip.
Usb signal monitoring device the most according to claim 6, it is characterised in that: described programming device be FPGA, One in CPLD, EPLD, GAL, PAL.
Usb signal monitoring device the most according to claim 1, it is characterised in that: described data decryptor unit, described Data flow direction arbitration unit, described USB communication set up unit, described first data transceiving unit and the second data transceiving unit It is integrated on an asic chip.
9. a usb signal monitor method, it is characterised in that: the data that usb host sends are by described first data transmit-receive list After unit receives, through described data decryptor unit, set up unit and described data flow direction arbitration unit control in described USB communication Under system, described second data transceiving unit it is sent to USB device, or
After the data that USB device sends are received by described second data transceiving unit, through described data decryptor unit, in described data Flow path direction arbitration unit and described USB communication are set up under unit control, described first data transceiving unit be sent to USB master Machine, whole/part USB communication that the first data transceiving unit and the second data transceiving unit are received by described data decryptor unit Information and transmission state information are sent to host computer.
CN201610323920.6A 2016-05-16 2016-05-16 USB signal monitoring apparatus and monitoring method Pending CN106021160A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610323920.6A CN106021160A (en) 2016-05-16 2016-05-16 USB signal monitoring apparatus and monitoring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610323920.6A CN106021160A (en) 2016-05-16 2016-05-16 USB signal monitoring apparatus and monitoring method

Publications (1)

Publication Number Publication Date
CN106021160A true CN106021160A (en) 2016-10-12

Family

ID=57098086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610323920.6A Pending CN106021160A (en) 2016-05-16 2016-05-16 USB signal monitoring apparatus and monitoring method

Country Status (1)

Country Link
CN (1) CN106021160A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109359082A (en) * 2018-09-17 2019-02-19 昆明理工大学 A kind of real-time monitoring system of usb data based on FPGA and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581753A (en) * 2003-08-15 2005-02-16 华为技术有限公司 Method and device for realizing air monitoring
CN1866887A (en) * 2006-01-05 2006-11-22 华为技术有限公司 Monitoring system and method in communication system
CN101017451A (en) * 2006-12-05 2007-08-15 深圳创维-Rgb电子有限公司 Method and system for controlling insertion and extraction of USB on television
US8990447B1 (en) * 2008-03-31 2015-03-24 Total Phase, Inc. Methods for embedding an out-of-band signal into a USB capture stream
CN104813301A (en) * 2012-07-05 2015-07-29 欧姆龙美国管理中心股份有限公司 A method and apparatus for usb signaling via intermediate transports
CN104820637A (en) * 2015-04-17 2015-08-05 中国电子科技集团公司第四十一研究所 Handheld type USB3.0 protocol analyzer

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581753A (en) * 2003-08-15 2005-02-16 华为技术有限公司 Method and device for realizing air monitoring
CN1866887A (en) * 2006-01-05 2006-11-22 华为技术有限公司 Monitoring system and method in communication system
CN101017451A (en) * 2006-12-05 2007-08-15 深圳创维-Rgb电子有限公司 Method and system for controlling insertion and extraction of USB on television
US8990447B1 (en) * 2008-03-31 2015-03-24 Total Phase, Inc. Methods for embedding an out-of-band signal into a USB capture stream
CN104813301A (en) * 2012-07-05 2015-07-29 欧姆龙美国管理中心股份有限公司 A method and apparatus for usb signaling via intermediate transports
CN104820637A (en) * 2015-04-17 2015-08-05 中国电子科技集团公司第四十一研究所 Handheld type USB3.0 protocol analyzer

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
未知: "HD系列USB协议分析仪操作手册", 《URL:HTTPS://WENKU.BAIDU.COM/VIEW/82F85C1CA76E58FAFAB00307.HTML》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109359082A (en) * 2018-09-17 2019-02-19 昆明理工大学 A kind of real-time monitoring system of usb data based on FPGA and method
CN109359082B (en) * 2018-09-17 2022-04-12 昆明理工大学 USB data real-time monitoring system and method based on FPGA

Similar Documents

Publication Publication Date Title
CN106254518A (en) A kind of vehicle-mounted Ethernet system and automobile
CN102591826B (en) Method and system for detecting and asserting bus speed condition in a USB isolating device
CN101488878B (en) Intelligence platform interface management apparatus and server
US20180285309A1 (en) Data bus message filter
CN102318267A (en) Data communication method, communication equipment and communication system
CN104184638B (en) The bus anti-collision methods of RS 485, interface chip and its communication network
CN102629968A (en) Image processing device and method as well as system
CN113132552B (en) Video stream processing method and device
CN203133584U (en) CAN communication interface, cable monitor and cable monitoring system
CN104750057B (en) Sample processing pipeline control system
CN106021160A (en) USB signal monitoring apparatus and monitoring method
CN102724144B (en) Self-adaptive gateway device and data transmission method thereof
CN104865938B (en) Applied to the node connection chip and its meshed network for assessing personal injury's situation
CN110096002A (en) A kind of automatization test system and test method based on CANFD bus
CN105812216B (en) PBUS transformerless EtherCAT communication circuit and application method
CN109756400A (en) The flow rate test method and system of 10G POE interchanger
EP3985928A1 (en) Communication device, communication method, and program
CN215222350U (en) Video acquisition circuit, video processing electronic equipment and driving assistance system
US20210127088A1 (en) Bundling of camera and radar raw data channels
CN209821622U (en) Signal acquisition system
KR101712370B1 (en) Ethernet device and system for supporting error packet analysis
CN101667951A (en) Network device and data transmission method thereof
CN113383326A (en) Integrated circuit with interface multiplexing function and pin switching method
CN110244638A (en) Data monitoring device and method
CN104065919A (en) Long-distance digital video signal transmission method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161012

RJ01 Rejection of invention patent application after publication