CN221056925U - USB interface switching device - Google Patents

USB interface switching device Download PDF

Info

Publication number
CN221056925U
CN221056925U CN202323056317.0U CN202323056317U CN221056925U CN 221056925 U CN221056925 U CN 221056925U CN 202323056317 U CN202323056317 U CN 202323056317U CN 221056925 U CN221056925 U CN 221056925U
Authority
CN
China
Prior art keywords
usb
usb interface
external
internal
equipment
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
CN202323056317.0U
Other languages
Chinese (zh)
Inventor
陈欢欢
胡文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xinguodu Tech Co Ltd
Original Assignee
Shenzhen Xinguodu Tech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xinguodu Tech Co Ltd filed Critical Shenzhen Xinguodu Tech Co Ltd
Priority to CN202323056317.0U priority Critical patent/CN221056925U/en
Application granted granted Critical
Publication of CN221056925U publication Critical patent/CN221056925U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application discloses a USB interface switching device which is used for realizing the function of charging and simultaneously communicating with internal USB equipment as main equipment. The device of the application comprises: the micro control unit MCU, the change-over switch, the internal USB interface, the internal charging unit and the charging retaining unit; the micro control unit MCU is connected with the change-over switch; when the USB equipment end is in a slave equipment mode and the change-over switch is switched to a first switch, the USB equipment end is connected with the internal USB interface, an ID pin of the internal USB interface is pulled down to be ID0, so that the USB equipment end is switched from the slave equipment mode to a master equipment mode, and the USB equipment end is communicated with the internal USB equipment through the internal USB interface; the internal USB interface is connected with the internal charging unit; the USB equipment end is connected with the charging reservation unit.

Description

