Power supply switching system, USB socket and electronic equipment

文档序号:135422 发布日期:2021-10-22 浏览:24次 中文

阅读说明:本技术 供电切换系统、usb插座和电子设备 (Power supply switching system, USB socket and electronic equipment ) 是由 江泽炜 刘超 刘明 于 2021-06-04 设计创作,主要内容包括:本申请涉及一种供电切换系统、USB插座和电子设备,该系统包括第一接口、第二接口、第一电源切换开关、第二电源切换开关以及充电模块,其中,第一接口与第一电源切换开关连接;第二接口与第二电源切换开关连接;第一电源切换开关和第二电源切换开关均与充电模块连接;第一电源切换开关与第二电源切换开关电连接;当第一接口和第二接口均接入外接设备时,第一接口向第一电源切换开关发送第一控制信号;第一电源切换开关根据接收到的第一控制信号,向第二电源切换开关发送第二控制信号;第二电源切换开关根据第二控制信号断开与第二接口的连接。通过本申请,能有效避免两个接口均接入外接设备时,接口电压差引起的电流倒灌,提高供电稳定性。(The application relates to a power supply switching system, a USB socket and electronic equipment, wherein the system comprises a first interface, a second interface, a first power supply switch, a second power supply switch and a charging module, wherein the first interface is connected with the first power supply switch; the second interface is connected with a second power supply change-over switch; the first power supply change-over switch and the second power supply change-over switch are both connected with the charging module; the first power supply change-over switch is electrically connected with the second power supply change-over switch; when the first interface and the second interface are both connected to the external equipment, the first interface sends a first control signal to the first power supply changeover switch; the first power supply change-over switch sends a second control signal to the second power supply change-over switch according to the received first control signal; and the second power supply changeover switch is disconnected with the second interface according to the second control signal. Through the application, when the two interfaces are connected to the external equipment, the current caused by the voltage difference of the interfaces flows backward, and the power supply stability is improved.)

1. A power supply switching system is characterized by comprising a first interface, a second interface, a first power supply switch, a second power supply switch and a charging module, wherein,

the first interface is connected with the first power supply changeover switch; the second interface is connected with the second power supply changeover switch; the first power supply change-over switch and the second power supply change-over switch are both connected with the charging module; the first power supply change-over switch is electrically connected with the second power supply change-over switch;

when the first interface and the second interface are both connected to external equipment, the first interface sends a first control signal to the first power supply changeover switch;

the first power supply change-over switch sends a second control signal to the second power supply change-over switch according to the received first control signal;

the second power supply change-over switch is disconnected with the second interface according to the second control signal, and the first interface is communicated to the charging module through the first power supply change-over switch to supply power.

2. A power supply switching system according to claim 1,

if and only when the first interface is connected to the external equipment, the first interface sends a first control signal to the first power supply changeover switch;

when the first power supply changeover switch receives the first control signal, detecting whether a third control signal is received;

if yes, the first interface supplies power to the charging module through the first power supply changeover switch.

3. The power supply switching system according to claim 1, further comprising: the control module is connected with the first power supply change-over switch, the second interface and the charging module;

if and only if the second interface is connected to the external equipment, the control module detects an OTG signal provided by the external equipment;

when the control module does not receive the OTG signal, the second power supply changeover switch detects whether a fourth control signal is received;

if yes, the second interface supplies power to the charging module through the second power supply changeover switch.

4. The power supply switching system according to claim 3,

if and only if the second interface is accessed to the OTG equipment, the control module detects an OTG signal provided by the OTG equipment;

when the control module receives the OTG signal, a fifth control signal is sent to the second power supply changeover switch, so that the second power supply changeover switch is switched to a reverse conduction state;

the control module controls the charging module to enter an OTG mode;

the charging module supplies power to the OTG equipment through the second power supply changeover switch.

5. The power supply switching system of claim 1, wherein the first interface is connected to a first data switch and a second data switch, and the second interface is connected to the first data switch and the second data switch

If and only when the first interface is connected to the external equipment, the first interface sends a first control signal to the first data selector switch;

and the first data selector switch cuts off the connection with the second interface and switches and connects to the first interface according to the received first control signal.

6. The power supply switching system of claim 1, wherein the first interface is connected to a first data switch and a second data switch, and the second interface is connected to the first data switch and the second data switch

When the first interface and the second interface are both connected with external equipment, the first interface sends a first control signal to the first data selector switch and the second data selector switch;

