CN115825821A - Differential pair detection method and related device - Google Patents

Differential pair detection method and related device Download PDF

Info

Publication number
CN115825821A
CN115825821A CN202211467008.XA CN202211467008A CN115825821A CN 115825821 A CN115825821 A CN 115825821A CN 202211467008 A CN202211467008 A CN 202211467008A CN 115825821 A CN115825821 A CN 115825821A
Authority
CN
China
Prior art keywords
voltage
ended
difference
power supply
usb
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
CN202211467008.XA
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.)
Shenzhen Xfanic Technology Co Ltd
Original Assignee
Shenzhen Xfanic Technology 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 Shenzhen Xfanic Technology Co Ltd filed Critical Shenzhen Xfanic Technology Co Ltd
Priority to CN202211467008.XA priority Critical patent/CN115825821A/en
Publication of CN115825821A publication Critical patent/CN115825821A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application discloses a differential pair detection method and a related device, wherein the method comprises the following steps: switching the data channel to a data transmission channel; detecting a first single-ended voltage and a second single-ended voltage of a first transmission line, and a third single-ended voltage and a fourth single-ended voltage of a second transmission line; switching the data channel to a voltage test channel, and determining a fifth single-ended voltage and a sixth single-ended voltage of the first transmission line, and a seventh single-ended voltage and an eighth single-ended voltage of the second transmission line; determining a first voltage difference, a second voltage difference, a third voltage difference and a fourth voltage difference; determining a short circuit detection result; and sending the short circuit detection result to the second equipment. By adopting the embodiment of the application, the single-ended voltage of the USB interface differential pair of the USB Hub can be detected under different channels, the voltage difference of the single-ended voltage detected twice is calculated, and the short-circuit state of the USB interface differential pair is judged according to the voltage difference, so that the compatibility of the USB Hub is improved.

Description

