A USB master-slave mode switching device

By using the USB-A interface module and the main-slave mode switching module in the communication module, the USB_ID bus terminal is directly controlled to realize the switching of the USB main mode, which solves the problem of complex structure, high use and high cost in existing technologies. Improve the convenience and reduce the cost of materials in harsh environments.

CN116094901BActive Publication Date: 2025-01-24WILLFAR INFORMATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211534472.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-02
Publication Date
2025-01-24
Estimated Expiration
2042-12-02

AI Technical Summary

Technical Problem

The existing communication modules are complex in USB master-slave mode switching, inconvenient to use and high cost, and cannot meet the needs of program upgrades and log printing in harsh environments.

Method used

Using the USB-A interface module, the USB_ID bus terminal that directly controls the communication module through the mainstor mode switching module to the software and hardware to realize the switching of the USB master-slave mode and avoid the use of the OTG cable.

Benefits of technology

The convenient switching of the USB main and slave mode has been implemented, the cost of material is reduced, and the convenience of use in the harsh environment is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116094901B_ABST
    Figure CN116094901B_ABST
Patent Text Reader

Abstract

The present invention discloses a USB master-slave mode switching device, wherein the USB master-slave mode switching device comprises: a power module, a communication module, a master-slave mode switching module, a USB-A interface module and a U disk; the communication module is respectively connected to the master-slave mode switching module and the USB-A interface module; the USB-A interface module is connected to the U disk; the power module is respectively connected to the communication module and the USB-A interface module. The present invention solves the problems of the existing communication module in USB master-slave mode switching, such as complex structure and inconvenient use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of USB technology, and in particular to a USB master-slave mode switching device. Background Art

[0002] The 4G communication module usually uses a USB interface for program upgrades and log printing. Its working environment is generally a complex and harsh outdoor environment. In order to facilitate the upgrade of the 4G communication module program, it is usually necessary to insert a U disk in USB master mode for program upgrade. When a problem occurs with the communication module, it is also necessary to switch it to slave mode so that the communication module can output relevant logs of system operation as a slave device. Most of the existing communication modules use USB bases with USB-Mini or USB-Micro interfaces for switching the master-slave mode of the USB interface. The USB of this interface contains five pins: VCC, DN, DP, GND, and ID. Among them, the ID pin is connected to the USB_ID of the communication module. The master-slave mode switching can be achieved by matching the OTG line. When the OTG line is not inserted, the ID pin is high or suspended, and the communication module is in slave mode. When the OTG line is inserted, the ID pin is pulled down to GND, and the communication module runs in master mode. This method increases the material cost of the USB base interface and the OTG line, and the OTG line is not convenient for use in harsh outdoor environments. When maintenance personnel upgrade the communication module, they often need to carry an OTG line to insert the USB flash drive for operation. The USB-A port is the most widely used and low-cost interface among the current USB interfaces. This type of USB interface only contains four pins: VCC, DN, DP, and GND. It is designed with a USB-A port. Maintenance personnel can directly insert the USB device to perform related operations. However, this USB interface does not have an ID pin. When a U disk is inserted, the communication module cannot operate in the master mode. Therefore, this method is often only used in slave device applications and has low versatility.

[0003] The patent document with application number CN202120624305.5 discloses a Bluetooth data transmission device with switchable master-slave mode, including a USB module and a Bluetooth module coupled to the USB module, wherein the USB module is used to connect to the USB interface of a terminal device, the USB module supplies power to the Bluetooth module and transmits data with the Bluetooth module; the Bluetooth module is coupled to a human-computer interaction module, the human-computer interaction module is connected to the USB interface of the terminal device via a USB bus, and the human-computer interaction module is used to switch the master-slave mode of the Bluetooth module. The USB interface of the device has low versatility, and cannot solve the problems of complex structure, inconvenient use, and high cost of the existing communication module in USB master-slave mode switching. Therefore, it is urgent to propose a USB master-slave mode switching device, which can realize the switching of master-slave mode while using a USB-A interface to save materials. Summary of the invention

[0004] The main purpose of the present invention is to provide a USB master-slave mode switching device, which aims to solve the problems of the existing communication module in USB master-slave mode switching, such as complex structure and inconvenient use.

