CN109768594B - Charging method, terminal and charging assembly - Google Patents

Charging method, terminal and charging assembly Download PDF

Info

Publication number
CN109768594B
CN109768594B CN201910016722.9A CN201910016722A CN109768594B CN 109768594 B CN109768594 B CN 109768594B CN 201910016722 A CN201910016722 A CN 201910016722A CN 109768594 B CN109768594 B CN 109768594B
Authority
CN
China
Prior art keywords
charging
terminal
state
assembly
charging assembly
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910016722.9A
Other languages
Chinese (zh)
Other versions
CN109768594A (en
Inventor
郭子
石仟华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Onething Technology Co Ltd
Original Assignee
Shenzhen Onething Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN201910016722.9A priority Critical patent/CN109768594B/en
Publication of CN109768594A publication Critical patent/CN109768594A/en
Application granted granted Critical
Publication of CN109768594B publication Critical patent/CN109768594B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

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

Abstract

The invention discloses a charging method and a terminal, wherein the charging method is applied to a chargeable terminal with a charging interface, and comprises the following steps: detecting the state of a charging assembly, wherein the charging assembly is in communication connection with a terminal through a charging interface, the state of the charging assembly comprises a first state and a second state, the charging assembly establishes the electrical connection between the terminal and an external power supply in the first state to charge the terminal, and the charging assembly disconnects the electrical connection between the terminal and the external power supply in the second state to terminate charging of the terminal; detecting the current electric quantity of the terminal; and sending a corresponding control instruction to the charging assembly according to the state of the charging assembly and the current electric quantity of the terminal so as to control the charging assembly to enter the first state or the second state.

Description

Charging method, terminal and charging assembly
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a charging method, a terminal, and a charging component.
Background
Existing terminal devices (e.g., tablet computers, mobile phones, etc.) typically require an external power source to charge their batteries. The existing terminal generally adopts the following operations in the charging method: the charging interface is plugged with an external power supply charging plug to receive electric energy input by an external power supply for charging; after the terminal is fully charged, the user needs to remove the charging plug from the charging interface to disconnect the terminal from the external power supply, and the terminal is charged. However, after the terminal device is fully charged, the user often cannot find the terminal device to be disconnected from the external power source in time, so that the terminal device is still continuously charged after being fully charged, that is, the terminal device is overcharged, and the battery of the terminal device is easily damaged.
Disclosure of Invention
The invention mainly aims to provide a charging method, a terminal and a charging assembly, and aims to solve the technical problem that the terminal is damaged due to overcharge.
In order to achieve the above object, the present invention provides a charging method applied in a rechargeable terminal having a charging interface, the charging method comprising:
detecting a state of a charging assembly, wherein the charging assembly is in communication connection with the terminal through the charging interface, the state of the charging assembly comprises a first state and a second state, the charging assembly establishes an electrical connection between the terminal and an external power supply in the first state to charge the terminal, and the charging assembly disconnects the electrical connection between the terminal and the external power supply in the second state to terminate charging of the terminal;
detecting the current electric quantity of the terminal;
and sending a corresponding control instruction to the charging assembly according to the state of the charging assembly and the current electric quantity of the terminal so as to control the charging assembly to enter the first state or the second state.
Preferably, the controlling instruction includes a termination instruction, and the sending a corresponding controlling instruction to the charging assembly according to the state of the charging assembly and the current electric quantity of the terminal to control the charging assembly to enter the first state or the second state specifically includes:
and when the charging assembly is in a first state and the current electric quantity of the terminal reaches a preset limit over-charging amount, sending a termination instruction to the charging assembly so as to control the charging assembly to be switched to a second state.
Preferably, the control instruction includes a charging instruction, and the method sends a corresponding control instruction to the charging assembly according to the state of the charging assembly and the current electric quantity of the terminal, and specifically includes:
and when the charging assembly is in the second state and the current electric quantity of the terminal is lower than the preset limit over-charging amount, sending the charging instruction to the charging assembly so as to control the charging assembly to be switched to the first state.
Preferably, the method further comprises:
and when the current electric quantity of the terminal is lower than a preset limit low electric quantity, outputting a charging prompt, wherein the preset limit low electric quantity is lower than the preset limit over-charging quantity.
Preferably, before detecting the state of the terminal, the method further includes:
detecting whether a charging communication request transmitted by the charging assembly is received, the communication request being transmitted by the charging assembly when electrically connected to the terminal and received through the charging interface;
and if the charging communication request is received, responding to the charging communication request and establishing communication connection with the charging assembly so as to communicate with the charging assembly.
Preferably, before detecting whether the charging communication request sent by the charging component is received, the method further includes:
displaying the charging function icon on a main interface for a user to select, wherein the main interface is a user graphical interface displayed when the terminal is started;
and if the user selects the charging function icon, executing the detection whether a charging communication request sent by the charging assembly is received.
Preferably, the method further comprises:
displaying a charging interface for a user to input a setting instruction;
if a setting instruction is received, responding to the setting instruction and outputting a setting interface for a user to input limit electric quantity, wherein the limit electric quantity comprises the preset limit over-charge quantity and/or the preset limit low electric quantity;
and if the limit electric quantity input by the user is received, setting the preset limit over-charging amount and/or the preset limit low electric quantity according to the limit electric quantity input by the user.
Preferably, before the method displays the charging interface, the method further comprises:
displaying the charging function icon on a main interface for a user to select, wherein the main interface is a user graphical interface displayed when the terminal is started;
and if the user selects the charging function icon, displaying the charging interface.
Preferably, the detecting the state of the charging assembly specifically includes:
detecting whether the battery is charged or not;
if the charging assembly is charged, detecting that the state of the charging assembly is a first state;
and if the charging assembly is not charged, detecting that the state of the charging assembly is a second state.
To achieve the above object, the present invention further provides a terminal, which includes a first memory and a first processor, wherein the first memory stores a first computer-executable program, and the first processor is configured to execute the first computer-executable program to implement the charging method.
To achieve the above object, the present invention further provides a charging method performed in a charging assembly, the charging assembly including a charging plug, the charging method including:
detecting a control instruction sent by a terminal, wherein the terminal is a chargeable terminal with a charging interface, the charging plug is matched with the charging plug, and the terminal and the charging assembly are in communication connection with the terminal through the charging interface; the control instruction is used for controlling the state of the charging assembly; the states of the charging assembly include a first state in which the charging assembly establishes an electrical connection between the terminal and an external power source to charge the terminal, and a second state in which the charging assembly breaks the electrical connection between the terminal and the external power source to terminate charging of the terminal;
and responding to the detected control command, and entering the first state or the second state correspondingly.
Preferably, the control instruction includes a termination instruction, and when the termination instruction is sent by the terminal when the charging assembly is in the first state and the current electric quantity of the terminal reaches a preset limit overcharge amount, the responding to the detected control instruction correspondingly enters the first state or the second state, specifically including:
and entering the second state in response to the termination instruction.
Preferably, the control instruction includes a charging instruction, and when the power termination instruction is sent by the terminal when the charging assembly is in the second state and the current electric quantity of the terminal is lower than the preset limit over-charging amount, the entering the first state or the second state in response to the detected control instruction, specifically includes:
and responding to the charging instruction, and entering the first state.
Preferably, in response to the detected control instruction, entering the first state or the second state correspondingly specifically includes:
controlling a state of an electronic switch in response to the detected control command to enter the first state or the second state, respectively, the electronic switch being disposed in the charging assembly, the electronic switch including a conducting state and a disconnecting state, the electronic switch establishing an electrical connection between the external power source and the terminal in the conducting state; the electronic switch cuts off the electrical connection between the external power source and the terminal in the cut-off state.
Preferably, the electronic switch is in a conducting state in an initial state.
Preferably, the charging method further includes, in detecting a control instruction sent by the terminal:
when the terminal is electrically connected with the charging interface, a communication request is sent to the terminal through the charging interface;
and acquiring response information of the terminal responding to the communication request through the charging interface, and establishing communication connection with the terminal so as to communicate with the terminal.
To achieve the above object, the present invention further provides a charging assembly, which includes a second memory, and a second processor, where the second memory stores a second computer-executable program, and the second processor is configured to execute the second computer-executable program to implement the charging method.
According to the invention, the state of the charging assembly and the current electric quantity of the terminal are detected, and the corresponding control instruction is sent to the charging assembly according to the state of the charging assembly and the current electric quantity of the terminal, so that the charging assembly is controlled to enter the first state or the second state, and the terminal is further controlled to stop charging, and the problem that the terminal is damaged due to overcharge is prevented.
Drawings
Fig. 1 is a schematic flowchart of a terminal-based charging method according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of an operating environment of a charging method provided by the present invention;
fig. 3 is a schematic flowchart of a charging method based on a terminal according to a second embodiment of the present invention;
fig. 4 is a flowchart illustrating a charging method based on a terminal according to a third embodiment of the present invention;
FIG. 5 is a schematic diagram of a graphical user interface provided by the first embodiment of the present invention;
FIGS. 6a to 6c are schematic diagrams of a flow chart of a terminal-based charging method according to a fourth embodiment of the present invention;
fig. 7 is a flowchart illustrating a charging method based on a terminal according to a fifth embodiment of the present invention;
fig. 8 is a flowchart illustrating a terminal-based charging method according to a sixth embodiment of the present invention;
fig. 9 is a schematic flowchart of a charging method based on a charging assembly according to a seventh embodiment of the present invention;
fig. 10 is a schematic flowchart of a charging method based on a charging system according to a first embodiment of the present invention, where the charging system includes a charging assembly and a terminal;
fig. 11 is a schematic internal structure diagram of a terminal according to a first embodiment of the present invention;
fig. 12 is a schematic internal structure diagram of a charging assembly according to a first embodiment of the disclosure.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Referring to fig. 1 and fig. 2, fig. 1 is a flowchart illustrating a charging method performed in a terminal 100 according to a first embodiment. Fig. 2 is an environmental schematic diagram of the operation of the charging method. The terminal 100 is a chargeable terminal having a charging interface 10. The terminal 100 may be electrically plugged with the charging assembly 200 through the charging interface 10 to access the external power source 300. The charging assembly 200 includes a charging plug 20 that is mated with the charging interface 10 and is configured to electrically plug into the charging interface 10. In some possible embodiments, the charging assembly 200 is electrically connected to the external power source 300 through an external transmission line 400. In other possible embodiments, the charging assembly 200 integrates the transmission line 400 and is electrically connected to the external power source 300 through the transmission line 400. The charging interface 10 may be, but is not limited to, a USB interface, such as a Micro USB interface, a USB Type C interface, and a Lightning interface.
When the terminal 100 executes the charging method, the on/off between the charging assembly 200 and the external power supply 300 may be controlled according to the electric quantity of the terminal 100, so as to electrically connect the terminal 100 with the external power supply 300 or electrically disconnect the terminal 100 from the external power supply 300, thereby enabling the terminal 100 to realize charging or terminate charging. In one embodiment, the method includes the following steps.
In step S101, the state of the charging assembly 200 is detected. Wherein, the charging assembly 200 establishes a communication connection with the terminal 100 through the charging interface 10. The states of the charging assembly 200 include a first state and a second state. The charging assembly 200 establishes an electrical connection between the terminal 100 and the external power source 300 in the first state to charge the terminal 100. The charging assembly 200 disconnects the electrical connection between the terminal 100 and the external power source 300 in the second state to terminate charging of the terminal 100. It is to be understood that the charging assembly 200 is in the first state, and the terminal 100 is in the charging state. In the second state of the charging assembly 200, the terminal 100 is in a non-charging state. In the present embodiment, whether the charging assembly 200 is detected to be in the first state or the second state may be determined by detecting whether the terminal 100 is charged or uncharged. Specifically, step S101 may include: detecting whether charging or not charging; if charging, detecting that the state of the charging assembly 200 is a first state; if not, the state of the charging assembly 200 is detected as the second state. In other possible embodiments, the terminal 100 may further obtain status information sent by the electronic component 200 to detect whether the charging component 200 is in the first state or the second state, where the status information is used to indicate the current state of the charging component 200.
Step S102, detecting the current power of the terminal 100. The current power of the terminal 100 can be obtained by detecting the battery capacity of the terminal 100. The current amount of power may be expressed in percentage, for example, the current amount of power may be 80%, 100%, etc. Detecting the current power of the terminal 100 can determine whether the terminal 100 needs to be charged.
Step S103, sending a corresponding control command to the charging assembly 200 according to the state of the charging assembly 200 and the current electric quantity of the terminal 100, so as to control the charging assembly 200 to enter the first state or the second state. In the above embodiment, the state of the charging component 200 may be detected to determine that the terminal 100 is in the charging state or the non-charging state, and whether the terminal 100 needs to be charged is determined by detecting the current power of the terminal 100, so as to control the charging component 200 to enter the first state or the second state, that is, to charge or not charge the terminal 100, thereby preventing the terminal 100 from being overcharged.
Specifically, in this step, the control instruction includes a termination instruction and a charging instruction. When the charging assembly 200 is in the first state and the current electric quantity of the terminal 100 reaches the preset limit over-charging amount, a termination instruction is sent to the charging assembly 200 to control the charging assembly 200 to switch to the second state. The limit overcharge amount is set according to the amount of charge of the battery, which is set at 100% in the present embodiment. In some possible embodiments, it may also be set to 95%, 96%, 97%, 98%, 99%, etc. It is to be understood that when the charging assembly 200 is in the first state and the current charge of the terminal 100 (the terminal 100 is in the charging state) reaches the preset limit overcharge amount, the charging of the terminal 100 is terminated, thereby preventing the battery of the terminal 100 from being overcharged.
When the charging assembly 200 is in the second state and the current electric quantity of the terminal 100 is lower than the preset limit over-charging amount, a charging instruction is sent to the charging assembly 200 to control the charging assembly 200 to switch to the first state. It is understood that the terminal 100 is charged when the charging assembly 200 is in the second state and the current charge of the terminal 100 (the terminal 100 is in the non-charging state) is lower than the preset limit overcharge amount. For example, after the terminal 100 is fully charged and the charging is terminated, the terminal 100 is still electrically connected to the charging assembly 200, and the terminal 100 is recharged when the power of the terminal 100 is lower than the limit overcharge amount. Thus, the power of the terminal 100 of the user can always reach a better power state.
Please refer to fig. 3, which is a flowchart illustrating a charging method according to a second embodiment. The charging method of the second embodiment is different from the charging method of the first embodiment in that the charging method of the second embodiment further includes:
in step S305, if the current power of the terminal 100 is lower than a preset limit low power, a charging prompt is output, where the preset limit low power is lower than the preset limit over-charging amount. In the present embodiment, the limit low power may be set to 20%, 10%, or the like.
The above-mentioned embodiment can prompt the user to charge when the terminal 100 is in a low power state, so as to prevent the battery performance of the terminal 100 from being affected by the low power state of the terminal 100.
Please refer to fig. 4, which is a flowchart illustrating a charging method according to a third embodiment. The charging method of the third embodiment is different from the charging method of the first embodiment in that the charging method of the third embodiment further includes the following steps before the step of detecting the state of the charging assembly 200.
In step S401, it is detected whether a charging communication request transmitted by the charging assembly 200 is received, the communication request being transmitted by the charging assembly 200 when electrically connected to the terminal 100 and received through the charging interface 10. Where it is implemented based on the communication protocol of the charging interface. For example, if the charging interface 10 is a USB interface, the step is implemented based on an AOA Protocol (Android Open access Protocol, open Accessory Protocol) of the USB interface. The charging communication request includes related information for calling the charging method.
In step S403, if the communication request is received, a communication connection is established with the charging assembly 200 in response to the charging communication request to communicate with the charging assembly 200. In this step, the terminal 100 receives the charging communication request, and sends corresponding response information in response to the charging communication request to establish a communication connection with the charging assembly 200.
In the above embodiment, the terminal 100 establishes the communication connection with the charging component 200 by using the protocol of the charging interface 10, and the charging method can be quickly executed.
Please refer to fig. 5, which is a flowchart illustrating a charging method according to a fourth embodiment. The charging method of the fourth embodiment is different from the charging method of the third embodiment in that: the charging method of the first embodiment further includes the following steps before detecting whether a charging communication request transmitted by the charging component 200 is received.
In step S501, a charging function icon 1520 is displayed on the main interface 152 for the user to select, and the main interface 152 is a graphical user interface displayed when the terminal 100 is powered on (see fig. 6 a). In this step, in some possible embodiments, the user may select to enter the charging function icon 1520 using an input device, e.g., a keyboard, a mouse. In some possible embodiments, the display 15 may be a touch screen. The user may also click the charge function icon 1520 through an external touch object, e.g., a finger, a stylus, etc.
In step S503, if the user selects the charging function icon 1520, the detection is performed to detect whether the charging communication request sent by the charging assembly 200 is received.
In the above embodiment, whether the charging method needs to be enabled may also be selected by the user.
Please refer to fig. 7, which is a flowchart illustrating a charging method according to a fifth embodiment. The chargeable terminal 100 further includes a display 15. The charging method of the fifth embodiment is different from the charging method of the first embodiment in that the charging method of the fourth embodiment further includes the following steps.
In step S701, the charging interface 150 is displayed on the display 15 for the user to input a setting instruction. As shown in fig. 6b, in this step, the charging interface 150 provides a setup option 1502 for selection by the user. In some possible embodiments, the user may select to input the setting instruction using an input device, for example, a keyboard, a mouse. In some possible embodiments, the display 15 may be a touch screen. The user may also click on the setting option 152 via an external touch object, e.g., a finger, a stylus, etc., to input a setting instruction. In the present embodiment, the charging interface 150 is displayed when the terminal 100 is charged.
In step S703, if a setting instruction is received, the setting interface 151 is output in response to the setting instruction for the user to input a limit electric quantity, where the limit electric quantity includes a preset limit over-charge quantity and/or a preset limit low electric quantity (as shown in fig. 6 c). In this step, the setting interface 151 provides a first filling frame 1510 corresponding to the preset limit overcharge amount and a second filling frame 1512 corresponding to the preset limit low charge amount for the user to input corresponding values through the external input device.
Step S705, if the user input limit electric quantity is received, setting the preset limit over-charge amount and/or the preset limit low electric quantity according to the user input limit electric quantity.
According to the embodiment, the user is allowed to set the limit overcharge amount and/or the preset limit low electricity amount according to the requirement, a setting interface is correspondingly provided, friendly man-machine interaction is realized, and the user experience is enhanced.
Please refer to fig. 8, which is a flowchart illustrating a charging method according to a sixth embodiment. The charging method of the sixth embodiment is different from the charging method of the fifth embodiment in that: the charging method of the sixth embodiment further includes the following steps before displaying the charging interface.
In step S801, a charging function icon 1520 is displayed on the main interface 152 for the user to select (see fig. 6 a). The main interface 152 is a graphical user interface displayed when the terminal 100 is powered on. The user may select the charge function icon 1520 in the manner described above.
In step S803, if the user selects the charging function icon 1520, the charging interface 150 is displayed.
In the above embodiment, the user may also select whether the charging interface 150 needs to be opened.
Please refer to fig. 9, which is a flowchart illustrating a charging method performed by the charging assembly 200 according to the first embodiment. Specifically, the charging method includes the following steps.
In step S901, a control command transmitted by the terminal 100 is detected. In this step, the terminal 100 and the charging assembly 200 establish a communication connection with the terminal 100 through the charging plug 20. The control instructions are used to control the state of the charging assembly 200. The states of the charging assembly 200 include a first state and a second state. The charging assembly 200 establishes an electrical connection between the terminal 100 and the external power source 300 in the first state to charge the terminal 200. The charging assembly 200 disconnects the electrical connection between the terminal 200 and the external power source 300 in the second state to terminate charging of the terminal 200.
Step S903, in response to the detected control command, correspondingly enters the first state or the second state. In the above embodiment, the charging assembly 200 may enter the first state or the second state according to a control instruction of the terminal 200 to control charging the terminal 200 or terminate charging, so that the terminal 100 may be prevented from being overcharged.
Specifically, the control command includes a termination command and a charging command. The termination command is sent by the terminal 100 when the charging assembly 200 is in the first state and the current charge of the terminal 100 reaches a preset limit overcharge amount. The charging assembly 200 enters the second state in response to the termination command. The charging instruction is sent by the terminal 100 when the charging assembly 200 is in the second state and the current charge of the terminal 100 reaches below the preset limit overcharge amount. The charging assembly 200 enters the first state in response to the charging command.
In this embodiment, the charging assembly 200 further comprises an electronic switch 23. The charging assembly 200 is electrically connected to an external power source 300 through the electronic switch 23. The electronic switch 23 includes an on state and an off state. When the electronic switch 23 is in the on state, the charging assembly 200 electrically connects the external power source 300 to the terminal 100. When the electronic switch 23 is in the off state, the charging assembly 200 cuts off the electrical connection of the external power source 300 to the terminal 100. It will be appreciated that the charging assembly 200 enters the first state or the second state, respectively, by controlling the state of the electronic switch 23.
In the present embodiment, the electronic switch 101 is in a conducting state in the initial state, that is, when the charging assembly 200 is connected to the external power source 300 through the transmission line 400 in the initial state, the charging assembly 200 is electrically connected to the external power source 300. It is understood that when the charging assembly 200 is in the second state, if the communication connection between the charging assembly 200 and the terminal 100 is disconnected (the charging assembly 200 is separated from the terminal 100), the charging assembly 200 is switched to the first state.
Please refer to fig. 10, which is a flowchart illustrating a charging method applied to a charging system according to a first embodiment of the present invention. The charging system includes a terminal 100 and a charging assembly 200. In the present embodiment, the charging assembly 200 is electrically connected to the external power source 300. The terminal 100 and the charging assembly 200 are electrically connected through the charging interface 10 and the charging plug 20. At this time, the charging assembly 200 is in the first state.
In step S1001, the charging component 200 transmits a charging communication request to the terminal 100.
In step S1002, the terminal 100 transmits response information to the charging assembly 200 in response to the charging communication request.
In step S1003, when the charging assembly 200 receives the response message, the terminal 100 and the charging assembly 200 establish a communication connection.
In step S1004, the terminal 200 detects the state of the charging assembly 200, and at this time, the detected state of the charging assembly 200 is the first state.
In step S1005, the terminal 200 detects the current power amount.
In step S1006, when the electric quantity of the terminal 200 reaches the preset limit over-charging amount, a termination command is sent to the charging assembly 200.
In step S1007, the charging assembly 200 switches to the second state in response to the termination command.
In step S1008, when the charging assembly 200 is in the second state and the current electric quantity of the terminal 100 is lower than the preset limit over-charging amount, the terminal 100 sends a charging command to the charging assembly 200.
In step S1009, the charging assembly 200 switches to the first state in response to the charging command.
In step S1010, when the charging assembly 200 is in the second state and the terminal 100 is detected to be disconnected from the communication, the charging assembly 200 switches to the first state in response to the charging command.
Please refer to fig. 1 and fig. 11 in combination, wherein fig. 11 is a schematic diagram of an internal structure of a terminal 100 according to a first embodiment of the present invention. The terminal 100 includes a charging interface 10, a first memory 11, a second processor 12, a first bus 13, and a display 15.
The first memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The first memory 11 may in some embodiments be an internal storage unit of the terminal 1, e.g. a hard disk of the terminal 100. The first memory 11 may also be an external storage device of the terminal 100 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the terminal 100. Further, the first memory 11 may also include both an internal storage unit and an external storage device of the terminal 100. The first memory 11 may be used not only to store application software installed in the terminal 100 and various types of data, such as a code of the first computer-executable program 01, but also to temporarily store data that has been output or is to be output.
The first processor 12 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data Processing chip in some embodiments, and is used for executing the program codes stored in the first memory 11 or Processing data, such as executing the program 01.
The first bus 13 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 10, but this is not intended to represent only one bus or type of bus.
The charging interface 10 may be a USB interface, and is generally used for receiving power from the external power source 400 for charging or data transmission.
Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display component or display unit, is used, among other things, to display information processed in the terminal 100 and to display a visual user interface.
Fig. 11 shows only the terminal 100 with the components 10-15 and the first computer-executable program 01, and those skilled in the art will appreciate that the structure shown in fig. 11 does not constitute a limitation of the terminal, and may include fewer or more components than those shown, or some of the components may be combined, or a different arrangement of components.
The first memory 11 is used for storing an executable program. The first processor 12 is configured to execute a first computer executable program 01 to implement the charging method described above.
Referring to fig. 1 and 12 in combination, fig. 12 is a schematic diagram of an internal structure of a charging assembly 200 according to a first embodiment of the present invention. The charging assembly 200 includes a charging plug 20, a second memory 21, and a second processor 22.
The second memory 21 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The second memory 21 may be an internal storage unit of the second memory 21 in some embodiments. The second memory 21 is used for storing codes and the like of the second computer-executable program 02, and may also be used for temporarily storing data that has been output or is to be output.
The second processor 22 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip in some embodiments, and is used for executing the program codes stored in the second memory 21 or Processing data, such as executing the second computer execution program 02.
The second bus 24 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 12, but this is not intended to represent only one bus or type of bus.
The charging plug 20 may be selected as a USB plug, and is generally used for receiving power from the external power source 400 for charging or data transmission.
While fig. 12 shows only the charging assembly 200 with the components 20-24 and the second computer executable program 02, those skilled in the art will appreciate that the configuration shown in fig. 12 does not constitute a limitation of the terminal, and may include fewer or more components than shown, or a combination of certain components, or a different arrangement of components.
The second memory 21 is used for storing executable programs. The second processor 22 is configured to execute the executable program 02 to implement the charging method.
In some possible embodiments, the charging assembly 200 integrates the transmission line 400. The charging assembly 200 is electrically connected to an external power source through a transmission line.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the invention are generated in whole or in part when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the unit is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application, or portions or all or portions of the technical solutions that contribute to the prior art, may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
It should be noted that the above-mentioned numbers of the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, apparatus, article, or method that comprises the element.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (7)

1. A charging method is applied to a chargeable terminal with a charging interface, and comprises the following steps:
detecting a state of a charging assembly, wherein the charging assembly is in communication connection with the terminal through the charging interface, the state of the charging assembly comprises a first state and a second state, the charging assembly establishes an electrical connection between the terminal and an external power supply in the first state to charge the terminal, and the charging assembly disconnects the electrical connection between the terminal and the external power supply in the second state to terminate charging of the terminal;
detecting the current electric quantity of the terminal;
sending a corresponding control instruction to the charging assembly according to the state of the charging assembly and the current electric quantity of the terminal so as to control the charging assembly to enter the first state or the second state; before detecting the state of the terminal, the method further comprises:
detecting whether a charging communication request transmitted by the charging assembly is received, the communication request being transmitted by the charging assembly when electrically connected to the terminal and received through the charging interface;
if the charging communication request is received, responding to the charging communication request and establishing communication connection with the charging assembly so as to communicate with the charging assembly;
before detecting whether a charging communication request sent by the charging component is received, the method further comprises:
displaying a charging function icon on a main interface for a user to select, wherein the main interface is a user graphical interface displayed when the terminal is started;
if the user selects the charging function icon, executing the detection to determine whether a charging communication request sent by the charging assembly is received;
the method further comprises the following steps:
displaying a charging interface for a user to input a setting instruction;
if a setting instruction is received, responding to the setting instruction and outputting a setting interface for a user to input limit electric quantity, wherein the limit electric quantity comprises a preset limit over-charge quantity and/or a preset limit low electric quantity;
and if the limit electric quantity input by the user is received, setting the preset limit over-charging amount and/or the preset limit low electric quantity according to the limit electric quantity input by the user.
2. The charging method according to claim 1, wherein the control instruction includes a termination instruction, and the sending a corresponding control instruction to the charging component according to the state of the charging component and the current electric quantity of the terminal to control the charging component to enter the first state or the second state specifically includes:
and when the charging assembly is in a first state and the current electric quantity of the terminal reaches a preset limit over-charging amount, sending a termination instruction to the charging assembly so as to control the charging assembly to be switched to a second state.
3. The charging method according to claim 1, wherein the control instruction includes a charging instruction, and the sending of the corresponding control instruction to the charging component according to the state of the charging component and the current electric quantity of the terminal specifically includes:
and when the charging assembly is in the second state and the current electric quantity of the terminal is lower than the preset limit over-charging amount, sending the charging instruction to the charging assembly so as to control the charging assembly to be switched to the first state.
4. A charging method as claimed in claim 1, further comprising:
and when the current electric quantity of the terminal is lower than a preset limit low electric quantity, outputting a charging prompt, wherein the preset limit low electric quantity is lower than the preset limit over-charging quantity.
5. The charging method of claim 1, wherein prior to displaying the charging interface, the method further comprises:
displaying the charging function icon on a main interface for a user to select, wherein the main interface is a user graphical interface displayed when the terminal is started;
and if the user selects the charging function icon, displaying the charging interface.
6. The charging method according to claim 1, wherein the detecting the state of the charging component specifically comprises:
detecting whether charging or not charging;
if charging, detecting that the state of the charging assembly is a first state;
and if the charging assembly is not charged, detecting that the state of the charging assembly is a second state.
7. A terminal, comprising a charging interface, a first memory storing a first computer-executable program, and a first processor configured to execute the first computer-executable program to implement the charging method according to any one of claims 1~6.
CN201910016722.9A 2019-01-08 2019-01-08 Charging method, terminal and charging assembly Active CN109768594B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910016722.9A CN109768594B (en) 2019-01-08 2019-01-08 Charging method, terminal and charging assembly

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910016722.9A CN109768594B (en) 2019-01-08 2019-01-08 Charging method, terminal and charging assembly

Publications (2)

Publication Number Publication Date
CN109768594A CN109768594A (en) 2019-05-17
CN109768594B true CN109768594B (en) 2023-02-28

Family

ID=66453578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910016722.9A Active CN109768594B (en) 2019-01-08 2019-01-08 Charging method, terminal and charging assembly

Country Status (1)

Country Link
CN (1) CN109768594B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103490109A (en) * 2012-06-12 2014-01-01 中兴通讯股份有限公司 Terminal charging method and device
CN106230066A (en) * 2016-08-31 2016-12-14 北京小米移动软件有限公司 Charge prompting method and apparatus
CN107231013A (en) * 2016-05-24 2017-10-03 华为技术有限公司 A kind of method of charging, terminal, charger and system
CN109149673A (en) * 2017-06-27 2019-01-04 中国移动通信有限公司研究院 A kind of method, charger, server and system for realizing charging

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103490109A (en) * 2012-06-12 2014-01-01 中兴通讯股份有限公司 Terminal charging method and device
CN107231013A (en) * 2016-05-24 2017-10-03 华为技术有限公司 A kind of method of charging, terminal, charger and system
CN106230066A (en) * 2016-08-31 2016-12-14 北京小米移动软件有限公司 Charge prompting method and apparatus
CN109149673A (en) * 2017-06-27 2019-01-04 中国移动通信有限公司研究院 A kind of method, charger, server and system for realizing charging

Also Published As

Publication number Publication date
CN109768594A (en) 2019-05-17

Similar Documents

Publication Publication Date Title
EP3131171B1 (en) Power adaptor, terminal and charging system
EP3200311B1 (en) Method and device for controlling charging and electronic device
CN111697663B (en) Charging circuit and charging cable
CN106356918B (en) A kind of quick charge recognition methods and terminal device
CN110166994B (en) Data time-sharing transmission interoperability method, system, mobile terminal and storage medium
CN105576727B (en) Method, device and system for quick charging
CN106300501B (en) A kind of adapter recognition methods and intelligent mobile terminal
KR101511886B1 (en) Method and device for charging energy storage devices
CN106786960B (en) Charge control method, device and terminal
US20170005495A1 (en) Method and apparatus for charging electronic device with usb connection
TW200926629A (en) Mobile terminal aware of external device and control method for the same
CN104578277A (en) Method for charging electronic equipment and electronic equipment
CN109254210B (en) Electronic equipment port type detection method and device, detection circuit and electronic equipment
CN104467109A (en) Method for supplying power to electronic equipment and electronic equipment
CN103683350A (en) Charging method and charging circuit of electronic equipment, and electronic equipment
CN112134337A (en) Power adapter, terminal device, electronic device and charging control method thereof
CN110768332A (en) Charging box, charging control method thereof and readable storage medium
CN109768594B (en) Charging method, terminal and charging assembly
CN108496289B (en) Battery charging control method, charging equipment, user terminal equipment and system
CN109756397B (en) Hardware sharing method, system and related equipment
CN111293748A (en) Method and device for monitoring electric quantity data
CN107706977B (en) Charging current detection method and charging device
CN112825401B (en) Charging line, charger, charging control method and charging device
US20160359338A1 (en) Intelligent Charger
CN107302116B (en) Charging method, mobile terminal and computer-readable storage medium

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
GR01 Patent grant
GR01 Patent grant