CN214098415U - Switching control circuit based on USB interface - Google Patents

Switching control circuit based on USB interface Download PDF

Info

Publication number
CN214098415U
CN214098415U CN202120318502.4U CN202120318502U CN214098415U CN 214098415 U CN214098415 U CN 214098415U CN 202120318502 U CN202120318502 U CN 202120318502U CN 214098415 U CN214098415 U CN 214098415U
Authority
CN
China
Prior art keywords
transistor
resistor
usb interface
control circuit
switching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202120318502.4U
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.)
Wuxi Gaoxinxing Iot Technology Co ltd
Original Assignee
Gaoxing Wulian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gaoxing Wulian Technology Co ltd filed Critical Gaoxing Wulian Technology Co ltd
Priority to CN202120318502.4U priority Critical patent/CN214098415U/en
Application granted granted Critical
Publication of CN214098415U publication Critical patent/CN214098415U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

This paper discloses a switching control circuit based on USB interface, belongs to electronic circuit technical field, and this circuit includes: control circuit, switching circuit, wherein, control circuit includes: the transistor VD1, the transistor VD2, the resistor R1, the resistor R2, the resistor R3 and the capacitor C1; the state of the USB interface is detected by controlling the on-off of a triode in the circuit, and the switching of the functions of the USB interface is realized through the switching circuit according to different states of the USB interface; the Modem and the main controller are communicated through the USB through the hardware discrete device, and software downloading, comprehensive testing and calibration of the Modem can be realized through an external USB interface.

Description