the first data switch cuts off the connection with the second interface and switches to connect to the first interface according to the received first control signal;

and the second data change-over switch cuts off the connection with the second interface according to the received first control signal.

7. The power supply switching system according to claim 5,

and if and only if the second interface is connected to the external equipment, the first data change-over switch and the second data change-over switch are respectively connected to the second interface, so that the external equipment is in data communication with the control module through the second interface.

8. The power supply switching system according to claim 1, wherein the first interface is a USB interface, and the second interface is a microsb interface.

9. A USB socket comprising a power supply switching system as claimed in any one of claims 1 to 8.

10. An electronic device, characterized in that it comprises a USB socket according to claim 9.

Technical Field

The present disclosure relates to USB sockets, and particularly to a power supply switching system for a USB socket, a USB socket and an electronic device.

Background

Universal Serial Bus (USB) is a serial bus standard for connecting computer systems and external devices, and is also a technical specification of input/output interfaces, and is widely used in electronic devices in related fields such as personal computers, video cameras, digital televisions (set top boxes), game machines, and the like. The USB interface installed on the electronic equipment can be connected with external equipment to realize charging and can also be connected with the external equipment to perform data transmission.

When the USB socket in the electronic device includes at least two USB interfaces, one of the primary USB interfaces cannot block the other secondary USB interface during use. The prior art can only realize the logic switching of data, and at least two USB interfaces supply power simultaneously when supplying power. When a plurality of USB interfaces supply power simultaneously, the interfaces have voltage difference, current is easy to flow backwards, and the stability is poor.

Disclosure of Invention

The embodiment of the application provides a power supply switching system of a USB socket, the USB socket and electronic equipment, and aims to solve the problem that data transmission is unstable when at least two USB interfaces supply power simultaneously in the related art.

In a first aspect, an embodiment of the present application provides a power supply switching system, which includes a first interface, a second interface, a first power switch, a second power switch, and a charging module,

the first interface is connected with the first power supply changeover switch; the second interface is connected with the second power supply changeover switch; the first power supply change-over switch and the second power supply change-over switch are both connected with the charging module; the first power supply change-over switch is electrically connected with the second power supply change-over switch;

when the first interface and the second interface are both connected to external equipment, the first interface sends a first control signal to the first power supply changeover switch;

the first power supply change-over switch sends a second control signal to the second power supply change-over switch according to the received first control signal;

the second power supply change-over switch is disconnected with the second interface according to the second control signal, and the first interface is communicated to the charging module through the first power supply change-over switch to supply power.

In some embodiments, the first interface sends a first control signal to the first power switch if and only if the first interface is connected to an external device;

when the first power supply changeover switch receives the first control signal, detecting whether a third control signal is received;

if yes, the first interface supplies power to the charging module through the first power supply changeover switch.

In some of these embodiments, the power supply switching system further comprises: the control module is connected with the first power supply change-over switch, the second interface and the charging module;

if and only if the second interface is connected to the external equipment, the control module detects an OTG signal provided by the external equipment;

when the control module does not receive the OTG signal, the second power supply changeover switch detects whether a fourth control signal is received;

if yes, the second interface supplies power to the charging module through the second power supply changeover switch.

In some embodiments, if and only if the second interface is connected to the OTG device, the control module detects an OTG signal provided by the OTG device;

when the control module receives the OTG signal, a fifth control signal is sent to the second power supply changeover switch, so that the second power supply changeover switch is switched to a reverse conduction state;

the control module controls the charging module to enter an OTG mode;

the charging module supplies power to the OTG equipment through the second power supply changeover switch.

In some embodiments, the first interface is connected to a first data switch and a second data switch, and the second interface is connected to the first data switch and the second data switch

If and only when the first interface is connected to the external equipment, the first interface sends a first control signal to the first data selector switch;

and the first data selector switch cuts off the connection with the second interface and switches and connects to the first interface according to the received first control signal.

In some embodiments, the first interface is connected to a first data switch and a second data switch, and the second interface is connected to the first data switch and the second data switch

When the first interface and the second interface are both connected with external equipment, the first interface sends a first control signal to the first data selector switch and the second data selector switch;

and the first data selector switch cuts off the connection with the second interface and switches and connects to the first interface according to the received first control signal.

And the second data change-over switch cuts off the connection with the second interface according to the received first control signal.

In some embodiments, if and only if the second interface is connected to the external device, the first data switch and the second data switch are respectively connected to the second interface, so that the external device performs data communication with the control module through the second interface.

