CN112100104B - Universal serial bus device, system and communication equipment - Google Patents

Universal serial bus device, system and communication equipment Download PDF

Info

Publication number
CN112100104B
CN112100104B CN202010776787.6A CN202010776787A CN112100104B CN 112100104 B CN112100104 B CN 112100104B CN 202010776787 A CN202010776787 A CN 202010776787A CN 112100104 B CN112100104 B CN 112100104B
Authority
CN
China
Prior art keywords
signal
switch
channel
state quantity
port
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.)
Active
Application number
CN202010776787.6A
Other languages
Chinese (zh)
Other versions
CN112100104A (en
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.)
Fibocom Wireless Inc
Original Assignee
Fibocom Wireless Inc
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 Fibocom Wireless Inc filed Critical Fibocom Wireless Inc
Priority to CN202010776787.6A priority Critical patent/CN112100104B/en
Publication of CN112100104A publication Critical patent/CN112100104A/en
Application granted granted Critical
Publication of CN112100104B publication Critical patent/CN112100104B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/267Reconfiguring circuits for testing, e.g. LSSD, partitioning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Information Transfer Systems (AREA)

Abstract

The utility model relates to a USB device, system and communications facilities, be provided with the quantity of state generating circuit in USB platform side, receive different level signals according to the quantity of state generating circuit, can make the quantity of state generating circuit export different quantities of state to the treater. The processor can control the universal serial bus device to transmit signals through different signal channels according to the received state quantity, and in the state, only the signal detector connected to the bus switch needs to analyze whether the signal detector receives the signals, so that whether the corresponding signal channel can carry out signal transmission detection can be realized, namely whether the USB3.0 data channel on the platform side is switched and whether the electrical connectivity is normal is also realized.

Description

