CN105553029A - Charging method and terminal - Google Patents

Charging method and terminal Download PDF

Info

Publication number
CN105553029A
CN105553029A CN201610069599.3A CN201610069599A CN105553029A CN 105553029 A CN105553029 A CN 105553029A CN 201610069599 A CN201610069599 A CN 201610069599A CN 105553029 A CN105553029 A CN 105553029A
Authority
CN
China
Prior art keywords
battery
identification code
voltage charging
initial identification
target identifying
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
CN201610069599.3A
Other languages
Chinese (zh)
Inventor
陈泰傧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201610069599.3A priority Critical patent/CN105553029A/en
Publication of CN105553029A publication Critical patent/CN105553029A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00045Authentication, i.e. circuits for checking compatibility between one component, e.g. a battery or a battery charger, and another component, e.g. a power source
    • 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

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the invention discloses a charging method and terminal. The terminal comprises a battery. The method comprises the following steps of acquiring a target identification code of a battery when a power signal is detected, wherein the target identification code is used for identifying whether the battery is a high-voltage rechargeable battery or not; judging whether the battery is the high-voltage rechargeable battery or not according to the target identification code; and charging the battery by using a high-voltage charging mode when the battery is the high-voltage rechargeable battery. With the adoption of the method, whether the battery can be charged by the high-voltage charging mode or not is judged according to the target identification code of the battery, the charging time is shortened, and the charging safety is improved.

Description