USB interface switching device
Technical Field
The present application relates to the field of USB interfaces, and in particular, to a USB interface switching device.
Background
In order to facilitate inter-device communication, the USB interface supports connection communication for a plurality of different devices. However, based on the characteristics of the USB protocol, when the mobile USB device is plugged into an external power supply or a PC, the mobile USB device is often set to a slave mode, and the PC defaults to a master device for communication. At this time, the mobile USB device in the slave device mode cannot be switched to the master device mode to communicate with the internal USB device, however, the internal USB devices such as the camera and the microphone that currently support the USB interface communication are not in minority, which causes a dilemma that the camera and the microphone in the mobile USB device cannot be used, and in the slave device mode, the mobile USB device cannot realize the function of connecting the external electric charging while communicating with the internal USB device as the master device, which is difficult to realize the diversified demands of the mobile USB device products.
Disclosure of utility model
In order to solve the above problems, the present application provides a USB interface switching device for implementing a function of communicating with an internal USB device as a master device while charging.
The USB interface switching device provided by the application comprises: the micro control unit MCU, the change-over switch, the internal USB interface, the internal charging unit and the charging retaining unit;
The micro control unit MCU is connected with the change-over switch;
when the USB equipment end is in a slave equipment mode and the change-over switch is switched to a first switch, the USB equipment end is connected with the internal USB interface, an ID pin of the internal USB interface is pulled down to be ID0, so that the USB equipment end is switched from the slave equipment mode to a master equipment mode, and the USB equipment end is communicated with the internal USB equipment through the internal USB interface;
the internal USB interface is connected with the internal charging unit;
The USB equipment end is connected with the charging reservation unit.
Optionally, the internal charging unit includes: an equipment power module and a system internal power module;
The internal USB interface is connected with the equipment power module;
The equipment power module is connected with the system internal power module.
Optionally, the charge retention unit includes: the first USB_VBUS and the first VBUS;
the first switch is connected with the first VBUS;
the first VBUS is connected with the first USB_VBUS.
Optionally, the USB interface switching device further includes: an external USB interface and an external charging unit;
When the change-over switch is switched to a second switch, the USB equipment end is connected with the external USB interface;
the external USB interface is connected with the external charging unit.
Optionally, the external charging unit includes: a first external charging module;
And when the USB equipment is accessed to external equipment, the external USB interface is connected with the first external charging module.
Optionally, the first external charging module includes: a second USB_VBUS and a 5V power source;
when the USB equipment is accessed to external equipment, the external USB interface is connected with the second USB_VBUS;
the second USB_VBUS is connected with the 5V power source.
Optionally, the external device is a usb disk.
Optionally, the external charging unit further includes: a second external charging module;
And when the USB equipment is accessed to an external power supply or a PC (personal computer) end, the external USB interface is connected with the second external charging module.
Optionally, the second external charging module includes: a third USB_VBUS and a second VBUS;
When the USB equipment is accessed to an external power supply or a PC end, the external USB interface is connected with the third USB_VBUS;
The third USB_VBUS is connected with the second VBUS.
Optionally, the internal USB device is a camera or a microphone supporting USB interface communications.
From the above technical scheme, the application has the following advantages: the USB interface switching device is applied to a USB equipment end and comprises: the micro control unit MUC, the change-over switch, the charge retaining unit, the internal USB interface and the internal charge unit, the micro control unit MCU is connected with the change-over switch, under the condition that the USB equipment is in a slave equipment mode, when the change-over switch is switched into a first switch, the USB equipment end is connected with the internal USB interface, the ID pin of the internal USB interface is pulled down to be ID0, so that the USB equipment end is switched into a master equipment mode from the slave equipment mode, the USB equipment end is communicated with the internal USB equipment through the internal USB interface, the internal USB interface is connected with the internal charge unit, the USB equipment is switched into the master equipment mode from the slave equipment mode to be communicated with the internal USB equipment, and when the USB equipment is connected with an external power supply, the USB equipment end is connected with the charge retaining unit through the first switch, and the charge retaining unit is started to charge the USB equipment end, thereby realizing the function of charging and the communication between the master equipment and the internal USB equipment, and the product diversification requirement of the USB equipment.
Drawings
Fig. 1 is a schematic structural diagram of an embodiment of a USB interface switching device according to the present application.
Detailed Description
The application provides a USB interface switching device which is used for realizing the function of charging and simultaneously communicating with internal USB equipment as main equipment.
In the present application, the terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are merely used to illustrate the relative positional relationships between the components or portions, and do not particularly limit the specific mounting orientations of the components or portions.
Also, some of the terms described above may be used to indicate other meanings in addition to orientation or positional relationships, for example, the term "upper" may also be used to indicate some sort of attachment or connection in some cases. The specific meaning of these terms in the present application will be understood by those of ordinary skill in the art according to the specific circumstances.
Furthermore, the terms "mounted," "configured," "provided," "connected," and "connected" are to be construed broadly. For example, it may be a fixed connection, a removable connection, or a unitary construction; may be a mechanical connection, or an electrical connection; may be directly connected, or indirectly connected through intervening media, or may be in internal communication between two devices, elements, or components. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art according to the specific circumstances.
In addition, the structures, proportions, sizes, etc. shown in the drawings are shown only in connection with the present disclosure for the purpose of understanding and reading by those skilled in the art, and are not intended to limit the scope of the application, which is defined by the appended claims, so that any structural modifications, proportional changes, or dimensional adjustments should not be made in the essential significance of the present disclosure without affecting the efficacy or achievement of the present application.
Furthermore, the terms "first," "second," "third," and the like in this description, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in other sequences than described or illustrated herein.
The following description of the embodiments of the present application will be made more apparent and fully hereinafter with reference to the accompanying drawings, in which some, but not all embodiments of the application are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, the USB interface switching device provided by the present application includes: the micro control unit MCU1, the change-over switch 2, the internal USB interface 3, the internal charging unit 4 and the charging retaining unit 5; the micro control unit MCU1 is connected with the change-over switch 2; when the switch 2 is switched to the first switch, the USB device end is connected with the internal USB interface 3, and the ID pin of the internal USB interface is pulled down to be ID0, so that the USB device end is switched from the slave device mode to the master device mode, and the USB device end is communicated with the internal USB device through the internal USB interface; the internal USB interface 3 is connected with the internal charging unit 4; the USB device side is connected to the charge retention unit 5.
In this embodiment, when the external USB interface 6 (for example, type_c interface) of the USB device terminal is plugged and is in communication with the internal USB device, a first signal is sent to the MCU1 through the device key to enable one IO port of the MCU1 to output a high level signal, so that the switch 2 is switched to the first switch SW1, the USB device terminal is connected to the internal USB interface 3, and when one IO port of the MCU1 outputs a high level signal, the triode control circuit of the switch 2 will pull the ID pin of the internal USB interface 3 low to ID0, the USB interface protocol determines that the USB device terminal is set to host mode (master mode) when the ID pin is pulled low to ID0, and at this time, the USB device terminal is switched from the device mode (slave mode) to host mode (master mode) and communicates with the internal USB device through the internal USB interface 3; the internal USB interface 3 is connected with the internal charging unit 4, and the internal charging unit 4 is controlled by the SW1 to not supply power to the external USB interface 6, so that internal consumption of power supply is avoided; the USB device side is connected to the charging reservation unit 5 through the first switch SW1, and is configured to enable the charging reservation unit 5 to charge the USB device side synchronously when the USB device is connected to an external power source.
In this embodiment, the USB interface switching apparatus is applied to a USB device, and includes: the micro control unit MUC, the change-over switch 2, the charge retaining unit 5, the internal USB interface 3 and the internal charging unit 4, the micro control unit MCU1 is connected with the change-over switch 2, under the condition that the USB device is in a slave device mode, when the change-over switch 2 is changed into the first switch SW1, the USB device end is connected with the internal USB interface 3, the ID pin of the internal USB interface is pulled down to be ID0, so that the USB device end is changed from the slave device mode into a master device mode, the USB device end is enabled to be communicated with the internal USB device through the internal USB interface, the internal USB interface 3 is connected with the internal charging unit 4, the USB device is enabled to be changed from the slave device mode into the master device mode to be communicated with the internal USB device, and when the USB device is connected with the external power supply through the first switch, the USB device end is enabled to be charged to the charge retaining unit 5, the function of simultaneously charging and the communication between the master device and the internal USB device is achieved, and the requirement of diversification of USB device products is met.
Optionally, the internal charging unit 4 includes: a device power module 41 and a system internal power module 42; the internal USB interface 3 is connected to the device power module 41; the device power module 41 is connected to the system internal power module 42.
In this embodiment, the device power module 41 is controlled by a high level signal, so that the system internal power module core_pwr42 is converted into a power source required by the internal USB device through a power device, thereby supplying power to the internal USB device.
Optionally, the charge retaining unit 5 includes: first USB_VBUS51 and first VBUS52; the first switch is connected with the first VBUS52; the first VBUS52 is connected to the first usb_vbus 51.
In this embodiment, when the USB device accesses to the external power source, the first switch SW1 is connected to the first VBUS52, and the first VBUS52 is connected to the first usb_vbus51, so that the external power source charges the USB device through the first VBUS52 and the first usb_vbus 51.
Optionally, the USB interface switching device further includes: an external USB interface 6 and an external charging unit; when the change-over switch 2 is switched to a second switch, the USB equipment end is connected with an external USB interface 6; the external USB interface 6 is connected to an external charging unit.
In this embodiment, when the USB device end does not communicate with the internal USB device, a signal is sent to the MCU1 through the device key, and one I0 port of the MCU1 outputs a corresponding low level, at this time, the switch 2 is switched to the second switch SW0, the USB device end is connected to the external USB interface 6 (type_c), and the external USB interface 6 is connected to the external charging unit.
Optionally, the external charging unit includes: a first external charging module 7; when the USB device accesses an external device, the external USB interface 6 is connected to the first external charging module 7.
When the USB device accesses the external device, the ID pin of the external USB interface 6 is pulled down to ID0, the external USB interface 6 is connected to the first external charging module 7, and the first external charging module 7 is used to supply power to the external device.
Optionally, the first external charging module 7 includes: a second USB_VBUS71 and a 5V power source 72; when the USB device accesses to the external device, the external USB interface 6 is connected with the second USB_VBUS 71; the second USB_VBUS71 is connected to a 5V power source 72.
In this embodiment, when the USB device accesses to the external device, the ID pin of the external USB interface 6 is pulled down to ID0, the external USB interface 6 is connected to the second usb_vbus71, the second usb_vbus71 is connected to the 5V power source 72, and the second usb_vbus71 is powered by the 5V power source 72, so that the second usb_vbus71 powers the external device, and the third usb_vbus81 is turned off, so that internal consumption of power supply is avoided, and at this time, the USB device communicates with the external device as host.
Optionally, the external device is a usb disk.
In this embodiment, the external device is a USB disk, and is configured to copy data on a USB device side.
Optionally, the external charging unit further includes: a second external charging module 8; when the USB device is connected to an external power source or a PC terminal, the external USB interface 6 is connected to the second external charging module 8.
In this embodiment, when the USB device accesses to the external power source or the PC, the ID pin of the external USB interface 6 is pulled up to ID1, the external USB interface 6 is connected to the second external charging module 8, and the second external charging module 8 is used to supply power to the USB device.
Optionally, the second external charging module 8 comprises: a third USB_VBUS81 and a second VBUS82; when the USB equipment is accessed to an external power supply or a PC end, the external USB interface 6 is connected with a third USB_VBUS 81; the third USB_VBUS81 is connected to the second VBUS 82.
In this embodiment, when the USB device accesses to the external power supply or the PC terminal, the ID pin of the external USB interface 6 is pulled up to ID1, the external USB interface 6 is connected to the third usb_vbus81, and the third usb_vbus81 is connected to the second VBUS82, so as to charge the USB device through the external power supply or the PC terminal, and the device is connected to the external power supply or the PC terminal as a device.
Optionally, the internal USB device is a camera or a microphone supporting USB interface communications.
In this embodiment, the internal USB device is disposed inside the POS machine, and the internal USB device may be a camera or a microphone that supports USB interface communication, or other devices that support USB interface communication inside the POS machine, which is not limited herein.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. The USB interface switching device is applied to a USB equipment end, and is characterized in that the USB interface switching device comprises: the micro control unit MCU, the change-over switch, the internal USB interface, the internal charging unit and the charging retaining unit;
The micro control unit MCU is connected with the change-over switch;
When the USB equipment end is in a slave equipment mode and the change-over switch is switched to a first switch, the USB equipment end is connected with the internal USB interface, an ID pin of the internal USB interface is pulled down to be ID0, so that the USB equipment end is switched from the slave equipment mode to a master equipment mode, and the USB equipment end is communicated with the internal USB equipment through the internal USB interface;
the internal USB interface is connected with the internal charging unit;
The USB equipment end is connected with the charging reservation unit.
2. The USB interface switching device according to claim 1, wherein the internal charging unit includes: an equipment power module and a system internal power module;
The internal USB interface is connected with the equipment power module;
The equipment power module is connected with the system internal power module.
3. The USB interface switching device according to claim 1, wherein the charge retention unit includes: the first USB_VBUS and the first VBUS;
the first switch is connected with the first VBUS;
the first VBUS is connected with the first USB_VBUS.
4. The USB interface switching device according to claim 1, further comprising: an external USB interface and an external charging unit;
When the change-over switch is switched to a second switch, the USB equipment end is connected with the external USB interface;
the external USB interface is connected with the external charging unit.
5. The USB interface switching device according to claim 4, wherein the external charging unit includes: a first external charging module;
And when the USB equipment is accessed to external equipment, the external USB interface is connected with the first external charging module.
6. The USB interface switching device of claim 5, wherein the first external charging module comprises: a second USB_VBUS and a 5V power source;
when the USB equipment is accessed to external equipment, the external USB interface is connected with the second USB_VBUS;
the second USB_VBUS is connected with the 5V power source.
7. The USB interface switching device according to claim 6, wherein the external device is a USB disk.
8. The USB interface switching device according to claim 4, wherein the external charging unit includes: a second external charging module;
And when the USB equipment is accessed to an external power supply or a PC (personal computer) end, the external USB interface is connected with the second external charging module.
9. The USB interface switching device of claim 8, wherein the second external charging module comprises: a third USB_VBUS and a second VBUS;
When the USB equipment is accessed to an external power supply or a PC end, the external USB interface is connected with the third USB_VBUS;
The third USB_VBUS is connected with the second VBUS.
10. The USB interface switching apparatus according to any one of claims 1 to 9 wherein the internal USB device is a camera or microphone supporting USB interface communication.
CN202323056317.0U 2023-11-09 2023-11-09 USB interface switching device Active CN221056925U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202323056317.0U CN221056925U (en) 2023-11-09 2023-11-09 USB interface switching device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202323056317.0U CN221056925U (en) 2023-11-09 2023-11-09 USB interface switching device

