[go: up one dir, main page]

CN106786907A - A charging circuit, method and terminal - Google Patents

A charging circuit, method and terminal Download PDF

Info

Publication number
CN106786907A
CN106786907A CN201611223765.7A CN201611223765A CN106786907A CN 106786907 A CN106786907 A CN 106786907A CN 201611223765 A CN201611223765 A CN 201611223765A CN 106786907 A CN106786907 A CN 106786907A
Authority
CN
China
Prior art keywords
charging
circuit
driver
switching device
wireless charging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611223765.7A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611223765.7A priority Critical patent/CN106786907A/en
Publication of CN106786907A publication Critical patent/CN106786907A/en
Pending legal-status Critical Current

Links

Classifications

    • H02J7/0003

Landscapes

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

Abstract

The invention provides a charging circuit, a terminal and a charging method. The circuit comprises a wired charging interface, a wireless charging interface, a first detection circuit, a second detection circuit, a switch device, a driver and a battery charging loop; the wireless charging interface is connected with a first input end of the switch device, the wired charging interface is connected with a second input end of the switch device, and an output end of the switch device is connected with the battery charging loop; the first detection circuit is used for generating a first detection signal when detecting that the wireless charging interface is coupled with the wireless charging adapter; the second detection circuit is used for generating a second detection signal when detecting that the wired charging interface is coupled with the wired charging adapter; and the driver controls the switch device to communicate with a wireless charging circuit or a wired charging circuit according to the first detection signal and the second detection signal. The charging current can be prevented from being excessively large.

Description

一种充电电路、方法以及终端A charging circuit, method and terminal

技术领域technical field

本发明涉及无线充电领域,具体涉及了一种充电电路、方法及终端。The invention relates to the field of wireless charging, in particular to a charging circuit, method and terminal.

背景技术Background technique

随着科学技术的发展,市场上出现了一种终端,该终端既可支持有线充电也可支持无线充电。With the development of science and technology, a terminal appears on the market, which can support both wired charging and wireless charging.

在兼容有线充电和无线充电的终端中,如果该终端同时连通了的无线充电和有线充电,那么该终端的充电电路中就会接收两股电流,这样会造成充电电流过大以至于造成终端内部短路。In a terminal compatible with wired charging and wireless charging, if the terminal is connected to wireless charging and wired charging at the same time, then the charging circuit of the terminal will receive two streams of current, which will cause the charging current to be too large and cause internal damage to the terminal. short circuit.

发明内容Contents of the invention

本发明实施例提供了一种充电电路、方法及终端,能够防止有线充电回路和无线充电回路同时连通,进而防止充电电流过大。The embodiments of the present invention provide a charging circuit, method and terminal, which can prevent the wired charging circuit and the wireless charging circuit from being connected at the same time, thereby preventing the charging current from being too large.

本发明实施例第一方面公开了一种充电电路,其中,所述无线充电接口与所述开关器件的第一输入端连接,所述有线充电接口与所述开关器件的第二输入端连接,所述开关器件的输出端与所述电池充电回路连接;The first aspect of the embodiments of the present invention discloses a charging circuit, wherein the wireless charging interface is connected to the first input end of the switching device, the wired charging interface is connected to the second input end of the switching device, The output end of the switching device is connected to the battery charging circuit;

所述第一侦测电路连接于所述无线充电接口及所述驱动器之间,用于在侦测到无线充电接口与无线充电适配器耦接时,产生第一侦测信号;The first detection circuit is connected between the wireless charging interface and the driver, and is used to generate a first detection signal when detecting that the wireless charging interface is coupled with the wireless charging adapter;

所述第二侦测电路连接于所述有线充电接口及所述驱动器之间,用于在侦测到有线充电接口与有线充电适配器耦接时,产生第二侦测信号;The second detection circuit is connected between the wired charging interface and the driver, and is used to generate a second detection signal when detecting that the wired charging interface is coupled to the wired charging adapter;

其中,所述驱动器还与所述开关器件的控制端连接,所述驱动器在接收到第一侦测信号时,向所述开关器件发送第一控制信号以使得所述开关器件连通无线充电回路,以及在接收到第二侦测信号时,向所述开关器件发送第二控制信号以使得所述开关器件连通有线充电回路。Wherein, the driver is also connected to the control terminal of the switching device, and when receiving the first detection signal, the driver sends a first control signal to the switching device so that the switching device is connected to the wireless charging circuit, And when receiving the second detection signal, sending a second control signal to the switch device so that the switch device is connected to the wired charging circuit.

本发明第二方面公开了一种终端,所述终端包括第一方面所述的充电电路。The second aspect of the present invention discloses a terminal, and the terminal includes the charging circuit described in the first aspect.

本发明第三方面公开了一种充电方法,所述方法包括:A third aspect of the present invention discloses a charging method, the method comprising:

当接收到第一侦测信号时,控制有线充电回路进行连通;其中,所述第一侦测信号表示无线充电接口与无线充电适配器进行了耦接;When receiving the first detection signal, control the wired charging circuit to connect; wherein, the first detection signal indicates that the wireless charging interface is coupled with the wireless charging adapter;

当接收到第二侦测信号时,控制无线充电回路进行连通;其中,所述第二侦测信号表示有线充电接口与有线充电适配器进行了耦接。When the second detection signal is received, the wireless charging loop is controlled to be connected; wherein, the second detection signal indicates that the wired charging interface is coupled with the wired charging adapter.

本发明实施例的方案中提供了所述电路包括有线充电接口、无线充电接口、第一侦测电路、第二侦测电路、开关器件、驱动器以及电池充电回路;其中,所述无线充电接口与所述开关器件的第一输入端连接,所述有线充电接口与所述开关器件的第二输入端连接,所述开关器件的输出端与所述电池充电回路连接;所述第一侦测电路连接于所述无线充电接口及所述驱动器之间,用于在侦测到无线充电接口与无线充电适配器耦接时,产生第一侦测信号;所述第二侦测电路连接于所述有线充电接口及所述驱动器之间,用于在侦测到有线充电接口与有线充电适配器耦接时,产生第二侦测信号;其中,所述驱动器还与所述开关器件的控制端连接,所述驱动器在接收到第一侦测信号时,向所述开关器件发送第一控制信号以使得所述开关器件连通无线充电回路,以及在接收到第二侦测信号时,向所述开关器件发送第二控制信号以使得所述开关器件连通有线充电回路。从而可知,通过使用本发明提供的电路,能够防止有线充电回路和无线充电回路同时连通,进而防止充电电流过大。The solution of the embodiment of the present invention provides that the circuit includes a wired charging interface, a wireless charging interface, a first detection circuit, a second detection circuit, a switching device, a driver, and a battery charging circuit; wherein, the wireless charging interface and The first input end of the switching device is connected, the wired charging interface is connected to the second input end of the switching device, and the output end of the switching device is connected to the battery charging circuit; the first detection circuit Connected between the wireless charging interface and the driver, used to generate a first detection signal when detecting that the wireless charging interface is coupled with the wireless charging adapter; the second detection circuit is connected to the wired Between the charging interface and the driver, it is used to generate a second detection signal when it is detected that the wired charging interface is coupled with the wired charging adapter; wherein, the driver is also connected to the control terminal of the switching device, so When the driver receives the first detection signal, it sends a first control signal to the switch device so that the switch device connects to the wireless charging circuit, and when it receives the second detection signal, it sends a control signal to the switch device. The second control signal enables the switching device to communicate with the wired charging loop. It can be seen that, by using the circuit provided by the present invention, it is possible to prevent the wired charging circuit and the wireless charging circuit from being connected at the same time, thereby preventing the charging current from being too large.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings that need to be used in the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.