Switching control circuit based on USB interface
Technical Field
The present disclosure relates to electronic circuits, and particularly to a switching control circuit based on a USB interface.
Background
With the development of the internet of things, the requirements of various terminal products on modems with different functions are more and more diversified, and accordingly various modems are also in the coming endlessly. The modems that we often see are NB-IOT, 2G Modem, 3G Modem, 4G LTE Modem, and the current 5G Modem, etc. Besides its own RF interface, these modems also have an external interface, and these interfaces are also abundant. The peripheral equipment comprises an SPI interface, an IIC interface, a PCM interface, a USIM interface, an ETHERNET interface and the like of the peripheral equipment of the module, and also comprises a UART interface, a USB interface, a PCIE interface and the like which are communicated with the main controller.
However, the development expectation of the internet of things brings about an increase in the data transmission and processing amount of the Modem. However, in the interface between the Modem and the host controller, the data amount of the UART interface is limited, and although the data rate of the PCIE interface is high, hot plug is not supported, so that once the host controller and the Modem fail to communicate, the reset of the whole system is required, and the demand of PCIE for LAYOUT is also high. The USB interface supports hot plug and has relatively high transmission rate, especially USB3.0 interface. However, the USB interface is more used for software downloading and comprehensive testing and calibration of the Modem in the use of the general Modem. Therefore, the current Modem has a problem in use: the communication interface between the Modem and the main controller is good for use, but rarely used. At present, UARTs in communication interfaces of the Modem and the main controller are most used.
SUMMERY OF THE UTILITY MODEL
The switching control circuit based on the USB interface realizes rapid protection of overcurrent short circuit and overvoltage short circuit through a discrete circuit, and parameters of protection current and protection voltage can be configured in a hardware mode, so that the requirements of different devices are met.
The technical scheme adopted for solving the technical problems is as follows:
according to an aspect herein, there is provided a switching control circuit based on a USB interface, including: control circuit, switching circuit, wherein, control circuit includes: the transistor VD1, the transistor VD2, the resistor R1, the resistor R2, the resistor R3 and the capacitor C1; the state of the USB interface is detected by controlling the on-off of the triode in the circuit, and the switching of the functions of the USB interface is realized through the switching circuit according to different states of the USB interface.
Optionally, in the control circuit, a gate of the transistor VD1 is connected to one end of the resistor R1, one end of the capacitor C1, a gate of the transistor VD2, a cathode of the diode D2 and one end of the resistor R2, a source of the transistor VD1 is connected to the other end of the resistor R1, the other end of the capacitor C1 and a source of the transistor VD2, the other end of the resistor R2 is connected to one end of the resistor R3 and the node VD, and the other end of the resistor R3 is grounded.
Optionally, the switching circuit comprises: the switch circuit comprises a switch chip U1 and a capacitor C2, wherein a pin 1 of the switch chip U1 is connected with a node Vd, a pin 2 of the switch chip U1 is connected with a power supply terminal VCC and one end of the capacitor C2, and the other end of the capacitor C2 is grounded together with a pin 3 of the switch chip U1.
Optionally, the transistor VD1 and the transistor VD2 are both PMOS transistors.
Optionally, the apparatus further comprises a connection circuit, wherein the connection circuit comprises: the USB connector CON1 and the diode D1, pin 1 of the USB connector CON1 is connected with the positive pole of the diode D1, and the negative pole of the diode D1 is connected with the drain of the triode VD 2.
Optionally, when the USB interface is not connected, the voltage Vb at the positive electrode of the diode D2 is equal to 0V, at this time, the source voltage Vg of the transistor VD1 is equal to the drain voltage Va and is 3.8V, the voltage Vf at the negative electrode of the diode D2 is divided by the resistor R1, the resistor R2 and the resistor R3, so that the voltage difference between Vf and Vg is greater than the conduction voltage of the transistor VD1 and the transistor VD2, the transistor VD1 and the transistor VD2 are turned on, and the drain Vc power supply of the transistor VD2 is equal to Va equal to 3.8V, meanwhile, the voltage VD at the connection between the resistor R2 and the resistor R3 is low, the switching chip U1 defaults to keep the mode and the USB DM/DP of the master controller connected, and at this time, the master controller may detect the insertion of the USB interface.
Optionally, when the USB interface is accessed, the voltage Vb at the positive electrode of the diode D2 is 5V, at this time, the drain voltage Vc of the transistor VD2 is 4.3V, the source voltage Vg of the transistor VD1 is 4.3V, and the drain voltage Va greater than the transistor VD1 is 3.8V, and since Vg-Vf is 0V, the transistor VD1 and the transistor VD2 are not turned on, so the drain voltage Vc of the transistor VD2 is 4.3V, and at the same time, the voltage VD at the connection between the resistor R2 and the resistor R3 is high, and the switching chip U1 switches the Modem USB DM/DP to the external USB connector.
The utility model discloses switching control circuit based on USB interface, this circuit includes: control circuit, switching circuit, wherein, control circuit includes: the transistor VD1, the transistor VD2, the resistor R1, the resistor R2, the resistor R3 and the capacitor C1; the state of the USB interface is detected by controlling the on-off of a triode in the circuit, and the switching of the functions of the USB interface is realized through the switching circuit according to different states of the USB interface; the Modem and the main controller are communicated through the USB through the hardware discrete device, and software downloading, comprehensive testing and calibration of the Modem can be realized through an external USB interface.
Drawings
Fig. 1 is a functional schematic diagram of a switching control circuit based on a USB interface according to an embodiment of the present invention.
Fig. 2 is a circuit diagram of a switching control circuit based on a USB interface according to an embodiment of the present invention;
fig. 3 is a circuit diagram of another switching control circuit based on a USB interface according to an embodiment of the present invention;
fig. 4 is a circuit diagram of another switching control circuit based on a USB interface according to an embodiment of the present invention.
The objects, features, and advantages described herein will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer and more obvious, the present invention is further described in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not restrictive.
Examples
As shown in fig. 1, in this embodiment, a switching control circuit based on a USB interface includes: control circuit, switching circuit, wherein, control circuit includes: the transistor VD1, the transistor VD2, the resistor R1, the resistor R2, the resistor R3 and the capacitor C1; the state of the USB interface is detected by controlling the on-off of the triode in the circuit, and the switching of the functions of the USB interface is realized through the switching circuit according to different states of the USB interface.
In this embodiment, the Modem and the master controller communicate with each other through the USB via the hardware discrete device, and the software download, comprehensive test, and calibration of the Modem can be implemented through the external USB interface.
In this embodiment, when the USB is not plugged in, the host controller can normally load the Modem device through the USB, so as to implement communication between the Modem and the host controller through the USB. When the USB is inserted, the USB interface of the Modem is switched to the external USB connector, so that software downloading, comprehensive testing and calibration of the Modem are realized. And after the Modem finishes software downloading or comprehensive testing and calibration and the external USB is unplugged, the main controller can reload Modem equipment through the USB, so that the communication between the Modem and the main controller through the USB is realized.
In this embodiment, the switching control circuit based on the USB interface is suitable for rapid development of products by common users, and has a simple implementation form and a small difficulty in software development, and compared with PCIE and ETHERNET interfaces, the hardware implementation difficulty of the USB interface is smaller, the PCB layout is simple, and certain advantages are also achieved in hardware cost. But also has certain benefits for the production and after-sale of subsequent products.
As shown in fig. 2, in the present embodiment, in the control circuit, the gate of the transistor VD1 is connected to one end of the resistor R1, one end of the capacitor C1, the gate of the transistor VD2, the cathode of the diode D2 and one end of the resistor R2, the source of the transistor VD1 is connected to the other end of the resistor R1, the other end of the capacitor C1 and the source of the transistor VD2, the other end of the resistor R2 is connected to one end of the resistor R3 and the node VD, and the other end of the resistor R3 is grounded.
As shown in fig. 3, in the present embodiment, the switching circuit includes: the switch circuit comprises a switch chip U1 and a capacitor C2, wherein a pin 1 of the switch chip U1 is connected with a node Vd, a pin 2 of the switch chip U1 is connected with a power supply terminal VCC and one end of the capacitor C2, and the other end of the capacitor C2 is grounded together with a pin 3 of the switch chip U1.
In this embodiment, the transistor VD1 and the transistor VD2 are both PMOS transistors.
As shown in fig. 4, in this embodiment, a connection circuit is further included, and the connection circuit includes: the USB connector CON1 and the diode D1, pin 1 of the USB connector CON1 is connected with the positive pole of the diode D1, and the negative pole of the diode D1 is connected with the drain of the triode VD 2.
In this embodiment, when the USB interface is not connected, the voltage Vb at the positive electrode of the diode D2 is equal to 0V, at this time, the source voltage Vg of the transistor VD1 is equal to the drain voltage Va and is 3.8V, the voltage Vf at the negative electrode of the diode D2 is divided by the resistor R1, the resistor R2 and the resistor R3, so that the voltage difference between Vf and Vg is greater than the conduction voltages of the transistor VD1 and the transistor VD2, the transistor VD1 and the transistor VD2 are turned on, and the drain power Vc of the transistor VD2 is equal to 3.8V, and at the same time, the voltage VD at the connection between the resistor R2 and the resistor R3 is low, the switching chip U1 keeps the default mode m and the USB DM/DP of the master controller connected, and at this time, the master controller can detect the insertion of the USB interface.
In this embodiment, when the USB interface is accessed, the voltage Vb at the positive electrode of the diode D2 is 5V, at this time, the drain voltage Vc of the transistor VD2 is 4.3V, the source voltage Vg of the transistor VD1 is 4.3V, and the drain voltage Va greater than the transistor VD1 is 3.8V, and since Vg-Vf is 0V, the transistor VD1 and the transistor VD2 are not conductive, so the drain voltage Vc of the transistor VD2 is 4.3V, and at the same time, the voltage VD at the connection between the resistor R2 and the resistor R3 is high, and the switching chip U1 switches the mode USB DM/DP to the external USB connector.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, without thereby limiting the scope of the invention. Any modification, equivalent replacement and improvement made by those skilled in the art without departing from the scope and spirit of the present invention should be within the scope of the claims of the present invention.