Publications (1)

Publication Number Publication Date
CN221056925U true CN221056925U (en) 2024-05-31

Family

ID=91200417

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202323056317.0U Active CN221056925U (en) 2023-11-09 2023-11-09 USB interface switching device

Country Status (1)

Country Link
CN (1) CN221056925U (en)

Similar Documents

Publication Publication Date Title
CN108718020B (en) Concentrator
CN202872406U (en) Interface multiplexing circuit and mobile terminal
CN110829523B (en) Electronic equipment and reverse charging method
CN202134745U (en) Multifunctional USB OTG data line
CN104571275A (en) Portable intelligent tool drive extension system
WO2022095606A1 (en) Information reading method, device, cable, charging system, and computer storage medium
CN208806892U (en) Touch control display device
CN208000570U (en) A kind of intelligent terminal of integrated circuit
CN221056925U (en) USB interface switching device
CN204392072U (en) A kind of Multifunction transducer
CN110336351B (en) USB quick charging device with data transmission function
CN104571277A (en) Portable computer peripheral extension equipment
CN104571270A (en) Computer adopting cell phone as host computer
CN103874236A (en) Wireless communication data card with extended function and wireless communication terminal
CN203445629U (en) Multifunctional back clip system of intelligent mobile terminal
CN203759581U (en) Mobile phone driving all-in-one machine
CN203708303U (en) Mobile phone spare part unit and mobile phone external member
CN212784080U (en) Mobile phone charging data line with data display function
CN205140520U (en) Power of area extension storage
CN203181237U (en) Wireless communication data card having extensible function and wireless communication terminal
CN101094464A (en) Device and method for handset to manage files in U disk
CN2765254Y (en) Data exchange and charging apparatus for handset
KR200397426Y1 (en) communication cable for mobile terminal
CN202771456U (en) Wireless storage SD card
CN201869223U (en) Machine to machine terminal, communication module and data sending device

Legal Events

Date Code Title Description
GR01 Patent grant