[0005] To achieve the above object, the present invention provides a USB master-slave mode switching device, wherein the USB master-slave mode switching device comprises: a power module, a communication module, a master-slave mode switching module, a USB-A interface module and a U disk;

[0006] The communication module is connected to the master-slave mode switching module and the USB-A interface module respectively; the USB-A interface module is connected to the U disk; and the power module is connected to the communication module and the USB-A interface module respectively.

[0007] In one of the preferred solutions, the communication module includes a USB bus unit;

[0008] The USB bus includes a VBUS bus, a USB_DM bus, a USB_DP bus and a USB_ID bus; the VBUS bus is connected to the power module; the USB_DM bus and the USB_DP bus are both connected to the USB-A interface module; and the USB_ID bus is connected to the master-slave mode switching module.

[0009] In one of the preferred solutions, the communication module further includes an interface unit;

[0010] The interface unit includes a GPIO1 control interface and a GPIO2 control interface;

[0011] The GPIO1 control interface is connected to the power module;

[0012] The GPIO2 control interface is connected to the master-slave mode switching module.

[0013] In one of the preferred solutions, the master-slave mode switching module includes a first master-slave mode switching terminal;

[0014] The first master-slave mode switching terminal includes an interface J1; pin 1 of the interface J1 is connected to a resistor R7; the other end of the resistor R7 is connected to a power supply terminal; pin 2 of the interface J1 is connected to the USB_ID bus; and pin 3 of the interface J1 is grounded.

[0015] In one of the preferred solutions, the master-slave mode switching module includes a second master-slave mode switching terminal;

[0016] The second master-slave mode switching end includes a resistor R5; one end of the resistor R5 is connected to the USB_ID bus, and the other end of the resistor R5 is connected to the GPIO2 control interface and the power supply end.

[0017] In one of the preferred solutions, the master-slave mode switching module includes a second master-slave mode switching terminal;

[0018] The second master-slave mode switching terminal includes a resistor R5, one end of the resistor R5 is connected to the USB_ID bus, and the other end of the resistor R5 is connected to the GPIO2 control interface and the ground terminal.

[0019] In one of the preferred solutions, the USB-A interface module includes a USB-A interface;

[0020] Pin 1 of the USB-A interface is connected to the power module;

[0021] Pin 2 of the USB-A interface is connected to the USB_DM bus;

[0022] Pin 3 of the USB-A interface is connected to the USB_DP bus;

[0023] Pins 4, 5, and 6 of the USB-A interface are grounded.

[0024] In one of the preferred solutions, the USB-A interface is a USB-A female interface.

[0025] In one of the preferred solutions, the power supply module includes a first switch circuit;

[0026] The first switch circuit includes a transistor V2; the base of the transistor V2 is connected to a resistor R3, the other end of the resistor R3 is connected to a GPIO1 control interface, the collector of the transistor V2 is connected to the resistor R2; the emitter of the transistor V2 is grounded.

[0027] In one of the preferred solutions, the power supply module includes a second switch circuit;

[0028] The second switching circuit includes a switching tube V1; the gate of the switching tube V1 is connected to the resistor R2 and the resistor R1 respectively, and the other end of the resistor R1 is connected to the power supply end; the source of the switching tube V1 is connected to the power supply end; the drain of the switching tube V1 is connected to the diode V3, and the other end of the diode V3 is connected to the communication module and the USB-A interface module.

[0029] In the above technical solution of the present invention, the USB master-slave mode switching device comprises: a power module, a communication module, a master-slave mode switching module, a USB-A interface module and a U disk; the communication module is respectively connected to the master-slave mode switching module and the USB-A interface module; the USB-A interface module is connected to the U disk; the power module is respectively connected to the communication module and the USB-A interface module. The present invention solves the problems of the existing communication module in USB master-slave mode switching, such as complex structure and inconvenient use.

[0030] In the present invention, a USB-A interface module is used without using an ID pin, and the second master-slave mode switching end of the master-slave mode switching module directly controls the USB_ID bus end of the communication module in software to achieve switching of the USB master-slave mode.