Differential pair detection method and related device
Technical Field
The present application relates to the field of USB technologies, and in particular, to a differential pair detection method and a related apparatus.
Background
The application of the USB Hub (Universal Serial Bus Hub) in daily life of people is very wide, and the types of USB Hub matching devices are gradually diversified, but the compatibility problem of the USB Hub is accompanied by the problem that the USB Hub cannot be used, and the manual detection efficiency is low and the time cost is high.
Disclosure of Invention
The embodiment of the application provides a differential pair detection method and a related device, which can push user target content to a user according to a determined interest point, and are beneficial to accurately pushing content which is interested by the user.
In a first aspect, an embodiment of the present application provides a differential pair detection method, which is applied to a first device, where the first device is connected to a second device and a USB interface differential pair of a target USB Hub, respectively, and the USB interface differential pair includes a first transmission line and a second transmission line, where the method includes:
switching a data channel to a data transmission channel, wherein the data channel comprises the data transmission channel and a voltage test channel;
detecting a first single-ended voltage and a second single-ended voltage of the first transmission line, and a third single-ended voltage and a fourth single-ended voltage of the second transmission line;
switching the data channel to the voltage test channel, determining a fifth single-ended voltage and a sixth single-ended voltage of the first transmission line, and a seventh single-ended voltage and an eighth single-ended voltage of the second transmission line;
calculating a difference value between the first single-ended voltage and the fifth single-ended voltage, a difference value between the second single-ended voltage and the sixth single-ended voltage, a difference value between the third single-ended voltage and the seventh single-ended voltage, and a difference value between the fourth single-ended voltage and the eighth single-ended voltage to obtain a first voltage difference, a second voltage difference, a third voltage difference and a fourth voltage difference;
when any voltage difference of the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference is smaller than a preset voltage threshold value, determining that a short circuit detection result is that a short circuit exists;
when the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference are all equal to the preset voltage threshold, determining that the short circuit detection result is that an open circuit exists;
when the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference are all larger than the preset voltage threshold, determining that the short circuit detection result is in a normal state;
sending the short circuit detection result to the second device.
In a second aspect, an embodiment of the present application provides a differential pair detection system, which is applied to a first device, and the system includes:
the switch control module is respectively connected with the USB interface differential pair of the target USB Hub and the control center, and is used for controlling the control center to switch the data channel to the data transmission channel and switching the data channel to the voltage detection channel;
the voltage detection module is respectively connected with the USB interface differential pair and the control center and is used for detecting a first single-ended voltage and a second single-ended voltage of a first transmission line of the USB interface differential pair and a third single-ended voltage and a fourth single-ended voltage of a second transmission line after the data channel is switched to the data transmission channel by the switch control module; the switch control module is further configured to detect a fifth single-ended voltage and a sixth single-ended voltage of the first transmission line and a seventh single-ended voltage and an eighth single-ended voltage of the second transmission line of the USB interface differential pair after the data channel is switched to the voltage detection channel by the switch control module, and send the first voltage, the second voltage, the third voltage, the fourth voltage, the fifth voltage, the sixth voltage, the seventh voltage, and the eighth voltage to the control center;
the control center is connected with the device communication module and is configured to calculate a difference between the received first single-ended voltage and the received fifth single-ended voltage, a difference between the received second single-ended voltage and the received sixth single-ended voltage, a difference between the received third single-ended voltage and the received seventh single-ended voltage, and a difference between the received fourth single-ended voltage and the received eighth single-ended voltage, so as to obtain a first voltage difference, a second voltage difference, a third voltage difference, and a fourth voltage difference; the short circuit detection device is further used for determining that a short circuit exists in the short circuit detection result when any one of the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference is smaller than a preset voltage threshold; when the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference are all equal to the preset voltage threshold, determining that the short circuit detection result is that an open circuit exists; when the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference are all larger than the preset voltage threshold, determining that the short circuit detection result is in a normal state, and sending the short circuit detection result to the equipment communication module;
and the equipment communication module is connected with second equipment and used for receiving the short circuit detection result and sending the short circuit detection result to the second equipment.
In a third aspect, an embodiment of the present application provides a differential pair detection apparatus, which is applied to a first device, where the first device is connected to a second device and a USB interface differential pair, and the USB interface differential pair includes a first transmission line and a second transmission line, where the apparatus includes: a channel switching unit, a detection unit, a determination unit, a calculation unit and a transmission unit, wherein,
the channel switching unit is used for switching a data channel to a data transmission channel, wherein the data channel comprises the data transmission channel and a voltage test channel;
the detection unit is used for detecting a first single-ended voltage and a second single-ended voltage of the first transmission line, and a third single-ended voltage and a fourth single-ended voltage of the second transmission line;
the determining unit is configured to switch the data channel to the voltage test channel, and determine a fifth single-ended voltage and a sixth single-ended voltage of the first transmission line, and a seventh single-ended voltage and an eighth single-ended voltage of the second transmission line;
the calculating unit is configured to calculate a difference between the first single-ended voltage and the fifth single-ended voltage, a difference between the second single-ended voltage and the sixth single-ended voltage, a difference between the third single-ended voltage and the seventh single-ended voltage, and a difference between the fourth single-ended voltage and the eighth single-ended voltage, so as to obtain a first voltage difference, a second voltage difference, a third voltage difference, and a fourth voltage difference;
the determining unit is further configured to determine that a short circuit detection result is a short circuit when any one of the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference is smaller than a preset voltage threshold;
the determining unit is further configured to determine that the short circuit detection result is an open circuit when the first voltage difference, the second voltage difference, the third voltage difference, and the fourth voltage difference are all equal to the preset voltage threshold;
the determining unit is further configured to determine that the short circuit detection result is in a normal state when the first voltage difference, the second voltage difference, the third voltage difference, and the fourth voltage difference are all greater than the preset voltage threshold;
the sending unit is configured to send the short circuit detection result to the second device.
In a fourth aspect, embodiments of the present application provide an electronic device, including a processor, a memory, a communication interface, and one or more programs, stored in the memory and configured to be executed by the processor, the programs including instructions for performing some or all of the steps described in any of the methods of the first or second aspects of the embodiments of the present application.
In a fifth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods of the first aspect or the second aspect of the present application.
It can be seen that, in this embodiment of the application, the first device may switch the data channel to the data transmission channel, detect the first single-ended voltage and the second single-ended voltage of the first transmission line, and the third single-ended voltage and the fourth single-ended voltage of the second transmission line, the first device switches the data channel to the voltage test channel, determine the fifth single-ended voltage and the sixth single-ended voltage of the first transmission line, and the seventh single-ended voltage and the eighth single-ended voltage of the second transmission line, the first device further calculates a difference between the first single-ended voltage and the fifth single-ended voltage, a difference between the second single-ended voltage and the sixth single-ended voltage, a difference between the third single-ended voltage and the seventh single-ended voltage, and a difference between the fourth single-ended voltage and the eighth single-ended voltage, to obtain the first voltage difference, the second voltage difference, the third voltage difference, and the fourth voltage difference, and finally, the first device determines the short-circuit detection result according to the first voltage difference, the second voltage difference, the third voltage difference, and the fourth voltage difference, and sends the short-circuit detection result to the second device. Therefore, the single-ended voltage of the USB interface differential pair of the USB Hub is detected under different channels, the voltage difference of the single-ended voltage detected twice is calculated, the short-circuit state of the USB interface differential pair is judged according to the voltage difference, and the compatibility of the USB Hub is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a differential pair detection system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a differential pair detection method according to an embodiment of the present application;
fig. 3a is a schematic structural diagram of a differential pair detection system according to an embodiment of the present application;
fig. 3b is a schematic structural diagram of a voltage detection module according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 5 is a schematic diagram of a differential pair detection apparatus according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
1) The electronic device according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, which have wireless communication functions, and various forms of User Equipment (UE), mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices. In this application, the electronic device may further include a server.
2) The USB Hub is a device capable of extending one USB interface to a plurality of interfaces and allowing the extended interfaces to be used simultaneously. The interface protocol version of the USB Hub may be USB2.0, USB2.1, USB3.0, USB3.1, and USB3.2, and the interfaces of the USB Hub may be 4 and 7, which is not limited herein. The USB Hub can be connected with a PC device, and the PC device can automatically identify the connected USB Hub and other USB devices connected with the expansion interface of the USB Hub.
At present, when the USB Hub cannot be identified by a connecting system, the system cannot identify the reason why the USB Hub cannot be used, and cannot identify the problems of short circuit, empty solder, insufficient solder and the like of the USB Hub differential pair data line; and often, the USB device connected to the USB expansion interface cannot stably operate or cannot be identified by the system because its own power is too high or when multiple expansion interfaces are simultaneously connected to the USB device, resulting in poor compatibility of the USB Hub.
In view of the above problems, the present application provides a differential pair detection method and a related apparatus, which are described in detail below.
Referring to fig. 1, fig. 1 is a schematic diagram of an architecture of a differential pair detection system according to an embodiment of the present application, where the system architecture may include a first device 100a, a target USB Hub100b, and a second device 100c.
The first device 100a is connected to the second device 100c and the target USB Hub100b, the target USB Hub100b includes a USB uplink interface and a plurality of USB downlink interfaces, each USB interface corresponds to a differential pair, and one differential pair corresponds to two transmission lines, that is, the first transmission line and the second transmission line.
The first device 100a includes two transmission channels, namely a data transmission channel and a voltage detection channel, and the first device can detect the single-ended voltages of two transmission lines of the USB interface differential pair in the target USB Hub100b in the data transmission channel and the voltage detection channel, respectively.
The second device 100c may be a PC host, and is configured to receive the short circuit detection result sent by the first device 100a and the detection data sent by the first device 100a, and process and analyze the detection data.
After receiving a short circuit detection starting signal sent by the second device 100c within a preset time after initialization, the first device 100a starts short circuit detection on the target USB Hub100 b.
The first device 100a may detect a protocol version of a USB interface of the target USB Hub100b, and the first device may include a plurality of voltage detection modules, where each voltage detection module corresponds to a USB interface differential pair of the target USB Hub100b, and the plurality of voltage detection modules are configured to detect single-ended voltages of the first transmission line and the second transmission line of the corresponding USB interface differential pair simultaneously or one by one.
The first device 100a may include a USB power source, and the USB power source is configured to start supplying power to the USB interface when the USB interface is not sufficiently powered.
In one possible example, the first device 100a may switch the data channel to the data transmission channel, detect the first single-ended voltage and the second single-ended voltage of the first transmission line, and the third single-ended voltage and the fourth single-ended voltage of the second transmission line for each USB interface differential pair of the target USB Hub100b, the first device 100a then switches the data channel to the voltage test channel, determine the fifth single-ended voltage and the sixth single-ended voltage of the first transmission line, and the seventh single-ended voltage and the eighth single-ended voltage of the second transmission line, then the first device 100a calculates a difference between the first single-ended voltage and the fifth single-ended voltage, a difference between the second single-ended voltage and the sixth single-ended voltage, a difference between the third single-ended voltage and the seventh single-ended voltage, and a difference between the fourth single-ended voltage and the eighth single-ended voltage, obtain a first voltage difference, a second voltage difference, a third voltage difference, and a fourth voltage difference, and finally, the first device 100a determines a short circuit detection result for each USB interface pair according to the first voltage difference, the second voltage difference, the third voltage difference, and the fourth voltage difference, and the first device 100c, and send the short circuit detection result to the second device 100c. Therefore, the first device 100a detects the single-ended voltage of the USB interface differential pair of the target USB Hub100b in different channels, calculates the voltage difference, and determines the short-circuit state of the USB interface differential pair according to the voltage difference, which is beneficial to improving the compatibility of the USB Hub.
It should be noted that, in the present application, a plurality may refer to two or more, and details are not described later.
Referring to fig. 2, fig. 2 is a schematic flowchart of a differential pair detection method provided in an embodiment of the present application, and is applied to a first device, where the first device is respectively connected to a second device and a USB interface differential pair of a target USB Hub, and the USB interface differential pair includes a first transmission line and a second transmission line.
S201, switching a data channel to a data transmission channel, wherein the data channel comprises the data transmission channel and a voltage test channel.
The target USB Hub includes a plurality of USB interfaces, each USB interface corresponds to one differential pair, each differential pair corresponds to two transmission lines, and the USB interface differential line may be a differential pair corresponding to any interface of the plurality of interfaces of the target USB Hub.
The first device can be connected with a plurality of USB interfaces of the target USB Hub at the same time, and can detect single-ended voltages of a plurality of USB interface differential pairs at the same time.
S202, detecting a first single-ended voltage and a second single-ended voltage of the first transmission line, and a third single-ended voltage and a fourth single-ended voltage of the second transmission line.
After receiving a starting short circuit detection signal sent by the second equipment within a preset time after initialization, the first equipment starts to start the USB Hub short circuit detection.
The first device comprises a protocol detection module, the protocol detection module detects a protocol version of a target USB Hub before detecting a first single-ended voltage and a second single-ended voltage of the first transmission line, the protocol detection module can be CyUSB3014, and the protocol detection module is further used for collecting data of the target USB Hub and data of the high-speed transmission USB Hub.
The first single-ended voltage of the first transmission line corresponds to the single-ended voltage of the second transmission line, the third single-ended voltage corresponds to the fourth single-ended voltage, the first single-ended voltage corresponds to RX + of the USB interface differential pair, the third single-ended voltage corresponds to RX-of the USB interface differential pair, the second single-ended voltage corresponds to TX + of the USB interface differential pair, and the fourth single-ended voltage corresponds to TX-of the USB interface differential pair.
S203, switching the data channel to the voltage test channel, and determining a fifth single-ended voltage and a sixth single-ended voltage of the first transmission line, and a seventh single-ended voltage and an eighth single-ended voltage of the second transmission line.
The fifth single-ended voltage of the first transmission line corresponds to the single-ended voltage of the seventh transmission line, the sixth single-ended voltage corresponds to the eighth single-ended voltage, the fifth single-ended voltage corresponds to RX + of the USB interface differential pair, the seventh single-ended voltage corresponds to RX-of the USB interface differential pair, the sixth single-ended voltage corresponds to TX + of the USB interface differential pair, and the eighth single-ended voltage corresponds to TX-of the USB interface differential pair.
S204, calculating a difference between the first single-ended voltage and the fifth single-ended voltage, a difference between the second single-ended voltage and the sixth single-ended voltage, a difference between the third single-ended voltage and the seventh single-ended voltage, and a difference between the fourth single-ended voltage and the eighth single-ended voltage, to obtain a first voltage difference, a second voltage difference, a third voltage difference, and a fourth voltage difference.
S205, when any voltage difference of the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference is smaller than a preset voltage threshold value, determining that a short circuit detection result is that a short circuit exists.
S206, when the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference are all equal to the preset voltage threshold, determining that the short circuit detection result is open circuit.
And if the USB interface differential pair has an open circuit, the USB interface differential pair has empty solder and cold solder.
S207, when the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference are all larger than the preset voltage threshold, determining that the short circuit detection result is in a normal state.
Wherein the preset voltage threshold may be 0.
When the first voltage difference is smaller than a preset voltage threshold, the signal input end of the first transmission line is determined to have a short circuit; when the second voltage difference is smaller than a preset voltage threshold, determining that a short circuit exists at the signal output end of the first transmission line; when the third voltage difference is smaller than the preset voltage threshold, determining that a short circuit exists at the signal input end of the second transmission line; and when the fourth voltage difference is smaller than the preset voltage threshold, determining that the signal output end of the second transmission line has a short circuit.
When any transmission line of the USB differential pair is in a null solder joint or a false solder joint, the differential pair is broken integrally, and differential signals cannot be transmitted continuously.
S208, sending the short circuit detection result to the second equipment.
The short circuit detection result includes that the USB interface differential pair has a short circuit, an open circuit, and a normal state, and different short circuit detection results, signals sent by the first device to the second device are different, for example: and sending 0 × 16 to the second equipment as a short-circuit detection result, sending 0 × 15 to the second equipment as a short-circuit detection result, and sending 0 × 14 to the second equipment as a short-circuit detection result, wherein the USB interface differential pair is in a broken circuit state, and the first equipment sends 0 × 15 to the second equipment as a short-circuit detection result.
It can be seen that, in this embodiment of the application, the first device may switch the data channel to the data transmission channel, detect the first single-ended voltage and the second single-ended voltage of the first transmission line, and the third single-ended voltage and the fourth single-ended voltage of the second transmission line, the first device switches the data channel to the voltage test channel, determine the fifth single-ended voltage and the sixth single-ended voltage of the first transmission line, and the seventh single-ended voltage and the eighth single-ended voltage of the second transmission line, the first device further calculates a difference between the first single-ended voltage and the fifth single-ended voltage, a difference between the second single-ended voltage and the sixth single-ended voltage, a difference between the third single-ended voltage and the seventh single-ended voltage, and a difference between the fourth single-ended voltage and the eighth single-ended voltage, to obtain the first voltage difference, the second voltage difference, the third voltage difference, and the fourth voltage difference, and finally, the first device determines the short-circuit detection result according to the first voltage difference, the second voltage difference, the third voltage difference, and the fourth voltage difference, and sends the short-circuit detection result to the second device. Therefore, the single-ended voltage of the USB interface differential pair of the USB Hub is detected under different channels, the voltage difference of the single-ended voltage detected twice is calculated, the short-circuit state of the USB interface differential pair is judged according to the voltage difference, and the compatibility of the USB Hub is improved.
In one possible example, after determining that the short-circuit detection result is normal, the method may further include: detecting a power supply voltage of each USB interface in a plurality of USB interfaces of the target USB Hub to obtain a plurality of first power supply voltages, wherein the target USB Hub comprises a plurality of USB interface differential pairs, and each USB interface differential pair corresponds to one USB interface; when any one of the first power supply voltages is smaller than a first preset power supply voltage threshold value, determining the states of the USB power supplies corresponding to the USB interfaces; if the state of the USB power supply is the non-starting state, determining that the USB power supply is abnormally started; if the state of the USB power supply is the started state, detecting the power supply voltage of each USB interface in the plurality of USB interfaces to obtain a plurality of second power supply voltages; judging whether each second power supply voltage in the plurality of second power supply voltages falls into the preset power supply voltage interval or not; if any one of the second power supply voltages is lower than the lower limit value of the preset power supply voltage interval, determining that the power supply of the USB power supply is abnormal; and if each second power supply voltage in the plurality of second power supply voltages falls into the preset power supply voltage interval, determining that the USB power supply is normal in power supply.
When a plurality of USB interfaces are connected to a device at the same time, the USB Hub often has a situation that the power supply of the USB interfaces is insufficient, so that the device connected to the USB interface cannot be identified by the system or the connected device is unstable due to insufficient power supply.
The target USB Hub comprises a USB power supply, the USB power supply can be used for supplying power to the USB interfaces corresponding to the USB interface differential pairs, namely the USB power supply can be started to supply power to the USB interfaces when the target USB Hub detects that the power supply voltage is insufficient, so that the power supply voltage of the USB interfaces can be stabilized in a preset power supply voltage interval.
The first device can simultaneously real-timely supply the power voltage of each USB interface in a plurality of USB interfaces of the target USB Hub, when the USB interface is greater than or equal to a first preset power supply voltage threshold value, the USB interface can meet the requirement of the accessed device, the accessed device can stably work, the first preset power supply voltage threshold value can be manually set or the system is defaulted, and limitation is not made here.
In specific implementation, the first device may obtain a first power supply voltage of each USB interface of a plurality of USB interfaces of a target USB Hub in real time, determine a start state of the USB power source when the first power supply voltage of any USB interface is smaller than a first preset power supply voltage threshold, determine whether a second power supply voltage corresponding to each USB interface of the plurality of USB interfaces falls within a preset power supply voltage interval when the USB power source is normally started, determine whether the USB power source supplies power normally, determine that the USB power source supplies power abnormally if any second power supply voltage of the plurality of second power supply voltages is lower than a lower limit value of the preset power supply voltage interval, and determine that the USB power source supplies power normally if each second power supply voltage of the plurality of second power supply voltages falls within the preset power supply voltage interval.
Therefore, in this example, the first device may determine whether the power supply of the USB power source is abnormal through the power supply voltages of the multiple USB interfaces of the target USB Hub, which is beneficial to ensuring that the USB interface access device can be recognized by the system, and is beneficial to improving the compatibility of the USB Hub.
In one possible example, before sensing the first single-ended voltage and the second single-ended voltage of the first transmission line, the method may include the steps of: and detecting the protocol version of the USB interface differential pair, wherein the protocol version comprises a USB2.0 protocol, a USB2.1 protocol, a USB3.0 protocol, a USB3.1 protocol and a USB3.2 protocol.
The first device may include a protocol detection module, which is CyUSB3014, may be connected to the USB interface of the target USB Hub, and is configured to detect which protocol version of the USB interface is a USB2.0 protocol, a USB2.1 protocol, a USB3.0 protocol, a USB3.1 protocol, and a USB3.2 protocol.
It can be seen that, in this example, the first device may implement detecting, by using the CyUSB3014, the protocol version of the USB interface of the target USB Hub, which is beneficial to subsequently determining the target power and the preset time threshold according to the protocol version.
In one possible example, the method may include the steps of: determining a target power according to the protocol version; adjusting a preset load as a target power load; detecting a third power supply voltage of the USB interface corresponding to the USB interface differential pair; judging whether the third power supply voltage is greater than a second preset power supply voltage threshold value or not; if the third power supply voltage is greater than or equal to the second preset power supply voltage threshold value, determining that the USB interface supports access as the target power load; and if the third power supply voltage is smaller than the second preset power supply voltage threshold, determining that the USB interface does not support access as the target power load.
When a high-power USB device is connected to a USB interface of a target USB Hub, the USB interface often has a situation of insufficient power supply, and the power supply voltage required by the USB interface is greater than the upper limit value of the preset power supply voltage interval and greater than the second preset power supply voltage threshold, so that the requirement for stable operation of the high-power USB device can be met.
When detecting the supply voltage of the target USB Hub, the first device may adjust a load connected to the USB interface of the target USB Hub, and may detect the supply voltage under the condition of no load.
The target power is associated with a protocol version of the USB interface, and the target powers corresponding to different protocol versions are different, and often the higher the protocol version is, the larger the target power is, and the target power refers to the maximum power of the USB device that can be supported under the current protocol version of the USB interface.
When the USB power source supplies power, it may be determined whether the third power supply voltage of the USB interface is greater than a second preset power supply voltage threshold value, so as to determine whether the USB interface of the target USB Hub supports the USB device with the target power, where the second preset voltage threshold value is greater than the first preset voltage threshold value.
Therefore, in this example, the first device may determine, by using the third power supply voltage of the USB interface of the target USB Hub, whether the USB interface supports accessing the target power USB device when the USB power source supplies power, which is beneficial to ensuring that the target power USB device accessed by the USB interface can be identified by the system, and operating stably, and improving compatibility of the USB Hub.
In one possible example, if the target USB Hub includes a short-circuit protection circuit, the method may further include: detecting a short circuit recovery time of the protection circuit; determining a preset time threshold according to the protocol version; comparing the short circuit recovery time with the preset time threshold; if the short circuit recovery time is smaller than the preset time threshold, determining that the short circuit of the short circuit protection circuit is recovered to be normal; and if the short circuit recovery time is greater than or equal to the preset time threshold, determining that the short circuit recovery of the short circuit protection circuit is abnormal.
The short-circuit protection circuit of the USB Hub is used for automatically cutting off the power supply of the USB power supply to the USB interface of the USB Hub when the output line of the USB power supply is short-circuited, or automatically cutting off the power supply of the USB power supply to the USB interface of the USB Hub when the USB equipment connected to the USB interface of the USB Hub is not in the support range of the protocol version of the current USB Hub.
When the short-circuit fault of the USB power supply disappears or the USB equipment in the support range of the protocol version of the current target USB Hub is connected, the short-circuit protection circuit can automatically recover the power supply of the USB power supply to the USB interface of the USB Hub.
The preset time threshold is associated with the protocol version, and the preset time threshold may be set manually or by default in the system, which is not limited herein.
In the specific implementation, when the first device eliminates a short-circuit fault of the USB power supply or switches to a USB device within a support range of a protocol version of a current target USB Hub, the first device starts to record the recovery time of the short-circuit protection circuit until the USB power supply can be normally started to supply power to a USB interface of the target USB Hub, so as to obtain the short-circuit recovery time of the short-circuit protection circuit, and then the first device determines a preset time threshold according to the protocol version of the target USB Hub, and further determines whether the short-circuit recovery of the short-circuit protection circuit is abnormal or not according to the determination of the short-circuit recovery time and the preset time threshold, if the short-circuit recovery time is smaller than the preset time threshold, it determines that the short-circuit protection circuit is recovered to be normal, and if the short-circuit recovery time is greater than or equal to the preset time threshold, it determines that the short-circuit of the short-circuit protection circuit is recovered to be abnormal.
As can be seen, in this example, the first device may detect the short-circuit recovery time of the short-circuit protection circuit of the target USB Hub, and determine whether the short-circuit recovery of the short-circuit protection circuit of the USB Hub is abnormal according to the relationship between the short-circuit recovery time and the preset time threshold, which is beneficial to ensure that the USB Hub can cope with a short-circuit fault and timely recover stable operation.
In one possible example, the determining the fifth single-ended voltage and the sixth single-ended voltage of the first transmission line, and the seventh single-ended voltage and the eighth single-ended voltage of the second transmission line may include: detecting a plurality of fifth single-ended detection voltages and a plurality of sixth single-ended detection voltages of the first transmission line of the differential pair of USB interfaces, and a plurality of seventh single-ended detection voltages and a plurality of eighth single-ended detection voltages of the second transmission line; respectively screening out a voltage maximum value and a voltage minimum value in the fifth single-ended detection voltages, a voltage maximum value and a voltage minimum value in the sixth single-ended detection voltages, a voltage maximum value and a voltage minimum value in the seventh single-ended detection voltages, and a voltage maximum value and a voltage minimum value in the eighth single-ended detection voltages to obtain fifth target detection voltages, sixth target detection voltages, seventh target detection voltages, and eighth target detection voltages; respectively calculating the average value of the plurality of fifth target detection voltages, the average value of the plurality of sixth target detection voltages, the average value of the plurality of seventh target detection voltages and the average value of the plurality of eighth target detection voltages to obtain corresponding fifth target detection average value voltage, sixth target detection average value voltage, seventh target detection average value voltage and eighth target detection average value voltage; the fifth target detection average voltage is taken as the fifth single-ended voltage, the sixth target detection average voltage is taken as the sixth single-ended voltage, the seventh target detection average voltage is taken as the seventh single-ended voltage, and the eighth target detection average voltage is taken as the eighth single-ended voltage.
The first device detects the single-ended voltage of the first transmission line and the single-ended voltage of the second transmission line for a preset number of times to obtain a plurality of fifth single-ended detection voltages, a plurality of sixth single-ended detection voltages, a plurality of seventh single-ended detection voltages and a plurality of eighth single-ended voltages.
The fifth single-ended detection voltage of the first transmission line corresponds to the single-ended detection voltage of the seventh transmission line, the sixth single-ended detection voltage corresponds to the eighth single-ended detection voltage, the fifth single-ended detection voltage corresponds to RX + of the USB interface differential pair, the seventh single-ended detection voltage corresponds to RX-of the USB interface differential pair, the sixth single-ended detection voltage corresponds to TX + of the USB interface differential pair, and the eighth single-ended detection voltage corresponds to TX-of the USB interface differential pair.
It can be seen that, in this example, the first device is favorable to reduce an error of the short circuit detection by detecting the single-ended voltages for the preset number of times, screening out a maximum voltage value and a minimum voltage value of the plurality of single-ended voltages, and calculating an average value of the plurality of single-ended voltages as a fifth single-ended voltage, a sixth single-ended voltage, a seventh single-ended voltage, and an eighth single-ended voltage that are finally used to calculate the voltage difference.
In one possible example, when the USB port of the target USB Hub includes a Type-C interface, the first device may acquire the capability data information sent by the target USB interface, i.e., the Type-C interface; determining the power supply current capability of the target USB interface according to the capability data information; determining a first power supply requirement according to the power supply current capability, wherein the first power supply requirement comprises a first power supply current; sending the first power supply requirement to the target USB interface; detecting a fourth power supply voltage of the target USB interface; determining a second power supply current according to the fourth power supply voltage and a resistance value of a preset load; when the first power supply current is equal to the second power supply current, determining that the target USB interface is normally powered; and when the first power supply current is larger than the second power supply current, determining that the power supply of the target USB interface is abnormal.
The capability data information is power supply capability information which is defaulted by the target USB interface and comprises power supply current capability.
The first power supply requirement is a maximum power supply capability value within a power supply capability range of the target USB interface, and is used to determine whether the target USB interface can provide a power supply current corresponding to the power supply current capability, for example: when the power supply capability of the target USB interface is 9V/100a, the first power supply requirement is 9V/100a.
Optionally, in order to further test whether the target USB interface can meet different power supply requirements of the same USB device, the first device may send a second power supply requirement and a third power supply requirement to the target USB interface, where a power supply capability value corresponding to the third power supply requirement is greater than a power supply capability value corresponding to the second power supply requirement, the second power supply requirement includes a third power supply current, and the third power supply requirement includes a fourth power supply current; respectively detecting a fifth power supply voltage and a sixth power supply voltage corresponding to the target USB interface, wherein the second power supply requirement corresponds to the fifth power supply voltage, and the third power supply requirement corresponds to the sixth power supply voltage; and further determining a fifth power supply current corresponding to the fifth power supply voltage and a sixth power supply current corresponding to the sixth power supply voltage, and determining whether the target USB interface can supply power according to different power supply requirements of the same USB device according to the magnitude relation between the third power supply current and the fifth power supply current and the magnitude relation between the fourth power supply current and the sixth power supply current, so that the power supply intelligence of the USB interface of the USB Hub is improved.
As shown in fig. 3a, fig. 3a is a schematic structural diagram of a differential pair detection system provided in an embodiment of the present application, and is applied to a first device 100a, where the differential pair detection system includes:
the switch control module 31 is respectively connected with the USB interface differential pair of the target USB Hub100b and the control center 33, and is used for the control center 33 to control switching of a data channel to a data transmission channel and switching of the data channel to a voltage detection channel;
a voltage detection module 32, respectively connected to the USB interface differential pair and the control center 33, and configured to detect a first single-ended voltage and a second single-ended voltage of the first transmission line of the USB interface differential pair, and a third single-ended voltage and a fourth single-ended voltage of the second transmission line after the data channel is switched to the data transmission channel by the switch control module 31; the switch control module 31 is further configured to detect a fifth single-ended voltage and a sixth single-ended voltage of the first transmission line and a seventh single-ended voltage and an eighth single-ended voltage of the second transmission line of the USB interface differential pair after the data channel is switched to the voltage detection channel, and send the first voltage, the second voltage, the third voltage, the fourth voltage, the fifth voltage, the sixth voltage, the seventh voltage, and the eighth voltage to the control center 33;
the control center 33 is connected to the device communication module 34, and configured to calculate a difference between the received first single-ended voltage and the received fifth single-ended voltage, a difference between the received second single-ended voltage and the received sixth single-ended voltage, a difference between the received third single-ended voltage and the received seventh single-ended voltage, and a difference between the received fourth single-ended voltage and the received eighth single-ended voltage, so as to obtain a first voltage difference, a second voltage difference, a third voltage difference, and a fourth voltage difference; the short circuit detection device is further used for determining that a short circuit exists when any voltage difference of the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference is smaller than a preset voltage threshold; when the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference are all equal to the preset voltage threshold, determining that the short circuit detection result is open circuit; when the first voltage difference, the second voltage difference, the third voltage difference, and the fourth voltage difference are all greater than the preset voltage threshold, determining that the short-circuit detection result is in a normal state, and sending the short-circuit detection result to the device communication module 34;
the device communication module 34 is connected to the second device 100c, and configured to receive the short-circuit detection result and send the short-circuit detection result to the second device 100c.
The switch control module 31 is formed by a hardware circuit.
The differential pair detection system further comprises a protocol detection module 35, the protocol detection module is CyUSB3014, and the protocol detection module 35 is connected to the USB interface differential pair of the target USB Hub and is configured to detect a USB protocol version of the USB interface.
The differential pair detection system may further include a load adjustment module, configured to adjust a load connected to the USB interface of the target USB Hub.
As shown in fig. 3b, fig. 3b is a schematic structural diagram of a voltage detection module provided in the embodiment of the present application, where the voltage detection module 32 includes: a control module 321, a detection module 322, a calculation module 323 and a data transmission module 324,
the control module 321 is connected to the detection module 322 and the control center 33, respectively, where the control module 321 is configured to receive the voltage detection signal sent by the control center, and control the detection module 322 to detect that the single-ended voltage of the USB interface differential pair includes a first single-ended voltage, a second single-ended voltage, a third single-ended voltage, a fourth single-ended voltage, a plurality of fifth single-ended detection voltages, a plurality of sixth single-ended detection voltages, a plurality of seventh single-ended detection voltages, and a plurality of eighth single-ended detection voltages.
The detecting module 322 is connected to the calculating module 323, and is configured to send the first single-ended voltage, the second single-ended voltage, the third single-ended voltage, the fourth single-ended voltage, the fifth single-ended detection voltages, the sixth single-ended detection voltages, the seventh single-ended detection voltages, and the eighth single-ended detection voltages to the calculating module 323.
The calculating module 323 is connected to the data transmitting module 324, and configured to screen out a voltage maximum value and a voltage minimum value in the fifth single-ended detection voltages, a voltage maximum value and a voltage minimum value in the sixth single-ended detection voltages, a voltage maximum value and a voltage minimum value in the seventh single-ended detection voltages, and a voltage maximum value and a voltage minimum value in the eighth single-ended detection voltages, respectively, to obtain a plurality of fifth target detection voltages, a plurality of sixth target detection voltages, a plurality of seventh target detection voltages, and a plurality of eighth target detection voltages; respectively calculating the mean value of a plurality of fifth target detection voltages, the mean value of a plurality of sixth target detection voltages, the mean value of a plurality of seventh target detection voltages and the mean value of a plurality of eighth target detection voltages to obtain corresponding fifth target detection mean value voltages, sixth target detection mean value voltages, seventh target detection mean value voltages and eighth target detection mean value voltages; taking the fifth target detection average voltage as a fifth single-ended voltage, taking the sixth target detection average voltage as a sixth single-ended voltage, taking the seventh target detection average voltage as a seventh single-ended voltage, and taking the eighth target detection average voltage as an eighth single-ended voltage; and sends the first single-ended voltage, the second single-ended voltage, the third single-ended voltage, the fourth single-ended voltage, the fifth single-ended voltage, the sixth single-ended voltage, the seventh single-ended voltage, and the eighth single-ended voltage to the data transmission module 324.
The data transmission module 324 is connected to the control center 33, and is configured to send the first single-ended voltage, the second single-ended voltage, the third single-ended voltage, the fourth single-ended voltage, the fifth single-ended voltage, the sixth single-ended voltage, the seventh single-ended voltage, and the eighth single-ended voltage to the control center 33.
The target USB Hub100b includes a plurality of USB interfaces, each USB interface corresponds to a differential pair, and each differential pair corresponds to a pair of transmission lines, i.e., a first transmission line and a second transmission line.
The first device 100a may include a plurality of voltage detection modules 32, and each voltage detection module 32 corresponds to each USB interface differential pair of the target USB Hub100b, so that the first device may simultaneously detect short-circuit states of the plurality of USB interface differential pairs of the target USB Hub100b, that is, a short circuit, a void solder and a normal state exist.
It can be seen that, in the embodiment of the present application, the switch control module 31 in the first device 100a may switch the data channel to the data transmission channel, the voltage detection module 32 detects the first single-ended voltage and the second single-ended voltage of the first transmission line of the USB interface differential pair of the target USB Hub100b, and the third single-ended voltage and the fourth single-ended voltage of the second transmission line, the switch control module 31 in the first device 100a switches the data channel to the voltage test channel, the voltage detection module 32 determines the fifth single-ended voltage and the sixth single-ended voltage of the first transmission line, and the seventh single-ended voltage and the eighth single-ended voltage of the second transmission line, and the first voltage, the second voltage, the third voltage, the fourth voltage, the fifth voltage, the sixth voltage, the seventh voltage, and the eighth voltage are sent to the control center 33, the control center 33 calculates a difference between the first single-ended voltage and the fifth single-ended voltage, a difference between the second single-ended voltage and the sixth single-ended voltage, a difference between the third single-ended voltage and the seventh single-ended voltage, and a difference between the fourth single-ended voltage and the eighth single-ended voltage to obtain a first voltage difference, a second voltage difference, a third voltage difference, and a fourth voltage difference, and finally, the control center 33 determines a short-circuit detection result according to the first voltage difference, the second voltage difference, the third voltage difference, and the fourth voltage difference, and sends the short-circuit detection result to the device communication module 34, and the device communication module sends the short-circuit detection result to the second device 100c. Therefore, the single-ended voltage of the USB interface differential pair of the USB Hub is detected under different channels, the voltage difference of the single-ended voltage detected twice is calculated, the short-circuit state of the USB interface differential pair is judged according to the voltage difference, and the compatibility of the USB Hub is improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application, applied to a first device, where the first device is respectively connected to a second device and a differential USB interface pair of a target USB Hub, where the differential USB interface pair includes a first transmission line and a second transmission line, and as shown in the drawing, the electronic device includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory, and the one or more programs are configured to be executed by the processor as instructions of the following steps:
switching a data channel to a data transmission channel, wherein the data channel comprises the data transmission channel and a voltage test channel;
detecting a first single-ended voltage and a second single-ended voltage of the first transmission line, and a third single-ended voltage and a fourth single-ended voltage of the second transmission line;
switching the data channel to the voltage test channel, determining a fifth single-ended voltage and a sixth single-ended voltage of the first transmission line, and a seventh single-ended voltage and an eighth single-ended voltage of the second transmission line;
calculating a difference value between the first single-ended voltage and the fifth single-ended voltage, a difference value between the second single-ended voltage and the sixth single-ended voltage, a difference value between the third single-ended voltage and the seventh single-ended voltage, and a difference value between the fourth single-ended voltage and the eighth single-ended voltage to obtain a first voltage difference, a second voltage difference, a third voltage difference and a fourth voltage difference;
when any voltage difference of the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference is smaller than a preset voltage threshold value, determining that a short circuit detection result is that a short circuit exists;
when the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference are all equal to the preset voltage threshold, determining that the short circuit detection result is that an open circuit exists;
when the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference are all larger than the preset voltage threshold, determining that the short circuit detection result is in a normal state;
sending the short circuit detection result to the second device.
It can be seen that, in the embodiment of the present application, the electronic device may switch the data channel to the data transmission channel, detect the first single-ended voltage and the second single-ended voltage of the first transmission line, and the third single-ended voltage and the fourth single-ended voltage of the second transmission line, switch the data channel to the voltage test channel, determine the fifth single-ended voltage and the sixth single-ended voltage of the first transmission line, and the seventh single-ended voltage and the eighth single-ended voltage of the second transmission line, the electronic device further calculates a difference between the first single-ended voltage and the fifth single-ended voltage, a difference between the second single-ended voltage and the sixth single-ended voltage, a difference between the third single-ended voltage and the seventh single-ended voltage, and a difference between the fourth single-ended voltage and the eighth single-ended voltage, to obtain the first voltage difference, the second voltage difference, the third voltage difference, and the fourth voltage difference, and finally determine the short-circuit detection result according to the first voltage difference, the second voltage difference, the third voltage difference, and the fourth voltage difference, and send the short-circuit detection result to the second device. Therefore, the single-ended voltage of the USB interface differential pair of the USB Hub is detected under different channels, the voltage difference of the single-ended voltage detected twice is calculated, the short-circuit state of the USB interface differential pair is judged according to the voltage difference, and the compatibility of the USB Hub is improved.
In one possible example, after determining that the short circuit detection result is normal, the program further includes instructions for performing the following steps:
detecting a power supply voltage of each USB interface in a plurality of USB interfaces of the target USB Hub to obtain a plurality of first power supply voltages, wherein the target USB Hub comprises a plurality of USB interface differential pairs, and each USB interface differential pair corresponds to one USB interface;
when any one of the first power supply voltages is smaller than a first preset power supply voltage threshold value, determining the state of the USB power supply corresponding to the USB interfaces;
if the state of the USB power supply is the non-starting state, determining that the USB power supply is abnormally started;
if the state of the USB power supply is the started state, detecting the power supply voltage of each USB interface in the plurality of USB interfaces to obtain a plurality of second power supply voltages;
judging whether each second power supply voltage in the plurality of second power supply voltages falls into the preset power supply voltage interval or not;
if any one of the second power supply voltages is lower than the lower limit value of the preset power supply voltage interval, determining that the power supply of the USB power supply is abnormal;
and if each second power supply voltage in the plurality of second power supply voltages falls into the preset power supply voltage interval, determining that the power supply of the USB power supply is normal.
In one possible example, prior to sensing the first single-ended voltage and the second single-ended voltage of the first transmission line, the program further includes instructions for:
and detecting the protocol version of the USB interface differential pair, wherein the protocol version comprises a USB2.0 protocol, a USB2.1 protocol, a USB3.0 protocol, a USB3.1 protocol and a USB3.2 protocol.
In one possible example, the program further includes instructions for performing the steps of:
determining a target power according to the protocol version;
adjusting a preset load as a target power load;
detecting a third power supply voltage of the USB interface corresponding to the USB interface differential pair;
judging whether the third power supply voltage is larger than a second preset power supply voltage threshold value or not;
if the third power supply voltage is greater than or equal to the second preset power supply voltage threshold value, determining that the USB interface supports access as the target power load;
and if the third power supply voltage is smaller than the second preset power supply voltage threshold, determining that the USB interface does not support access as the target power load.
In one possible example, if the target USB Hub includes a short-circuit protection circuit, the program further includes instructions for:
detecting a short circuit recovery time of the protection circuit;
determining a preset time threshold according to the protocol version;
comparing the short circuit recovery time with the preset time threshold;
if the short circuit recovery time is smaller than the preset time threshold, determining that the short circuit of the short circuit protection circuit is recovered to be normal;
and if the short circuit recovery time is greater than or equal to the preset time threshold, determining that the short circuit recovery of the short circuit protection circuit is abnormal.
In one possible example, in the determining the fifth single-ended voltage and the sixth single-ended voltage of the first transmission line, and the seventh single-ended voltage and the eighth single-ended voltage of the second transmission line, the program includes instructions for:
detecting a plurality of fifth single-ended detection voltages and a plurality of sixth single-ended detection voltages of the first transmission line of the differential pair of USB interfaces, and a plurality of seventh single-ended detection voltages and a plurality of eighth single-ended detection voltages of the second transmission line;
respectively screening out a voltage maximum value and a voltage minimum value in the fifth single-ended detection voltages, a voltage maximum value and a voltage minimum value in the sixth single-ended detection voltages, a voltage maximum value and a voltage minimum value in the seventh single-ended detection voltages, and a voltage maximum value and a voltage minimum value in the eighth single-ended detection voltages to obtain fifth target detection voltages, sixth target detection voltages, seventh target detection voltages, and eighth target detection voltages;
respectively calculating the mean value of the plurality of fifth target detection voltages, the mean value of the plurality of sixth target detection voltages, the mean value of the plurality of seventh target detection voltages and the mean value of the plurality of eighth target detection voltages to obtain corresponding fifth target detection mean value voltages, sixth target detection mean value voltages, seventh target detection mean value voltages and eighth target detection mean value voltages;
the fifth target detection average voltage is taken as the fifth single-ended voltage, the sixth target detection average voltage is taken as the sixth single-ended voltage, the seventh target detection average voltage is taken as the seventh single-ended voltage, and the eighth target detection average voltage is taken as the eighth single-ended voltage.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In the case of dividing each functional module according to each function, fig. 5 shows a schematic diagram of a differential pair detection apparatus, which is applied to a first device, where the first device is respectively connected to a second device and a USB interface differential pair, where the USB interface differential pair includes a first transmission line and a second transmission line, and as shown in fig. 5, the differential pair detection apparatus 500 may include: a channel switching unit 501, a detection unit 502, a determination unit 503, a calculation unit 504, and a transmission unit 505, wherein,
the channel switching unit 501 is configured to switch a data channel to a data transmission channel, where the data channel includes the data transmission channel and a voltage test channel;
the detecting unit 502 is configured to detect a first single-ended voltage and a second single-ended voltage of the first transmission line, and a third single-ended voltage and a fourth single-ended voltage of the second transmission line;
the determining unit 503 is configured to switch the data channel to the voltage testing channel, and determine a fifth single-ended voltage and a sixth single-ended voltage of the first transmission line, and a seventh single-ended voltage and an eighth single-ended voltage of the second transmission line;
the calculating unit 504 is configured to calculate a difference between the first single-ended voltage and the fifth single-ended voltage, a difference between the second single-ended voltage and the sixth single-ended voltage, a difference between the third single-ended voltage and the seventh single-ended voltage, and a difference between the fourth single-ended voltage and the eighth single-ended voltage, so as to obtain a first voltage difference, a second voltage difference, a third voltage difference, and a fourth voltage difference;
the determining unit 503 is further configured to determine that a short circuit detection result is a short circuit when any one of the first voltage difference, the second voltage difference, the third voltage difference, and the fourth voltage difference is smaller than a preset voltage threshold;
the determining unit 503 is further configured to determine that the short circuit detection result is an open circuit when the first voltage difference, the second voltage difference, the third voltage difference, and the fourth voltage difference are all equal to the preset voltage threshold;
the determining unit 503 is further configured to determine that the short circuit detection result is in a normal state when the first voltage difference, the second voltage difference, the third voltage difference, and the fourth voltage difference are all greater than the preset voltage threshold;
the sending unit 505 is configured to send the short circuit detection result to the second device.
It can be seen that, in this embodiment of the application, the first device may switch the data channel to the data transmission channel, detect the first single-ended voltage and the second single-ended voltage of the first transmission line, and the third single-ended voltage and the fourth single-ended voltage of the second transmission line, the first device switches the data channel to the voltage test channel, determine the fifth single-ended voltage and the sixth single-ended voltage of the first transmission line, and the seventh single-ended voltage and the eighth single-ended voltage of the second transmission line, the first device further calculates a difference between the first single-ended voltage and the fifth single-ended voltage, a difference between the second single-ended voltage and the sixth single-ended voltage, a difference between the third single-ended voltage and the seventh single-ended voltage, and a difference between the fourth single-ended voltage and the eighth single-ended voltage, to obtain the first voltage difference, the second voltage difference, the third voltage difference, and the fourth voltage difference, and finally, the first device determines the short-circuit detection result according to the first voltage difference, the second voltage difference, the third voltage difference, and the fourth voltage difference, and sends the short-circuit detection result to the second device. Therefore, the single-ended voltage of the USB interface differential pair of the USB Hub is detected under different channels, the voltage difference of the single-ended voltage detected twice is calculated, the short-circuit state of the USB interface differential pair is judged according to the voltage difference, and the compatibility of the USB Hub is improved.
In a possible example, after determining that the short circuit detection result is normal, the determining unit 503 is further specifically configured to:
detecting a power supply voltage of each USB interface in a plurality of USB interfaces of the target USB Hub to obtain a plurality of first power supply voltages, wherein the target USB Hub comprises a plurality of USB interface differential pairs, and each USB interface differential pair corresponds to one USB interface;
when any one of the first power supply voltages is smaller than a first preset power supply voltage threshold value, determining the states of the USB power supplies corresponding to the USB interfaces;
if the state of the USB power supply is the non-starting state, determining that the USB power supply is abnormally started;
if the state of the USB power supply is the started state, detecting the power supply voltage of each USB interface in the plurality of USB interfaces to obtain a plurality of second power supply voltages;
judging whether each second power supply voltage in the plurality of second power supply voltages falls into the preset power supply voltage interval or not;
if any one of the second power supply voltages is lower than the lower limit value of the preset power supply voltage interval, determining that the power supply of the USB power supply is abnormal;
and if each second power supply voltage in the plurality of second power supply voltages falls into the preset power supply voltage interval, determining that the USB power supply is normal in power supply.
In a possible example, before detecting the first single-ended voltage and the second single-ended voltage of the first transmission line, the detecting unit 502 is further specifically configured to:
and detecting the protocol version of the USB interface differential pair, wherein the protocol version comprises a USB2.0 protocol, a USB2.1 protocol, a USB3.0 protocol, a USB3.1 protocol and a USB3.2 protocol.
In a possible example, the determining unit 503 is further specifically configured to:
determining a target power according to the protocol version;
adjusting a preset load as a target power load;
detecting a third power supply voltage of the USB interface corresponding to the USB interface differential pair;
judging whether the third power supply voltage is greater than a second preset power supply voltage threshold value or not;
if the third power supply voltage is greater than or equal to the second preset power supply voltage threshold, determining that the USB interface supports access as the target power load;
and if the third power supply voltage is smaller than the second preset power supply voltage threshold, determining that the USB interface does not support access as the target power load.
In a possible example, if the target USB Hub includes a short-circuit protection circuit, the determining unit 503 is specifically configured to:
detecting a short circuit recovery time of the protection circuit;
determining a preset time threshold according to the protocol version;
comparing the short circuit recovery time with the preset time threshold;
if the short circuit recovery time is smaller than the preset time threshold, determining that the short circuit of the short circuit protection circuit is recovered to be normal;
and if the short circuit recovery time is greater than or equal to the preset time threshold, determining that the short circuit recovery of the short circuit protection circuit is abnormal.
In one possible example, in the determining the fifth single-ended voltage and the sixth single-ended voltage of the first transmission line, and the seventh single-ended voltage and the eighth single-ended voltage of the second transmission line, the determining unit 503 is further specifically configured to:
detecting a plurality of fifth single-ended detection voltages and a plurality of sixth single-ended detection voltages of the first transmission line of the differential pair of USB interfaces, and a plurality of seventh single-ended detection voltages and a plurality of eighth single-ended detection voltages of the second transmission line;
respectively screening out a voltage maximum value and a voltage minimum value in the fifth single-ended detection voltages, a voltage maximum value and a voltage minimum value in the sixth single-ended detection voltages, a voltage maximum value and a voltage minimum value in the seventh single-ended detection voltages, and a voltage maximum value and a voltage minimum value in the eighth single-ended detection voltages to obtain fifth target detection voltages, sixth target detection voltages, seventh target detection voltages, and eighth target detection voltages;
respectively calculating the mean value of the plurality of fifth target detection voltages, the mean value of the plurality of sixth target detection voltages, the mean value of the plurality of seventh target detection voltages and the mean value of the plurality of eighth target detection voltages to obtain corresponding fifth target detection mean value voltages, sixth target detection mean value voltages, seventh target detection mean value voltages and eighth target detection mean value voltages;
taking the fifth target detection average voltage as the fifth single-ended voltage, the sixth target detection average voltage as the sixth single-ended voltage, the seventh target detection average voltage as the seventh single-ended voltage, and the eighth target detection average voltage as the eighth single-ended voltage.
It should be noted that all relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
The electronic device provided by the embodiment is used for executing the differential pair detection method, so that the same effect as the implementation method can be achieved.
Embodiments of the present application further provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enables a computer to execute part or all of the steps of any one of the methods as described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any one of the methods as set out in the above method embodiments. The computer program product may be a software installation package, the computer comprising the control platform.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art will recognize that the embodiments described in this specification are preferred embodiments and that acts or modules referred to are not necessarily required for this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the above-described units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash memory disks, read-only memory, random access memory, magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A differential pair detection method is applied to a first device, the first device is respectively connected with a second device and a USB interface differential pair of a target USB Hub, the USB interface differential pair comprises a first transmission line and a second transmission line, and the method comprises the following steps:
switching a data channel to a data transmission channel, wherein the data channel comprises the data transmission channel and a voltage test channel;
detecting a first single-ended voltage and a second single-ended voltage of the first transmission line, and a third single-ended voltage and a fourth single-ended voltage of the second transmission line;
switching the data channel to the voltage test channel, determining a fifth single-ended voltage and a sixth single-ended voltage of the first transmission line, and a seventh single-ended voltage and an eighth single-ended voltage of the second transmission line;
calculating a difference value between the first single-ended voltage and the fifth single-ended voltage, a difference value between the second single-ended voltage and the sixth single-ended voltage, a difference value between the third single-ended voltage and the seventh single-ended voltage, and a difference value between the fourth single-ended voltage and the eighth single-ended voltage to obtain a first voltage difference, a second voltage difference, a third voltage difference and a fourth voltage difference;
when any voltage difference of the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference is smaller than a preset voltage threshold value, determining that a short circuit detection result is that a short circuit exists;
when the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference are all equal to the preset voltage threshold, determining that the short circuit detection result is open circuit;
when the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference are all larger than the preset voltage threshold, determining that the short circuit detection result is in a normal state;
sending the short circuit detection result to the second device.
2. The method of claim 1, wherein after determining that the short detection result is normal, the method further comprises:
detecting a power supply voltage of each USB interface in a plurality of USB interfaces of the target USB Hub to obtain a plurality of first power supply voltages, wherein the target USB Hub comprises a plurality of USB interface differential pairs, and each USB interface differential pair corresponds to one USB interface;
when any one of the first power supply voltages is smaller than a first preset power supply voltage threshold value, determining the states of the USB power supplies corresponding to the USB interfaces;
if the state of the USB power supply is the non-starting state, determining that the USB power supply is abnormally started;
if the state of the USB power supply is the started state, detecting the power supply voltage of each USB interface in the plurality of USB interfaces to obtain a plurality of second power supply voltages;
judging whether each second power supply voltage in the plurality of second power supply voltages falls into the preset power supply voltage interval or not;
if any one of the second power supply voltages is lower than the lower limit value of the preset power supply voltage interval, determining that the power supply of the USB power supply is abnormal;
and if each second power supply voltage in the plurality of second power supply voltages falls into the preset power supply voltage interval, determining that the USB power supply is normal in power supply.
3. The method of claim 1, wherein prior to sensing the first and second single-ended voltages of the first transmission line, the method further comprises:
and detecting the protocol version of the USB interface differential pair, wherein the protocol version comprises a USB2.0 protocol, a USB2.1 protocol, a USB3.0 protocol, a USB3.1 protocol and a USB3.2 protocol.
4. The method of claim 3, further comprising:
determining a target power according to the protocol version;
adjusting a preset load as a target power load;
detecting a third power supply voltage of the USB interface corresponding to the USB interface differential pair;
judging whether the third power supply voltage is larger than a second preset power supply voltage threshold value or not;
if the third power supply voltage is greater than or equal to the second preset power supply voltage threshold, determining that the USB interface supports access as the target power load;
and if the third power supply voltage is smaller than the second preset power supply voltage threshold, determining that the USB interface does not support access as the target power load.
5. The method of claim 3, wherein if the target USB Hub includes a short-circuit protection circuit, the method further comprises:
detecting a short circuit recovery time of the protection circuit;
determining a preset time threshold according to the protocol version;
comparing the short circuit recovery time with the preset time threshold;
if the short circuit recovery time is smaller than the preset time threshold, determining that the short circuit of the short circuit protection circuit is recovered to be normal;
and if the short circuit recovery time is greater than or equal to the preset time threshold, determining that the short circuit recovery of the short circuit protection circuit is abnormal.
6. The method of claim 1, wherein determining the fifth and sixth single-ended voltages for the first transmission line and the seventh and eighth single-ended voltages for the second transmission line comprises:
detecting a plurality of fifth single-ended detection voltages and a plurality of sixth single-ended detection voltages of the first transmission line of the differential pair of USB interfaces, and a plurality of seventh single-ended detection voltages and a plurality of eighth single-ended detection voltages of the second transmission line;
respectively screening out a voltage maximum value and a voltage minimum value in the fifth single-ended detection voltages, a voltage maximum value and a voltage minimum value in the sixth single-ended detection voltages, a voltage maximum value and a voltage minimum value in the seventh single-ended detection voltages, and a voltage maximum value and a voltage minimum value in the eighth single-ended detection voltages to obtain fifth target detection voltages, sixth target detection voltages, seventh target detection voltages, and eighth target detection voltages;
respectively calculating the average value of the plurality of fifth target detection voltages, the average value of the plurality of sixth target detection voltages, the average value of the plurality of seventh target detection voltages and the average value of the plurality of eighth target detection voltages to obtain corresponding fifth target detection average value voltage, sixth target detection average value voltage, seventh target detection average value voltage and eighth target detection average value voltage;
taking the fifth target detection average voltage as the fifth single-ended voltage, the sixth target detection average voltage as the sixth single-ended voltage, the seventh target detection average voltage as the seventh single-ended voltage, and the eighth target detection average voltage as the eighth single-ended voltage.
7. A differential pair detection system, for use with a first device, comprising:
the switch control module is respectively connected with the USB interface differential pair of the target USB Hub and the control center, and is used for controlling the control center to switch the data channel to the data transmission channel and switching the data channel to the voltage detection channel;
the voltage detection module is respectively connected with the USB interface differential pair and the control center and is used for detecting a first single-ended voltage and a second single-ended voltage of a first transmission line of the USB interface differential pair and a third single-ended voltage and a fourth single-ended voltage of a second transmission line after the data channel is switched to the data transmission channel by the switch control module; the switch control module is further configured to detect a fifth single-ended voltage and a sixth single-ended voltage of the first transmission line and a seventh single-ended voltage and an eighth single-ended voltage of the second transmission line of the USB interface differential pair after the data channel is switched to the voltage detection channel by the switch control module, and send the first voltage, the second voltage, the third voltage, the fourth voltage, the fifth voltage, the sixth voltage, the seventh voltage, and the eighth voltage to the control center;
the control center is connected with the device communication module and is configured to calculate a difference between the received first single-ended voltage and the received fifth single-ended voltage, a difference between the received second single-ended voltage and the received sixth single-ended voltage, a difference between the received third single-ended voltage and the received seventh single-ended voltage, and a difference between the received fourth single-ended voltage and the received eighth single-ended voltage, so as to obtain a first voltage difference, a second voltage difference, a third voltage difference, and a fourth voltage difference; the short circuit detection device is further used for determining that a short circuit exists in the short circuit detection result when any one of the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference is smaller than a preset voltage threshold; when the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference are all equal to the preset voltage threshold, determining that the short circuit detection result is that an open circuit exists; when the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference are all larger than the preset voltage threshold, determining that the short circuit detection result is in a normal state, and sending the short circuit detection result to the equipment communication module;
and the equipment communication module is connected with second equipment and used for receiving the short-circuit detection result and sending the short-circuit detection result to the second equipment.
8. A differential pair detection device is applied to a first device, the first device is respectively connected with a second device and a USB interface differential pair, the USB interface differential pair comprises a first transmission line and a second transmission line, and the differential pair detection device comprises: a channel switching unit, a detection unit, a determination unit, a calculation unit and a transmission unit, wherein,
the channel switching unit is used for switching a data channel to a data transmission channel, wherein the data channel comprises the data transmission channel and a voltage test channel;
the detection unit is used for detecting a first single-ended voltage and a second single-ended voltage of the first transmission line, and a third single-ended voltage and a fourth single-ended voltage of the second transmission line;
the determining unit is configured to switch the data channel to the voltage test channel, and determine a fifth single-ended voltage and a sixth single-ended voltage of the first transmission line, and a seventh single-ended voltage and an eighth single-ended voltage of the second transmission line;
the calculating unit is configured to calculate a difference between the first single-ended voltage and the fifth single-ended voltage, a difference between the second single-ended voltage and the sixth single-ended voltage, a difference between the third single-ended voltage and the seventh single-ended voltage, and a difference between the fourth single-ended voltage and the eighth single-ended voltage, so as to obtain a first voltage difference, a second voltage difference, a third voltage difference, and a fourth voltage difference;
the determining unit is further configured to determine that a short circuit detection result is a short circuit when any one of the first voltage difference, the second voltage difference, the third voltage difference and the fourth voltage difference is smaller than a preset voltage threshold;
the determining unit is further configured to determine that the short circuit detection result is an open circuit when the first voltage difference, the second voltage difference, the third voltage difference, and the fourth voltage difference are all equal to the preset voltage threshold;
the determining unit is further configured to determine that the short circuit detection result is in a normal state when the first voltage difference, the second voltage difference, the third voltage difference, and the fourth voltage difference are all greater than the preset voltage threshold;
the sending unit is configured to send the short-circuit detection result to the second device.
9. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-6.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-6.
CN202211467008.XA 2022-11-22 2022-11-22 Differential pair detection method and related device Pending CN115825821A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211467008.XA CN115825821A (en) 2022-11-22 2022-11-22 Differential pair detection method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211467008.XA CN115825821A (en) 2022-11-22 2022-11-22 Differential pair detection method and related device