A kind of method of charging and terminal
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of method and terminal of charging.
Background technology
Along with the intelligent development of terminal, its power consumption also progressively increases, cause the stand-by time of terminal shorter and shorter, in order to meet the electrical demand of terminal, most manufacturers can improve battery capacity as much as possible in the battery design of terminal, the prolongation in charging interval when its drawback is that the increase of battery capacity is understood.
Current terminal generally adopts and improves the increase that input voltage reaches battery current, thus shorten the charging interval, but, general high voltage rechargeable battery is by manufacturer's specific customization, its inner battery core has the characteristic of withstand voltage resistance to stream, if the battery that the nonterminal that user uses provides or mountain vallage battery, once use high-voltage charging, may produce the potential safety hazards such as the overheated even blast of battery.
Summary of the invention
The embodiment of the present invention provides a kind of method of charging, can shorten the charging interval, improves the fail safe of charging.
Embodiments provide a kind of method of charging, it can comprise:
When power supply signal being detected, obtain the target identifying code of battery, whether described target identifying code is high-voltage charging battery for identifying described battery;
Judge whether described battery is high-voltage charging battery according to described target identifying code;
If so, high-voltage charging pattern is adopted to charge to described battery.
Embodiments provide a kind of terminal, it can comprise:
First acquiring unit, for when power supply signal being detected, obtain the target identifying code of battery, whether described target identifying code is high-voltage charging battery for identifying described battery;
Battery judging unit, for judging according to described target identifying code whether described battery is high-voltage charging battery;
High-voltage charging unit, if be high-voltage charging battery for described battery, adopts high-voltage charging pattern to charge to described battery.
The embodiment of the present invention, can work as when power supply signal being detected, obtain the target identifying code of described battery, and judge whether described battery is high-voltage charging battery according to described target identifying code, if so, adopt high-voltage charging pattern to charge to described battery, can according to the target identifying code of battery, judge whether described battery can select high-voltage charging pattern to charge, and shortens the charging interval, improves the fail safe of charging.
Accompanying drawing explanation
In order to be illustrated more clearly in embodiment of the present invention technical scheme, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the first embodiment schematic flow sheet of the method for the charging that the embodiment of the present invention provides;
Fig. 2 is the second embodiment schematic flow sheet of the method for the charging that the embodiment of the present invention provides;
Fig. 3 is the first example structure schematic diagram of the terminal that the embodiment of the present invention provides;
Fig. 4 is the second example structure schematic diagram of the terminal that the embodiment of the present invention provides;
Fig. 5 is the 3rd example structure schematic diagram of the terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In specific implementation, the terminal described in the embodiment of the present invention can comprise: mobile phone, panel computer, notebook computer, palmtop PC and mobile internet device (MobileInternetDevice, MID) etc., above-mentioned terminal is only citing, and non exhaustive, including but not limited to above-mentioned terminal.
Below in conjunction with Fig. 1 ~ Fig. 2, the method for a kind of charging that the embodiment of the present invention provides is specifically described.
Please refer to Fig. 1, is the first embodiment schematic flow sheet of the method for the charging that the embodiment of the present invention provides.The method of a kind of charging described in the present embodiment, comprises step S101 ~ S103.
S101, when power supply signal being detected, obtain the target identifying code of battery, whether described target identifying code is high-voltage charging battery for identifying described battery.
In specific implementation, when power supply signal being detected, terminal obtains the target identifying code of battery, and whether described target identifying code is high-voltage charging battery for identifying described battery.In the embodiment of the present invention, carry battery in terminal, described battery can set identification code when dispatching from the factory, and whether identification code may be used for identifying described battery is high-voltage charging battery.When user is for charging as mobile phone to terminal, can battery be inserted in mobile phone, then can the charging plug of mobile phone is connected on plate, terminal is energized.When terminal detects power supply signal, the target identifying code stored in battery can be obtained, and whether be high-voltage charging battery described in can judging according to described identification code.
According to described target identifying code, S102, judges whether described battery is high-voltage charging battery.
In specific implementation, according to described target identifying code, described terminal judges whether described battery is high-voltage charging battery.In the embodiment of the present invention, first the identification code of battery can be stored in the memory of terminal as default ID by terminal, when terminal gets the target identifying code of described battery, default ID can be obtained from described memory, and judge whether described target identifying code mates with default ID, if coupling, illustrates that present battery is high-voltage charging battery.Wherein, identification code can be a succession of sequence number, also can be character string of the composition such as alphabetical, digital etc.
S103, if described battery is high-voltage charging battery, adopts high-voltage charging pattern to charge to described battery.
In specific implementation, if described battery is high-voltage charging battery, described terminal adopts high-voltage charging pattern to charge to described battery.In the embodiment of the present invention, if described battery is high-voltage charging battery, terminal can directly adopt high-voltage charging pattern to charge to described battery, to shorten the charging interval.If described battery is not high-voltage charging battery, illustrate that the current battery assigned of described terminal may be mountain vallage battery or common rechargeable batteries, in order to ensure safety of charging, can forbid adopting high-voltage charging pattern to charge to described battery, or adopting general mode to charge.
The embodiment of the present invention, can work as when power supply signal being detected, obtain the target identifying code of described battery, and judge whether described battery is high-voltage charging battery according to described target identifying code, if so, adopt high-voltage charging pattern to charge to described battery, can according to the target identifying code of battery, judge whether described battery can select high-voltage charging pattern to charge, and shortens the charging interval, improves the fail safe of charging.
Please refer to Fig. 2, is the second embodiment schematic flow sheet of the method for the charging that the embodiment of the present invention provides.The method of a kind of charging described in the present embodiment, comprises step S201 ~ S209.
S201, when power supply signal being detected, obtains the initial identification code of battery.
In specific implementation, when power supply signal being detected, terminal obtains the initial identification code of battery.In the embodiment of the present invention, carry battery in terminal, described battery can set identification code when dispatching from the factory, and whether identification code is high-voltage charging battery for identifying described battery.When user is for charging as mobile phone to terminal, can battery be inserted in mobile phone, then can the charging plug of mobile phone is connected on plate, terminal is energized.When terminal detects power supply signal, initial identification code can be obtained by controller from battery, or automatically initial identification code be sent to controller by battery.
S202, judges whether the level signal of described initial identification code mates with predetermined level signal.
In specific implementation, described in described terminal judges, whether the level signal of initial identification code mates with predetermined level signal.In the embodiment of the present invention, the output interface level of battery may be inconsistent with controller level, therefore need to judge whether the level signal of the output interface transmitting described initial identification code mates with incoming level signal needed for controller, if coupling, then need to perform step S203 and carry out level conversion operation.
S203, if not, carries out level conversion to obtain target identifying code by described initial identification code.
In specific implementation, if the level signal of described initial identification code is not mated with predetermined level signal, described initial identification code is carried out level conversion to obtain target identifying code by described terminal.In the embodiment of the present invention, if the level signal of described initial identification code is not mated with predetermined level signal, then need to carry out level conversion operation, such as, the level transmitting the output interface of described initial identification code is 1.5V, and the level of controller is 3V, then need to pass through level conversion, 1.5V is converted to 3V, and initial identification code can be transferred to described controller.
S204, judges whether described initial identification code is encrypted.
In specific implementation, described in described terminal judges, whether initial identification code is encrypted.In the embodiment of the present invention, the identification code of high-voltage charging battery is directly read as identified waveform by mountain vallage manufacturer etc. by oscilloscope in order to prevent initial identification code, and copy, therefore described battery manufacturer can by being encrypted initial identification code, to avoid being stolen.Described terminal by detecting the initial identification code got, can judge whether that described initial identification code is encrypted, if so, then needs to perform step S205 and is decrypted.
S205, is if so, decrypted process to obtain target identifying code by described initial identification code.
In specific implementation, if described initial identification code is encrypted, described initial identification code is decrypted process to obtain target identifying code by described terminal.In the embodiment of the present invention, if described initial identification code is encrypted, the cryptographic algorithm by agreement is decrypted process, and to obtain target identifying code, wherein, target identifying code is the initial identification code after deciphering.
S206, obtains the target identifying code of described battery, and whether described target identifying code is high-voltage charging battery for identifying described battery.
In specific implementation, described terminal obtains the target identifying code of described battery, and whether described target identifying code is high-voltage charging battery for identifying described battery.In the embodiment of the present invention, described target identifying code can be through the target identifying code accessed by level conversion and decryption processing, the judgement that also can judge according to the level signal of initial identification code and whether encrypt, the target identifying code acquired after selecting any one processing mode process in level conversion or decryption processing, and whether be high-voltage charging battery described in can judging according to described identification code.
According to described target identifying code, S207, judges whether described battery is high-voltage charging battery.
In specific implementation, according to described target identifying code, described terminal judges whether described battery is high-voltage charging battery.In the embodiment of the present invention, first the identification code of battery can be stored in the memory of terminal as default ID by terminal, when terminal gets the target identifying code of described battery, default ID can be obtained from described memory, and judge whether described target identifying code mates with default ID, if coupling, illustrates that present battery is high-voltage charging battery.Wherein, identification code can be a succession of sequence number, also can be the character string of the composition such as alphabetical, digital.
S208, if so, adopts high-voltage charging pattern to charge to described battery.
In specific implementation, if described battery is high-voltage charging battery, described terminal adopts high-voltage charging pattern to charge to described battery.In the embodiment of the present invention, if battery is high-voltage charging battery, terminal can directly adopt high-voltage charging pattern to charge to described battery, to shorten the charging interval.
S209, if not, adopts general mode charge to described battery or stop charging to described battery, and output alarm information or the tinkle of bells.
In specific implementation, if described battery is not high-voltage charging battery, general mode is adopted to charge to described battery or stop charging to described battery, and output alarm information or the tinkle of bells.Described battery is not high-voltage charging battery, illustrate that the current battery assigned of described terminal may be mountain vallage battery or common rechargeable batteries, in order to ensure safety of charging, general mode can be adopted to charge to described battery or stop charging to described battery, and output alarm information or the tinkle of bells, charging with entering general mode or charge with reminding user stops.
The embodiment of the present invention, can work as when power supply signal being detected, obtain the initial identification code of battery, then judge whether the level signal of described initial identification code mates with predetermined level signal, if not, described initial identification code is carried out level conversion to obtain target identifying code, then judge whether described initial identification code is encrypted, if, described initial identification code is decrypted process, obtain the target identifying code of described battery, whether described target identifying code is high-voltage charging battery for identifying described battery, further, judge whether described battery is high-voltage charging battery according to described target identifying code, to determine to adopt high-voltage charging pattern or normal charging mode to carry out charging or stop charging, by adopting level conversion and the encryption and decryption process of initial identification code, obtain target identifying code, ensure that the effective of target identifying code, safe transmission, compared by target identifying code and default ID, select charging modes or stop charging, improve the fail safe of charge efficiency and charging.
Below in conjunction with Fig. 3 ~ Fig. 4, the terminal that the embodiment of the present invention provides is specifically described.
Please refer to Fig. 3, is the first example structure schematic diagram of the terminal that the embodiment of the present invention provides.The terminal of the embodiment of the present invention comprises: the first acquiring unit 101, battery judging unit 102 and high-voltage charging unit 103.
First acquiring unit 101, for when power supply signal being detected, obtain the target identifying code of battery, whether described target identifying code is high-voltage charging battery for identifying described battery.
In specific implementation, when power supply signal being detected, the first acquiring unit 101 obtains the target identifying code of battery, and whether described target identifying code is high-voltage charging battery for identifying described battery.In the embodiment of the present invention, carry battery in terminal, described battery can set identification code when dispatching from the factory, and whether identification code is high-voltage charging battery for identifying described battery.When user is for charging as mobile phone to terminal, can battery be inserted in mobile phone, then can the charging plug of mobile phone is connected on plate, terminal is energized.When terminal detects power supply signal, can obtain by the first acquiring unit 101 identification code stored in battery, and whether be high-voltage charging battery described in can judging according to described identification code.
Battery judging unit 102, for judging according to described target identifying code whether described battery is high-voltage charging battery.
In specific implementation, according to described target identifying code, battery judging unit 102 judges whether described battery is high-voltage charging battery.In the embodiment of the present invention, first the identification code of battery can be stored in the memory of terminal as default ID by terminal, when terminal gets the target identifying code of described battery, default ID can be obtained from described memory by battery judging unit 102, and judge whether described target identifying code mates with default ID, if coupling, illustrates that present battery is high-voltage charging battery.Wherein, identification code can be a succession of sequence number, also can be the character string of the composition such as alphabetical, digital.
High-voltage charging unit 103, if be high-voltage charging battery for described battery, adopts high-voltage charging pattern to charge to described battery.
In specific implementation, if described battery is high-voltage charging battery, high-voltage charging unit 103 adopts high-voltage charging pattern to charge to described battery.In the embodiment of the present invention, if described battery is high-voltage charging battery, high-voltage charging unit 103 can directly adopt high-voltage charging pattern to charge to described battery, to shorten the charging interval.If described battery is not high-voltage charging battery, illustrate that the current battery assigned of described terminal may be mountain vallage battery or common rechargeable batteries, in order to ensure safety of charging, can forbid adopting high-voltage charging pattern to charge to described battery, or adopting general mode to charge.
The embodiment of the present invention, can work as when power supply signal being detected, obtain the target identifying code of described battery, and judge whether described battery is high-voltage charging battery according to described target identifying code, if so, adopt high-voltage charging pattern to charge to described battery, can according to the target identifying code of battery, judge whether described battery can select high-voltage charging pattern to charge, and shortens the charging interval, improves the fail safe of charging.
Please refer to Fig. 4, is the second example structure schematic diagram of the terminal that the embodiment of the present invention provides.The terminal of the embodiment of the present invention comprises: the first acquiring unit 101, battery judging unit 102, high-voltage charging unit 103, second acquisition unit 104, electrical level judging unit 105, converting unit 106, encryption judging unit 107, decryption unit 108, processing unit 109 and output unit 110.
Second acquisition unit 104, for when power supply signal being detected, obtains the initial identification code of battery.
In specific implementation, when power supply signal being detected, second acquisition unit 104 obtains the initial identification code of battery.In the embodiment of the present invention, carry battery in terminal, described battery can set identification code when dispatching from the factory, and whether identification code is high-voltage charging battery for identifying described battery.When user is for charging as mobile phone to terminal, can battery be inserted in mobile phone, then can the charging plug of mobile phone is connected on plate, terminal is energized.When terminal detects power supply signal, initial identification code can be obtained by controller from battery, or automatically initial identification code be sent to controller by battery.
Optionally, described terminal also comprises electrical level judging unit 105 and converting unit 106.
Electrical level judging unit 105, for judging whether the level signal of described initial identification code mates with predetermined level signal.
In specific implementation, electrical level judging unit 105 judges whether the level signal of described initial identification code mates with predetermined level signal.In the embodiment of the present invention, the output interface level of battery may be inconsistent with controller level, therefore need to judge whether the level signal of the output interface transmitting described initial identification code mates with incoming level signal needed for controller, if coupling, then need to call converting unit 106 and carry out level conversion operation.
Converting unit 106, if do not mate with predetermined level signal for the level signal of described initial identification code, carries out level conversion to obtain target identifying code by described initial identification code.
In specific implementation, if the level signal of described initial identification code is not mated with predetermined level signal, described initial identification code is carried out level conversion to obtain target identifying code by converting unit 106.In the embodiment of the present invention, if the level signal of described initial identification code is not mated with predetermined level signal, then need to carry out level conversion operation, such as, the level transmitting the output interface of described initial identification code is 1.5V, and the level of controller is 3V, then need to pass through level conversion, 1.5V is converted to 3V, and initial identification code can be transferred to described controller.
Optionally, described terminal also comprises encryption judging unit 107 and decryption unit 108.
Encryption judging unit 107, for judging whether described initial identification code is encrypted.
In specific implementation, encryption judging unit 107 judges whether described initial identification code is encrypted.In the embodiment of the present invention, the identification code of high-voltage charging battery is directly read as identified waveform by mountain vallage manufacturer etc. by oscilloscope in order to prevent initial identification code, and copy, therefore described battery manufacturer can by being encrypted initial identification code, to avoid being stolen.Encryption judging unit 107 by detecting the initial identification code got, can judge whether that described initial identification code is encrypted, if so, then calling decryption unit 108 and be decrypted.
Decryption unit 108, for being decrypted process to obtain target identifying code by described initial identification code.
In specific implementation, if described initial identification code is encrypted, described initial identification code is decrypted process to obtain target identifying code by decryption unit 108.In the embodiment of the present invention, if described initial identification code is encrypted, the cryptographic algorithm by agreement is decrypted process, and to obtain target identifying code, wherein, target identifying code is the initial identification code after deciphering.
First acquiring unit 101, for obtaining the target identifying code of described battery, whether described target identifying code is high-voltage charging battery for identifying described battery.
In specific implementation, the first acquiring unit 101 obtains the target identifying code of described battery, and whether described target identifying code is high-voltage charging battery for identifying described battery.In the embodiment of the present invention, described target identifying code can be through the target identifying code accessed by level conversion and decryption processing, the judgement that also can judge according to the level signal of initial identification code and whether encrypt, the target identifying code acquired after selecting any one processing mode process in level conversion or decryption processing, and whether be high-voltage charging battery described in can judging according to described identification code.
Battery judging unit 102, for judging according to described target identifying code whether described battery is high-voltage charging battery.
In specific implementation, according to described target identifying code, battery judging unit 102 judges whether described battery is high-voltage charging battery.In the embodiment of the present invention, first the identification code of battery can be stored in the memory of terminal as default ID by terminal, when the first acquiring unit 101 gets the target identifying code of described battery, battery judging unit 102 can obtain default ID from described memory, and judge whether described target identifying code mates with default ID, if coupling, illustrates that present battery is high-voltage charging battery.Wherein, identification code can be a succession of sequence number, also can be the character string of the composition such as alphabetical, digital.
High-voltage charging unit 103, if be high-voltage charging battery for described battery, adopts high-voltage charging pattern to charge to described battery.
In specific implementation, if described battery is high-voltage charging battery, high-voltage charging unit 103 adopts high-voltage charging pattern to charge to described battery.In the embodiment of the present invention, if battery is high-voltage charging battery, described terminal can directly adopt high-voltage charging pattern to charge to described battery, to shorten the charging interval.
Optionally, described terminal also comprises processing unit 109 and output unit 110.
Processing unit 109, if do not mate with default ID for described target identifying code, adopts general mode charge to described battery or stop charging to described battery.
Output unit 110, for output alarm information or the tinkle of bells.
In specific implementation, if described battery is not high-voltage charging battery, processing unit 109 adopts general mode to charge to described battery or stops charging to described battery.Further alternative, output unit 110 can output alarm information or the tinkle of bells.Described battery is not high-voltage charging battery,, illustrate that the current battery assigned of described terminal may be mountain vallage battery or common rechargeable batteries, in order to ensure safety of charging, can general mode be adopted to charge to described battery by processing unit 109 or stop charging to described battery, and by output unit 110 output alarm information or the tinkle of bells, charging with entering general mode or charge with reminding user stops.
The embodiment of the present invention, can work as when power supply signal being detected, obtain the initial identification code of battery, then judge whether the level signal of described initial identification code mates with predetermined level signal, if not, described initial identification code is carried out level conversion to obtain target identifying code, then judge whether described initial identification code is encrypted, if, described initial identification code is decrypted process, obtain the target identifying code of described battery, whether described target identifying code is high-voltage charging battery for identifying described battery, further, judge whether described battery is high-voltage charging battery according to described target identifying code, to determine to adopt high-voltage charging pattern or normal charging mode to carry out charging or stop charging, by adopting level conversion and the encryption and decryption process of initial identification code, obtain target identifying code, ensure that the effective of target identifying code, safe transmission, compared by target identifying code and default ID, select charging modes or stop charging, improve the fail safe of charge efficiency and charging.
Please refer to Fig. 5, is the 3rd example structure schematic diagram of the terminal that the embodiment of the present invention provides.Terminal described in the present embodiment comprises: at least one output equipment 1000; At least one battery 2000; At least one processor 3000, such as CPU; With memory 4000, above-mentioned output equipment 1000, battery 2000, processor 3000 are connected by bus 5000 with memory 4000.
Wherein, above-mentioned output equipment 1000 specifically can be the display screen of terminal, for output alarm information or the tinkle of bells.
Above-mentioned memory 4000 can be high-speed RAM memory, also can be non-labile memory (non-volatilememory), such as magnetic disc store.Above-mentioned memory 4000 can be used for storage terminal goal-selling identification code and for storing batch processing code, above-mentioned output equipment 1000 and processor 3000, for calling the program code stored in memory 4000, perform and operate as follows:
Above-mentioned processor 3000, for when power supply signal being detected, obtains the target identifying code of described battery 2000, and described target identifying code is for identifying whether described battery 2000 is high-voltage charging battery;
Above-mentioned processor 3000, also for judging according to described target identifying code whether described battery 2000 is high-voltage charging battery;
Above-mentioned processor 3000, if are also high-voltage charging batteries for described battery 2000, adopts high-voltage charging pattern to charge to described battery.
Optionally, above-mentioned processor 3000, for obtaining the initial identification code of described battery 2000;
Further alternative, above-mentioned processor 3000, also for judging whether the level signal of described initial identification code mates with predetermined level signal;
Further alternative, above-mentioned processor 3000, if also do not mate with predetermined level signal for the level signal of described initial identification code, carries out level conversion to obtain target identifying code by described initial identification code.
Further alternative, above-mentioned processor 3000, also for judging whether described initial identification code is encrypted;
Further alternative, above-mentioned processor 3000, if be also encrypted for described initial identification code, is decrypted process to obtain target identifying code by described initial identification code.
Optionally, above-mentioned processor 3000, if be not also high-voltage charging battery for described battery 2000, adopts general mode charge to described battery or stop charging to described battery.
Further alternative, above-mentioned output equipment 1000, for output alarm information or the tinkle of bells.
In specific implementation, output equipment 1000 described in the embodiment of the present invention, battery 2000 and processor 3000 can perform the first embodiment of the method for the charging that the embodiment of the present invention provides, the implementation described in the second embodiment, also can perform the implementation of the terminal described in terminal that the embodiment of the present invention provides, not repeat them here.
Unit in all embodiments of the present invention, universal integrated circuit can be passed through, such as CPU (CentralProcessingUnit, central processing unit), or realized by ASIC (ApplicationSpecificIntegratedCircuit, application-specific integrated circuit (ASIC)).
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention device can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. a method for charging, it is characterized in that, described method comprises:
When power supply signal being detected, obtain the target identifying code of battery, whether described target identifying code is high-voltage charging battery for identifying described battery;
Judge whether described battery is high-voltage charging battery according to described target identifying code;
If so, high-voltage charging pattern is adopted to charge to described battery.
2. method according to claim 1, is characterized in that, before the target identifying code of described acquisition battery, also comprises:
Obtain the initial identification code of described battery;
Judge whether the level signal of described initial identification code mates with predetermined level signal;
If not, described initial identification code is carried out level conversion to obtain target identifying code.
3. method according to claim 2, is characterized in that, after the initial identification code of the described battery of described acquisition, also comprises:
Judge whether described initial identification code is encrypted;
If so, described initial identification code is decrypted process to obtain target identifying code.
4. the method according to claim 1-3 any one, is characterized in that, described judge whether described battery is high-voltage charging battery according to described target identifying code after, also comprise:
If not, general mode is adopted to charge to described battery or stop charging to described battery.
5. method according to claim 4, is characterized in that, described stopping also comprising after charging to described battery:
Output alarm information or the tinkle of bells.
6. a terminal, is characterized in that, described terminal comprises:
First acquiring unit, for when power supply signal being detected, obtain the target identifying code of battery, whether described target identifying code is high-voltage charging battery for identifying described battery;
Battery judging unit, for judging according to described target identifying code whether described battery is high-voltage charging battery;
High-voltage charging unit, if be high-voltage charging battery for described battery, adopts high-voltage charging pattern to charge to described battery.
7. terminal according to claim 6, is characterized in that, also comprises:
Second acquisition unit, for when power supply signal being detected, obtains the initial identification code of described battery;
Electrical level judging unit, for judging whether the level signal of described initial identification code mates with predetermined level signal;
Converting unit, if for the level signal of described initial identification code and predetermined level Signal Matching, carry out level conversion to obtain target identifying code by described initial identification code.
8. terminal according to claim 7, is characterized in that, also comprises:
Encryption judging unit, for judging whether described initial identification code is encrypted;
Decryption unit, if be encrypted for described initial identification code, is decrypted process to obtain target identifying code by described initial identification code.
9. the terminal according to claim 6-8 any one, is characterized in that, also comprises:
Processing unit, if be not high-voltage charging battery for described battery, adopts general mode charge to described battery or stop charging to described battery.
10. terminal according to claim 9, is characterized in that, also comprises:
Output unit, for output alarm information or the tinkle of bells.
CN201610069599.3A 2016-02-01 2016-02-01 Charging method and terminal Pending CN105553029A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610069599.3A CN105553029A (en) 2016-02-01 2016-02-01 Charging method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610069599.3A CN105553029A (en) 2016-02-01 2016-02-01 Charging method and terminal

