The utility model content
In order to solve the problem that detects USB device operating current inconvenience, the utility model provides a kind of usb hub of belt current measuring ability, and described usb hub comprises the upstream USB interface that is used to connect the upstream USB device, downstream USB interface, current detection module, output module and the hub module that is used to connect the downstream USB device;
Described upstream USB interface links to each other with described downstream USB interface by described hub module, described current detection module is connected on the Vbus holding wire or GND holding wire between described upstream USB interface and the described downstream USB interface, and the output port of described current detection module is connected with described output module;
Described current detection module, output module and hub module provide electric power by described upstream USB interface for it.
Described current detection module is connected on the Vbus holding wire or GND holding wire between described upstream USB interface and the described hub module.
Described current detection module is connected on the Vbus holding wire or GND holding wire between described hub module and the described downstream USB interface.
Described usb hub also comprises the selection handover module, and correspondingly, described current detection module links to each other with described output module by described selection handover module; Described selection handover module provides electric power by described upstream USB interface for it.
Described selection handover module is a selector switch.
Described selection handover module is made up of control chip and selector switch.
Described hub module is a hub chip.
Described output module is specially display unit, and described display unit comprises segment encode display, matrix display, character indicator, image display or needle dial.
When described output module when being a plurality of, described output module is integrated on the display unit, and described display unit comprises segment encode display, matrix display, character indicator, image display or needle dial.
Described output module comprises storage chip, control chip and interface chip;
Described storage chip is used to store the detected current value of described current detection module;
Described control chip is used for reading out corresponding current value from described storage chip, and is sent to described interface chip;
Described interface chip is used to export described current value.
Described storage chip and control chip are integrated in the chips.
Described interface chip is UART, RS-232, RS-485, ATA or USB interface chip, or for being integrated in UART, RS-232, RS-485, ATA or the USB interface in the described control chip.
The shared USB interface chip of described interface chip and described upstream USB interface or downstream USB interface.
When described output module when being a plurality of, the shared interface chip of the interface chip in wherein two or more output modules.
Beneficial effect: the usb hub of the belt current measuring ability that the utility model provides can show output simply and easily or export current value on the corresponding USB line by interface, this equipment has overcome present production, measuring USB device in test or the debugging need be by measuring the operating current that other parameter indirect calculation obtains USB device, make to measure USB device operating current problem intuitively inadequately, take that circuit detects or need destroy USB device when using ammeter to detect outward but also overcome to use, expose the inconvenience that circuit board could be realized, the more important thing is the problem of having avoided when detecting the USB device operating current, influencing the operating state of USB device, in addition, because the usb hub that the utility model provides can pass through the USB interface power taking, so also do not need to use additional power supply.Further, the usb hub of the belt current measuring ability that the utility model provides can be realized the operating operating current of USB device is monitored in real time, and is very suitable for the situation of needs work in 24 hours; In addition, the usb hub of the belt current measuring ability that provides by the utility model can very intuitively obtain the current value on the corresponding USB circuit very easily, does not need the engineering staff to go test one by one, so improved production efficiency to a great extent.
Embodiment
For making the purpose of this utility model, technical scheme and advantage clearer, the utility model execution mode is described in further detail below in conjunction with accompanying drawing.
Embodiment 1:
Referring to Fig. 1, present embodiment provides a kind of usb hub 100 of belt current measuring ability, specifically comprise a upstream usb 1 01, two downstream usb 1s 02, a current detection module 103, output module 104 and hub module 105, its middle and upper reaches usb 1 01 is used to connect upstream USB device 1, downstream usb 1 02 is used to connect USB device 2, upstream usb 1 01 links to each other with two downstream usb 1s 02 respectively by hub module 105, is used to realize the function of a upstream usb 1 01 with the hub of two downstream usb 1s 02; Current detection module 103 is connected on the Vbus holding wire between upstream usb 1 01 and the hub module 105, is used to detect the current value on the usb bus of upstream usb 1 01, promptly on two downstream usb 1 02 holding wires electric current and; The output port of current detection module 103 links to each other with output module 104, is used to export the current value on the usb bus of upstream usb 1 01; Current detection module 103, output module 104 and hub module 105 provide electric power by upstream usb 1 01 for it.
The form of upstream USB device 1 includes but not limited to desktop computer, notebook computer, server, special machine, card reader, communication apparatus, digital camera, hub or PDA etc.
Because the USB interface of upstream USB device 1 is generally the form of female, and upstream USB device 1 is used for communicating with upstream usb 1 01, so upstream usb 1 01 is generally the form of male; In like manner, the downstream usb 1 02 that links to each other with USB device 2 in this hub 100 is generally the form of female, and the USB interface of USB device 2 is generally the form of male.The connected mode of USB interface is a variety of in addition, and those skilled in the art can do suitable modification and improvement according to present embodiment, for example uses A type USB interface to realize being connected with Type B USB interface or other interface shape.
Upstream usb 1 01 links to each other with two downstream usb 1s 02 respectively by hub module 105, and the hub module 105 general hub chip that adopt realize that for example AU9254A21 is exactly the hub chip of an expansion four of common usefulness.
In concrete production practices, the specific implementation of current detection module 103 has a variety of modes, the current detecting part that for example can form by resistance and MAX471 chip (the current detecting part also can be only to be made up of resistance), and A/D conversion chip TLC1549 realizes, the current detecting part of perhaps forming by resistance and MAX471 chip (the current detecting part also can be only to be made up of resistance), and special-purpose voltage/frequency conversion chip (voltage/frequency change-over circuit) and counting chip realization, can be light signal also with current conversion, intensity by sensed light signal realizes again, again or current conversion can be become field signal, realize by detecting field signal intensity again, or the like, those skilled in the art can do simple variant according to present embodiment, methods such as equal replacement and improvement all can realize.
Output module 104 links to each other with the output port of current detection module 103, be used for the current value on the bus Vbus holding wire of the upstream usb 1 01 that output current detection module 103 detects, output module 104 can be a display unit, for example segment encode display, matrix display, character indicator, image display or needle dial etc.
Output module 104 can also be made up of storage chip, control chip and interface chip, storage chip is used for storaging current detection module 103 detected current values, storage mode is a lot, for example storage chip can be according to coming the store electricity flow valuve memory time that sets in advance at interval, for example can set in advance every interval storage in 1 minute primary current value, a current value was stored in 1 minute in the every interval of storage chip so, and more for example, storage chip can also only be stored current current value; Control chip reads out the current value of correspondence from storage chip, and be sent to interface chip, for example can be after receiving the order of inquiry current values such as upstream USB device 1 or other main frame, peripheral hardware when control chip, if the order of inquiry current value is to read the 5th minute current value, then control chip reads out the 5th minute the current value of storing in the storage chip, is sent to interface chip; Interface chip is exported this current value.Wherein, storage chip and control chip can be integrated in the control chip and realize, interface chip can be independent UART, RS-232, RS-485, ATA or USB interface chip etc., also can be UART, RS-232, RS-485, ATA or the USB interface that is integrated in the control chip, can also be and upstream usb 1 01 a shared USB interface.
Present embodiment middle and lower reaches usb 1 02 is two, in actual applications, downstream usb 1 02 can also be three, four, eight, 16 or the like, decide according to the type of selected hub chip, what present embodiment was selected is an expansion two hub chip, be that example describes with the hub of two downstream usb 1s 02 promptly with a upstream usb 1 01, and upstream usb 1 01 is consistent with the interface principle of plural downstream usb 1 02 with present embodiment, can in like manner obtain.
Current detection module 103 is by realizing between the Vbus holding wire that is connected upstream usb 1 01 and downstream usb 1 02 in the usb hub 100 of the belt current measuring ability that present embodiment provides, in actual applications, can also be with current detection module 103 by realizing between the GND holding wire that is connected upstream usb 1 01 and downstream usb 1 02, the current value on the GND holding wire that this moment, current detection module 103 detected between upstream usb 1s 01 and the downstream usb 1 02.
The hub 100 that present embodiment provides can also have the LED light of indicating various states, two kinds of common indicator lights are power supply and port status indicator light, the hub that has also has indicator light of monitor port communications status and conflict or the like, and those skilled in the art can design as required voluntarily.
Embodiment 2:
Referring to Fig. 2, the usb hub 200 that present embodiment provides a kind of belt current to detect, specifically comprise a upstream USB interface 201, two downstream USB interface 202, three current detection modules 203, three output modules 204 and hub modules 205, its middle and upper reaches USB interface 201 is used to connect 1, two downstream USB interface 202 of upstream USB device and is used for connecting respectively two USB device 2; Upstream USB interface 201 links to each other with two downstream USB interface 202 respectively by hub module 205, is used to realize the function of a upstream USB interface 201 with the hub of two downstream USB interface 202; Wherein two current detection modules 203 are connected on respectively on the Vbus holding wire or GND holding wire between hub module 205 and two the downstream USB interface 202, another current detection module 203 is connected on the Vbus holding wire between upstream USB interface 201 and the hub module 205, is used to detect the current value on the USB interface of being connected; The output port of three current detection modules 203 links to each other with three output modules 204 respectively, is used to export detected current value; Current detection module 203, output module 204 and hub module 205 provide electric power by upstream USB interface 201 for it.
The form of upstream USB device 1 includes but not limited to desktop computer, notebook computer, server, special machine, card reader, communication apparatus, digital camera, hub or PDA etc.
Because the USB interface of upstream USB device 1 is generally the form of female, and upstream USB device 1 is used for communicating with upstream USB interface 201, so upstream USB interface 201 is generally the form of male, in like manner, the downstream USB interface 202 that links to each other with USB device 2 in this hub 200 is generally the form of female, and the USB interface of USB device 2 is generally the form of male.The connected mode of USB interface is a variety of in addition, and those skilled in the art can do suitable modification and improvement according to present embodiment, for example uses A type USB interface to realize being connected with Type B USB interface or other interface shape.
Upstream USB interface 201 links to each other with two downstream USB interface 202 respectively by hub module 205, and the hub module 205 general hub chip that adopt realize that for example AU9254A21 is exactly the hub chip of an expansion four of common usefulness.
Current detection module 203 in the usb hub 200 of the belt current measuring ability that present embodiment provides is connected on when realizing on the Vbus holding wire of USB interface, the current value on the Vbus holding wire that this moment, current detection module 203 detected between upstream USB interface 201 and the downstream USB interface 202; Current detection module 203 is connected on when realizing on the GND holding wire of USB interface, the current value on the GND holding wire that this moment, current detection module 203 detected between upstream USB interface 201 and the downstream USB interface 202.
In concrete production practices, the specific implementation of current detection module 203 has a variety of modes, the current detecting part that for example can form by resistance and MAX471 chip (the current detecting part also can be only to be made up of resistance), and A/D conversion chip TLC1549 realizes, the current detecting part of perhaps forming by resistance and MAX471 chip (the current detecting part also can be only to be made up of resistance), and special-purpose voltage/frequency conversion chip (voltage/frequency change-over circuit) and counting chip realization, can be light signal also with current conversion, intensity by sensed light signal realizes again, again or current conversion can be become field signal, realize by detecting field signal intensity again, or the like, those skilled in the art can do simple variant according to present embodiment, methods such as equal replacement and improvement all can realize.
Output module 204 can be a display unit, for example segment encode display, matrix display, character indicator, image display or needle dial etc.; Each output module 204 can be a display unit in the present embodiment, shows current value separately respectively; Can also be that at least two output modules 204 are realized by a display unit, for example show separately current value, or circulation show each current value etc. at the diverse location of a display unit.
Output module 204 can also be made up of storage chip, control chip and interface chip, storage chip is used for storaging current detection module 203 detected current values, storage mode is a lot, for example storage chip can be according to coming the store electricity flow valuve memory time that sets in advance at interval, for example can set in advance every interval storage in 1 minute primary current value, a current value was stored in 1 minute in the every interval of storage chip so, and more for example, storage chip can also only be stored current current value; Control chip reads out the current value of correspondence from storage chip, and be sent to interface chip, for example can be after receiving the order of inquiry current values such as upstream USB device 1 or other main frame, peripheral hardware when control chip, if the order of inquiry current value is to read the 5th minute current value, then control chip reads out the 5th minute the current value of storing in the storage chip, is sent to interface chip; Interface chip is exported this current value.Wherein, storage chip and control chip can be integrated in the control chip and realize, interface chip can be independent UART, RS-232, RS-485, ATA or USB interface chip etc., also can be UART, RS-232, RS-485, ATA or the USB interface that is integrated in the control chip, can also be and upstream USB interface 201 shared USB interface; Each output module 204 in the present embodiment can use different interface chips to export each self-corresponding current value respectively, also can be the shared interface chip of interface chip in two or three in three output modules 204, control its output according to the mode of serial or parallel by control chip (control device such as single-chip microcomputer).
Present embodiment middle and lower reaches USB interface 202 is two, in actual applications, downstream USB interface 202 can also be three, four, eight, 16 or the like, decide according to the type of selected hub chip, what present embodiment was selected is an expansion two hub chip, be that example describes with the hub of two downstream USB interface 202 promptly with a upstream USB interface 201, and upstream USB interface 201 is consistent with the interface principle of plural downstream USB interface 202 with present embodiment, can in like manner obtain.
The number of current detection module 203 can be upstream USB interface 201 numbers and downstream USB interface 202 numbers and, this moment hub 200 each USB interface holding wire on the current detection module 203 of all connecting, thereby realize the detection of current value on upstream usb bus and each downstream USB line; The number of current detection module 203 also can less than upstream USB interface 201 numbers and downstream USB interface 202 numbers and, this moment, current detection module 203 can be selected to be connected on the Vbus holding wire or GND holding wire of several USB interface wherein, was used to detect corresponding USB interface current value.
In like manner, the number of output module 204 can be identical with the number of current detection module 203, also can be less than the number of current detection module 203, preferably, output module 204 is identical with the quantity of current detection module 203, output port with current detection module 203 links to each other respectively, is used for the corresponding USB interface Vbus holding wire of output current detection module 203 detections or the current value on the GND holding wire.
The hub 200 that present embodiment provides can also have the LED light of indicating various states, two kinds of common indicator lights are power supply and port status indicator light, the hub that has also has indicator light of monitor port communications status and conflict or the like, and those skilled in the art can design as required voluntarily.
Embodiment 3:
Referring to Fig. 3, present embodiment provides a kind of usb hub 300 of belt current measuring ability, specifically comprise a upstream USB interface 301, two downstream USB interface 302, three current detection modules 303, one select handover module 304, an output module 305 and a hub module 306, its middle and upper reaches USB interface 301 is used to connect 1, two downstream USB interface 302 of upstream USB device and is used for connecting respectively two USB device 2; Upstream USB interface 301 links to each other with two downstream USB interface 302 respectively by hub module 306, is used to realize the function of a upstream USB interface 301 with the hub of two downstream USB interface 302; Wherein two current detection modules 303 are connected on respectively on the Vbus holding wire or GND holding wire between hub module 306 and two the downstream USB interface 302, another current detection module 303 is connected on the Vbus holding wire between upstream USB interface 301 and the hub module 306, is used to detect the current value on the USB interface of being connected; The output port of three current detection modules 303 links to each other with selecting handover module 304 respectively, select handover module 304 to link to each other, be used for selecting a detected current value of current detection module by output module 305 outputs from three current detection modules 303 with output module 305; Current detection module 303, selection handover module 304, output module 305 and hub module 306 provide electric power by upstream USB interface 301 for it.
The form of upstream USB device 1 includes but not limited to desktop computer, notebook computer, server, special machine, card reader, communication apparatus, digital camera, hub or PDA etc.
Because the USB interface of upstream USB device 1 is generally the form of female, and upstream USB device 1 is used for communicating with upstream USB interface 301, so upstream USB interface 301 is generally the form of male, in like manner, the downstream USB interface 302 that links to each other with USB device 2 in this hub 300 is generally the form of female, and the USB interface of USB device 2 is generally the form of male.The connected mode of USB interface is a variety of in addition, and those skilled in the art can do suitable modification and improvement according to present embodiment, for example uses A type USB interface to realize being connected with Type B USB interface or other interface shape.
Current detection module 303 in the usb hub 300 of the belt current measuring ability that present embodiment provides is connected on when realizing on the Vbus holding wire of USB interface, the current value on the Vbus holding wire that this moment, current detection module 303 detected between upstream USB interface 301 and the downstream USB interface 302; Current detection module 303 is connected on when realizing on the GND holding wire of USB interface, the current value on the GND holding wire that this moment, current detection module 303 detected between upstream USB interface 301 and the downstream USB interface 302.
In concrete production practices, the specific implementation of current detection module 303 has a variety of modes, the current detecting part that for example can form by resistance and MAX471 chip (the current detecting part also can be only to be made up of resistance), and A/D conversion chip TLC1549 realizes, the current detecting part of perhaps forming by resistance and MAX471 chip (the current detecting part also can be only to be made up of resistance), and special-purpose voltage/frequency conversion chip (voltage/frequency change-over circuit) and counting chip realization, can be light signal also with current conversion, intensity by sensed light signal realizes again, again or current conversion can be become field signal, realize by detecting field signal intensity again, or the like, those skilled in the art can do simple variant according to present embodiment, methods such as equal replacement and improvement all can realize.
Hub module 306 is realized by hub chip that generally for example the AU9254A21 chip is exactly the hub chip of an expansion four, i.e. HUB chip.
The output port of three current detection modules 303 links to each other with selecting handover module 304, selects handover module 304 to be used for delivering to output module 305 outputs from the current value that three current detection modules 303 are selected a current detection module; Select handover module 304 can select selector switch for use, for example the current detection module in the present embodiment 303 has 3, can be provided with 3 selector switches this moment on device 300, when which current detection module of output 303 detected current values are selected in hope, then utilize selector switch to select corresponding current detection module 303 to export and get final product; Select handover module 304 to form by control chip and selector switch.
Select handover module 304 to link to each other, be used to export the current value on the corresponding USB interface holding wire of selecting handover module 304 selections with output module 305; Output module 305 can be a display unit, for example segment encode display, matrix display, character indicator, image display or needle dial etc.; Output module 305 can also be made up of storage chip, control chip and interface chip, storage chip is used for storaging current detection module 303 detected current values, storage mode is a lot, for example storage chip can be according to coming the store electricity flow valuve memory time that sets in advance at interval, for example can set in advance every interval storage in 1 minute primary current value, a current value was stored in 1 minute in the every interval of storage chip so, and more for example, storage chip can also only be stored current current value; Control chip reads out the current value of correspondence from storage chip, and be sent to interface chip, after for example receiving the order of inquiry current values such as upstream USB device 1 or other main frame, peripheral hardware when control chip, if the order of inquiry current value is to read the 5th minute current value, then control chip reads out the 5th minute the current value of storing in the storage chip, is sent to interface chip; Interface chip is exported this current value.Wherein, storage chip and control chip can be integrated in the control chip and realize, interface chip can be independent UART, RS-232, RS-485, ATA or USB interface chip etc., also can be UART, RS-232, RS-485, ATA or the USB interface that is integrated in the control chip, can also be and upstream USB interface 301 shared USB interface.
Present embodiment middle and lower reaches USB interface 302 is two, in actual applications, downstream USB interface 302 can also be three, four, eight, 16 or the like, decide according to the type of selected hub chip, what present embodiment was selected is an expansion two hub chip, be that example describes with the hub of two downstream USB interface 302 promptly with a upstream USB interface 301, and upstream USB interface 301 is consistent with the interface principle of plural downstream USB interface 302 with present embodiment, can in like manner obtain.
The number of current detection module 303 can be upstream USB interface 301 numbers and downstream USB interface 302 numbers and, this moment hub 300 each USB interface holding wire on the current detection module 303 of all connecting, thereby realize the detection of current value on upstream usb bus and each downstream USB line; The number of current detection module 303 also can less than upstream USB interface 301 numbers and downstream USB interface 302 numbers and, this moment, current detection module 303 can be selected to be connected on the Vbus holding wire or GND holding wire of several USB interface wherein, was used to detect corresponding USB interface current value.Preferably, present embodiment be the number with current detection module 303 be upstream USB interface 301 numbers and downstream USB interface 302 numbers and situation be that example describes, the number of current detection module 303 less than upstream USB interface 301 numbers and downstream USB interface 302 numbers and situation user can obtain according to the present embodiment modification, repeat no more herein.
The hub 300 that present embodiment provides can also have the LED light of indicating various states, two kinds of common indicator lights are power supply and port status indicator light, the hub that has also has indicator light of monitor port communications status and conflict or the like, and those skilled in the art can design as required voluntarily.
The usb hub of the belt current measuring ability that the utility model embodiment provides can show output simply and easily or export current value on the corresponding USB line by interface, this equipment has overcome present production, measuring USB device in test or the debugging need be by measuring the operating current that other parameter indirect calculation obtains USB device, make to measure USB device operating current problem intuitively inadequately, take that circuit detects or need destroy USB device when using ammeter to detect outward but also overcome to use, expose the inconvenience that circuit board could be realized, the more important thing is the problem of having avoided when detecting the USB device operating current, influencing the operating state of USB device, in addition, because the usb hub that the utility model embodiment provides can pass through the USB interface power taking, so also do not need to use additional power supply.Further, the usb hub of the belt current measuring ability that the utility model provides can be realized the operating operating current of USB device is monitored in real time, and is very suitable for the situation of needs work in 24 hours; In addition, the usb hub of the belt current measuring ability that provides by the utility model can very intuitively obtain the current value on the corresponding USB circuit very easily, does not need the engineering staff to go test one by one, so improved production efficiency to a great extent.
The above only is preferred embodiment of the present utility model, and is in order to restriction the utility model, not all within spirit of the present utility model and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within the protection range of the present utility model.