In some embodiments, the first interface is a USB interface, and the second interface is a microsb interface.

In a second aspect, the present application provides a USB socket comprising a power supply switching system as described in the first aspect above.

In a third aspect, an embodiment of the present application provides an electronic device, including the USB socket according to the second aspect.

Compared with the related art, the power supply switching system of the USB socket, the USB socket and the electronic device provided by the embodiment of the application have the advantages that when the first interface and the second interface are both connected to the external device, the first interface sends the first control signal to the first power supply switching switch; the first power supply change-over switch sends a second control signal to the second power supply change-over switch according to the received first control signal; the second power supply change-over switch is disconnected with the second interface according to the second control signal, so that the switching of the power supply mode when the two interfaces are connected into the external equipment is realized, the current caused by the interface voltage difference can be effectively prevented from flowing backwards when the two interfaces are connected into the external equipment, the power supply stability is improved, and the normal power supply realization of the equipment is ensured.

The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.

Drawings

The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:

FIG. 1 is a schematic diagram of a power switching system according to an embodiment of the present disclosure;

FIG. 2 is a schematic diagram of a power switching system according to another embodiment of the present application;

FIG. 3 is a schematic structural diagram of a power supply switching system in another embodiment of the present application;

FIG. 4 is a schematic structural diagram of a power supply switching system in another embodiment of the present application;

fig. 5 is a schematic control flow diagram of a power supply switching method in an embodiment of the present application.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.

It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.

Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.

Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.

The USB socket is a safe and power-saving universal socket with a USB interface, and is a weak-current electronic product. A USB receptacle generally includes a housing, a base secured within the housing, and an outwardly extending USB port. The main characteristics of the USB interface include: the hot plug function is provided; interface expansion can be performed in a daisy chain mode; the USB socket is internally provided with a charger module, and the output end of the charger module is connected with the USB interface, so that the common peripheral can be charged through the USB. The USB socket is high in practicability and easy to popularize and use.

The present embodiment provides a power supply switching system. The power supply switching system may be integrated in a USB socket or an electronic device having the USB socket, and the application is not particularly limited. The electronic equipment can be connected with external equipment through the USB socket arranged on the electronic equipment to realize charging, and can also be connected with the external equipment to perform data transmission.

Fig. 1 is a control schematic block diagram of a power supply switching system according to an embodiment of the present application. As shown in fig. 1, the power supply switching system includes a first interface, a second interface, a first power switch, a second power switch, and a charging module. The first interface is connected with the first power supply changeover switch; the second interface is connected with the second power supply changeover switch; the first power supply change-over switch and the second power supply change-over switch are both connected with the charging module; the first power supply changeover switch is electrically connected with the second power supply changeover switch.

In some of these embodiments, the first interface and the second interface are both USB interfaces; in other embodiments, the first interface and the second interface may both be microbb interfaces; in other embodiments, the first interface is a USB interface, and the second interface is a microsb interface; or the first interface is a Microusb interface, and the second interface is a USB interface. The USB interface can be a USB TPYE-C interface, a USB TPYE-A interface and the like. It is to be understood that the first interface and the second interface may also be a two-pin or three-pin power supply jack, a network interface, a television interface, a telephone interface, etc., and the number thereof may be one or more, and the present application is not limited in particular herein. Wherein the interface power supply and/or the priority order of the communication can be set, so that the interface communication and the power supply are controlled according to the priority order.

The charging module may be a capacitive storage device, such as a battery and a super capacitor, etc.

The first power supply change-over switch and the second power supply change-over switch are used for switching the connection state of the corresponding external equipment and the charging module according to the control signal, and can be single-pole double-position switches or transistors (such as field effect transistors or bipolar junction transistors). In some embodiments, the first power switch and the second power switch may be MOS transistors, and certainly, the first power switch and the second power switch may be different types of MOS transistors, for example, the first power switch employs an N-channel MOS transistor, the second power switch employs a P-channel MOS transistor, and the like, as long as a controllable switch capable of implementing a function of switching a connection state with the charging module in the embodiment of the present application is implemented, both of which belong to the protection scope of the present application.

Those skilled in the art will appreciate that the power switching system configuration shown in fig. 1 does not constitute a limitation of the power switching system, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.

Interface communication and power supply are performed by taking the first interface as priority, and a power supply switching system is specifically described with reference to fig. 1:

