CN109299022A - A kind of control method and device of USB interface, storage medium - Google Patents

A kind of control method and device of USB interface, storage medium Download PDF

Info

Publication number
CN109299022A
CN109299022A CN201810968062.XA CN201810968062A CN109299022A CN 109299022 A CN109299022 A CN 109299022A CN 201810968062 A CN201810968062 A CN 201810968062A CN 109299022 A CN109299022 A CN 109299022A
Authority
CN
China
Prior art keywords
usb interface
usb
voltage
switch
data
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
CN201810968062.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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201810968062.XA priority Critical patent/CN109299022A/en
Publication of CN109299022A publication Critical patent/CN109299022A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

The embodiment of the invention discloses a kind of control method of USB interface, device and storage mediums, wherein the described method includes: acquisition model switching command;Detect the switching type of the pattern switching instruction;If the switching type of the pattern switching instruction is debug-type, the second path between the USB interface of first electronic equipment and the tune-up data platform of first electronic equipment is connected to based on the switch that pattern switching instruction controls first electronic equipment, and the first path between the switch disconnection USB interface and the usb data platform of first electronic equipment is controlled, to pass through the second path transmission tune-up data.

Description

Control method and device of USB interface and storage medium
Technical Field
The present invention relates to interface control processing technologies, and in particular, to a method and an apparatus for controlling a USB interface, and a storage medium.
Background
When the existing debugged equipment is debugged, the debugging equipment needs to be accessed to the debugged equipment through a special debugging interface, and debugging data of the debugged equipment is sent through the debugging interface so as to monitor and debug the debugged equipment. The debugging interface comprises a serial Communication (COM) port and a special debugging port inside a case of the debugged equipment.
When debugging is performed, the debugged equipment does not have a serial port line dedicated to the COM port, or the debugged equipment does not have a case where the COM port needs to be opened, and the debugged equipment is connected through a debugging port inside the case. Existing debuggee devices are provided with a Universal Serial Bus (USB) interface for data transmission. However, no technical solution for converting the USB interface into the debug interface has been implemented in the related art.
Disclosure of Invention
In order to solve the foregoing technical problem, embodiments of the present invention provide a method and an apparatus for controlling a USB interface, and a storage medium, which can perform transmission of debug data through the USB interface.
The control method of the USB interface provided by the embodiment of the invention is applied to first electronic equipment, and comprises the following steps:
obtaining a mode switching instruction;
detecting a switching type of the mode switching instruction;
and if the switching type of the mode switching instruction is a debugging type, controlling a switch of the first electronic equipment to communicate a second path between a USB interface of the first electronic equipment and a universal asynchronous receiver-transmitter debugging data platform of the first electronic equipment based on the mode switching instruction, and controlling the switch to disconnect a first path between the USB interface and a platform controller center USB data platform of the first electronic equipment so as to transmit debugging data through the second path.
The control device of the USB interface provided by the embodiment of the invention is applied to first electronic equipment, and comprises: the system comprises a USB interface, a switch, a platform controller center USB data platform and a universal asynchronous receiving and transmitting transmitter debugging data platform which stores debugging data; wherein,
the switch is connected with the USB data platform or the debugging data platform;
the USB interface, the switch and the USB data platform form a first path; the first path is used for transmitting USB data;
the USB interface, the switch and the debugging data platform form a second path, and the second path is used for transmitting debugging data.
The computer-readable storage medium provided by the embodiment of the invention stores a control program of the USB interface, and the control program of the USB interface realizes the steps of the control method of the USB interface when being executed by the processor.
In the embodiment of the invention, when the switching type of the mode switching instruction is determined to be the debugging type, the second path between the USB interface and the debugging data platform is communicated through the switch, the first path between the USB interface and the USB data platform is disconnected, the transmission of the debugging data is carried out between the USB interface and the debugging data platform through the second path, so that the transmission of the debugging data is carried out through the USB interface, the multiplexing of the USB data and the debugging data is carried out through the USB interface, and the transmission of the debugging data is not limited to debugging ports such as a COM port on debugged equipment and a debugging port in a case.
Drawings
Fig. 1 is a first schematic flow chart illustrating an implementation of a control method of a USB interface according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a second implementation of a control method for a USB interface according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating an implementation of a control method for a USB interface according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a third electronic device according to an embodiment of the invention;
FIG. 5A is a first schematic structural diagram of a control device with four USB interfaces according to an embodiment of the present invention;
FIG. 5B is a schematic structural diagram of a control device with four USB interfaces according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a fifth electronic device according to an embodiment of the present application.
Detailed Description
The present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the examples provided herein are merely illustrative of the present invention and are not intended to limit the present invention. In addition, the following embodiments are provided as partial embodiments for implementing the present invention, not all embodiments for implementing the present invention, and the technical solutions described in the embodiments of the present invention may be implemented in any combination without conflict.
In various embodiments of the invention: obtaining a mode switching instruction; detecting a switching type of the mode switching instruction; and if the switching type of the mode switching instruction is a debugging type, controlling a switch of the first electronic equipment to be communicated with a second path between a USB interface of the first electronic equipment and a debugging data platform of the first electronic equipment based on the mode switching instruction, and controlling the switch to be disconnected with a first path between the USB interface and the USB data platform of the first electronic equipment so as to transmit debugging data through the second path.
Example one
The embodiment of the invention provides a control method of a USB interface, which is applied to first electronic equipment, wherein the first electronic equipment is debugged equipment comprising a debugging data Platform and a USB data Platform, the debugging data Platform can be an element which stores debugging data, such as a Universal Asynchronous Receiver Transmitter (UART), and the like, and the USB data Platform can be an element which is responsible for the input/output of USB data, such as a Platform Controller Hub (PCH). The first electronic equipment further comprises a USB interface so as to perform data interaction with external debugging equipment or USB equipment through the USB interface. The first electronic device and the external debugging device interact data, and the second electronic device and the external USB device interact data which are USB data. The first electronic equipment further comprises a switch, one end of the switch is connected with the USB interface, and the other end of the switch is connected with the USB data platform or the debugging data platform.
The first electronic device may comprise a fixed electronic device such as a Personal Computer (PC), a portable electronic device such as a Personal digital assistant (PAD), a tablet Computer, a laptop Computer, or a smart mobile electronic device such as a smart phone.
Fig. 1 is a schematic flow chart illustrating an implementation process of a control method of a USB interface according to an embodiment of the present invention, as shown in fig. 1, the control method of the USB interface includes:
s101, obtaining a mode switching instruction;
the first electronic device detects an external electronic device, namely a second electronic device, accessed through the USB interface, and triggers generation of a mode switching instruction. Here, the mode switching instruction of the corresponding type is determined according to the device type of the second electronic device. And when the second electronic equipment is debugging equipment for debugging the first electronic equipment, the equipment type of the second electronic equipment is a debugging type, and a mode switching instruction with the switching type being the debugging type is generated according to the equipment type of the second electronic equipment. And when the second electronic equipment is USB equipment which is used for carrying out USB data interaction with the first electronic equipment and is not the debugging equipment, the equipment type of the second electronic equipment is the USB type, and a mode switching instruction with the switching type being the USB type is generated according to the equipment type of the second electronic equipment.
The generation of the mode switching instruction includes two generation modes, an automatic generation mode and a manual generation mode. In the automatic generation mode, the first electronic equipment detects the voltage of a data end of the USB interface, and automatically generates a mode switching instruction corresponding to the switching type according to the detected voltage value, or automatically generates a mode switching instruction corresponding to the switching type according to equipment information of the second electronic equipment; and in the manual generation mode, displaying a display page for receiving user operation based on the access of the second electronic equipment, and generating a mode switching instruction corresponding to the switching type based on the instruction type of the user operation received by the display page.
In an embodiment, detecting a voltage at a data terminal of the USB interface, and automatically triggering a mode switching command corresponding to a switching type according to the detected voltage value includes: detecting the voltage of a data input pin of a USB interface to obtain a first voltage; and detecting the voltage of a data output pin of the USB interface to obtain a second voltage, and generating a mode switching instruction of which the switching type is a debugging type or a USB type according to the first voltage and the second voltage.
Here, the first electronic device may be connected to a controller at the USB interface, and when a mode switching command is generated, the mode switching command is transmitted to the controller, so that the controller performs switching control of the data path of the USB according to the mode switching command.
S102, detecting the switching type of the mode switching instruction;
in the embodiment of the invention, the switching type of the mode switching instruction comprises two switching types, namely a debugging type and a USB type. And when the switching type of the mode switching instruction is a debugging type, indicating that the second electronic equipment is debugging equipment, and transmitting debugging data between the first electronic equipment and the second electronic equipment through a USB interface. And when the switching type of the mode switching instruction is the USB type, indicating that the second electronic equipment is the USB equipment, and transmitting USB data between the first electronic equipment and the second electronic equipment through a USB interface.
Here, the mode switching instruction may carry a switching type identifier, and the switching type is determined by analyzing the switching type identifier, for example, if the switching type identifier is 0, the switching type is a debug type; and if the switching type mark is 1, the switching type is a USB type. In the embodiment of the present invention, the expression manner of the switching type of the mode switching instruction is not limited.
S103, if the switching type of the mode switching instruction is a debugging type, controlling a switch of the first electronic equipment to communicate with a second path between a USB interface of the first electronic equipment and a debugging data platform of the first electronic equipment based on the mode switching instruction so as to transmit debugging data through the second path;
the USB interface of the first electronic equipment is connected with the debugging data platform or the USB data platform through a switch. The USB interface and the USB data platform form a first path for transmitting USB data through the switch, and the USB interface and the debugging data platform form a second path for transmitting debugging data through the switch. The switch may be a two-way selector.
The state of the switch may include a first state and a second state. When the switch is in a first state, the switch is connected and communicated with the debugging data platform and disconnected with the USB data platform; when the switch is in the second state, the switch is connected with the USB data platform and disconnected with the debugging data platform.
If the switching type of the mode switching instruction is determined to be the debugging type in S102, the switch is controlled to be in the first state based on the switching type, the switch is communicated with the debugging data platform, the USB interface is connected with the debugging data platform through the switch, a second path formed by the USB interface, the switch and the debugging data platform is communicated, the debugging data platform can send debugging data to the second electronic device through the USB interface, and can receive the debugging data sent by the second electronic device through the USB interface, so that the debugging data can be transmitted through the second path.
And S104, controlling the switch to disconnect a first path between the USB interface and a USB data platform of the first electronic device based on the mode switching instruction.
If the switching type of the mode switching instruction is determined to be the debugging type in S102, the switch is controlled to be in the first state based on the switching type, and the switch is disconnected from the USB data platform, so that the USB interface is disconnected from the USB data platform through the switch, the first path formed by the USB interface, the switch and the USB data platform is disconnected, and the USB data platform cannot perform USB data interaction with the second electronic device through the USB interface, so as to ensure that the debugging data transmitted through the second path in S103 is not interfered.
In an embodiment, as shown in fig. 2, the method further comprises the following:
s105, if the switching type of the mode switching instruction is a USB type, controlling the switch to be communicated with a first path between the USB interface and the USB data platform based on the mode switching instruction so as to transmit USB data through the first path;
if the switching type of the mode switching instruction is determined to be the USB type in S102, the switch is controlled to be in the second state based on the switching type, the switch is connected to the USB data platform, the USB interface is connected to the USB data platform through the switch, the USB interface, the switch, and the first path formed by the USB data platform are connected, the USB data platform can send USB data to the second electronic device through the USB interface, and can receive the USB data sent by the second electronic device through the USB interface, so as to transmit the USB data through the first path.
S106, controlling the switch to disconnect a second path between the USB interface and the debugging data platform based on the mode switching instruction.
If the switching type of the mode switching instruction is determined to be the USB type in S102, the switch is controlled to be in the second state based on the switching type, and the switch is disconnected from the debug data platform, so that the USB interface is disconnected from the debug data platform through the switch, a second path formed by the USB interface, the switch and the debug data platform is disconnected, and the debug data platform cannot perform interaction of debug data with the second electronic device through the USB interface, so as to ensure that the USB data transmitted through the second path in S105 is not interfered.
In the embodiment of the invention, the USB interface of the first electronic device is connected to a switch, and the other side of the switch, which is opposite to the USB interface, comprises a debugging data platform and a USB data platform. If the second electronic equipment accessed through the USB interface is debugging equipment, the connection between the switch and the debugging data platform is conducted, the connection between the switch and the USB data platform is disconnected, so that a second path between the USB interface and the debugging data platform is communicated through the control of the switch, a first path between the USB interface and the USB data platform is disconnected, debugging data is transmitted between the debugging data platform and the USB interface through the second path, and the interaction of the debugging data is carried out on the first electronic equipment and the second electronic equipment through the USB interface. If the second electronic equipment accessed through the USB interface is the USB equipment, the connection between the switch and the USB data platform is conducted, the connection between the switch and the debugging data storage is disconnected, so that a first path between the USB interface and the USB data platform is communicated through the control of the switch, a second path between the USB interface and the debugging data platform is disconnected, USB data are transmitted between the USB data platform and the USB interface through the first path, and the interaction of the USB data is carried out between the first electronic equipment and the second electronic equipment through the USB interface.
It should be noted that, in the embodiment of the present invention, the default state of the switch may be the first state, at this time, the second path is connected, and the first path is disconnected; the default state of the switch may also be a second state, where the first path is on and the second path is off. When the mode switching instruction is not detected, the first electronic device is in a default state, and when the mode switching instruction is detected, the switch is controlled to enter a corresponding state according to the switching type of the mode switching instruction. In the embodiment of the present invention, after the switch enters one state, when the mode switching command of another state is not detected, the current state can be maintained, for example: and when the debugging equipment is disconnected from the USB interface, the state of the switch is not switched and is maintained in the first state until the mode switching instruction of the USB type is detected.
According to the control method of the USB interface provided by the embodiment of the invention, a mode switching instruction is obtained; detecting a switching type of the mode switching instruction; and if the switching type of the mode switching instruction is a debugging type, controlling a switch of the first electronic equipment to be communicated with a second path between a USB interface of the first electronic equipment and a debugging data platform of the first electronic equipment based on the mode switching instruction, and controlling the switch to be disconnected with a first path between the USB interface and the USB data platform of the first electronic equipment so as to transmit debugging data through the second path. Therefore, when the switching type of the mode switching instruction is determined to be the debugging type, the second path between the USB interface and the debugging data platform is communicated through the switch, the first path between the USB interface and the USB data platform is disconnected, the debugging data is transmitted between the USB interface and the debugging data platform through the second path, the debugging data is transmitted through the USB interface, the USB interface is used for multiplexing the USB data and the debugging data, and the transmission of the debugging data is not limited to debugging ports such as a COM port on debugged equipment and a debugging port in a case.
Further, when the switching type of the mode switching instruction is determined to be the USB type, a first path between the USB interface and the USB data platform is communicated through a switch, a second path between the USB interface and the debugging data platform is disconnected, USB data is transmitted between the USB interface and the USB data platform through the first path, and the USB interface is multiplexed through switching between the first path and the second path so as to perform data interaction with external debugging equipment or USB equipment through the USB interface, so that the workload of debugging personnel is reduced, and the cost is reduced.
Example two
The embodiment of the invention provides a control method of a USB interface, which is applied to first electronic equipment, wherein the first electronic equipment is debugged equipment comprising a debugging data Platform and a USB data Platform, the debugging data Platform can be an element which stores debugging data, such as a Universal Asynchronous Receiver Transmitter (UART), and the like, and the USB data Platform can be an element which is responsible for the input/output of USB data, such as a Platform Controller Hub (PCH). The first electronic equipment further comprises a USB interface so as to perform data interaction with external debugging equipment or USB equipment through the USB interface. The first electronic device and the external debugging device interact data, and the second electronic device and the external USB device interact data which are USB data. The first electronic equipment further comprises a switch, one end of the switch is connected with the USB interface, and the other end of the switch is connected with the USB data platform or the debugging data platform.
The first electronic device may comprise a fixed electronic device such as a PC, and may further comprise a portable electronic device such as a PAD, a tablet computer, a laptop computer, and may of course comprise a smart mobile terminal such as a smart phone.
Fig. 3 is a schematic flow chart illustrating an implementation process of a control method of a USB interface according to an embodiment of the present invention, and as shown in fig. 3, the control method of the USB interface includes:
s301, obtaining a mode switching instruction;
in one embodiment, the obtaining the mode switching instruction includes: detecting the voltage of a first data endpoint of the USB interface to obtain a first voltage; detecting the voltage of a second data endpoint of the USB interface to obtain a second voltage; and generating a debugging type mode switching instruction if the first voltage and the second voltage accord with a first switching condition.
When the first electronic device detects the second electronic device through the USB interface, the voltage of a first data endpoint of the USB interface and the voltage of a second data pin endpoint of the USB interface are detected to obtain a first voltage and a second voltage, the first voltage and the second voltage are matched with a set first switching condition, the first voltage and the second voltage are determined to accord with the first switching condition, and then the second electronic device which is externally connected through the USB interface at present is determined to be debugging equipment of a debugging type. Here, the first switching condition is a first voltage and a second voltage corresponding to the USB interface when the USB interface is connected to the debugging device, for example: through the detection of the USB interface of the access debugging equipment, determining that the first switching condition is as follows: a first voltage of 5V, a second voltage of 5V; when the second electronic device is accessed again, the first voltage of the USB interface is detected to be 5V, and when the second voltage is 5V, the second electronic device is determined to be the debugging device, and a mode switching instruction with the switching type being the debugging type is generated.
Here, the pins of the USB interface include a voltage pin, a first data pin, a second data pin, and a ground pin. The voltage pin is a power supply pin and is used for transmitting a power supply signal; the first data pin is a data input pin, namely a D + pin, and is used for transmitting a data input signal; the second data pin is a data output pin, namely a D-pin, and is used for transmitting a data output signal; the ground pin is used for grounding. The first data terminal may be a first data pin and the second data terminal may be a second data pin.
In one embodiment, the obtaining the mode switching instruction includes: detecting the voltage of a first data endpoint of the USB interface to obtain a first voltage; detecting the voltage of a second data endpoint of the USB interface to obtain a second voltage; and if the first voltage and the second voltage accord with a second switching condition, or the first voltage value and the second voltage do not accord with a first switching condition, generating a USB type mode switching instruction.
Here, the second switching condition is a first voltage and a second voltage corresponding to the USB interface accessing the USB device, such as: through the detection of the USB interface connected to the USB device, the first switching condition is determined as follows: the first voltage is 3.3V, and the second voltage is 3.3V; when the second electronic device is accessed again, the first voltage of the USB interface is detected to be 3.3V, and the second voltage is detected to be 3.3V, the second electronic device is determined to be the USB device, and a mode switching instruction of which the switching type is the USB type is generated.
When the first voltage and the second voltage do not meet the first switching condition, it is determined that the accessed second electronic device is not a debugging device of a debugging type, and the accessed second electronic device is considered to perform USB data interaction with the first electronic device, and at this time, a mode switching instruction of which the switching type is a USB type is generated.
In one embodiment, the obtaining the mode switching instruction includes: detecting equipment information of second electronic equipment connected with the USB interface; determining the device type of the second electronic device according to the device information of the second electronic device; and generating a mode switching instruction corresponding to the switching type according to the equipment type of the second electronic equipment.
The first electronic device may be provided with an access list, access information is stored in the access list, and the access information includes: device information and a corresponding handover type, the device information comprising: the device identification, the access address and the like represent parameters of one device, and the switching type comprises a debugging type and a USB type. Here, the access information in the access list may include access information set by the user, such as: and receiving the equipment information and the corresponding switching type input by the user, and recording the equipment information and the corresponding switching type input by the user into the access list. The access list may also include device information and handover types of access history devices, such as: when the equipment A accesses the first electronic equipment, determining that the switching type of the equipment A is a debugging type, and recording the equipment information and the switching type of the equipment A as an access list; at this time, when the device a is accessed to the first electronic device again, the currently accessed second electronic device is determined to be the device a according to the device information of the device a, the switching type of the device a is determined to be the debugging type according to the switching type corresponding to the device information in the access list, and a mode switching instruction of the debugging type is generated.
In one embodiment, the obtaining the mode switching instruction includes: receiving an operation instruction aiming at a display page; detecting an instruction type of the operation instruction; and generating a mode switching instruction corresponding to the switching type according to the instruction type.
Here, when the first electronic device detects the second electronic device, a display page for the current second electronic device is displayed, and the device in the display page has an interface for receiving user input, and the interface is used for receiving the setting of the switching type of the current second electronic device by the user. The displayed display page comprises the equipment information of the second electronic equipment so as to prompt the user of the equipment information of the second electronic equipment corresponding to the current switching type.
S302, detecting the switching type of the mode switching instruction;
in the embodiment of the invention, the switching type of the mode switching instruction comprises two switching types, namely a debugging type and a USB type. And when the switching type of the mode switching instruction is a debugging type, indicating that the second electronic equipment is debugging equipment, and transmitting debugging data between the first electronic equipment and the second electronic equipment through a USB interface. And when the switching type of the mode switching instruction is the USB type, indicating that the second electronic equipment is the USB equipment, and transmitting USB data between the first electronic equipment and the second electronic equipment through a USB interface.
Here, the mode switching instruction may carry a switching type identifier, and the switching type is determined by analyzing the switching type identifier, for example, if the switching type identifier is 0, the switching type is a debug type; and if the switching type mark is 1, the switching type is a USB type. In the embodiment of the present invention, the expression manner of the switching type of the mode switching instruction is not limited.
S303, if the switching type of the mode switching instruction is a debugging type, controlling a switch of the first electronic equipment to be communicated with a second path between a USB interface of the first electronic equipment and a debugging data platform of the first electronic equipment based on the mode switching instruction so as to transmit debugging data through the second path;
if the switching type of the mode switching instruction is determined to be the debugging type in S302, the second path formed by the USB interface, the switch, and the debugging data platform is communicated based on the connection and communication between the switching type control switch and the debugging data platform, and the debugging data platform can send debugging data to the second electronic device through the USB interface and can receive the debugging data sent by the second electronic device through the USB interface to transmit the debugging data through the second path.
S3204, controlling the switch to disconnect a first path between the USB interface and a USB data platform of the first electronic device based on the mode switching instruction;
if the switching type of the mode switching instruction is determined to be the debugging type in S302, the switch is controlled to be disconnected from the USB data platform based on the switching type, so that the USB interface is disconnected from the USB data platform by the switch, and the first path formed by the USB interface, the switch, and the USB data platform is disconnected.
S305, performing voltage conversion on the endpoint voltage of the debugging data platform and the data endpoint voltage of the USB interface through a voltage converter between the switch and the debugging data platform.
So that the endpoint voltage of the debug data platform is consistent with the data endpoint voltage of the USB interface.
Here, if the endpoint voltage of the debug data platform is not consistent with the data endpoint voltage of the USB interface, when the switch is controlled to connect the second path connected to the debug data platform based on the mode switching instruction, the endpoint voltage of the debug data platform and the data endpoint voltage of the USB interface are voltage-converted by a voltage converter between the switch and the debug data platform, so that the endpoint voltage of the debug data platform is consistent with the data endpoint voltage of the USB interface. Such as: and a voltage converter is connected between the switch and the debugging data platform, the voltage of a data endpoint in the USB interface is 5V, the voltage of an endpoint of the debugging data platform is 3.3V, and when the second path is communicated, the voltage of the data endpoint is converted into 3.3V through the voltage converter, so that the voltage of the endpoint of the debugging data platform is consistent with the voltage of the data endpoint of the USB interface.
It should be noted that the number of the end points of the debug data platform corresponds to the number of the data ends of the USB interface, and when the data ends of the USB interface include a data input end and a data output end, the end of the debug data platform correspondingly includes a debug data output end and a debug data input end. When the voltage of the data input end of the USB interface is inconsistent with the voltage of the debugging data output end of the debugging data platform, the voltages at the two ends are converted into consistency through the first voltage converter. When the voltage of the data output end of the USB interface is inconsistent with the voltage of the debugging data input end of the debugging data platform, the voltages at the two ends are converted into consistency through the second voltage converter. In practical applications, the first voltage converter and the second voltage converter may be implemented by one voltage converter.
According to the scheme of the embodiment of the invention, the current equipment type of the second electronic equipment can be timely and effectively determined by detecting the voltage of the data terminal of the USB when the second electronic equipment is accessed, and the mode switching instruction corresponding to the switching type is generated, so that the first electronic equipment can be ensured to be capable of quickly and accurately switching the path.
EXAMPLE III
In the embodiment of the present invention, taking a USB data platform as a PCH and a debug data platform as a UART as an example, the control method of the USB interface provided in the embodiment of the present invention is further described, where the method is applied to a first electronic device, and as shown in fig. 4, the first electronic device includes: PCH401, UART402, switch 403, controller 404, and USB interface 405, where switch 403 is a two-way selector. The PCH401, the switch 403, and the USB interface 405 form a first path; the UART402, the switch 403 and the USB interface 405 constitute a second path.
The PCH401 is used to control transmission of USB data, and when the first path is connected, transmission of USB data is performed between the PCH3401 and the USB interface 405 through the first path.
The UART402 is configured to control transmission of the debug data, and when the second path is connected, the transmission of the debug data is performed between the UART402 and the USB interface 405 through the second path.
The switch 403 may connect a debug (debug) signal of the UART402 for transmitting debug data and a USB signal of the PCH401 for transmitting USB data to the USB interface 405. Here, the PCH401 may be connected to the USB interface 405 by default, and if the UART402 needs to transmit Debug signals, the UART402 may be controlled by the controller 404 to connect to the USB interface 405 to transmit Debug signals. The debug signal may also be referred to as an RX/TX signal, depending on the transmission direction.
The voltage of the pin2/3 of the USB interface 405 is detected by the controller 404, and before the detection, the voltage of the pin2/3 can be analog-to-digital converted to improve the detection speed. When the controller 404 determines the switching type, the switching type is sent to the switch 403 through the GPIO port.
It should be noted that the Controller provided in the embodiment of the present invention may be a Baseband Management Controller (BMC).
In the first electronic device shown in fig. 4, when the second electronic device connected to the USB interface is a USB device, the USB interface transmits USB data, and if the second electronic device is a debug USB cable (debug cable) as a debug device, the controller converts an RX/TX signal of the UART to the USB interface. The pins of the USB interface 505 include a pin No. 1 pin1 (power supply pin), a pin No. 2 pin2 (transmission D + signal), a pin No. 3 pin3 (transmission D-signal), and a pin No. 4 pin4 (ground pin). When the debugging equipment is connected to the second electronic equipment, only Pin No. 2 Pin2 (transmitting D + signal) and Pin No. 3 Pin3 (transmitting D-signal) of the USB need to be connected, so the controller distinguishes whether the second electronic equipment is the USB equipment or the debugging equipment by detecting the voltages of Pin2 and Pin3 of the second electronic equipment.
Here, the voltages of the pin2 and the pin3 of the USB interface may be as shown in table 1 according to the difference of the second electronic device to which the USB interface is connected, and when the USB interface is connected to the USB device but no data is transmitted, the voltages of the pin2 and the pin3 are 0V and 3.3V, respectively; when the USB interface is accessed to the USB equipment and data is transmitted, the voltage of the pin2 and the voltage of the pin3 are 3.3V and 3.3V respectively; when the USB interface is accessed to a keyboard, a mouse and other USB equipment, the voltage of the pin2 and the voltage of the pin3 are 3.3V and 3.3V respectively; when the USB interface is not connected with equipment, the voltages of the pin2 and the pin3 are 0V and 0V respectively; when the USB interface is not connected with the debugging equipment, the voltages of the pin2 and the pin3 are 0V and 5V respectively; when the USB interface is connected to the debugging equipment, the voltages of the pin2 and the pin3 are 5V and 5V respectively.
Table 1 examples of voltages of pin2 and pin3 of USB interface
pin2 pin3
External USB equipment (without data transmission) 0V 3.3V
External USB equipment (with data transmission) 3.3V 3.3V
External keyboard and mouse 3.3V 3.3V
Non-external USB equipment 0V 0V
Debug cable without external connection 0V 5V
External debug cable 5V 5V
Here, according to the voltages shown in table 1, the first switching condition may be set as: a first voltage of 5V and a second voltage of 5V. The second switching condition is: the first voltage is 3.3V, and the second voltage is 3.3V. When the voltage of the USB device pin2 and the pin3 is 3.3V, it is determined that the accessed second electronic device is a USB device; and if the voltage of the pin2 and the pin3 is 5V, the accessed second electronic equipment is determined to be debug cable. The detection of the voltage of pin2 and pin3 of the USB interface can ensure that the controller can perform the switching operation quickly and accurately.
Here, the first electronic device may record the device ID or information of the debug cable into the BMC in advance, so as to ensure that the BMC can perform the switching operation quickly and accurately.
As shown in fig. 4, when the signal level of the URAT terminal is 3.3V _ STBY and the USB interface level is 5V _ STBY, when USB is used as debug interface to transmit debug data, a voltage converter 406 is connected to the UART, wherein the voltage converter 406 is used for converting voltage. The UART can also be connected with a reverse diode to prevent electric leakage.
Example four
To implement the method according to the embodiment of the present invention, the embodiment of the present invention provides a control apparatus 50 for a USB interface, which is applied to a first electronic device, and as shown in fig. 5A, the apparatus includes: a USB interface 51, a switch 52, a USB data platform 53 and a debugging data platform 54 storing debugging data; wherein,
the switch 52 is connected with the USB data platform 53 or the debugging data platform 54;
the USB interface 51, the switch 52 and the USB data platform 53 form a first path; the first path is used for transmitting USB data;
the USB interface 51, the switch 52 and the debug data platform 54 constitute a second path for transmitting debug data.
In one embodiment, as illustrated in fig. 5B, the apparatus further comprises: a controller 55; the controller 55 is configured to, when determining that the switching type of the obtained mode switching instruction is a debug type, control the switch 52 to connect a second path between the USB interface 51 and the debug data platform 54, and control the switch 52 to disconnect a first path between the USB interface 51 and the USB data platform 53, so as to transmit the debug data through the second path.
In one embodiment, the controller 55 is further configured to: when the switching type of the mode switching instruction is determined to be the USB type, the control switch 52 connects the first path between the USB interface 51 and the USB data platform 53, and the control switch 52 disconnects the second path between the USB interface 51 and the debug data platform 54, so as to transmit the USB data through the first path.
Here, the USB interface 51 in the fourth embodiment corresponds to the USB interface 305 in the third embodiment, the switch 52 in the fourth embodiment corresponds to the switch 303 in the third embodiment, the USB data platform 53 in the fourth embodiment corresponds to the PCH501 in the third embodiment, the debug data platform 54 in the fourth embodiment corresponds to the UART302 in the third embodiment, and the controller 55 in the fourth embodiment corresponds to the controller 304 in the third embodiment.
EXAMPLE five
Fig. 6 is another schematic structural diagram of a first electronic device according to an embodiment of the present disclosure, where the first electronic device shown in fig. 6 includes: at least one processor 601 and memory 602. The various components in the first electronic device are coupled together by a bus system 603. It will be appreciated that the bus system 603 is used to enable communications for connections between these components.
It will be appreciated that the memory 602 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 602 described in embodiments herein is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 602 in the embodiments of the present application is used to store various types of data to support the operation of the electronic device of the embodiments.
The method disclosed in the embodiments of the present application may be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 601. The Processor 601 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 601 may implement or perform the methods, steps and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 602, and the processor 601 reads the information in the memory 602 and performs the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, an electronic Device in an embodiment may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the foregoing methods.
In the embodiment of the present application, if the control method of the USB interface is implemented in the form of a software functional module and is sold or used as an independent product, the control method may also be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the prior art may be embodied in the form of a software product stored in a storage medium, 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 methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
Accordingly, an embodiment of the present invention further provides a computer-readable storage medium, where a control program of a USB interface is stored on the computer-readable storage medium, and when the control program of the USB interface is executed by a processor, the steps of the control method of the USB interface are implemented.
The above description of the computer-readable storage medium embodiments is similar to the description of the method embodiments described above, with similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the computer-readable storage medium of the present invention, reference is made to the description of the embodiments of the method of the present invention.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
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; can be located in one place or 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, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes 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 methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (11)