Universal serial bus device, system and communication equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a universal serial bus device, a system, and a communication device.
Background
USB (Universal Serial Bus) has three different appearance interfaces, namely Type-A, Type-B and Type-C. Type-A is the most extensive interface standard among computer, the electronic accessories, and mouse, USB flash disk, data line are all this interface mostly, and the volume is also the biggest. Type-B is generally used for external devices such as printers, scanners, USB HUBs, and the like. Type-C has the volume that all is far less than Type-A and Type-B, is up-to-date USB interface appearance standard, and this kind of interface does not have positive and negative direction difference, can plug at will. In addition, Type-C is an interface Type that can be applied to both a PC (master device) and an external device (slave device, such as a mobile phone).
The USB interface device of Type-C Type is generally connected to Type-C's both sides after directly forking USB 2.0's D + signal line and D-signal line and realizes positive reverse insertion at present. If this method is applied to USB3.0, the direct branching of the signal line may affect the communication rate, even resulting in unstable communication or data transmission failure. Therefore, in 5G products, a switch is often integrated inside a platform of the USB device for switching USB3.0 data channels, so that the device supports the USB3.0 forward and reverse plug function. However, in the scheme of switching the data channel by integrating the switch inside the platform, the electrical connection abnormality of the data channel will cause that the normal data transmission cannot be realized,
when the production line is used for testing the electrical connectivity, the testing equipment of one station can not be changed after being connected. The traditional TYPE-C design mainly aims at USB2.0, and the problem of switching of data channels on the platform side does not exist. However, the USB3.0 needs to verify whether the data channel switching and the electrical connectivity are normal, so the conventional USB test scheme cannot test the TYPE-C forward and reverse insertion function, i.e., cannot verify whether the USB3.0 data channel switching and the electrical connectivity are normal.
Disclosure of Invention
Therefore, it is necessary to provide a USB device, a USB system and a USB communication device for the problem that the conventional USB test scheme cannot achieve the TYPE-C positive and negative insertion function test.
A universal serial bus device comprises a processor, a bus switch and a state quantity generating circuit, wherein the state quantity generating circuit is used for being connected with an external signal source, the state quantity generating circuit is connected with the processor, a first signal channel and a second signal channel are arranged between the processor and the bus switch, the state quantity generating circuit is connected with the bus switch, a third signal channel and a fourth signal channel are arranged inside the bus switch, the bus switch is used for being connected with an external signal detector, the state quantity generating circuit is used for outputting corresponding state quantity to the processor according to a received level signal, and the processor is used for controlling the conduction of the first signal channel or the conduction of the second signal channel according to the state quantity; the state quantity generating circuit is also used for controlling the conduction of the third signal channel or the fourth signal channel according to the received level signal so as to enable an external signal detector to be accessed through the third signal channel or the fourth signal channel.
In one embodiment, the processor includes a channel switch, a first signal port, and a second signal port, the channel switch is connected to the state quantity generation circuit, the channel switch is configured to access the first signal port or the second signal port according to a received state quantity, and the first signal port and the second signal port are both connected to the bus switch.
In one embodiment, the processor further comprises a universal serial bus core, the universal serial bus core being connected to the channel switch.
In one embodiment, the bus switch includes a selection switch port, a third signal port, a fourth signal port, and a fifth signal port, the third signal port is connected to the first signal port, the fourth signal port is connected to the second signal port, the selection switch port is connected to the state quantity generation circuit, the fifth signal port is used for connecting an external signal detector, and the fifth signal port is switched to be connected to the third signal port or the fourth signal port according to different level signals received by the selection switch port.
In one embodiment, the state quantity generating circuit comprises a first switch tube, a second switch tube, a third switch tube, a first resistor and a second resistor, the control end of the first switching tube is connected with the control end of the third switching tube and the external signal source, the selective switching port is connected with the control end of the first switch tube, the first end of the first switch tube is connected with the first end of the second switch tube and the power supply, the second end of the first switch tube is connected with one end of the first resistor, the other end of the first resistor is connected with the channel selector switch, the second end of the second switch tube is connected with one end of the second resistor, the other end of the second resistor is connected with the channel change-over switch, the control end of the second switching tube is connected with the first end of the third switching tube, and the second end of the third switching tube is grounded.
In one embodiment, the first switch tube, the second switch tube and the third switch tube are all metal oxide semiconductor field effect transistors.
A universal serial bus system comprises a signal detector, a signal source and the universal serial bus device.
In one embodiment, the signal detector is a personal computer.
A communication device comprises the universal serial bus device.
In one embodiment, the communication device is a mobile phone or a tablet computer.
According to the universal serial bus device, the universal serial bus system and the communication equipment, the state quantity generating circuit is arranged on the side of the universal serial bus platform, and different state quantities can be output to the processor by the state quantity generating circuit according to different level signals received by the state quantity generating circuit. The processor can control the universal serial bus device to transmit signals through different signal channels according to the received state quantity, and in the state, only the signal detector connected to the bus switch needs to analyze whether the signal detector receives the signals, so that whether the corresponding signal channel can carry out signal transmission detection can be realized, namely whether the USB3.0 data channel on the platform side is switched and whether the electrical connectivity is normal is also realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the conventional technologies of the present application, the drawings used in the descriptions of the embodiments or the conventional technologies will be briefly introduced below, it is obvious that the drawings in the following descriptions are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a block diagram of an embodiment of a USB device;
FIG. 2 is a schematic diagram of a USB device according to another embodiment;
FIG. 3 is a block diagram of a USB device according to another embodiment.
Detailed Description
To facilitate an understanding of the present application, the present application will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present application are illustrated in the accompanying drawings. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Referring to fig. 1, a universal serial bus device includes a processor 10, a bus switch 30 and a state quantity generating circuit 20, where the state quantity generating circuit 20 is used to connect an external signal source 40, the state quantity generating circuit 20 is connected to the processor 10, a first signal channel and a second signal channel are provided between the processor 10 and the bus switch 30, the state quantity generating circuit 20 is connected to the bus switch 30, a third signal channel and a fourth signal channel are provided inside the bus switch 30, the bus switch 30 is used to connect an external signal detector 50, the state quantity generating circuit 20 is used to output a corresponding state quantity to the processor 10 according to a received level signal, and the processor 10 is used to control the conduction of the first signal channel or the conduction of the second signal channel according to the state quantity; the state quantity generating circuit 20 is further configured to control the third signal channel or the fourth signal channel to be turned on according to the received level signal, so that the external signal detector 50 is connected through the third signal channel or the fourth signal channel.
Specifically, in the USB, in order to realize the function of forward and backward insertion of the USB device, two different signal transmission lines are provided in the USB device. The selection of the first signal channel or the second signal channel, that is, the control of the conduction of the first signal channel or the control of the conduction of the second signal channel, is realized by different state quantities received by the processor 10. The third signal path and the fourth signal path are different circuit types inside the bus switch 30, and the selection of the third signal path or the fourth signal path is determined by the level transmitted to the bus switch 30 by the state quantity generating circuit 20. Therefore, with the solution of this embodiment, only different level signals need to be input to the state quantity generating circuit 20, so that only the first signal channel and the third signal channel of the usb device are simultaneously conducted. Then, by determining whether the external signal detector 50 receives a corresponding signal at this time, it is possible to perform a detection operation of whether the electrical connection of the first signal transmission line is normal. Similarly, only the second signal channel and the fourth signal channel are controlled to be conducted simultaneously, and the external signal detector 50 determines whether a corresponding signal is received at this time, so that the operation of detecting whether the electrical connection of the second signal transmission line is normal can be realized.
It can be understood that there are two output ports of the state quantity generating circuit 20, and the two signal ports output different combinations of level signals under the control of the input level signals, that is, the corresponding state quantities. For example, in one embodiment, two level signals in the state quantity are represented by CCA and CCB, respectively, and if CCA is high level, that is, the state quantity is (1, X), the first signal channel is controlled to be turned on; and if CCB is high level, namely the state quantity is (X, 1), controlling the second signal channel to be conducted. It should be noted that, because the USB2.0 device does not have the problem of data channel switching, the USB serial bus provided in this embodiment is mainly applied to the USB3.0 device, so as to solve the problem of testing the positive and negative insertion function of the TYPE-C on the USB3.0 platform side, that is, the electrical connection detection of the data channel on the USB3.0 platform side.
Referring to fig. 2, in an embodiment, the processor 10 includes a channel switch 11, a first signal port P0 and a second signal port P1, the channel switch 11 is connected to the state quantity generating circuit 20 (not shown), the channel switch 11 is used to access the first signal port P0 or the second signal port P1 according to the received state quantity, and the first signal port P0 and the second signal port P1 are both connected to the bus switch 30.
Specifically, in the present embodiment, the first signal channel is a channel for signal transmission between the channel switch 11 and the first signal port P0 and the bus switch 30, and the second signal channel is a channel for signal transmission between the channel switch 11 and the second signal port P1 and the bus switch 30. Therefore, in the present embodiment, the switching operation of the first signal path and the second signal path is mainly realized by controlling the path switch 11 to connect the first signal port P0 or the second signal port, that is, when the path switch 11 is connected to the first signal port P0, the first signal path is turned on, and when the path switch 11 is connected to the second signal port P1, the second signal path is turned on. It should be noted that the type of the channel switch 11 is not exclusive, as long as different signal ports can be accessed under different state quantities. For example, in one embodiment, the channel switching switch 11 may be implemented by a relay.
Referring to fig. 2, in one embodiment, the processor 10 further includes a usb core 12, and the usb core 12 is connected to the channel switch 11.
Specifically, the present embodiment may provide an API (Application Programming Interface) supporting a driver of a USB device and a driver of a USB host controller through a configuration of a serial bus Core (USB Core), and provide many data structures, macro definitions, and function functions to support hardware or devices.
Referring to fig. 2, in one embodiment, the bus switch 30 includes a selection switch port S _ SEL, a third signal port S0, a fourth signal port S1, and a fifth signal port S, the third signal port S0 is connected to the first signal port P0, the fourth signal port S1 is connected to the second signal port P1, the selection switch port S _ SEL is connected to the state quantity generating circuit 20, the fifth signal port S is used for connecting to the external signal detector 50, and the fifth signal port S is switched to be connected to the third signal port S0 or the fourth signal port S1 according to different level signals received by the selection switch port S _ SEL.
Specifically, the third signal channel in this embodiment is a data transmission channel between the third signal port S0 and the fifth signal port S, and the fourth signal channel is a data transmission channel between the fourth signal port S1 and the fifth signal port S. The bus switch 30 may transmit the signal transmitted by the processor 10 to the external signal detector 50 through different signal channels according to different accessed level signals, and further determine whether the electrical connection of the usb device is normal according to the signal condition received by the external signal detector 50.
Referring to fig. 3, in an embodiment, the state quantity generating circuit 20 includes a first switch tube T1, a second switch tube T2, a third switch tube T3, a first resistor R1 and a second resistor R2, a control end of the first switch tube T1 is connected to the control end of the third switch tube T3 and the external signal source 40, a selective switching port S _ SEL is connected to the control end of the first switch tube T1, a first end of the first switch tube T1 is connected to a first end of the second switch tube T2 and the power supply, a second end of the first switch tube T1 is connected to an end of the first resistor R1, another end of the first resistor R1 is connected to the channel switching switch 11, a second end of the second switch tube T2 is connected to an end of the second resistor R2, another end of the second resistor R2 is connected to the channel switching switch 11, a control end of the second switch tube T2 is connected to a first end of the third switch tube T3, and a second end of the third switch tube T3 is grounded.
Specifically, for example, when the external signal source 40 inputs a high level, that is, the control terminal of the first switch tube T1, the control terminal of the second switch tube T2 and the selection switch port S _ SEL of the bus switch 30 input a high level, the first switch tube T1 is turned off, and the second switch tube T2 is turned on. At this time, the second terminal of the second resistor R2 is caused to output a high level, the corresponding state quantity (CCA, CCB) is (X, 1), and the corresponding first signal port P0 of the processor 10 is connected to the channel switch 11. Meanwhile, under the action of the high level, the third signal port S0 and the fifth signal port S of the bus switch 30 are conducted, so that the first signal transmission line of the entire usb device is conducted. At this time, it is only necessary to determine whether a signal is outputted by the external signal detector 50, and a result of whether the first signal transmission line of the usb device is electrically connected normally can be obtained. Correspondingly, when the external signal detector 50 detects that there is a signal transmission, the first signal transmission line of the usb device is electrically connected normally; when the external signal detector 50 does not detect the signal transmission, the first signal transmission line of the universal serial bus device is electrically connected abnormally.
When the external signal source 40 inputs a low level, that is, the control terminal of the first switch tube T1, the control terminal of the second switch tube T2 and the selection switch port S _ SEL of the bus switch 30 input a low level, the first switch tube T1 is turned on, the second switch tube T2 is turned off, so that the second terminal of the first resistor R1 outputs a high level, at this time, the corresponding state quantity (CCA, CCB) is (1, X), and the second signal port P1 in the corresponding processor 10 is connected to the channel switch 11. Meanwhile, under the action of the low level, the fourth signal port S1 and the fifth signal port S of the bus switch 30 are conducted, so that the second signal transmission line of the entire usb device is conducted. At this time, it is only necessary to determine whether or not a signal is output by the external signal detector 50, and a result of whether or not the electrical connection of the second signal transmission line of the usb device is normal can be obtained. Correspondingly, when the external signal detector 50 detects that there is a signal transmission, the second signal transmission line of the usb device is electrically connected normally; when the external signal detector 50 does not detect the signal transmission, the second signal transmission line of the universal serial bus device is electrically connected abnormally.
It should be noted that, for the switching tubes of different conduction types, the specific circuit operation modes will be different, and when the basic principle is the same, the high level or the low level is input, so that the state quantity generation circuit 20 outputs different state quantities, controls different signal lines of the usb device to conduct, and then determines whether the lines can normally transmit signals to the external signal detector 50.
It is to be understood that the specific type of the switching tube is not exclusive, and in one embodiment, the first switching tube T1, the second switching tube T2 and the third switching tube T3 are all metal oxide semiconductor field effect transistors.
Specifically, a Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET) is a Field-Effect Transistor that can be widely used in analog circuits and digital circuits. The mosfet may be classified into an N-channel type in which electrons are dominant and a P-channel type in which holes are dominant according to their channel polarities, and are generally called an N-type metal oxide semiconductor field effect transistor (NMOSFET) and a P-type metal oxide semiconductor field effect transistor (PMOSFET). In the actual state quantity generating circuit 20, different types of MOSFETs may be specifically selected by a user in combination with a use scenario, as long as different state quantities are output at high and low levels, so that the first signal channel is turned on or the second signal channel is turned on.
It is to be understood that in other embodiments, a transistor or the like may also be used as the switching tube of the circuit, or different types of switching tubes may be used for the first switching tube T1, the second switching tube T2, and the third switching tube T3, as long as they can output corresponding state quantities when different levels of input are input.
In the usb device, the state quantity generating circuit 20 is provided on the usb platform side, and the state quantity generating circuit 20 can output different state quantities to the processor 10 in response to the state quantity generating circuit 20 receiving different level signals. The processor 10 can control the USB device to perform signal transmission through different signal channels according to the received state quantity, and in this state, it only needs to analyze whether the signal detector 50 connected to the bus switch 30 receives a signal, so as to detect whether the corresponding signal channel can perform signal transmission, that is, detect whether the USB3.0 data channel on the platform side is switched and whether the electrical connectivity is normal
A universal serial bus system comprises a signal detector 50, a signal source 40 and the universal serial bus device.
Specifically, referring to fig. 3 in combination, the usb device includes a processor 10, a bus switch 30 and a state quantity generating circuit 20, wherein the state quantity generating circuit 20 is configured to connect to an external signal source 40, the state quantity generating circuit 20 is connected to the processor 10, a first signal channel and a second signal channel are disposed between the processor 10 and the bus switch 30, the state quantity generating circuit 20 is connected to the bus switch 30, a third signal channel and a fourth signal channel are disposed inside the bus switch 30, the bus switch 30 is configured to connect to an external signal detector 50, the state quantity generating circuit 20 is configured to output a corresponding state quantity to the processor 10 according to a received level signal, and the processor 10 is configured to control the conduction of the first signal channel or the conduction of the second signal channel according to the state quantity; the state quantity generating circuit 20 is further configured to control the third signal channel or the fourth signal channel to be turned on according to the received level signal, so that the external signal detector 50 is connected through the third signal channel or the fourth signal channel.
In order to realize the function of forward and backward insertion of the USB device, two different signal transmission lines are disposed in the USB device. The selection of the first signal channel or the second signal channel, that is, the control of the conduction of the first signal channel or the control of the conduction of the second signal channel, is implemented by different state quantities received by the processor 10. The third signal path and the fourth signal path are different circuit types inside the bus switch 30, and the selection of the third signal path or the fourth signal path is determined by the level transmitted to the bus switch 30 by the state quantity generating circuit 20. Therefore, with the solution of this embodiment, only different level signals need to be input to the state quantity generating circuit 20, so that only the first signal channel and the third signal channel of the usb device are simultaneously conducted. Then, by determining whether the external signal detector 50 receives a corresponding signal at this time, it is possible to perform a detection operation of whether the electrical connection of the first signal transmission line is normal. Similarly, only the second signal channel and the fourth signal channel are controlled to be conducted simultaneously, and the external signal detector 50 determines whether a corresponding signal is received at this time, so that the operation of detecting whether the electrical connection of the second signal transmission line is normal can be realized.
It can be understood that there are two output ports of the state quantity generating circuit 20, and the two signal ports output different combinations of level signals under the control of the input level signals, that is, the corresponding state quantities. For example, in one embodiment, two level signals in the state quantity are represented by CCA and CCB, respectively, and if CCA is at a high level, that is, the state quantity is (1, X), the first signal channel is controlled to be on; if CCB is high, namely the state quantity is (X, 1), the second signal channel is controlled to be conducted. It should be noted that, because the USB2.0 device does not have the problem of switching data channels, the USB provided by this embodiment is mainly applied to the USB3.0 device, so as to solve the problem of testing the TYPE-C positive and negative insertion function of the USB3.0 platform side, that is, the electrical connection detection of the data channel of the USB3.0 platform side.
It should be noted that the type of signal detector 50 is not exclusive and in one embodiment, the signal detector 50 is a personal computer. At this time, the fifth signal port S of the bus switch 30 is connected to the personal computer through the Type-C interface, and the electrical connection detection operation of the usb device is implemented by determining whether the personal computer receives a signal. In other embodiments, other types of signal detectors 50 may be used, as long as both received and non-received signal conditions can be fed back to the user.
In the usb system, the state quantity generating circuit 20 is provided on the usb platform side, and the state quantity generating circuit 20 can output different state quantities to the processor 10 in response to the state quantity generating circuit 20 receiving different level signals. The processor 10 can control the USB device to perform signal transmission through different signal channels according to the received state quantity, and in this state, it only needs to analyze whether the signal detector 50 connected to the bus switch 30 receives a signal, so as to detect whether the corresponding signal channel can perform signal transmission, that is, detect whether the USB3.0 data channel on the platform side is switched and whether the electrical connectivity is normal
A communication device comprises the universal serial bus device.
Specifically, referring to fig. 3 in combination, the usb device includes a processor 10, a bus switch 30 and a state quantity generating circuit 20, wherein the state quantity generating circuit 20 is configured to connect to an external signal source 40, the state quantity generating circuit 20 is connected to the processor 10, a first signal channel and a second signal channel are disposed between the processor 10 and the bus switch 30, the state quantity generating circuit 20 is connected to the bus switch 30, a third signal channel and a fourth signal channel are disposed inside the bus switch 30, the bus switch 30 is configured to connect to an external signal detector 50, the state quantity generating circuit 20 is configured to output a corresponding state quantity to the processor 10 according to a received level signal, and the processor 10 is configured to control the conduction of the first signal channel or the conduction of the second signal channel according to the state quantity; the state quantity generating circuit 20 is further configured to control the third signal channel or the fourth signal channel to be turned on according to the received level signal, so that the external signal detector 50 is connected through the third signal channel or the fourth signal channel.
In order to realize the function of forward and backward insertion of the USB device, two different signal transmission lines are disposed in the USB device. The selection of the first signal channel or the second signal channel, that is, the control of the conduction of the first signal channel or the control of the conduction of the second signal channel, is implemented by different state quantities received by the processor 10. The third signal path and the fourth signal path are different circuit types inside the bus switch 30, and the selection of the third signal path or the fourth signal path is determined by the level transmitted to the bus switch 30 by the state quantity generating circuit 20. Therefore, with the solution of this embodiment, only different level signals need to be input to the state quantity generating circuit 20, so that only the first signal channel and the third signal channel of the usb device are simultaneously conducted. Then, by determining whether the external signal detector 50 receives a corresponding signal at this time, it is possible to perform a detection operation of whether the electrical connection of the first signal transmission line is normal. Similarly, only the second signal channel and the fourth signal channel are controlled to be conducted simultaneously, and the external signal detector 50 determines whether a corresponding signal is received at this time, so that the operation of detecting whether the electrical connection of the second signal transmission line is normal can be realized.
It is understood that there are two output ports of the state quantity generating circuit 20, and the two signal ports output different combinations of level signals under the control of the input level signals, i.e. corresponding state quantities. For example, in one embodiment, two level signals in the state quantity are represented by CCA and CCB, respectively, and if CCA is high level, that is, the state quantity is (1, X), the first signal channel is controlled to be turned on; and if CCB is high level, namely the state quantity is (X, 1), controlling the second signal channel to be conducted. It should be noted that, because the USB2.0 device does not have the problem of data channel switching, the USB serial bus provided in this embodiment is mainly applied to the USB3.0 device, so as to solve the problem of testing the positive and negative insertion function of the TYPE-C on the USB3.0 platform side, that is, the electrical connection detection of the data channel on the USB3.0 platform side.
It should be noted that the type of communication device is not exclusive, and in one embodiment, the communication device is a cell phone or a tablet computer. In other embodiments, other devices with a universal serial bus interface are also possible.
In the communication device, the state quantity generating circuit 20 is provided on the usb platform side, and the state quantity generating circuit 20 can output different state quantities to the processor 10 according to the different level signals received by the state quantity generating circuit 20. The processor 10 can control the USB device to perform signal transmission through different signal channels according to the received state quantity, and in this state, it is only necessary to analyze whether the signal detector 50 connected to the bus switch 30 receives a signal, to detect whether the corresponding signal channel can perform signal transmission, that is, to detect whether the USB3.0 data channel on the platform side is switched and the electrical connectivity is normal.
All possible combinations of the technical features of the above embodiments may not be described for the sake of brevity, but should be considered as within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is specific and detailed, but not construed as limiting the scope of the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.