in some embodiments, when the first interface and the second interface are both connected to an external device, the first interface sends a first control signal to the first power supply changeover switch; the first power supply change-over switch sends a second control signal to the second power supply change-over switch according to the received first control signal; and the second power supply changeover switch is disconnected with the second interface according to the second control signal.

In this embodiment, the first interface is used as a priority for interface power supply, that is, when the first interface and the second interface are simultaneously connected to an external device, the first interface is mainly used for supplying power, and the power supply of the second interface is cut off. Specifically, whether the corresponding interface is connected for power supply can be controlled by controlling the on-off of the first power supply change-over switch and the second power supply change-over switch, when power is required to be supplied to the external equipment, the switch corresponding to the external equipment is connected, and when power is not required to be supplied to the external equipment, the switch corresponding to the external equipment is disconnected. More specifically, the first control signal and the second control signal may be level signals, and the first power supply changeover switch and the second power supply changeover switch control their on states by using a change of a high-low level signal.

In a specific implementation manner, the first interface is a USB interface, the second interface is a microsb interface, and the USB interface is connected to the first power switch and the microsb interface is connected to the second power switch. When the USB interface and the Microusb interface are simultaneously connected to an external device, the USB interface provides a first control level to the first power supply changeover switch; and after the first control level received by the first power supply change-over switch, sending a second control level to the second power supply change-over switch. At this time, the second power supply change-over switch disconnects the second interface according to the second control level, so that the path between the external device and the charging module is disconnected, and the first interface is communicated to the charging module through the first power supply change-over switch to supply power. In this embodiment, the first control signal may be a low level signal, and the second control signal is a high level signal; of course, the first control signal may also be a high level signal, and the second control signal is a low level signal, which is not limited in this embodiment.

Of course, in other embodiments, the second interface may also be used as a priority for interface communication and power supply, and the priority order may be configured in a customized manner according to the interface settings in practical applications, which is not limited herein.

In summary, according to the power supply switching system of the USB socket provided in the embodiment of the present application, when both the first interface and the second interface are connected to the external device, the first interface sends the first control signal to the first power switch; the first power supply change-over switch sends a second control signal to the second power supply change-over switch according to the received first control signal; the second power supply change-over switch is disconnected with the second interface according to the second control signal, so that the switching of the power supply mode when the two interfaces are connected into the external equipment is realized, the current caused by the interface voltage difference can be effectively prevented from flowing backwards when the two interfaces are connected into the external equipment, the power supply stability is improved, and the normal power supply realization of the equipment is ensured.

As shown in fig. 2, on the basis of the above embodiments, in some embodiments, if and only if the first interface is connected to an external device, the first interface sends a first control signal to the first power switch; when the first power supply changeover switch receives the first control signal, detecting whether a third control signal is received; if yes, the first interface supplies power to the charging module through the first power supply changeover switch.

In this embodiment, if and only when the first interface is connected to an external device, the first power switch may be controlled to connect the charging module to supply power. In a specific embodiment, the first control signal may be a level signal, and the third control signal may be a VBUS signal provided by the external device. When and only when the first interface is connected to the external equipment, the first power supply change-over switch controls the conduction state of the first power supply change-over switch by using the change of high and low level signals, and when the first power supply change-over switch receives a first control level, whether a VBUS signal provided by the external equipment is received or not is detected; when the VBUS signal is detected, the first interface is communicated to the charging module through the first power supply changeover switch, and power is supplied to the charging module.

As shown in fig. 3, on the basis of the above embodiments, in some of the embodiments, the power supply switching system further includes: and the control module is connected with the first power supply change-over switch, the second interface and the charging module.

In this embodiment, if and only if the second interface is connected to the external device, the control module detects an OTG signal provided by the external device; when the control module does not receive the OTG signal, the second power supply changeover switch detects whether a fourth control signal is received; if yes, the second interface supplies power to the charging module through the second power supply changeover switch.

In this embodiment, the OTG device refers to an external device having an OTG function. The OTG (On-The-Go, without data transmission between host devices) technology is mainly applied to The connection of various device times, i.e., The data transmission between The slave devices is realized without The host device. The connector of different systems among devices such as digital cameras, video cameras, printers, etc. is changed.