Publications (1)

Publication Number Publication Date
CN105553029A true CN105553029A (en) 2016-05-04

Family

ID=55832039

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610069599.3A Pending CN105553029A (en) 2016-02-01 2016-02-01 Charging method and terminal

Country Status (1)

Country Link
CN (1) CN105553029A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106169798A (en) * 2016-09-28 2016-11-30 北京小米移动软件有限公司 High-voltage charging system, high-voltage charging battery and terminal unit

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1177269A (en) * 1996-07-24 1998-03-25 摩托罗拉公司 Apparatus and method for identifying type and brand of battery for portable device
US20080297104A1 (en) * 2007-05-29 2008-12-04 Motorola, Inc. Battery charger and method for communicating battery pack charging status information
CN103051023A (en) * 2012-12-18 2013-04-17 深圳市金立通信设备有限公司 Method and device for managing battery charging circuit
CN104052119A (en) * 2014-06-23 2014-09-17 宇龙计算机通信科技(深圳)有限公司 Terminal and battery management method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1177269A (en) * 1996-07-24 1998-03-25 摩托罗拉公司 Apparatus and method for identifying type and brand of battery for portable device
US20080297104A1 (en) * 2007-05-29 2008-12-04 Motorola, Inc. Battery charger and method for communicating battery pack charging status information
CN103051023A (en) * 2012-12-18 2013-04-17 深圳市金立通信设备有限公司 Method and device for managing battery charging circuit
CN104052119A (en) * 2014-06-23 2014-09-17 宇龙计算机通信科技(深圳)有限公司 Terminal and battery management method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106169798A (en) * 2016-09-28 2016-11-30 北京小米移动软件有限公司 High-voltage charging system, high-voltage charging battery and terminal unit