Claims (7)

1. A switching control circuit based on a USB interface is characterized by comprising: control circuit, switching circuit, wherein, control circuit includes: the transistor VD1, the transistor VD2, the resistor R1, the resistor R2, the resistor R3 and the capacitor C1; the state of the USB interface is detected by controlling the on-off of the triode in the circuit, and the switching of the functions of the USB interface is realized through the switching circuit according to different states of the USB interface.
2. The switching control circuit based on the USB interface as claimed in claim 1, wherein in the control circuit, the gate of the transistor VD1 is connected to one end of the resistor R1, one end of the capacitor C1, the gate of the transistor VD2, the cathode of the diode D2 and one end of the resistor R2, the source of the transistor VD1 is connected to the other end of the resistor R1, the other end of the capacitor C1 and the source of the transistor VD2, the other end of the resistor R2 is connected to one end of the resistor R3 and the node Vd, and the other end of the resistor R3 is grounded.
3. The switching control circuit according to claim 2, wherein the switching circuit comprises: the switch circuit comprises a switch chip U1 and a capacitor C2, wherein a pin 1 of the switch chip U1 is connected with a node Vd, a pin 2 of the switch chip U1 is connected with a power supply terminal VCC and one end of the capacitor C2, and the other end of the capacitor C2 is grounded together with a pin 3 of the switch chip U1.
4. The switching control circuit according to claim 2, wherein the transistor VD1 and the transistor VD2 are both PMOS transistors.
5. The switching control circuit according to claim 3, further comprising a connection circuit, wherein the connection circuit comprises: the USB connector CON1 and the diode D1, pin 1 of the USB connector CON1 is connected with the positive pole of the diode D1, and the negative pole of the diode D1 is connected with the drain of the triode VD 2.
6. The switching control circuit according to claim 5, wherein when the USB interface is not connected, the voltage Vb at the positive electrode of the diode D2 is equal to 0V, and at this time, the source voltage Vg of the transistor VD1 is equal to the drain voltage Va and is 3.8V, the voltage Vf at the negative electrode of the diode D2 is divided by the resistor R1, the resistor R2 and the resistor R3, so that the voltage difference between Vf and Vg is greater than the turn-on voltages of the transistor VD1 and the transistor VD2, the transistor VD1 and the transistor VD2 are turned on, and then the drain power Vc ═ Va of the transistor VD2 is equal to 3.8V, and at the same time, the voltage at the connection between the resistor R2 and the resistor R3 is low, the switching chip U1 keeps the default mode m and the USB DM/DP of the master controller connected, and at this time, the master controller can detect the insertion of the USB interface.
7. The switching control circuit according to claim 5, wherein when the USB interface is connected, the voltage Vb at the positive electrode of the diode D2 is 5V, and at this time, the drain power Vc of the transistor VD2 is 4.3V, the source voltage Vg of the transistor VD1 is 4.3V, and is greater than the drain voltage Va of the transistor VD1 is 3.8V, and since Vg-Vf is 0V, the transistor VD1 and the transistor VD2 are not conductive, the drain power Vc of the transistor VD2 is 4.3V, and at the same time, the voltage VD at the connection between the resistor R2 and the resistor R3 is high, and the switching chip U1 switches the Modem USB DM/DP to the external USB connector.
CN202120318502.4U 2021-02-04 2021-02-04 Switching control circuit based on USB interface Active CN214098415U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202120318502.4U CN214098415U (en) 2021-02-04 2021-02-04 Switching control circuit based on USB interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202120318502.4U CN214098415U (en) 2021-02-04 2021-02-04 Switching control circuit based on USB interface