[0031] In the present invention, the first master-slave mode switching terminal set by the master-slave mode switching module directly realizes the switching of USB master-slave mode in hardware, and the metal conductors such as short-circuit caps can be directly used to connect the 2nd and 3rd pins or the 2nd and 1st pins of the interface J1, thereby realizing the switching of USB master-slave mode, which is more convenient to use. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.

[0033] Figure 1 This is a schematic diagram of the structure of a USB master-slave mode switching device according to an embodiment of the present invention;

[0034] Figure 2 A circuit diagram (1) of a USB master-slave mode switching device according to an embodiment of the present invention;

[0035] Figure 3 A circuit diagram (2) of a USB master-slave mode switching device according to an embodiment of the present invention;

[0036] Figure 4 A circuit diagram (3) of a USB master-slave mode switching device according to an embodiment of the present invention;

[0037] Figure 5 This is a circuit diagram (4) of a USB master-slave mode switching device according to an embodiment of the present invention.

[0038] Description of Figure Numbers:

[0039] 1. Power module; 2. Communication module; 3. Master-slave mode switching module; 4. USB-A interface module; 5. U disk; 21. GPIO1 control interface; 22. VBUS bus; 23. USB_DM bus; 24. USB_DP bus; 25. USB_ID bus; 26. GPIO2 control interface; 31. First master-slave mode switching terminal; 32. Second master-slave mode switching terminal.

[0040] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with the implementation methods and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] It should be noted that all directional indications (such as up, down, etc.) in the embodiments of the present invention are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0043] In addition, in the present invention, the descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features.

[0044] Furthermore, the technical solutions between the various embodiments of the present invention may be combined with each other, but this must be based on the fact that they can be implemented by ordinary technicians in the field. When the combination of technical solutions is mutually contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0045] See also Figure 1 According to one aspect of the present invention, the present invention provides a USB master-slave mode switching device, wherein the USB master-slave mode switching device comprises: a power module 1, a communication module 2, a master-slave mode switching module 3, a USB-A interface module 4 and a U disk 5;

[0046] The communication module 2 is connected to the master-slave mode switching module 3 and the USB-A interface module 4 respectively; the USB-A interface module 4 is connected to the U disk 5; the power module 1 is connected to the communication module 2 and the USB-A interface module 4 respectively.

[0047] Specifically, in this embodiment, the communication module 2 includes a USB bus unit; the USB bus includes a VBUS bus 22, a USB_DM bus 23, a USB_DP bus 24 and a USB_ID bus 25; the VBUS bus 22 is connected to the diode V3 of the second switching circuit; the USB_DM bus 23 is connected to pin 2 of the USB-A interface; the USB_DP bus 24 is connected to pin 3 of the USB-A interface; the USB_ID bus 25 is connected to the master-slave mode switching module 3.

[0048] Specifically, in this embodiment, the communication module 2 also includes an interface unit; the interface unit includes a GPIO1 control interface 21 and a GPIO2 control interface 26; the GPIO1 control interface 21 is connected to the resistor R3 of the first switching circuit of the power supply module 1, and the GPIO1 control interface 21 is used to output the OTG_5V_EN signal to the first switching circuit; the GPIO2 control interface 26 is connected to the master-slave mode switching module 3, and the GPIO2 control interface 26 is used to output the USB_ID_CTRL signal to the second master-slave mode switching module 3.

[0049] Specifically, in this embodiment, the master-slave mode switching module 3 includes a first master-slave mode switching terminal 31; the first master-slave mode switching terminal 31 includes an interface J1; pin 1 of the interface J1 is connected to a resistor R7; the other end of the resistor R7 is connected to a power supply terminal, the power supply terminal is a V1P8 power supply input terminal, the resistor R7 is a pull-up resistor, the signal is clamped at a high level through the pull-up resistor R7, and the resistor R7 plays a current limiting role; pin 2 of the interface J1 is connected to the USB_ID bus 25; pin 3 of the interface J1 is grounded; through the first master The interface J1 of the slave mode switching end 31 uses a short-circuit cap or inserts a metal conductor such as tweezers to connect pins 2 and 3 or pins 1 and 2 of the interface J1 to respectively realize the switching of the master-slave mode; specifically, when the on-site maintenance personnel cannot conveniently obtain the OTG cable and the U disk 5, they can directly use a short-circuit cap or insert a metal conductor such as tweezers to connect pins 1 and 2 of the interface J1 to set the USB_ID bus 25 high, so that the communication module 2 enters the slave mode; or connect pins 2 and 3 of the interface J1 to set the USB_ID bus 25 low, so that the communication module 2 enters the master mode.