图1a为本发明实施例提供的一种充电电路的示意图;Figure 1a is a schematic diagram of a charging circuit provided by an embodiment of the present invention;

图1b为本发明实施例提供的一种充电物理电路的示意图;Fig. 1b is a schematic diagram of a charging physical circuit provided by an embodiment of the present invention;

图2为本发明实施例提供的一种终端的物理结构示意图;FIG. 2 is a schematic diagram of a physical structure of a terminal provided by an embodiment of the present invention;

图3为本发明实施例提供的一种充电的方法的流程示意图;FIG. 3 is a schematic flowchart of a charging method provided by an embodiment of the present invention;

图4为本发明实施例提供的另一种充电的方法的流程示意图;FIG. 4 is a schematic flowchart of another charging method provided by an embodiment of the present invention;

图5为本发明实施例提供的一种手机的实体装置结构示意图。FIG. 5 is a schematic structural diagram of a physical device of a mobile phone provided by an embodiment of the present invention.

具体实施方式detailed description

本发明实施例提供了一种充电电路,能够防止有线充电回路和无线充电回路同时连通,进而防止充电电流过大。The embodiment of the present invention provides a charging circuit, which can prevent the wired charging circuit and the wireless charging circuit from being connected at the same time, thereby preventing the charging current from being too large.

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are the embodiment of the present invention. Some examples, but not all examples. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

本发明说明书、权利要求书和附图中出现的术语“第一”、“第二”和“第三”等是用于区别不同的对象,而并非用于描述特定的顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second" and "third" appearing in the specification, claims and drawings of the present invention are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or apparatuses.

在本发明的一个实施例中公开了一种所述电路包括有线充电接口、无线充电接口、第一侦测电路、第二侦测电路、开关器件、驱动器以及电池充电回路;其中,所述无线充电接口与所述开关器件的第一输入端连接,所述有线充电接口与所述开关器件的第二输入端连接,所述开关器件的输出端与所述电池充电回路连接;所述第一侦测电路连接于所述无线充电接口及所述驱动器之间,用于在侦测到无线充电接口与无线充电适配器耦接时,产生第一侦测信号;所述第二侦测电路连接于所述有线充电接口及所述驱动器之间,用于在侦测到有线充电接口与有线充电适配器耦接时,产生第二侦测信号;其中,所述驱动器还与所述开关器件的控制端连接,所述驱动器在接收到第一侦测信号时,向所述开关器件发送第一控制信号以使得所述开关器件连通无线充电回路,以及在接收到第二侦测信号时,向所述开关器件发送第二控制信号以使得所述开关器件 连通有线充电回路。One embodiment of the present invention discloses that the circuit includes a wired charging interface, a wireless charging interface, a first detection circuit, a second detection circuit, a switching device, a driver, and a battery charging circuit; wherein, the wireless The charging interface is connected to the first input end of the switching device, the wired charging interface is connected to the second input end of the switching device, and the output end of the switching device is connected to the battery charging circuit; the first The detection circuit is connected between the wireless charging interface and the driver, and is used to generate a first detection signal when the wireless charging interface is detected to be coupled with the wireless charging adapter; the second detection circuit is connected to the Between the wired charging interface and the driver, it is used to generate a second detection signal when it is detected that the wired charging interface is coupled to the wired charging adapter; wherein, the driver is also connected to the control terminal of the switching device When the driver receives the first detection signal, it sends the first control signal to the switch device so that the switch device connects to the wireless charging loop, and when it receives the second detection signal, it sends the control signal to the switch device. The switch device sends a second control signal to make the switch device communicate with the wired charging loop.

请参阅图1a,图1a是本发明一个实施例提供的一种充电电路100。其中,如图1所示,所述电路100包括有线充电接口110、无线充电接口120、第一侦测电路130、第二侦测电路140、开关器件150、驱动器160以及电池充电回路170;Please refer to FIG. 1a . FIG. 1a is a charging circuit 100 provided by an embodiment of the present invention. Wherein, as shown in FIG. 1 , the circuit 100 includes a wired charging interface 110, a wireless charging interface 120, a first detection circuit 130, a second detection circuit 140, a switching device 150, a driver 160 and a battery charging circuit 170;

其中,开关器件150是单刀双掷开关,所述开关器件150包括第一静触点、第二静触点、动触点以及控制端;其中,所述第一静触点与无线充电端口连接120;所述第二静触点与有线充电端口110连接;所述动触点与电池充电回路170连接;所述控制端与所述驱动器连接。Wherein, the switching device 150 is a single-pole double-throw switch, and the switching device 150 includes a first static contact, a second static contact, a moving contact and a control terminal; wherein, the first static contact is connected to the wireless charging port 120; the second static contact is connected to the wired charging port 110; the movable contact is connected to the battery charging circuit 170; the control terminal is connected to the driver.

其中,无线充电接口120与开关器件150的第一端连接;第一侦测电路130位于无线充电接口120与驱动器160之间连接;Wherein, the wireless charging interface 120 is connected to the first end of the switching device 150; the first detection circuit 130 is located between the wireless charging interface 120 and the driver 160;

其中,需要指出的是,开关器件150的第一端为所述第一静接触点。Wherein, it should be pointed out that the first end of the switching device 150 is the first static contact.

其中,需要指出的是,无线充电接口120用于连接无线适配器;Wherein, it should be pointed out that the wireless charging interface 120 is used for connecting a wireless adapter;

举例来说,无线适配器具有初级线圈,无线充电接口120具备次级线圈,当初级线圈有一定频率的交流电,通过电磁感应在次级线圈中产生一定的电流,从而将能量从传输端(初级线圈)转移到接收端(次级线圈),也就是说无线充电接口120就会接收到电流。For example, the wireless adapter has a primary coil, and the wireless charging interface 120 has a secondary coil. When the primary coil has an alternating current of a certain frequency, a certain current is generated in the secondary coil through electromagnetic induction, thereby transferring energy from the transmission end (primary coil ) is transferred to the receiving end (secondary coil), that is to say, the wireless charging interface 120 will receive the current.

其中,第一侦测电路130,用于在侦测到无线充电接口与无线充电适配器耦接时,产生第一侦测信号;Wherein, the first detection circuit 130 is configured to generate a first detection signal when it is detected that the wireless charging interface is coupled with the wireless charging adapter;

举例来说,无线充电端口120与无线适配器建立连接时,无线适配器会提供5V的电压;那么此时,第一侦测电路130会将5V电压分为适合驱动器160输入电压范围的电压,一般是1.8V或者3.0V。For example, when the wireless charging port 120 establishes a connection with the wireless adapter, the wireless adapter will provide a voltage of 5V; at this time, the first detection circuit 130 will divide the 5V voltage into voltages suitable for the input voltage range of the driver 160, generally 1.8V or 3.0V.

需要指出的是,第一侦测电路130包括第一电阻和第二电阻;所述第一电阻的第一端连接无线充电接口120;所述第一电阻的第二端连接所述第二电阻的第一端;所述第二电阻的第二端接地;驱动器160与所述第一电阻的第二端连接;It should be noted that the first detection circuit 130 includes a first resistor and a second resistor; the first end of the first resistor is connected to the wireless charging interface 120; the second end of the first resistor is connected to the second resistor the first end of the second resistor; the second end of the second resistor is grounded; the driver 160 is connected to the second end of the first resistor;

第一侦测电路130,具体用于在侦测到无线充电接口与无线充电适配器耦接时,产生第一电压;The first detection circuit 130 is specifically configured to generate a first voltage when it is detected that the wireless charging interface is coupled with the wireless charging adapter;

驱动器160,具体用于当所述第一电压等于第一预设阈值时,向所述开关器件发送控制信号以使得所述开关器件连通无线充电回路。The driver 160 is specifically configured to, when the first voltage is equal to a first preset threshold, send a control signal to the switching device so that the switching device is connected to a wireless charging circuit.

其中,无线充电回路连通是指第一静接触点与动接触点进行了连接。Wherein, the connection of the wireless charging circuit means that the first static contact point is connected with the moving contact point.

其中,有线充电接口110与开关器件150的第二端连接;第二侦测电路140位于有线充电接口110与驱动器160之间;Wherein, the wired charging interface 110 is connected to the second end of the switching device 150; the second detection circuit 140 is located between the wired charging interface 110 and the driver 160;

其中,所述有线充电接口用于连接有线适配器;Wherein, the wired charging interface is used to connect a wired adapter;

其中,第二侦测电路140,用于在侦测到有线充电接口与有线充电适配器耦接时,产生第二侦测信号;Wherein, the second detection circuit 140 is configured to generate a second detection signal when detecting that the wired charging interface is coupled to the wired charging adapter;

举例来说,有线充电端口110与有线适配器建立连接(一般通过连接线连接,连接线的插头插入该有线充电端口110即可)时,无线适配器会提供5V的电压;那么此时,第二侦测电路140会将5V电压分为适合驱动器160输入电压范围的电压,一般是1.8V或者3.0V。For example, when the wired charging port 110 establishes a connection with the wired adapter (usually through a connection line, the plug of the connecting line can be inserted into the wired charging port 110), the wireless adapter will provide a voltage of 5V; then at this time, the second detector The test circuit 140 divides the 5V voltage into a voltage suitable for the input voltage range of the driver 160 , generally 1.8V or 3.0V.

需要指出的是,第二侦测电路140包括第三电阻和第四电阻;所述第三电阻的第一端连接有线充电接口110;所述第三电阻的第二端连接所述第四电阻的第一端;所述第四电阻的第二端接地;驱动器160与所述第三电阻的第二端连接;It should be noted that the second detection circuit 140 includes a third resistor and a fourth resistor; the first end of the third resistor is connected to the wired charging interface 110; the second end of the third resistor is connected to the fourth resistor the first end of the fourth resistor; the second end of the fourth resistor is grounded; the driver 160 is connected to the second end of the third resistor;

第二侦测电路140,具体用于在侦测到有线充电接口与有线充电适配器耦接时,产生第二电压;The second detection circuit 140 is specifically configured to generate a second voltage when it is detected that the wired charging interface is coupled to the wired charging adapter;

驱动器160,具体用于当所述第二电压等于第二预设阈值时,向所述开关器件发送控制信号以使得所述开关器件连通有线充电回路。The driver 160 is specifically configured to, when the second voltage is equal to a second preset threshold, send a control signal to the switching device so that the switching device is connected to a wired charging circuit.

其中,有线充电回路连通是指第二静接触点与动接触点进行了连接。Wherein, the connection of the wired charging circuit refers to the connection between the second static contact and the moving contact.

可选的,驱动器160,具体用于当所述第一电压等于所述第一预设阈值且第二电压等于所述第二预设阈值时,根据预设优先级生成控制信号,所述控制信号用于指示所述开关器件切换至无线充电回路或有线充电回路。Optionally, the driver 160 is specifically configured to generate a control signal according to a preset priority when the first voltage is equal to the first preset threshold and the second voltage is equal to the second preset threshold, and the control The signal is used to instruct the switching device to switch to a wireless charging loop or a wired charging loop.

其中,第一预设阈值与第二预设阈值可以相等也可以不等。Wherein, the first preset threshold and the second preset threshold may be equal or unequal.

举例来说,第一预设阈值和第二预设阈值都可以是3V。当第一电压为3V,第二电压为0V时,说明此时进行了无线适配器连接,那么就需要向开关器件150发送控制信号以使得开关器件150切换至无线充电回路,以便进行无线充 电回路充电。For example, both the first preset threshold and the second preset threshold can be 3V. When the first voltage is 3V and the second voltage is 0V, it means that the wireless adapter is connected at this time, then it is necessary to send a control signal to the switching device 150 to make the switching device 150 switch to the wireless charging circuit for wireless charging circuit charging .

举例来说,当所述第一电压等于预设阈值且第二电压小于所述预设阈值时,驱动器160的第一端口为高电平,驱动器160的第二端口为低电平,那么驱动器160会向开关器件输出高电平,以使得开关器件150切换至无线充电回路,以便进行无线充电回路充电。For example, when the first voltage is equal to the preset threshold and the second voltage is less than the preset threshold, the first port of the driver 160 is at a high level, and the second port of the driver 160 is at a low level, then the driver 160 will output a high level to the switching device, so that the switching device 150 switches to the wireless charging circuit, so as to perform wireless charging circuit charging.

可选的,驱动器160,具体用于当所述第一电压小于预设阈值且第二电压等于所述预设阈值时,向开关器件150发送控制信号以使得开关器件150切换至有线充电回路。Optionally, the driver 160 is specifically configured to send a control signal to the switching device 150 so that the switching device 150 switches to a wired charging loop when the first voltage is less than a preset threshold and the second voltage is equal to the preset threshold.

举例来说,预设阈值可以是3V。当第二电压为3V,第一电压为0V时,说明此时进行了有线适配器连接,那么就需要向开关器件150发送控制信号以使得开关器件150切换至有线充电回路,以便进行有线充电回路充电。For example, the preset threshold can be 3V. When the second voltage is 3V and the first voltage is 0V, it means that the wired adapter is connected at this time, and then it is necessary to send a control signal to the switching device 150 to make the switching device 150 switch to the wired charging circuit, so as to perform wired charging circuit charging .

举例来说,当所述第二电压等于预设阈值且第一电压小于所述预设阈值时,驱动器160的第一端口为低电平,驱动器160的第二端口为高电平,那么驱动器160会向开关器件输出低电平,以使得开关器件150切换至有线充电回路,以便进行有线充电回路充电。For example, when the second voltage is equal to the preset threshold and the first voltage is less than the preset threshold, the first port of the driver 160 is at a low level, and the second port of the driver 160 is at a high level, then the driver 160 will output a low level to the switching device, so that the switching device 150 switches to the wired charging loop, so as to perform wired charging loop charging.

可选的,驱动器160,具体用于当所述第一电压等于预设阈值且第二电压等于所述预设阈值时,根据预设优先级生成控制信号,所述控制信号用于指示所述开关器件切换至无线充电回路或有线充电回路。Optionally, the driver 160 is specifically configured to generate a control signal according to a preset priority when the first voltage is equal to the preset threshold and the second voltage is equal to the preset threshold, and the control signal is used to indicate the The switching device switches to a wireless charging loop or a wired charging loop.

举例来说,预设阈值可以是3V,也可以是1.8V。For example, the preset threshold can be 3V or 1.8V.

举例来说,有线充电的优先级可以高于无线充电的优先级。那么当所述第一电压等于预设阈值且第二电压等于所述预设阈值时,控制信号用于指示所述开关器件切换有线充电回路以便进行有线充电回路充电。For example, the priority of wired charging may be higher than that of wireless charging. Then, when the first voltage is equal to the preset threshold and the second voltage is equal to the preset threshold, the control signal is used to instruct the switching device to switch the wired charging loop so as to perform wired charging loop charging.

举例来说,无线充电的优先级可以高于有线充电的优先级。那么当所述第一电压等于预设阈值且第二电压等于所述预设阈值时,控制信号用于指示所述开关器件切换无线充电回路以便进行无线充电回路充电。For example, wireless charging may be prioritized over wired charging. Then, when the first voltage is equal to the preset threshold and the second voltage is equal to the preset threshold, the control signal is used to instruct the switching device to switch the wireless charging loop for wireless charging loop charging.

举例来说,那么当所述第一电压等于预设阈值且第二电压等于所述预设阈值时,驱动器160的第一端口为高电平,驱动器160的第二端口为高电平,此时,如果无线充电端口的优先级高,那就指示开关器件切换至无线充电回路以 便进行无线充电回路充电。如果有线充电端口的优先级高,那就指示开关器件切换至有线充电回路以便进行有线充电回路充电。For example, when the first voltage is equal to the preset threshold and the second voltage is equal to the preset threshold, the first port of the driver 160 is at a high level, and the second port of the driver 160 is at a high level. , if the priority of the wireless charging port is high, then instruct the switching device to switch to the wireless charging loop for wireless charging loop charging. If the priority of the wired charging port is high, the switching device is instructed to switch to the wired charging loop for wired charging loop charging.

可选的,所述驱动器还与中央处理器相连接;驱动器160,还用于向所述中央处理器发送控制信号;中央处理器,用于接收所述驱动器发送的控制信号确定当前的充电方式;中央处理器,还用于根据所述当前的充电方式确定目标适配器,并与所述目标适配器已经交互以控制充电速度。Optionally, the driver is also connected to the central processor; the driver 160 is also used to send a control signal to the central processor; the central processor is used to receive the control signal sent by the driver to determine the current charging mode ; The central processing unit is also used to determine the target adapter according to the current charging method, and interact with the target adapter to control the charging speed.

举例来说,当充电方式为有线充电时,中央处理器可以根据当前电池的电压确定目标充电电流值,并向有线适配器发送指令以使得所述有线适配器将输出电流调节至所述目标充电电流值。For example, when the charging method is wired charging, the central processing unit can determine the target charging current value according to the current battery voltage, and send an instruction to the wired adapter so that the wired adapter adjusts the output current to the target charging current value .

可以看出,本发明实施例的方案中,所述电路包括有线充电接口、无线充电接口、第一侦测电路、第二侦测电路、开关器件、驱动器以及电池充电回路;其中,所述无线充电接口与所述开关器件的第一端连接;所述无线充电接口还与所述第一侦测电路的第一端连接;所述第一侦测电路的第二端与所述驱动器的第一端连接;其中,所述有线充电接口与所述开关器件的第二端连接;所述无线充电接口还与所述第二侦测电路的第一端连接;所述第二侦测电路的第二端与所述驱动器的第二端连接;其中,所述驱动器的第三端口与所述开关器件的控制端连接;所述开关器件第三端与所述电池充电回路连接。从而可知,通过使用本发明提供的电路,能够防止有线充电回路和无线充电回路同时连通,进而防止充电电流过大。It can be seen that in the solution of the embodiment of the present invention, the circuit includes a wired charging interface, a wireless charging interface, a first detection circuit, a second detection circuit, a switching device, a driver, and a battery charging circuit; wherein, the wireless The charging interface is connected to the first end of the switching device; the wireless charging interface is also connected to the first end of the first detection circuit; the second end of the first detection circuit is connected to the first end of the driver Connected at one end; wherein, the wired charging interface is connected to the second end of the switching device; the wireless charging interface is also connected to the first end of the second detection circuit; the second detection circuit The second terminal is connected to the second terminal of the driver; wherein, the third port of the driver is connected to the control terminal of the switching device; the third terminal of the switching device is connected to the battery charging circuit. It can be seen that, by using the circuit provided by the present invention, it is possible to prevent the wired charging circuit and the wireless charging circuit from being connected at the same time, thereby preventing the charging current from being too large.

请参阅图1b,图1b是与图1a相对应的物理电路。所述物理电路包括有线充电接口210、无线充电接口220、第一侦测电路230、第二侦测电路240、开关器件250、驱动器260以及电池充电回路270;具体的连接方式和功能如上述实施例所述,在此不再赘述。Please refer to Fig. 1b, which is a physical circuit corresponding to Fig. 1a. The physical circuit includes a wired charging interface 210, a wireless charging interface 220, a first detection circuit 230, a second detection circuit 240, a switching device 250, a driver 260, and a battery charging circuit 270; the specific connection methods and functions are implemented as described above For example, it will not be repeated here.

请参阅图2,图2是本发明一个实施例提供的一种终端300。其中,在图1的基础上,如图2所示,终端300包括充电电路310、中央处理器320和通信单元330。Please refer to FIG. 2 . FIG. 2 is a terminal 300 provided by an embodiment of the present invention. Wherein, on the basis of FIG. 1 , as shown in FIG. 2 , the terminal 300 includes a charging circuit 310 , a central processing unit 320 and a communication unit 330 .

可选的,驱动器160还与中央处理器320相连接;驱动器160,还用于向所述中央处理器320发送控制信号;中央处理器320,用于接收所述驱动器发 送的控制信号确定当前的充电方式;中央处理器320,还用于根据所述当前的充电方式确定目标适配器,并通过通信单元330与所述目标适配器已经交互以控制充电速度。Optionally, the driver 160 is also connected to the central processor 320; the driver 160 is also used to send a control signal to the central processor 320; the central processor 320 is used to receive the control signal sent by the driver to determine the current Charging mode: the central processing unit 320 is also used to determine the target adapter according to the current charging mode, and interact with the target adapter through the communication unit 330 to control the charging speed.

举例来说,当充电方式为有线充电时,中央处理器320可以根据当前电池的电压确定目标充电电流值,并通过通信单元330向有线适配器发送指令以使得所述有线适配器将输出电流调节至所述目标充电电流值。For example, when the charging method is wired charging, the central processing unit 320 can determine the target charging current value according to the current battery voltage, and send an instruction to the wired adapter through the communication unit 330 so that the wired adapter adjusts the output current to the desired value. The above target charging current value.

请参阅图3,图3是本发明一个实施例提供的一种充电方法。其中,如图3所示,本发明的一个实施例提供的一种充电的方法包括以下内容:Please refer to FIG. 3 . FIG. 3 is a charging method provided by an embodiment of the present invention. Wherein, as shown in FIG. 3, a charging method provided by an embodiment of the present invention includes the following content:

S401、当接收到第一侦测信号时,控制有线充电回路进行连通;其中,所述第一侦测信号表示无线充电接口与无线充电适配器进行了耦接。S401. When a first detection signal is received, control the wired charging circuit to connect; wherein, the first detection signal indicates that the wireless charging interface is coupled to the wireless charging adapter.

其中,需要指出的是,本发明的执行主体是终端,例如是智能手机、穿戴式设备、平板电脑等等。Wherein, it should be pointed out that the execution subject of the present invention is a terminal, such as a smart phone, a wearable device, a tablet computer, and the like.

S402、当接收到第二侦测信号时,控制无线充电回路进行连通;其中,所述第二侦测信号表示有线充电接口与有线充电适配器进行了耦接。S402. When receiving the second detection signal, control the wireless charging loop to connect; wherein, the second detection signal indicates that the wired charging interface is coupled with the wired charging adapter.

需要指出的是,第一侦测信号为第一电压;第二侦测信号为第二电压。It should be pointed out that the first detection signal is a first voltage; the second detection signal is a second voltage.

可选的,当所述第一电压等于第一预设阈值且第二电压小于第二预设阈值时,进行无线充电回路连通。Optionally, when the first voltage is equal to the first preset threshold and the second voltage is smaller than the second preset threshold, the wireless charging circuit is connected.

其中,第一电压与第二电压可以相等也可以不等。Wherein, the first voltage and the second voltage may be equal or unequal.

其中,预设阈值可以是1.8或3V,在此不做限制。Wherein, the preset threshold may be 1.8 or 3V, which is not limited here.

当所述第一电压小于第一预设阈值且第二电压等于所述第二预设阈值时,向进行有线充电回路连通。When the first voltage is less than the first preset threshold and the second voltage is equal to the second preset threshold, the wired charging circuit is connected.

当所述第一电压等于第一预设阈值且第二电压等于所述第二预设阈值时,根据预设优先级控制无线充电回路连通或控制有线充电回路连通。When the first voltage is equal to the first preset threshold and the second voltage is equal to the second preset threshold, the connection of the wireless charging circuit or the connection of the wired charging circuit is controlled according to a preset priority.

其中,预设优先级可以是:无线充电回路的优先级高于有线充电回路的优先级。还可以是无线充电回路的优先级高于有线充电回路的优先级。该预设优先级可以是出厂时就设置好的,也可以是用户通过操作界面手工设置的。Wherein, the preset priority may be: the priority of the wireless charging loop is higher than that of the wired charging loop. It is also possible that the priority of the wireless charging loop is higher than that of the wired charging loop. The preset priority may be set at the factory, or manually set by the user through the operation interface.

可以看出,本发明实施例的方案中细化了连通无线充电回路或有限充电回路的判断方法,可以防止无线充电回路和有限充电回路同时连通。It can be seen that in the solution of the embodiment of the present invention, the determination method for connecting the wireless charging loop or the limited charging loop is refined, which can prevent the wireless charging loop and the limited charging loop from being connected at the same time.

请参阅图4,图4是本发明一个实施例提供的一种充电方法。其中,如图4所示,本发明的一个实施例提供的一种充电的方法包括以下内容:Please refer to FIG. 4 . FIG. 4 is a charging method provided by an embodiment of the present invention. Wherein, as shown in FIG. 4, a charging method provided by an embodiment of the present invention includes the following content:

S501、当接收到第一侦测信号时,控制有线充电回路进行连通;其中,所述第一侦测信号表示无线充电接口与无线充电适配器进行了耦接;S501. When a first detection signal is received, control the wired charging circuit to connect; wherein, the first detection signal indicates that the wireless charging interface is coupled to the wireless charging adapter;

其中,需要指出的是,本发明的执行主体是终端,例如是智能手机、穿戴式设备、平板电脑等等。Wherein, it should be pointed out that the execution subject of the present invention is a terminal, such as a smart phone, a wearable device, a tablet computer, and the like.

S502、当接收到第二侦测信号时,控制无线充电回路进行连通;其中,所述第二侦测信号表示有线充电接口与有线充电适配器进行了耦接。S502. When receiving a second detection signal, control the wireless charging loop to connect; wherein, the second detection signal indicates that the wired charging interface is coupled to the wired charging adapter.

S503、当同时接到第一侦测信号和第二侦测信号时,根据预设优先级控制无线充电回路连通或有线充电回路连通。S503. When receiving the first detection signal and the second detection signal at the same time, control the connection of the wireless charging circuit or the connection of the wired charging circuit according to the preset priority.

S504、当检测到无线充电回路处于连通状态或有线充电回路处于连通状态时,根据当前电池电压与目标适配器进行通信以使得所述目标适配器根据所述当前电池电压调节输出功率。S504. When it is detected that the wireless charging loop is connected or the wired charging loop is connected, communicate with the target adapter according to the current battery voltage so that the target adapter adjusts the output power according to the current battery voltage.

其中,预设优先级可以是:无线充电回路的优先级高于有线充电回路的优先级。还可以是无线充电回路的优先级高于有线充电回路的优先级。该预设优先级可以是出厂时就设置好的,也可以是用户通过操作界面手工设置的。Wherein, the preset priority may be: the priority of the wireless charging loop is higher than that of the wired charging loop. It is also possible that the priority of the wireless charging loop is higher than that of the wired charging loop. The preset priority may be set at the factory, or manually set by the user through the operation interface.

请参阅图5,图5是本发明的一个实施例提供的终端相关的手机的部分结构的框图。参考图5,手机包括:射频(Radio Frequency,RF)电路610、存储器620、输入单元630、显示单元640、传感器650、音频电路660、无线保真(Wireless Fidelity,Wi-Fi)模块670、处理器680、以及如图1所示的充电电路690等部件。本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Please refer to FIG. 5 . FIG. 5 is a block diagram of a partial structure of a terminal-related mobile phone provided by an embodiment of the present invention. 5, the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 610, a memory 620, an input unit 630, a display unit 640, a sensor 650, an audio circuit 660, a wireless fidelity (Wireless Fidelity, Wi-Fi) module 670, a processing 680, and the charging circuit 690 shown in FIG. 1 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 5 is not limited to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.

下面结合图5对手机的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the mobile phone in conjunction with Figure 5:

RF电路610可用于信息的接收和发送。通常,RF电路610包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路610还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限 于全球移动通讯系统(Global System of Mobilecommunication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code DivisionMultiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。RF circuitry 610 may be used for the reception and transmission of information. Generally, the RF circuit 610 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 610 may also communicate with networks and other devices via wireless communications. The above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobilecommunication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (Short Messaging Service, SMS), etc.

存储器620可用于存储软件程序以及模块,处理器680通过运行存储在存储器620的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器620可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如无线充电功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如电压预设阈值等)等。此外,存储器620可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 620 can be used to store software programs and modules, and the processor 680 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 620 . The memory 620 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as wireless charging function, etc.); Created data (such as voltage preset thresholds, etc.), etc. In addition, the memory 620 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

输入单元630可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元630可包括指纹模组631以及其他输入设备632。指纹模组631,可采集用户在其上的指纹数据。可选的,指纹模组631可包括光学式指纹模块、电容式指纹模块以及射频式指纹模块。以指纹模组631为电容式指纹模组为例,具体包括感应电极(n1个异常感应电极和n2个正常感应电极)和与所述感应电极连接的信号处理电路(如放大电路、噪声抑制电路、模数转化电路,等等)。除了指纹模组631,输入单元630还可以包括其他输入设备632。具体地,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 630 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 630 may include a fingerprint module 631 and other input devices 632 . The fingerprint module 631 can collect the fingerprint data of the user on it. Optionally, the fingerprint module 631 may include an optical fingerprint module, a capacitive fingerprint module, and a radio frequency fingerprint module. Taking the fingerprint module 631 as an example of a capacitive fingerprint module, it specifically includes sensing electrodes (n1 abnormal sensing electrodes and n2 normal sensing electrodes) and signal processing circuits (such as amplification circuits, noise suppression circuits) connected to the sensing electrodes. , analog-to-digital conversion circuit, etc.). In addition to the fingerprint module 631 , the input unit 630 may also include other input devices 632 . Specifically, other input devices 632 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

显示单元640可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元640可包括显示屏641,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏641。虽然在图5中,指纹模组631与显示屏641是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将指纹模组631与显示屏641集成而实现手机的输入和输出功能。The display unit 640 may be used to display information input by or provided to the user and various menus of the mobile phone. The display unit 640 may include a display screen 641. Optionally, the display screen 641 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Although in FIG. 5 , the fingerprint module 631 and the display screen 641 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the fingerprint module 631 and the display screen 641 can be integrated and Realize the input and output functions of the mobile phone.

手机还可包括至少一种传感器650,比如光传感器、运动传感器以及其他 传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏641的亮度,接近传感器可在手机移动到耳边时,关闭显示屏641和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one sensor 650, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen 641 according to the brightness of the ambient light, and the proximity sensor may turn off the display screen 641 and/or when the mobile phone is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of mobile phone posture (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. repeat.

音频电路660、扬声器661,传声器662可提供用户与手机之间的音频接口。音频电路660可将接收到的音频数据转换后的电信号,传输到扬声器561,由扬声器661转换为声音信号输出;另一方面,传声器662将收集的声音信号转换为电信号,由音频电路660接收后转换为音频数据,再将音频数据输出处理器680处理后,经RF电路610以发送给比如另一手机,或者将音频数据输出至存储器620以便进一步处理。The audio circuit 660, the speaker 661 and the microphone 662 can provide an audio interface between the user and the mobile phone. The audio circuit 660 can transmit the electrical signal converted from the received audio data to the speaker 561, and the speaker 661 converts it into an audio signal output; After being received, it is converted into audio data, and then the audio data is processed by the output processor 680, and then sent to another mobile phone through the RF circuit 610, or the audio data is output to the memory 620 for further processing.

WiFi属于短距离无线传输技术,手机通过WiFi模块670可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块670,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 670, which provides users with wireless broadband Internet access. Although FIG. 5 shows the WiFi module 670, it can be understood that it is not an essential component of the mobile phone, and can be completely omitted as required without changing the essence of the invention.

处理器680是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器620内的软件程序和/或模块,以及调用存储在存储器620内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器680可包括一个或多个处理单元;优选的,处理器680可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器680中。The processor 680 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 620, and calling data stored in the memory 620, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. Optionally, the processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 680 .

手机还包括给各个部件供电的充电电路690(比如电池),优选的,充电电路可以通过电源管理系统与处理器680逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a charging circuit 690 (such as a battery) for supplying power to various components. Preferably, the charging circuit can be logically connected to the processor 680 through the power management system, so as to realize functions such as managing charging, discharging, and power consumption management through the power management system. .

尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be repeated here.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes. .

以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理 解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions recorded in each embodiment are modified, or some of the technical features are replaced equivalently; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1.一种充电电路,其特征在于,所述电路包括有线充电接口、无线充电接口、第一侦测电路、第二侦测电路、开关器件、驱动器以及电池充电回路;1. A charging circuit, characterized in that the circuit includes a wired charging interface, a wireless charging interface, a first detection circuit, a second detection circuit, a switching device, a driver, and a battery charging circuit; 其中,所述无线充电接口与所述开关器件的第一输入端连接,所述有线充电接口与所述开关器件的第二输入端连接,所述开关器件的输出端与所述电池充电回路连接;Wherein, the wireless charging interface is connected to the first input end of the switching device, the wired charging interface is connected to the second input end of the switching device, and the output end of the switching device is connected to the battery charging circuit ; 所述第一侦测电路连接于所述无线充电接口及所述驱动器之间,用于在侦测到无线充电接口与无线充电适配器耦接时,产生第一侦测信号;The first detection circuit is connected between the wireless charging interface and the driver, and is used to generate a first detection signal when detecting that the wireless charging interface is coupled with the wireless charging adapter; 所述第二侦测电路连接于所述有线充电接口及所述驱动器之间,用于在侦测到有线充电接口与有线充电适配器耦接时,产生第二侦测信号;The second detection circuit is connected between the wired charging interface and the driver, and is used to generate a second detection signal when detecting that the wired charging interface is coupled to the wired charging adapter; 其中,所述驱动器还与所述开关器件的控制端连接,所述驱动器在接收到第一侦测信号时,向所述开关器件发送第一控制信号以使得所述开关器件连通无线充电回路,以及在接收到第二侦测信号时,向所述开关器件发送第二控制信号以使得所述开关器件连通有线充电回路。Wherein, the driver is also connected to the control terminal of the switching device, and when receiving the first detection signal, the driver sends a first control signal to the switching device so that the switching device is connected to the wireless charging circuit, And when receiving the second detection signal, sending a second control signal to the switch device so that the switch device is connected to the wired charging circuit. 2.根据权利要求1所述的充电电路,其特征在于,所述开关器件是单刀双掷开关,所述开关器件包括第一静触点、第二静触点、动触点以及控制端;其中,所述第一静触点与所述无线充电端口连接;所述第二静触点与所述有线充电端口连接;所述动触点与所述电池充电回路连接;所述控制端与所述驱动器连接。2. The charging circuit according to claim 1, wherein the switching device is a single-pole double-throw switch, and the switching device includes a first static contact, a second static contact, a moving contact and a control terminal; Wherein, the first static contact is connected to the wireless charging port; the second static contact is connected to the wired charging port; the movable contact is connected to the battery charging circuit; the control terminal is connected to the The drive is connected. 3.根据权利要求2所述的充电电路,其特征在于,所述第一侦测电路包括第一电阻和第二电阻;所述第一电阻的第一端连接所述无线充电接口;所述第一电阻的第二端连接所述第二电阻的第一端;所述第二电阻的第二端接地;所述驱动器与所述第一电阻的第二端连接;3. The charging circuit according to claim 2, wherein the first detection circuit comprises a first resistor and a second resistor; the first end of the first resistor is connected to the wireless charging interface; the The second end of the first resistor is connected to the first end of the second resistor; the second end of the second resistor is grounded; the driver is connected to the second end of the first resistor; 所述第一侦测电路,具体用于在侦测到无线充电接口与无线充电适配器耦接时,产生第一电压;The first detection circuit is specifically configured to generate a first voltage when it detects that the wireless charging interface is coupled to the wireless charging adapter; 所述驱动器,具体用于当所述第一电压等于第一预设阈值时,向所述开关器件发送控制信号以使得所述开关器件连通无线充电回路。The driver is specifically configured to, when the first voltage is equal to a first preset threshold, send a control signal to the switching device so that the switching device is connected to a wireless charging circuit. 4.根据权利要求3所述的充电电路,其特征在于,所述第二侦测电路包括第三电阻和第四电阻;所述第三电阻的第一端连接所述有线充电接口;所述第三电阻的第二端连接所述第四电阻的第一端;所述第四电阻的第二端接地;所述驱动器还与所述第三电阻的第二端连接;4. The charging circuit according to claim 3, wherein the second detection circuit includes a third resistor and a fourth resistor; the first end of the third resistor is connected to the wired charging interface; the The second end of the third resistor is connected to the first end of the fourth resistor; the second end of the fourth resistor is grounded; the driver is also connected to the second end of the third resistor; 所述第二侦测电路,具体用于在侦测到有线充电接口与有线充电适配器耦接时,产生第二电压;The second detection circuit is specifically configured to generate a second voltage when it detects that the wired charging interface is coupled to the wired charging adapter; 所述驱动器,具体用于当所述第二电压等于第二预设阈值时,向所述开关器件发送控制信号以使得所述开关器件连通有线充电回路。The driver is specifically configured to, when the second voltage is equal to a second preset threshold, send a control signal to the switching device so that the switching device is connected to a wired charging circuit. 5.根据权利要求4所述的充电电路,其特征在于,5. The charging circuit according to claim 4, characterized in that, 所述驱动器,具体用于当所述第一电压等于所述第一预设阈值且第二电压等于所述第二预设阈值时,根据预设优先级生成控制信号,所述控制信号用于指示所述开关器件切换至无线充电回路或有线充电回路。The driver is specifically configured to generate a control signal according to a preset priority when the first voltage is equal to the first preset threshold and the second voltage is equal to the second preset threshold, and the control signal is used for Instructing the switching device to switch to a wireless charging loop or a wired charging loop. 6.根据权利要求1所述的充电电路,其特征在于,所述驱动器还与中央处理器相连接;6. The charging circuit according to claim 1, wherein the driver is also connected to the central processing unit; 所述驱动器,还用于向所述中央处理器发送控制信号;The driver is also used to send a control signal to the central processing unit; 所述中央处理器,用于接收所述驱动器发送的控制信号确定当前的充电方式;The central processing unit is configured to receive a control signal sent by the driver to determine the current charging mode; 所述中央处理器,还用于根据所述当前的充电方式确定目标适配器,并与所述目标适配器已经交互以控制充电速度。The central processing unit is further configured to determine a target adapter according to the current charging mode, and interact with the target adapter to control the charging speed. 7.一种终端,其特征在于,所述终端包括权利要求1至6任一所述的充电电路。7. A terminal, characterized in that the terminal comprises the charging circuit according to any one of claims 1-6. 8.一种充电方法,其特征在于,所述方法包括:8. A charging method, characterized in that the method comprises: 当接收到第一侦测信号时,控制有线充电回路进行连通;其中,所述第一侦测信号表示无线充电接口与无线充电适配器进行了耦接;When receiving the first detection signal, control the wired charging circuit to connect; wherein, the first detection signal indicates that the wireless charging interface is coupled with the wireless charging adapter; 当接收到第二侦测信号时,控制无线充电回路进行连通;其中,所述第二侦测信号表示有线充电接口与有线充电适配器进行了耦接。When the second detection signal is received, the wireless charging loop is controlled to be connected; wherein, the second detection signal indicates that the wired charging interface is coupled with the wired charging adapter. 9.根据所述权利要求8所述的方法,其特征在于,所述方法还包括:9. The method according to claim 8, further comprising: 当同时接到第一侦测信号和第二侦测信号时,根据预设优先级控制无线充电回路连通或有线充电回路连通。When the first detection signal and the second detection signal are received at the same time, the connection of the wireless charging circuit or the connection of the wired charging circuit is controlled according to the preset priority. 10.根据权利要求8或9所述的方法,其特征在于,所述方法还包括:10. The method according to claim 8 or 9, characterized in that the method further comprises: 当检测到无线充电回路处于连通状态或有线充电回路处于连通状态时,根据当前电池电压与目标适配器进行通信以使得所述目标适配器根据所述当前电池电压调节输出功率。When it is detected that the wireless charging loop is in the connected state or the wired charging loop is in the connected state, communicate with the target adapter according to the current battery voltage so that the target adapter adjusts the output power according to the current battery voltage.
CN201611223765.7A 2016-12-26 2016-12-26 A charging circuit, method and terminal Pending CN106786907A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611223765.7A CN106786907A (en) 2016-12-26 2016-12-26 A charging circuit, method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611223765.7A CN106786907A (en) 2016-12-26 2016-12-26 A charging circuit, method and terminal

Publications (1)

Publication Number Publication Date
CN106786907A true CN106786907A (en) 2017-05-31

Family

ID=58927303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611223765.7A Pending CN106786907A (en) 2016-12-26 2016-12-26 A charging circuit, method and terminal

Country Status (1)

Country Link
CN (1) CN106786907A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108347080A (en) * 2018-03-19 2018-07-31 拉斯莱特(深圳)科技有限公司 A kind of charging equipment and system
CN109904898A (en) * 2017-12-08 2019-06-18 隆宸星股份有限公司 Charging system applied to intelligent robot and charging method thereof
CN110783984A (en) * 2019-10-30 2020-02-11 歌尔科技有限公司 Charging box, charging control method thereof and readable storage medium
CN110832735A (en) * 2017-07-06 2020-02-21 高通股份有限公司 Intelligent priority detection for wired and wireless charging
CN111049206A (en) * 2018-10-15 2020-04-21 中兴通讯股份有限公司 Charging control method and device, equipment and storage medium
CN111725858A (en) * 2019-05-19 2020-09-29 华乙半导体(深圳)有限公司 Power adapter and charging method
WO2023029921A1 (en) * 2021-09-02 2023-03-09 华为技术有限公司 Charging method, and electronic apparatus and computer-readable storage medium
WO2023240441A1 (en) * 2022-06-14 2023-12-21 北京小米移动软件有限公司 Charging control method, apparatus and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707384A (en) * 2009-11-25 2010-05-12 中兴通讯股份有限公司 System and method compatible for wired charging and wireless charging
CN103545880A (en) * 2013-09-27 2014-01-29 深圳天珑无线科技有限公司 Wireless charging position calibration method and electronic equipment
CN105656115A (en) * 2015-11-30 2016-06-08 东莞酷派软件技术有限公司 Dual channel charging method, system and terminal thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707384A (en) * 2009-11-25 2010-05-12 中兴通讯股份有限公司 System and method compatible for wired charging and wireless charging
CN103545880A (en) * 2013-09-27 2014-01-29 深圳天珑无线科技有限公司 Wireless charging position calibration method and electronic equipment
CN105656115A (en) * 2015-11-30 2016-06-08 东莞酷派软件技术有限公司 Dual channel charging method, system and terminal thereof

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110832735A (en) * 2017-07-06 2020-02-21 高通股份有限公司 Intelligent priority detection for wired and wireless charging
CN109904898A (en) * 2017-12-08 2019-06-18 隆宸星股份有限公司 Charging system applied to intelligent robot and charging method thereof
CN108347080A (en) * 2018-03-19 2018-07-31 拉斯莱特(深圳)科技有限公司 A kind of charging equipment and system
CN108347080B (en) * 2018-03-19 2024-12-27 拉斯莱特(深圳)科技有限公司 Charging device and system
CN111049206A (en) * 2018-10-15 2020-04-21 中兴通讯股份有限公司 Charging control method and device, equipment and storage medium
CN111725858A (en) * 2019-05-19 2020-09-29 华乙半导体(深圳)有限公司 Power adapter and charging method
CN110783984A (en) * 2019-10-30 2020-02-11 歌尔科技有限公司 Charging box, charging control method thereof and readable storage medium
CN110783984B (en) * 2019-10-30 2023-11-07 歌尔科技有限公司 Charging cartridge, charging control method thereof, and readable storage medium
WO2023029921A1 (en) * 2021-09-02 2023-03-09 华为技术有限公司 Charging method, and electronic apparatus and computer-readable storage medium
WO2023240441A1 (en) * 2022-06-14 2023-12-21 北京小米移动软件有限公司 Charging control method, apparatus and storage medium

Similar Documents

Publication Publication Date Title
CN106786907A (en) A charging circuit, method and terminal
CN106357897B (en) Method and device for acquiring falling information
CN107635069B (en) UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal
CN107613126B (en) UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal
CN107678989B (en) UART and USB multiplexing circuit and mobile terminal
CN106412249A (en) Detection method and device of drop information
CN106357925A (en) Method, device and terminal for switching screen brightness adjusting modes
CN107911861A (en) Power adjustment method and related products
CN106845422B (en) A fingerprint identification module, fingerprint identification method and mobile terminal
CN106340925A (en) A charging control method, device and terminal
CN106534288B (en) A data transmission method and mobile terminal
CN106714103A (en) Network location method and terminal equipment
CN106101776B (en) Volume adjusting method, intelligent device and sound box
CN106484326B (en) Data transmission processing method and mobile terminal
EP3570404B1 (en) Power supply control method and apparatus, storage medium, and electronic device
CN106200970A (en) A kind of method of split screen display available and terminal
CN106446111A (en) Data migration method and terminal
CN106507269A (en) A data migration method and terminal equipment
CN106413070A (en) A power adjustment method and mobile terminal
CN106569916A (en) Data backup method and mobile terminal
CN106453909A (en) A power adjustment method and mobile terminal
CN106686704B (en) Terminal monitoring method and mobile terminal
CN106454953B (en) Flow control method, device and terminal
CN105611445B (en) Recognition methods, device and the mobile terminal of self-shooting bar and self-shooting bar
CN111898542A (en) A display screen control method, device and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531