Claims (9)

1. A universal serial bus device is characterized by comprising a processor, a bus switch and a state quantity generating circuit, wherein the state quantity generating circuit is used for being connected with an external signal source, the state quantity generating circuit is connected with the processor, a first signal channel and a second signal channel are arranged between the processor and the bus switch, the state quantity generating circuit is connected with the bus switch, a third signal channel and a fourth signal channel are arranged inside the bus switch, the bus switch is used for being connected with an external signal detector,
The state quantity generating circuit is used for outputting corresponding state quantity to the processor according to the received level signal, and the processor is used for controlling the conduction of the first signal channel or the conduction of the second signal channel according to the state quantity; the state quantity generating circuit is further used for controlling the conduction of the third signal channel or the conduction of the fourth signal channel according to the received level signal so as to enable an external signal detector to be accessed through the third signal channel or the fourth signal channel; when the state quantity generating circuit receives a high level, the first signal channel and the third signal channel are controlled to be conducted at the same time, and when the state quantity generating circuit receives a low level, the second signal channel and the fourth signal channel are controlled to be conducted at the same time;
the state quantity generating circuit comprises a first switch tube, a second switch tube, a third switch tube, a first resistor and a second resistor, wherein the control end of the first switch tube is connected with the control end of the third switch tube and an external signal source, a bus switch is connected with the control end of the first switch tube, the first end of the first switch tube is connected with the first end of the second switch tube and a power supply, the second end of the first switch tube is connected with one end of the first resistor, the other end of the first resistor is connected with the processor, the second end of the second switch tube is connected with one end of the second resistor, the other end of the second resistor is connected with the processor, the control end of the second switch tube is connected with the first end of the third switch tube, and the second end of the third switch tube is grounded.
2. The usb device according to claim 1, wherein the processor includes a channel switch, a first signal port, and a second signal port, the channel switch is connected to the other end of the first resistor, the channel switch is connected to the other end of the second resistor, the channel switch is configured to access the first signal port or the second signal port according to a received state quantity, and the first signal port and the second signal port are both connected to the bus switch.
3. The usb device according to claim 2, wherein the processor further comprises a usb core, and the usb core is connected to the channel switch.
4. The usb device according to claim 2, wherein the bus switch includes a selective switch port, a third signal port, a fourth signal port and a fifth signal port, the third signal port is connected to the first signal port, the fourth signal port is connected to the second signal port, the selective switch port is connected to the control terminal of the first switch, the fifth signal port is used for connecting an external signal detector, and the fifth signal port is switched to be connected to the third signal port or the fourth signal port according to different level signals received by the selective switch port.
5. The usb device according to claim 1, wherein the first switch transistor, the second switch transistor and the third switch transistor are all mosfet transistors.
6. A universal serial bus system comprising a signal detector, a signal source and a universal serial bus device as claimed in any one of claims 1 to 5.
7. The USB system of claim 6, wherein the signal detector is a personal computer.
8. A communication apparatus comprising a USB device according to any one of claims 1 to 5.
9. The communication device of claim 8, wherein the communication device is a mobile phone or a tablet computer.
CN202010776787.6A 2020-08-05 2020-08-05 Universal serial bus device, system and communication equipment Active CN112100104B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010776787.6A CN112100104B (en) 2020-08-05 2020-08-05 Universal serial bus device, system and communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010776787.6A CN112100104B (en) 2020-08-05 2020-08-05 Universal serial bus device, system and communication equipment