[0050] Specifically, in the present embodiment, the master-slave mode switching module 3 includes a second master-slave mode switching terminal 32; the second master-slave mode switching terminal 32 includes a resistor R5; one end of the resistor R5 is connected to the USB_ID bus 25, and the other end of the resistor R5 is respectively connected to the resistor R6 and the GPIO2 control interface 26, and the other end of the resistor R6 is connected to the power supply end, the pull-up resistor of the resistor R6, and the signal is clamped at a high level through the pull-up resistor R6. The compatibility and versatility of the circuit can be improved by the resistor R6; the power supply end is the V1P8 power input end; in the default state, the device is in the slave mode operation state, and the second master-slave mode switching terminal 32 can be used to switch from the slave mode to the master mode operation state. When the GPIO2 control interface 26 outputs a low level, the USB_ID bus 25 is pulled low, the GPIO1 control interface 21 of the communication module 2 outputs a high level, the transistor V2 enters a saturated conduction state, and the switch The level of the gate of the gate tube V1 is pulled low, so that the switch tube V1 is turned on, and the VBUS bus 22 of the communication module 2 is powered by the V4P8 power supply terminal, and the communication module 2 is switched to the master mode, and the U disk 5 can be directly inserted for program upgrade and other operations; when it is necessary to print the work log of the communication module 2 through the USB-A interface module 4, the U disk 5 can be directly inserted, and the U disk 5 has a built-in script for switching the communication module 2 to the slave mode, and the script can enable the communication module 2 to automatically run under the Lunix system to achieve the switching of the master-slave mode; after the U disk 5 is inserted, the script runs automatically, and the communication module 2 sets the GPIO2 control interface 26 to a high level. At the same time, the GPIO1 control interface 21 outputs a low level, so that the transistor V2 enters the cut-off state, the switch tube V1 is turned off, and the V4P8 power supply terminal stops supplying power to the VBUS bus 22 of the communication module 2, and the communication module 2 enters the slave mode, thereby achieving the switching of the master-slave mode.

[0051] Specifically, in this embodiment, see Figure 4, the master-slave mode switching module 3 includes a second master-slave mode switching terminal 32; the second master-slave mode switching terminal 32 includes a resistor R5, one end of the resistor R5 is connected to the USB_ID bus 25, the other end of the resistor R5 is respectively connected to the GPIO2 control interface 26 and the resistor R6, the other end of the resistor R6 is grounded, the device is in the master mode operation state in the default state, the second master-slave mode switching terminal 32 can be used to switch the master mode to the slave mode operation state, the USB_ID_CTRL signal output by the GPIO2 control interface 26 is pulled down to GND through the resistor R6, when the resistor R6 is pulled down to ground, the signal output by the GPIO2 control interface 26 cannot use an open-drain output pin, when the resistor R6 is pulled up to the V1P8 power supply terminal, the GPIO2 control interface 26 can be compatible with the open-drain output pin; when the GPIO2 control interface 26 outputs a high level, the USB_ID bus 25 is pulled high, and the GPIO of the communication module 2 1 control interface 21 outputs a low level, transistor V2 enters a cut-off state, the level of the gate of the switch tube V1 is pulled high, so that the switch tube V1 is cut off, and the V4P8 power supply end stops supplying power to the VBUS bus 22 of the communication module 2, and the communication module 2 switches to the slave mode; when it is necessary to print the work log of the communication module 2 through the USB-A interface module 4, the U disk 5 can be directly inserted, and the U disk 5 has a built-in script for switching the communication module 2 to the slave mode. The script can enable the communication module 2 to automatically run under the Lunix system to achieve the switching of the master-slave mode; after the U disk 5 is inserted, the script runs automatically, and the communication module 2 sets the GPIO2 control interface 26 to a low level. At the same time, the GPIO1 control interface 21 outputs a high level, so that the transistor V2 enters a saturated conduction state, the switch tube V1 is turned on, and the V4P8 power supply end supplies power to the VBUS bus 22 of the communication module 2, and the communication module 2 enters the master mode, thereby achieving the switching of the master-slave mode.