Similar Documents

Publication Publication Date Title
US11368039B2 (en) Battery charging method and electronic device
KR102147566B1 (en) Apparatus, method and system for safely charging mobile devices
KR20140007194A (en) Method for charging battery and an electronic device thereof
CN108845655B (en) Electronic equipment control method and device, control circuit and electronic equipment
CN105429245A (en) Charging control method and charging control device
KR20140086000A (en) Terminal which can use wired charging and wireless charging and method for charging thereof
CN105680501A (en) Portable electronic device and charging method therefor
CN108132401A (en) Charge abnormal detection method, device, storage medium and mobile terminal
US20120231857A1 (en) Mobile phone and method for transferring battery power of the mobile phone
CN109075611B (en) Wireless charging
KR102052443B1 (en) System for performing charging and data communication
US10630091B2 (en) Charging method and related device
JP2005287278A (en) Device and method for controlling charge of electronic terminal
TW201340542A (en) System and method for mobile device charging
CN104505551A (en) Charging method and charging circuit of wearable device
CN103972953A (en) Charging Apparatus and Charging Method
CN113454869A (en) Coupling manager for managing multimode electrical couplings and method of operation
CN109254210A (en) Electronic device port type detection method, apparatus, detection circuit and electronic equipment
CN103633692A (en) Message processing method and electronic device
CN105048018A (en) Charging method and device for terminal having on-the-go (OTG) function
CN105553029A (en) Charging method and terminal
CN106797414A (en) The leakage current detection circuit and terminal of a kind of terminal
CN104932028A (en) Terminal positioning method and terminal
CN108009068B (en) Information recording method, information recording device and intelligent terminal
CN113364105B (en) Control method, device, terminal and storage medium compatible with charging of multiple batteries

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160504