Publications (1)

Publication Number Publication Date
CN214098415U true CN214098415U (en) 2021-08-31

Family

ID=77440169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202120318502.4U Active CN214098415U (en) 2021-02-04 2021-02-04 Switching control circuit based on USB interface

Country Status (1)

Country Link
CN (1) CN214098415U (en)

Similar Documents

Publication Publication Date Title
CN108710593B (en) Power supply method and device based on Type-C connector
CN112671084B (en) USB device and operation method thereof
CN103684407B (en) Otg
CN106027012B (en) Pull-down resistor switch circuit
CN101206520B (en) Time sequence improving circuit
CN108958448A (en) Mainboard electrifying control circuit
CN102307010B (en) Data transmission voltage conversion circuit
CN214098415U (en) Switching control circuit based on USB interface
CN107733413B (en) Intelligent switch circuit and intelligent terminal of pre-installation battery system
CN103546114A (en) Circuit and method for adjusting pull-up voltage of bus according to pull-up voltage of slave unit
CN106033241A (en) Interface power supply circuit
CN110502092B (en) Power supply circuit and electronic equipment
CN110912239A (en) Multi-port charging equipment
CN217640195U (en) Universal serial bus power delivery type interface and sink device
CN109960677B (en) Extension circuit for USB interface
CN110661412A (en) Surge circuit and antenna electrically-tuning controller
CN207301964U (en) A kind of automatic boot circuit and electronic equipment
CN210469114U (en) Surge circuit and antenna electrically-tuning controller
CN104656724A (en) Electronic device
CN103929061A (en) Constant flow source with single power supply adjustable
CN108572936B (en) USB interface control circuit
US10389228B1 (en) Power supply circuit with surge-supression
CN108572935B (en) USB interface control circuit
CN216561767U (en) USB OTG power supply switching system
CN100539366C (en) A kind of universal serial bus device method of supplying power to and system

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 518000 606, block a, sharing building, No. 78, Keyuan North Road, songpingshan community, Xili street, Nanshan District, Shenzhen, Guangdong

Patentee after: Gosuncn IOT Technology Co.,Ltd.

Address before: 518000 Guangdong, Shenzhen, Nanshan District, Guangdong Province, Nanshan District high tech Industrial Park, South Korea 12 road, MINDRAY Building 2 floor B area, zone 12

Patentee before: Gaoxing Wulian Technology Co.,Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20231126

Address after: 214000, 999-8-B2-301 Gaolang East Road, Wuxi Economic Development Zone, Jiangsu Province

Patentee after: Wuxi Gaoxinxing IoT Technology Co.,Ltd.

Address before: 518000 606, block a, sharing building, No. 78, Keyuan North Road, songpingshan community, Xili street, Nanshan District, Shenzhen, Guangdong

Patentee before: Gosuncn IOT Technology Co.,Ltd.

TR01 Transfer of patent right