[0052] Specifically, in this embodiment, the USB-A interface module 4 includes a USB-A interface; the USB-A interface is a USB-A female interface; pin 1 of the USB-A interface is connected to the cathode of the diode V3 of the second switching circuit of the power module 1, and pin 1 of the USB-A is also connected to the capacitor C1, and the other end of the capacitor C1 is grounded, and the interference signal can be filtered out by the capacitor C1; pin 2 of the USB-A interface is connected to the USB_DM bus 23; pin 3 of the USB-A interface is connected to the USB_DP bus 24; pins 4, 5, and 6 of the USB-A interface are grounded; when the OTG cable is not used, the communication module 2 can be switched from the slave mode operation state to the master mode operation state when the U disk 5 is directly inserted.

[0053] Specifically, in this embodiment, the power supply module 1 includes a first switching circuit; the first switching circuit includes a transistor V2; the base of the transistor V2 is connected to a resistor R3, the other end of the resistor R3 is respectively connected to the GPIO1 control interface 21 and the resistor R4, the other end of the resistor R4 is grounded, and the resistor R4 can prevent the transistor V2 from being affected by the noise signal and causing malfunction; the collector of the transistor V2 is connected to the resistor R2, the resistor R2 is a voltage dividing resistor, and the resistor R3 is a current limiting resistor; the emitter of the transistor V2 is grounded; the first switch resistor is respectively connected to the GPIO1 control interface 21 of the communication module 2 and the second switching circuit, when the GPIO1 control interface 21 outputs a high level, the transistor V2 enters a saturated conduction state; when the GPIO1 control interface 21 outputs a low level, the transistor V2 enters a cut-off state.

[0054] Specifically, in the present embodiment, the power module 1 includes a second switch circuit; the second switch circuit includes a switch tube V1; the gate of the switch tube V1 is respectively connected to the resistor R2 and the resistor R1, and the other end of the resistor R1 is connected to the power supply end; the source of the switch tube V1 is connected to the power supply end; the power supply end is the V4P8 power supply end; the drain of the switch tube V1 is connected to the anode of the diode V3, and the cathode of the diode V3 is connected to the communication module 2 and the USB-A interface module 4; when the GPIO1 control interface 21 outputs a high level, the transistor V2 enters a saturated conduction state, and the gate level of the switch tube V1 is pulled down to turn on the switch tube V1. At this time, the V4P8 power supply end just supplies power to the VBUS bus 22 of the communication module 2; when the GPIO1 control interface 21 outputs a low level, the transistor V2 enters a cut-off state, the switch tube V1 is turned off, and the V4P8 power supply end stops supplying power to the VBUS bus 22 of the communication module 2.

[0055] Specifically, in this embodiment, see Figure 2, the resistor R1 is a pull-up resistor, R1 is 100KΩ, the resistor R2 is a voltage dividing resistor, R2 is 2KΩ, the resistor R3 is a current limiting resistor, R3 is 2KΩ, the resistor R4 is a pull-down resistor, R4 is 100KΩ, the resistor R5 is a current limiting resistor, R5 is 10KΩ, the resistor R6 is a pull-up resistor, R6 is 10KΩ, the resistor R7 is a pull-up resistor, R7 is 1KΩ, the capacitor C1 is a filter capacitor, and the capacitor C1 is 1μF, the transistor V2 can adopt an NPN transistor of model MMBT4401LT1G, the switch tube V1 can adopt a PMOS tube of model IRLML6401, and the diode V3 can adopt a diode of model MBR14. The present invention does not specifically limit the above-mentioned electronic components, and can be set according to needs.