Publications (2)

Publication Number Publication Date
CN112100104A CN112100104A (en) 2020-12-18
CN112100104B true CN112100104B (en) 2022-07-19

Family

ID=73750319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010776787.6A Active CN112100104B (en) 2020-08-05 2020-08-05 Universal serial bus device, system and communication equipment

Country Status (1)

Country Link
CN (1) CN112100104B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114296430A (en) * 2021-12-27 2022-04-08 武汉奥泽电子有限公司 Multi-state multi-semaphore serial feedback method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1580648A1 (en) * 2002-12-27 2005-09-28 Fujitsu Limited Usb device and method for controlling usb device
CN105487955A (en) * 2015-11-24 2016-04-13 英业达科技有限公司 Test jig and test method for universal serial bus type C port
CN205540713U (en) * 2015-12-31 2016-08-31 北京小鸟看看科技有限公司 Portable device
CN106776428A (en) * 2016-12-06 2017-05-31 广州视源电子科技股份有限公司 Terminal device, read-write device, data transmission system and hardware initialization method
CN208109980U (en) * 2018-03-08 2018-11-16 深圳市广和通无线股份有限公司 USB on off test device and its system
CN109062751A (en) * 2018-09-14 2018-12-21 电子科技大学中山学院 USB Type-C interface rapid test system and method
CN208538116U (en) * 2018-07-18 2019-02-22 惠州比亚迪电子有限公司 Test macro and interface test device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1580648A1 (en) * 2002-12-27 2005-09-28 Fujitsu Limited Usb device and method for controlling usb device
CN105487955A (en) * 2015-11-24 2016-04-13 英业达科技有限公司 Test jig and test method for universal serial bus type C port
CN205540713U (en) * 2015-12-31 2016-08-31 北京小鸟看看科技有限公司 Portable device
CN106776428A (en) * 2016-12-06 2017-05-31 广州视源电子科技股份有限公司 Terminal device, read-write device, data transmission system and hardware initialization method
CN208109980U (en) * 2018-03-08 2018-11-16 深圳市广和通无线股份有限公司 USB on off test device and its system
CN208538116U (en) * 2018-07-18 2019-02-22 惠州比亚迪电子有限公司 Test macro and interface test device
CN109062751A (en) * 2018-09-14 2018-12-21 电子科技大学中山学院 USB Type-C interface rapid test system and method