1. A control method of a USB interface is applied to first electronic equipment, and is characterized in that the method comprises the following steps:
obtaining a mode switching instruction;
detecting a switching type of the mode switching instruction;
and if the switching type of the mode switching instruction is a debugging type, controlling a switch of the first electronic equipment to be communicated with a second path between a USB interface of the first electronic equipment and a debugging data platform of the first electronic equipment based on the mode switching instruction, and controlling the switch to be disconnected with a first path between the USB interface and the USB data platform of the first electronic equipment so as to transmit debugging data through the second path.
2. The method of claim 1, further comprising:
and if the switching type of the mode switching instruction is a USB type, controlling the switch to connect a first path between the USB interface and the USB data platform based on the mode switching instruction, and controlling the switch to disconnect a second path between the USB interface and the debugging data platform so as to transmit USB data through the first path.
3. The method of claim 1, wherein obtaining the mode switch instruction comprises:
detecting the voltage of a first data endpoint of the USB interface to obtain a first voltage;
detecting the voltage of a second data endpoint of the USB interface to obtain a second voltage;
and generating a debugging type mode switching instruction if the first voltage and the second voltage accord with a first switching condition.
4. The method of claim 2, wherein obtaining the mode switch instruction comprises:
detecting the voltage of a first data endpoint of the USB interface to obtain a first voltage;
detecting the voltage of a second data endpoint of the USB interface to obtain a second voltage;
and if the first voltage and the second voltage accord with a second switching condition, or the first voltage value and the second voltage do not accord with a first switching condition, generating a USB type mode switching instruction.
5. The method of claim 2, wherein obtaining the mode switch instruction comprises:
detecting equipment information of second electronic equipment connected with the USB interface;
determining the device type of the second electronic device according to the device information of the second electronic device;
and generating a mode switching instruction corresponding to the switching type according to the equipment type of the second electronic equipment.
6. The method of claim 2, wherein obtaining the mode switch instruction comprises:
receiving an operation instruction aiming at a display page;
detecting an instruction type of the operation instruction;
and generating a mode switching instruction corresponding to the switching type according to the instruction type.
7. The method of claim 1, wherein if the endpoint voltage of the debug data platform is not consistent with the data endpoint voltage of the USB interface, the method further comprises, when controlling the switch to connect the switch to the second path connected to the debug data platform based on the mode switch command:
and performing voltage conversion on the endpoint voltage of the debugging data platform and the data endpoint voltage of the USB interface through a voltage converter between the switch and the debugging data platform so as to enable the endpoint voltage of the debugging data platform to be consistent with the data endpoint voltage of the USB interface.
8. A control device of a USB interface is applied to a first electronic device, and is characterized by comprising: the USB interface, the switch, the USB data platform and the debugging data platform which stores debugging data; wherein,
the switch is connected with the USB data platform or the debugging data platform;
the USB interface, the switch and the USB data platform form a first path; the first path is used for transmitting USB data;
the USB interface, the switch and the debugging data platform form a second path, and the second path is used for transmitting debugging data.
9. The apparatus of claim 8, further comprising: a controller; the controller is configured to, when it is determined that the obtained switching type of the mode switching instruction is a debug type, control the switch to connect a second path between the USB interface and the debug data platform, and control the switch to disconnect a first path between the USB interface and the USB data platform, so as to transmit debug data through the second path.
10. The apparatus of claim 9, wherein the controller is further configured to:
and when the switching type of the mode switching instruction is determined to be the USB type, controlling the switch to connect a first path between the USB interface and the USB data platform, and controlling the switch to disconnect a second path between the USB interface and the debugging data platform so as to transmit USB data through the first path.
11. A computer-readable storage medium having stored thereon a control program of a USB interface, which when executed by a processor, implements the steps of the control method of the USB interface of any one of claims 1 to 7.
CN201810968062.XA 2018-08-23 2018-08-23 A kind of control method and device of USB interface, storage medium Pending CN109299022A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810968062.XA CN109299022A (en) 2018-08-23 2018-08-23 A kind of control method and device of USB interface, storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810968062.XA CN109299022A (en) 2018-08-23 2018-08-23 A kind of control method and device of USB interface, storage medium

Publications (1)

Publication Number Publication Date
CN109299022A true CN109299022A (en) 2019-02-01

Family

ID=65165573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810968062.XA Pending CN109299022A (en) 2018-08-23 2018-08-23 A kind of control method and device of USB interface, storage medium

Country Status (1)

Country Link
CN (1) CN109299022A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110514925A (en) * 2019-08-13 2019-11-29 Oppo(重庆)智能科技有限公司 Test method and system and storage medium
CN111464365A (en) * 2020-04-17 2020-07-28 支付宝(杭州)信息技术有限公司 Equipment control method and system
CN112069100A (en) * 2020-08-17 2020-12-11 上海麦腾物联网技术有限公司 A USB switching method for IoT embedded devices
CN113568854A (en) * 2021-08-20 2021-10-29 广东铭基高科电子股份有限公司 Intelligent transmission device and electronic equipment
CN117119176A (en) * 2023-10-23 2023-11-24 深圳市龙之源科技股份有限公司 Camera test circuit, camera test device and camera test method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6343260B1 (en) * 1999-01-19 2002-01-29 Sun Microsystems, Inc. Universal serial bus test system
CN105718338A (en) * 2014-12-05 2016-06-29 联想(北京)有限公司 Information processing method and electronic device
CN107608847A (en) * 2017-09-07 2018-01-19 联想(北京)有限公司 Electronic equipment and its control method and control device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6343260B1 (en) * 1999-01-19 2002-01-29 Sun Microsystems, Inc. Universal serial bus test system
CN105718338A (en) * 2014-12-05 2016-06-29 联想(北京)有限公司 Information processing method and electronic device
CN107608847A (en) * 2017-09-07 2018-01-19 联想(北京)有限公司 Electronic equipment and its control method and control device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110514925A (en) * 2019-08-13 2019-11-29 Oppo(重庆)智能科技有限公司 Test method and system and storage medium
CN111464365A (en) * 2020-04-17 2020-07-28 支付宝(杭州)信息技术有限公司 Equipment control method and system
CN112069100A (en) * 2020-08-17 2020-12-11 上海麦腾物联网技术有限公司 A USB switching method for IoT embedded devices
CN113568854A (en) * 2021-08-20 2021-10-29 广东铭基高科电子股份有限公司 Intelligent transmission device and electronic equipment
CN113568854B (en) * 2021-08-20 2025-03-28 广东铭基高科电子股份有限公司 Intelligent transmission device and electronic equipment
CN117119176A (en) * 2023-10-23 2023-11-24 深圳市龙之源科技股份有限公司 Camera test circuit, camera test device and camera test method
CN117119176B (en) * 2023-10-23 2024-04-05 深圳市龙之源科技股份有限公司 Camera test circuit, camera test device and camera test method

Similar Documents

Publication Publication Date Title
CN109299022A (en) A kind of control method and device of USB interface, storage medium
US10409757B2 (en) Hub
TWI494863B (en) Dual-interface card reader module
CN106571657B (en) Terminal, converter, and connection conversion system and method
US7895386B2 (en) USB interface provided with host/device function and its control method
CN204243832U (en) A multi-interface charging circuit compatible with charging and output
CN102289388B (en) Extension method for managing IPMI (Intelligent Platform Management Interface) interface protocol by server
CN106786960A (en) Charge control method, device and terminal
CN111756858B (en) Remote development processing system, method and device for embedded equipment
TWM584452U (en) Integrated electronic apparatus for data access, data transmission and power management
CN116955257A (en) Hot plug equipment and server of network card
CN110704288B (en) Information processing method and electronic equipment
CN102544919B (en) Cable
CN111176563B (en) Method for bypass access to storage data, storage device and bypass access storage system
US20070234007A1 (en) Electronic data processing device with dual-cpu
US10237819B2 (en) SSIC device and link control method for SSIC device
CN213069764U (en) Touch control equipment
CN211787062U (en) MCTP equipment testing arrangement
CN111641633A (en) Information processing method for memory and electronic equipment
CN110442539B (en) Mobile phone OTG switching method and device
CN211149270U (en) Debugging circuit
CN109582620B (en) UART interface conversion device and method
CN209282342U (en) A kind of battery system and mobile terminal detecting state in place
CN111552655A (en) Method and equipment compatible with PogoPin, Y-cable and USB
TWI728363B (en) Integrated electronic apparatus for data access, data transmission and power management and method thereof

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190201