In a specific embodiment, the second interface is a microsb interface as an example for explanation: when detecting an OTG device, according to a USB interface protocol, if an OTG function needs to be supported, an Identification (ID) detection pin inside the USB interface needs to be set to a high level by default. Because the ID of USB interface detects the foot and is high level always, when the Microusb interface inserts OTG equipment like this, after control module detected the OTG signal that external device provided, voltage was the low level, and control module detects to have inserted OTG equipment for the Microusb interface this moment. Otherwise, when the control module does not receive the OTG signal, the control module detects that the microsb interface is not inserted into the OTG device. Detecting whether a fourth control signal (such as a VBUS signal) provided by the external device is received; when the VBUS signal is detected, the Microusb interface is communicated to the charging module through the second power supply change-over switch to supply power to the charging module.

The control module may be a chip with a data processing function, such as a single chip microcomputer.

On the basis of the above embodiments, in some embodiments, if and only if the second interface is connected to the OTG device, the control module detects an OTG signal provided by the OTG device; when the control module receives the OTG signal, a fifth control signal is sent to the second power supply changeover switch, so that the second power supply changeover switch is switched to a reverse conduction state; the control module controls the charging module to enter an OTG mode; the charging module supplies power to the OTG equipment through the second power supply changeover switch.

In this embodiment, after the control module detects the OTG signal provided by the OTG device, it is determined that the microsb interface is inserted into the OTG device, and at this time, the control module sends a fifth control signal to the second power supply changeover switch, so that the second power supply changeover switch is switched to the on state. Meanwhile, the charging module is controlled to enter an OTG mode through I2C; the charging module supplies power to the OTG equipment through the second power supply changeover switch.

As shown in fig. 4, on the basis of the above embodiments, in some of the embodiments, the first interface is connected with a first data switch and a second data switch, and the second interface is connected with the first data switch and the second data switch. And if and only if the first interface is accessed to the external equipment, the data switching process is as follows: the first interface sends a first control signal to the first data selector switch; and the first data selector switch cuts off the connection with the second interface and switches and connects to the first interface according to the received first control signal.

In this embodiment, the communication link connection may be controlled by controlling on/off of the first data switch and the second data switch. The first data switch and the second data switch are existing devices, and selection of a data channel is achieved by controlling the connection state of the pins, which is not described herein in detail. More specifically, the first control signal and the second control signal may be level signals, and the first data switch and the second data switch control their on states by using a change of a high-low level signal.

In a specific embodiment, each of the first interface and the second interface has at least 5 pins, including a VBUS pin, a DM pin, a DP pin, an ID pin, and a GND pin. And if and only if the first interface is connected to the external equipment, the first interface provides a first control level to the first data selector switch. And after receiving the first control level, the first data switch cuts off the connection with the DM2 pin and the DP2 pin of the second interface, switches the DM1 pin and the DP1 pin connected to the first interface, and uses the first interface as a data communication interface. And meanwhile, the pin and the ID2 pin of the second interface are switched to a suspension state, so that the external equipment cannot be mistakenly identified as OTG equipment when being connected.

On the basis of the foregoing embodiments, in some embodiments, the first interface is connected to a first data switch and a second data switch, the second interface is connected to the first data switch and the second data switch, and when both the first interface and the second interface are connected to an external device, a data switching process is as follows: the first interface sends a first control signal to the first data selector switch and the second data selector switch; the first data switch cuts off the connection with the second interface and switches to connect to the first interface according to the received first control signal; and the second data change-over switch cuts off the connection with the second interface according to the received first control signal.

In this embodiment, when both the first interface and the second interface are connected to an external device, the first interface is used as a priority level to perform interface communication, and the communication connection between the control module and the second interface is cut off. Specifically, the first interface provides a first control level to the first data switch. And after receiving the first control level, the first data switch cuts off the connection with the DM2 pin and the DP2 pin of the second interface, switches the DM1 pin and the DP1 pin connected to the first interface, and uses the first interface as a data communication interface. After receiving the first control level, the second data switch cuts off the connection with the DM2 pin and the DP2 pin of the second interface, so that when an external device is plugged in, a hardware connection channel between the second interface and the control module is completely cut off, and the first interface and the control module perform data communication. Therefore, data transmission switching between the two communication interfaces is realized, data errors caused by simultaneous data transmission when two external devices are simultaneously inserted in the data transmission process can be effectively avoided, and the stability of the data transmission process is ensured.

On the basis of the foregoing embodiments, in some embodiments, if and only if the second interface is connected to the external device, the data switching process is: the first data change-over switch and the second data change-over switch are respectively connected to the second interface, so that the external equipment can carry out data communication with the control module through the second interface.