Also Published As

Publication number Publication date
CN112100104A (en) 2020-12-18

Similar Documents

Publication Publication Date Title
US8756358B2 (en) Method and device for identifying universal serial bus (USB) insertion or charger insertion of mobile terminal
CN111800697B (en) Charging box, earphone system, charging control method and storage medium
US10042801B2 (en) System for detecting universal serial bus (USB) device and method thereof
CN112189177B (en) Low power mode for USB C-type power delivery controller
KR101682611B1 (en) Cable with circuitry for communicating performance information
US20220075745A1 (en) Detection of displayport alternate mode communication and connector plug orientation without use of a power distribution controller
CN106445858B (en) Information processing method, information processing module and electronic equipment
US20200266819A1 (en) Repeater for an open-drain communication system using a current detector and a control logic circuit
CN112671084A (en) USB device and operation method thereof
CN107395476B (en) CAN chip for controlling local area network
KR20140126491A (en) power supply circuit and method for controlling thereof
CN112100104B (en) Universal serial bus device, system and communication equipment
CN111181738B (en) POE power supply equipment and system
WO2023061052A1 (en) Automatic jumper apparatus and communication device
US20210209054A1 (en) Cable, controller, and control method
CN107241141B (en) Drive chip, optical module switching method and PON (passive optical network) equipment
CN112701750A (en) Connector, electronic equipment and control method and device of electronic equipment
CN216561773U (en) Automatic wire jumper device and communication equipment
CN216817392U (en) Docking station equipment access detection circuit and equipment
CN215647302U (en) Audio processing device and audio system
CN209858632U (en) Current detection circuit
CN210488494U (en) EC reset circuit and electronic equipment based on USB C type interface
CN215912180U (en) Debugging serial port multiplexing circuit and multimedia playing equipment
CN111142831B (en) Information processing method, electronic equipment and storage medium
CN213402972U (en) Level conversion circuit and electric equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant