Disclosure of Invention
The embodiment of the invention provides a charging control circuit, a charging communication circuit and electronic equipment, and aims to solve the problem that the charging safety is low due to the fact that a magnetic type charging interface is not matched with a power supply interface in the charging process of the conventional electronic equipment.
To solve the above problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a charging control circuit, which is applied to a first electronic device, where the first electronic device has a first magnetic-type charging interface, the first magnetic-type charging interface includes a first charging terminal and a first interface terminal, the first magnetic-type charging interface is connectable to a second magnetic-type charging interface of a second electronic device, and the charging control circuit includes a first wireless communication unit, a switch unit, and a control unit;
the first wireless communication unit is connected with the control unit and used for acquiring interface information of a second magnetic-type charging interface of second electronic equipment;
the switching unit is disposed in a charging path between the first charging terminal and the first interface terminal;
the control unit with the switch unit is connected for according to the interface information confirms whether the formula that charges is inhaled to first magnetism with the formula that charges is inhaled to the second magnetism and is inhaled the formula and charge the interface and match, just:
under the condition that the first magnetic attraction type charging interface is matched with the second magnetic attraction type charging interface, the switch unit is controlled to conduct the charging path;
and under the condition that the first magnetic type charging interface is not matched with the second magnetic type charging interface, the switch unit is controlled to be disconnected from the charging path.
In a second aspect, an embodiment of the present invention further provides a charging communication circuit, which is applied to a second electronic device including a second magnetic-type charging interface, where the charging communication circuit includes a second wireless communication unit, and the second wireless communication unit is configured to:
providing interface information of the second magnetic-type charging interface for a first wireless communication unit of first electronic equipment, so that a control unit of the first electronic equipment executes the following steps according to the interface information:
under the condition that a first magnetic-type charging interface of the first electronic device is matched with a second magnetic-type charging interface, controlling a switch unit of the first electronic device to conduct a charging path, wherein the charging path is a path between a charging terminal and an interface terminal of the first electronic device;
and under the condition that the first magnetic type charging interface is not matched with the second magnetic type charging interface, the switch unit is controlled to be disconnected from the charging path.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes the above charging control circuit or the above charging communication circuit.
In a fourth aspect, an embodiment of the present invention further provides a charging control method, which is applied to a first electronic device, where the first electronic device has a first magnetic-type charging interface, first interface information of the first magnetic-type charging interface is preset in the first electronic device, and the first magnetic-type charging interface is connectable to a second magnetic-type charging interface of a second electronic device, and the method includes:
acquiring second interface information of the second magnetic type charging interface;
comparing the second interface information with the first interface information;
under the condition that the first magnetic type charging interface is matched with the second magnetic type charging interface, controlling the switch unit to conduct a charging path of the first magnetic type charging interface;
the first magnetic type charging interface and the second magnetic type charging interface are not matched, and the switch unit is controlled to be disconnected with the charging path of the first magnetic type charging interface.
In the embodiment of the invention, the charging control circuit comprises a first wireless communication unit, a switch unit and a control unit; the first wireless communication unit is connected with the control unit and used for acquiring interface information of a second magnetic-type charging interface of second electronic equipment; the switch unit is arranged in a charging path between the first charging terminal and the first interface terminal; the control unit is connected with the switch unit for it inhales the formula interface that charges and whether the formula interface that charges is inhaled to the second magnetism according to interface information determination first magnetism, just: under the condition that the first magnetic attraction type charging interface is matched with the second magnetic attraction type charging interface, the switch unit is controlled to conduct a charging path; the formula is inhaled to magnetism at first formula interface and the second that charges and is inhaled the unmatched condition of formula interface under, the switch unit disconnection charging path, like this, can reduce because of magnetism the formula charge the interface mismatch and cause the risk of the short circuit that charges that the formula is inhaled, promote the security of charging process.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a charging control circuit and a first magnetic-type charging interface provided in an embodiment of the present invention, and is applied to a first electronic device, where the first electronic device has the first magnetic-type charging interface, as shown in fig. 1, the first magnetic-type charging interface includes a charging terminal 11 and an interface terminal 12, the first magnetic-type charging interface may be connected to a second magnetic-type charging interface of a second electronic device, and the charging control circuit includes a first wireless communication unit 13, a switch unit 14, and a control unit 15;
the first wireless communication unit 13 is connected with the control unit 15 and is used for acquiring interface information of a second magnetic-type charging interface of the second electronic device;
the switching unit is provided in a charging path between the first charging terminal 11 and the first interface terminal 12;
the control unit 15 is connected with the switch unit 14 for it is whether the formula that charges is inhaled with the second magnetism to inhale the formula interface that charges according to the first magnetism of interface information determination, just:
under the condition that the first magnetic attraction type charging interface is matched with the second magnetic attraction type charging interface, the control switch unit 14 is used for conducting a charging path;
under the condition that the first magnetic type charging interface is not matched with the second magnetic type charging interface, the control switch unit 14 disconnects the charging path.
Here, the charging control circuit may acquire interface information of the second magnetic-type charging interface through the first wireless communication unit, and the control unit determines whether the first magnetic-type charging interface is matched with the second magnetic-type charging interface according to the interface information, that is, whether the definition of the first magnetic-type charging interface is the same as that of the second magnetic-type charging interface, and turns on a charging path of the first magnetic-type charging interface when matching, so as to realize normal charging; disconnection first magnetism of inhaling formula when not matching is inhaled the charging path of the interface that charges to when first electronic equipment and second electronic equipment are fit for, can reduce because of magnetism inhale the formula and charge the interface and mismatch and cause the risk of charging the short circuit, promote the security of charging process.
As shown in fig. 2, the second electronic device includes a second magnetic attraction type charging interface, the second magnetic attraction type charging interface is provided with a second charging terminal 21 and a second interface terminal 22, and the second charging terminal 21 and the second interface terminal 22 are connected to form a charging path; in addition, the second electronic device further includes a charging communication circuit, the charging communication circuit includes a second wireless communication unit 23, and the second wireless communication unit 23 is configured to provide interface information of the second magnetic-type charging interface for the first wireless communication unit 13 of the first electronic device.
The first electronic device may be a terminal and the second electronic device may be a charger, or the first electronic device may be a charger and the second electronic device may be a terminal, which is not limited herein.
In this embodiment, the first magnetic-type charging interface may include at least one first charging terminal 11 and at least one first interface terminal 12, at least one charging path may be formed between the at least one first charging terminal 11 and the at least one first interface terminal 12, and the first electronic device and the second electronic device are charged through the at least one charging path.
In some embodiments, the first magnetically-attracted charging interface includes N first charging terminals 11 and N first interface terminals 12, and N charging paths are formed between the N first charging terminals 11 and the N first interface terminals 12, where N is an integer greater than 1;
the switch unit 14 includes N switches, and the N switches are disposed in the N charging paths in a one-to-one correspondence;
the control unit 15 is specifically configured to:
under the condition that the first magnetic type charging interface is matched with the second magnetic type charging interface, controlling N switches to conduct N charging paths;
under the condition that the first magnetic type charging interface and the second magnetic type charging interface are not matched, N switches are controlled to disconnect N charging paths.
Here, in the case that the first magnetic-type charging interface includes a plurality of charging paths, the switch is disposed on each charging path, and the control unit can simultaneously control all the switch actions to turn on and off the plurality of charging paths, so that the risk of occurrence of a charging short circuit can be further reduced.
Of course, when the first magnetic attraction type charging interface includes the N first charging terminals 11 and the N first interface terminals 12, the switch may be provided only in a part of the N charging paths, and the configuration is not limited herein.
In addition, the first magnetic Type charging interface and the second magnetic Type charging interface can be improved based on any Type of Universal Serial Bus (USB) interface, for example, the first magnetic Type charging interface and the second magnetic Type charging interface can be based on one of Mini USB, micro USB, Type-C USB, and the like.
In some embodiments, the N first charging terminals 11 include a power supply terminal, a positive data terminal, a negative data terminal, and a ground terminal, that is, the first magnetic-type charging interface is a charging interface improved on the basis of micro USB, so that protection of the micro USB-based charging circuit can be achieved.
In this embodiment, the switch may be a component that controls the conduction or the disconnection of the charging path where the switch is located, for example, the switch may be a component composed of at least two single-pole single-throw switches, and the like.
Specifically, a first terminal of the switch is connected with a first charging terminal 11 of a charging path where the switch is located, a second terminal of the switch is connected with a first interface terminal 12 of the charging path where the switch is located, and a third terminal of the switch is suspended or grounded, that is, the switch is a single-pole double-throw switch, so that the conduction of the charging path where the switch is located can be realized by controlling the communication between the first terminal and the second terminal of the switch under the condition that the first magnetic attraction type charging interface is matched with the second magnetic attraction type charging interface; and inhale the formula at first magnetism and inhale the unmatched condition of the formula interface that charges with the second magnetism, can realize the disconnection of its place charging path through control switch's first terminal and third terminal intercommunication, simple structure and easily realization.
In this embodiment, the control unit determines whether the first magnetic-type charging interface is matched with the second magnetic-type charging interface according to the interface information, may compare the acquired interface information (referred to as second interface information) of the second magnetic-type charging interface with interface information (referred to as first interface information) preset in the electronic device, and determines that the first magnetic-type charging interface is matched with the second magnetic-type charging interface when the second interface information is matched with the first interface information (may be consistent); and under the condition that the second interface information is not matched with the first interface information (can be inconsistent), determining that the first magnetic-type charging interface is not matched with the second magnetic-type charging interface.
In addition, the charging control circuit can communicate with a second wireless communication unit of a second magnetic-type charging interface through a first wireless communication unit and acquire interface information of the second magnetic-type charging interface, wherein the first wireless communication unit and the second wireless communication unit can be any components capable of realizing the process.
In some embodiments, the first wireless Communication unit may include at least one of Near Field Communication (NFC) and bluetooth modules, etc., thereby diversifying the manner of the first wireless Communication unit.
It should be noted that, when the first wireless communication unit 13 includes NFC, the second wireless communication unit 23 also includes NFC, and when the NFC of the first wireless communication unit 13 and the NFC of the second wireless communication unit 23 are close to each other, the NFC of the first wireless communication unit 13 may acquire a mutual inductance value (i.e., interface information) between the NFC of the first wireless communication unit 13 and the NFC of the second wireless communication unit 23, and the control unit compares the acquired mutual inductance value with a preset mutual inductance value, and when the mutual inductance value and the preset mutual inductance value are determined to be the same or close to each other, determines that the first magnetic-type charging interface and the second magnetic-type charging interface are matched; otherwise, the first magnetic type charging interface is determined to be matched with the second magnetic type charging interface.
Of course, in the case that the first wireless communication unit 13 includes NFC, the first wireless communication unit 13 may further include other components, for example, the first wireless communication unit 13 may further include a coil for NFC communication, and the like, which is not limited herein.
In addition, in the case that the first wireless communication unit 13 includes a bluetooth module, the second wireless communication unit 23 includes a bluetooth module and a memory, and the memory stores interface information of the second magnetic-type charging interface (i.e. the second interface information), for example, the interface information may be preset identification (Identity, ID) information; when the first magnetic type charging interface is close to the second magnetic type charging interface, the Bluetooth module of the first magnetic type charging interface is matched with the Bluetooth module of the second magnetic type charging interface, and when the matching is successful, the Bluetooth module of the second magnetic type charging interface sends interface information to the Bluetooth module of the first magnetic type charging interface, the control unit of the second magnetic type charging interface matches the acquired interface information with preset interface information (namely the first interface information), and when the first magnetic type charging interface is matched with the second magnetic type charging interface, the first magnetic type charging interface is determined to be matched with the second magnetic type charging interface; otherwise, the first magnetic type charging interface is determined to be matched with the second magnetic type charging interface.
In some embodiments, the charging control circuit may further include a detection unit 16, the detection unit 16 is connected to the charging path and the control unit 15, and is configured to detect a current and/or a voltage of the charging path;
the control unit 15 is specifically configured to: when the switching unit 14 turns on the charging path, if the current and/or voltage of the charging path is zero, the switching unit 14 is controlled to turn off the charging path.
Here, the charging control circuit can detect the current and/or voltage of the charging path through the detection unit 16, and the control unit 15 can timely control the switch unit 14 to disconnect the charging path when the current and/or voltage of the charging path is zero, so that the charging path of the first magnetic attraction charging interface is set to be in a disconnected state under the condition that the first magnetic attraction charging interface is not close to the second magnetic attraction charging interface, thereby reducing the risk of short circuit of the charging circuit during next charging.
In addition, when the charging control circuit includes N charging paths, the detecting unit may detect voltages and/or currents of some or all of the N charging paths, and is not limited herein.
In some embodiments, in a case where the first electronic device includes a power supply terminal, the detection unit is connected to a charging path in which the power supply terminal is located, thereby making a circuit configuration simpler while ensuring accurate detection.
Here, the first magnetic-type charging interface of the terminal is provided with a charging end and an interface end, the charging end includes a power terminal VBUS, a data positive terminal DP, a data negative terminal DM, and a ground terminal GND, and the interface end includes 4 interface terminals 30 that can be in one-to-one communication with VBUS, DP, DM, and GND, that is, the first electronic device realizes charging through 4 charging paths between the charging end and the interface end, wherein the charging control circuit of the terminal includes a processor 31 (i.e., a control unit), NFC, a first coil 32, a current detection unit 33, and 4 single-pole double-throw switches K disposed in the 4 charging paths, and a terminal 1 of each single-pole double-throw switch K is suspended and a terminal 2 is communicated with the interface terminal;
in addition, as shown in fig. 4, the second magnetic-type charging interface of the charger includes a charging terminal, an interface terminal, and a charging communication circuit including NFC and the second coil 41;
when the first magnetic-type charging interface and the second magnetic-type charging interface are close to each other, the processor 31 can determine whether the first magnetic-type charging interface and the second magnetic-type charging interface are matched according to the mutual inductance value of the NFC between the first magnetic-type charging interface and the second magnetic-type charging interface, and when the first magnetic-type charging interface and the second magnetic-type charging interface are matched, the processor 31 controls the movable ends of the 4 single-pole double-throw switches K to be communicated with the terminal 2, so that all charging paths are conducted, and then a charging handshake protocol;
when the user separates the first magnetic-type charging interface from the second magnetic-type charging interface, for example, the user unplugs the charging line when the terminal is fully charged, the current detection unit 33 detects that the charging path of VBUS has no circuit, and notifies the processor 31, and the processor 31 controls the moving end of the single-pole double-throw switch K to be switched to be communicated with the terminal 1, so that each charging path is disconnected.
In the embodiment of the invention, the charging control circuit comprises a first wireless communication unit, a switch unit and a control unit; the first wireless communication unit is connected with the control unit and used for acquiring interface information of a second magnetic-type charging interface of second electronic equipment; the switch unit is arranged in a charging path between the first charging terminal and the first interface terminal; the control unit is connected with the switch unit for it inhales the formula interface that charges and whether the formula interface that charges is inhaled to the second magnetism according to interface information determination first magnetism, just: under the condition that the first magnetic attraction type charging interface is matched with the second magnetic attraction type charging interface, the switch unit is controlled to conduct a charging path; the formula is inhaled to magnetism at first formula interface and the second that charges and is inhaled the unmatched condition of formula interface under, the switch unit disconnection charging path, like this, can reduce because of magnetism the formula charge the interface mismatch and cause the risk of the short circuit that charges that the formula is inhaled, promote the security of charging process.
As shown in fig. 2, which is a schematic structural diagram of a charging communication circuit according to an embodiment of the present invention cooperating with a second magnetic-type charging interface, the charging communication circuit is applied to a second electronic device including the second magnetic-type charging interface, as shown in fig. 2, the charging communication circuit includes a second wireless communication unit, and the second wireless communication unit is configured to:
providing interface information of the second magnetic-type charging interface for the first wireless communication unit of the first electronic device, so that the control unit of the first electronic device executes the following steps according to the interface information:
under the condition that a first magnetic attraction type charging interface of first electronic equipment is matched with a second magnetic attraction type charging interface, controlling a switch unit of the first electronic equipment to conduct a charging path, wherein the charging path is a path between a charging terminal and an interface terminal of the first electronic equipment;
under the unmatched condition of the first magnetic type interface that charges and the second magnetic type interface that charges, the control switch unit breaks off the charging path.
Optionally, the second wireless communication unit includes at least one of:
an NFC module;
the Bluetooth module and the memorizer connected with the Bluetooth module, and the memorizer is used for storing the interface information.
It should be noted that the charging communication circuit according to the embodiment of the present invention is a charging communication circuit corresponding to the above embodiment, and specific implementations thereof can be described in relation to the above embodiment and can achieve the same beneficial effects, and therefore, in order to avoid repeated descriptions, the details are not repeated herein.
Based on the charging control circuit and the charging communication circuit, an embodiment of the present invention further provides an electronic device, which includes the charging control circuit or the charging communication circuit.
Optionally, the electronic device is a terminal or a charger.
Since the structure of the electronic device body is the prior art, and the charging control circuit and the charging communication circuit have been described in detail in the above embodiments, details of the structure of the electronic device in this embodiment are not repeated.
As shown in fig. 5, an embodiment of the present invention further provides a charging control method, where the charging control method is applied to a first electronic device, and the first electronic device has a first magnetic-type charging interface, first interface information of the first magnetic-type charging interface is preset in the first electronic device, and the first magnetic-type charging interface is connectable to a second magnetic-type charging interface of a second electronic device, and the method includes the following steps:
step 501, acquiring second interface information of the second magnetic-type charging interface;
step 502, comparing the second interface information with the first interface information;
step 503, controlling the switch unit to conduct a charging path of the first magnetic attraction type charging interface under the condition that the first magnetic attraction type charging interface is matched with the second magnetic attraction type charging interface;
and step 504, under the condition that the first magnetic type charging interface is not matched with the second magnetic type charging interface, controlling the switch unit to disconnect the charging path of the first magnetic type charging interface.
The obtaining of the second interface information of the second magnetic-type charging interface may be that the second wireless communication unit of the second electronic device sends the second interface information to the first electronic device, and the first electronic device receives the second interface information through the first wireless communication unit of the first electronic device. For example, when the bluetooth module of the first electronic device (i.e., the first wireless communication unit in the above-described embodiment) is successfully matched with the bluetooth module of the second electronic device (i.e., the second wireless communication unit in the above-described embodiment), the bluetooth module of the second electronic device sends the second interface information to the bluetooth module of the first electronic device, and so on.
In addition, the comparing of the second interface information with the first interface information may be to determine that the first magnetic-type charging interface is matched with the second magnetic-type charging interface when the first interface information is the same as the second interface information; and under the condition that the first interface information and the second interface information are different, determining that the first magnetic type charging interface is not matched with the second magnetic type charging interface.
The charging path of the first magnetic attraction type charging interface may be one or more charging paths for charging with the second magnetic attraction type charging interface, for example, the first magnetic attraction type charging interface may include N charging paths in the above embodiment.
In this embodiment, second interface information of the second magnetic-type charging interface is acquired; comparing the second interface information with the first interface information; under the condition that the first magnetic type charging interface is matched with the second magnetic type charging interface, controlling the switch unit to conduct a charging path of the first magnetic type charging interface; first magnetism inhale the formula interface that charges with the second magnetism is inhaled the unmatched condition of formula interface that charges and is controlled the disconnection of switch unit first magnetism inhales the charge path of formula interface that charges to can reduce because of magnetism inhale the formula and charge the risk that the interface mismatch caused the short circuit that charges that the formula unmatched, promote the security of charging process.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.