In this embodiment, if and only when the second interface is connected to the external device, the data switching process is the same as the control principle when and only when the first interface is connected to the external device, and for brief description, reference may be made to relevant contents of the above embodiments, and this application is not described herein again. It is understood that, in other embodiments, a default hardware configuration may be set, where the first data switch and the second data switch are respectively connected to the second interface, and at this time, if and only if the second interface is connected to the external device, data communication is performed according to the default configuration.

Through the steps, on the basis of switching the power supply modes when the two interfaces are connected to the external device, data switching of the two interfaces is further achieved, and data errors caused by simultaneous data transmission when the two interfaces are inserted into the external device can be effectively avoided in the data transmission process.

The power supply switching system described in the above embodiment may be applied to a USB socket.

The embodiment also provides an electronic device comprising the USB socket.

In some embodiments, the electronic device may be a law enforcement recorder, for example, may be a handheld law enforcement recorder. The law enforcement recorder is evidence obtaining technical equipment which is worn on person during official business execution and integrates functions of real-time video and audio recording, photographing, recording and the like. The digital video camera integrates the functions of camera shooting, photographing, talkback, positioning and storage, can transmit video in real time, can digitally record dynamic and static field conditions in the law enforcement process, and is convenient for law enforcement in various environments.

The law enforcement recorder comprises a mobile terminal and a camera. The mobile terminal is provided with the USB socket, the USB socket is provided with the first interface and the second interface, and interface communication and power supply can be carried out with external equipment through the first interface and the second interface.

Certainly, in other embodiments, the USB socket may further include a USB adapter (for example, USB to mini USB type, USB to micro USB type, or USB to Lightning interface), an overshoot protection device, a signal indication device, and a wireless communication module, which are not described herein again. The electronic device can also be a portable product such as a mobile phone, a Portable Media Player (PMP), a Mobile Internet Device (MID), and the like.

The above-described embodiments do not limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the above-described embodiments should be included in the protection scope of the technical solution.

The embodiment also provides a power supply switching method, which is applied to the power supply switching system. Fig. 5 is a flowchart of a power supply switching method according to an embodiment of the present application, where as shown in fig. 5, interface communication and power supply are performed with the first interface as a priority, and the process includes the following steps:

first, it is determined whether the first interface is a first control signal sent to the first power switch. When the first interface sends a first control signal to the first power supply changeover switch, the first power supply changeover switch controls the conduction state of the first power supply changeover switch by using the change of high and low level signals. When the first control signal is received, the first power supply changeover switch sends a second control signal to the second power supply changeover switch according to the received first control signal; and the second power supply changeover switch is disconnected with the second interface according to the second control signal. When the first power supply changeover switch receives the first control signal, detecting whether a third control signal is received; if yes, the first interface supplies power to the charging module through the first power supply changeover switch.

Meanwhile, when the first power supply changeover switch does not receive the first control signal sent by the first interface, the control module detects an OTG signal provided by external equipment. When the control module does not receive the OTG signal, a second power supply change-over switch detects whether a fourth control signal is received, and if so, the second interface supplies power to the charging module through the second power supply change-over switch. When the control module receives the OTG signal, the control module sends a fifth control signal to the second power supply changeover switch to switch the second power supply changeover switch to a reverse conduction state; and simultaneously, the control module controls the charging module to enter an OTG mode so that the charging module supplies power to the OTG equipment through the second power supply changeover switch.

In this embodiment, the first interface and the second interface are both USB interfaces; in other embodiments, the first interface and the second interface may both be microbb interfaces; in other embodiments, the first interface is a USB interface, and the second interface is a microsb interface; or the first interface is a Microusb interface, and the second interface is a USB interface. The USB interface can be a USB TPYE-C interface, a USB TPYE-A interface and the like. It is to be understood that the first interface and the second interface may also be a two-pin or three-pin power supply jack, a network interface, a television interface, a telephone interface, etc., and the number thereof may be one or more, and the present application is not limited in particular herein. Wherein the interface power supply and/or the priority order of the communication can be set, so that the interface communication and the power supply are controlled according to the priority order.

Through the steps, the switching of the power supply mode when the two interfaces are connected into the external equipment is realized, so that the current caused by the interface voltage difference can be effectively prevented from flowing backwards when the two interfaces are connected into the external equipment, the power supply stability is improved, and the normal power supply of the equipment is ensured.

It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than here.

The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种端口配置电路、方法及服务器

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!