Publications (1)

Publication Number Publication Date
CN115825821A true CN115825821A (en) 2023-03-21

Family

ID=85530262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211467008.XA Pending CN115825821A (en) 2022-11-22 2022-11-22 Differential pair detection method and related device

Country Status (1)

Country Link
CN (1) CN115825821A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116049068A (en) * 2023-03-29 2023-05-02 深圳市湘凡科技有限公司 Current backflow prevention circuit for USB HUB and method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116049068A (en) * 2023-03-29 2023-05-02 深圳市湘凡科技有限公司 Current backflow prevention circuit for USB HUB and method thereof
CN116049068B (en) * 2023-03-29 2023-09-08 深圳市湘凡科技有限公司 Current backflow prevention circuit for USB HUB and method thereof

Similar Documents

Publication Publication Date Title
US11631981B2 (en) Power adapter, terminal, and method for processing impedance anomalies in charging loop
CN106102143B (en) Application processing method and device
EP2677742B1 (en) Audio-video signal transmission interface device and method
KR101898185B1 (en) Power adaptor, terminal and charging system
US7921314B2 (en) Providing power over ethernet cables
KR100671755B1 (en) Method for controlling a power using universal serial bus
US20140009120A1 (en) Method for charging battery and an electronic device thereof
CN106998253B (en) Power supply equipment and power supply method of Ethernet power supply system
CN103365388A (en) Power supply method of terminal device and terminal device
US20170117735A1 (en) Charging Control Method and Mobile Terminal
US20170220189A1 (en) Method for Eliminating Interference of Charger to Touch Screen, and Mobile Terminal
US8612778B2 (en) Terminal device capable to operate at a dual power feeding mode for supporting a dual-mode configuration having two different wireless communication modules
CN115825821A (en) Differential pair detection method and related device
CN112232096A (en) Card detector, card reading device and electronic equipment
US9336176B2 (en) Remote access appliance with communication protocol autosensing feature
CN105071484A (en) Charging method and apparatus of terminal having data exchange function
CN102736995B (en) Electronic equipment and control method for USB communication module of electronics equipment
JP4075513B2 (en) Serial bus connection device and driver software
CN108181978B (en) Power control method and device for electronic equipment
CN106412245B (en) USB interface waterproof method and mobile terminal
CN106972558B (en) Charging control method and electronic equipment
CN106786940B (en) Charging control method, device, adapter and system
CN112153712A (en) Communication method and device of terminal and base station
CN204856476U (en) Interface arrangement and connecting device
CN213399565U (en) Charging circuit and electronic device

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