[0056] Specifically, in this embodiment, see Figure 5 The USB_DM bus 23 of the communication module 2 can be connected to the 2-pin of the USB-A interface module 4 through the resistor R8, and the end of the resistor R8 connected to the USB_DM bus 23 of the communication module 2 is also connected to the bidirectional electrostatic tube V4, and the other end of the bidirectional electrostatic tube V4 is grounded; the USB_DP bus 24 of the communication module 2 can be connected to the 3-pin of the USB-A interface module 4 through the resistor R9, and the end of the resistor R9 connected to the USB_DP bus 24 of the communication module 2 is also connected to the bidirectional electrostatic tube V5, and the other end of the bidirectional electrostatic tube V5 is grounded; through the resistor R8, the resistor R9, the bidirectional electrostatic tube V4, and the bidirectional electrostatic tube V5, the signal reflection and oscillation can be effectively reduced, and the ESD protection capability of the circuit can be enhanced. In the specific use process, the resistor R8 and the resistor R9 are designed close to the communication module 2.

[0057] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. All equivalent structural changes made using the contents of the present invention's specification and drawings, or directly / indirectly applied in other related technical fields, are included in the patent protection scope of the present invention.

Claims

1. A USB master-slave mode switching device, characterized in that: The USB master-slave mode switching device includes: a power module, a communication module, a master-slave mode switching module, a USB-A interface module and a U disk; The communication module is connected to the master-slave mode switching module and the USB-A interface module respectively; the USB-A interface module is connected to the U disk; the power module is connected to the communication module and the USB-A interface module respectively; The communication module includes a USB bus unit and an interface unit; The USB bus includes a VBUS bus, a USB_DM bus, a USB_DP bus and a USB_ID bus; the VBUS bus is connected to the power module; the USB_DM bus and the USB_DP bus are both connected to the USB-A interface module; the USB_ID bus is connected to the master-slave mode switching module; The interface unit includes a GPIO1 control interface and a GPIO2 control interface; The GPIO1 control interface is connected to the power module; The GPIO2 control interface is connected to the master-slave mode switching module; The master-slave mode switching module includes a first master-slave mode switching terminal; The first master-slave mode switching terminal includes an interface J1; a pin 1 of the interface J1 is connected to a resistor R7; the other end of the resistor R7 is connected to a power supply terminal; a pin 2 of the interface J1 is connected to the USB_ID bus; and a pin 3 of the interface J1 is grounded; The USB-A interface module includes a USB-A interface; Pin 1 of the USB-A interface is connected to the power module; Pin 2 of the USB-A interface is connected to the USB_DM bus; Pin 3 of the USB-A interface is connected to the USB_DP bus; Pins 4, 5, and 6 of the USB-A interface are grounded; The power module includes a first switch circuit and a second switch circuit; The first switching circuit includes a transistor V2; the base of the transistor V2 is connected to the resistor R3, the other end of the resistor R3 is connected to the GPIO1 control interface, the collector of the transistor V2 is connected to the resistor R2; the emitter of the transistor V2 is grounded; the second switching circuit includes a switch tube V1; the gate of the switch tube V1 is connected to the resistor R2 and the resistor R1 respectively, and the other end of the resistor R1 is connected to the power supply end; the source of the switch tube V1 is connected to the power supply end; the drain of the switch tube V1 is connected to the diode V3, and the other end of the diode V3 is connected to the communication module and the USB-A interface module.

2. A USB master-slave mode switching device according to claim 1, characterized in that: The master-slave mode switching module includes a second master-slave mode switching terminal; The second master-slave mode switching end includes a resistor R5; one end of the resistor R5 is connected to the USB_ID bus, and the other end of the resistor R5 is connected to the GPIO2 control interface and the power supply end.

3. A USB master-slave mode switching device according to claim 1, characterized in that: The master-slave mode switching module includes a second master-slave mode switching terminal; The second master-slave mode switching terminal includes a resistor R5, one end of the resistor R5 is connected to the USB_ID bus, and the other end of the resistor R5 is connected to the GPIO2 control interface and the ground terminal.

4. A USB master-slave mode switching device according to claim 1, characterized in that: The USB-A interface is a USB-A female interface.

Citation Information

Patent Citations

  • Bluetooth data transmission device with switchable master and slave modes

    CN214544801U

  • USB equipment master / slave mode switching circuit

    CN108021522A

  • Method and system for changing operation modes of an interface device

    US20090037622A1