CN107425570A - Charging method, system and the device of terminal device - Google Patents

Charging method, system and the device of terminal device Download PDF

Info

Publication number
CN107425570A
CN107425570A CN201710654054.3A CN201710654054A CN107425570A CN 107425570 A CN107425570 A CN 107425570A CN 201710654054 A CN201710654054 A CN 201710654054A CN 107425570 A CN107425570 A CN 107425570A
Authority
CN
China
Prior art keywords
charger
terminal device
charging
target
serial port
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.)
Granted
Application number
CN201710654054.3A
Other languages
Chinese (zh)
Other versions
CN107425570B (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.)
Wingtech Communication Co Ltd
Original Assignee
Wingtech Communication 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 Wingtech Communication Co Ltd filed Critical Wingtech Communication Co Ltd
Priority to CN201710654054.3A priority Critical patent/CN107425570B/en
Publication of CN107425570A publication Critical patent/CN107425570A/en
Application granted granted Critical
Publication of CN107425570B publication Critical patent/CN107425570B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00036Charger exchanging data with battery
    • 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/00034Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
    • 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

Abstract

The invention provides a kind of charging method of terminal device, system and device, this method includes:Establish the charging connection relation with charger;Target serial port command is sent to charger based on charging connection relation, so that charger verifies to target serial port command, answer signal is sent, exports charging voltage;After the answer signal of charger transmission is received, the charging voltage of detection charger output, when charging voltage is target voltage values, terminal device receives charging voltage, and the battery of terminal device is charged.This method is to send target serial port command from terminal device to charger, after charger is to target serial ports command checksum response, charged again, the reliability and stability of charging greatly improve, target voltage values can be quickly obtained, without using USB slave units, reduce cost, the reliability height that charges, the requirement that the rate of rise is fast and cost is low can not be met simultaneously by alleviating quick charge scheme of the prior art.

Description

Charging method, system and the device of terminal device
Technical field
The present invention relates to the technical field of charging, more particularly, to a kind of charging method of terminal device, system and device.
Background technology
At present, when being charged to terminal device (such as mobile phone), usually using quick charge scheme, current is fast Fast charging scheme mainly includes following several.One kind is to realize boosting by sending current model.Detailed process is:Electricity is set Stream is more than threshold value, and maintains a period of time X, then sets electric current to be less than threshold value, maintains a period of time Y.Then, by time X and when Between Y compositions bit positions, further according to time X and time Y size, it is 0 or 1 to define bit positions.Finally one is formed by multiple bit positions Individual order, is sent to charger, and charger then performs boost operations according to order.In the method for the quick charge, if order 0 And interference between 1 being present, charger is not aware that, so, the reliability of the quick charge scheme is not high, although algorithm is carried out Some optimizations, but be far from verification and answering machine and make.Another quick charge scheme be by USB DP pins or Person's DM pins send some waveforms to realize boosting.The process of this boosting is slow, it is impossible to settles at one go.Finally, if sent USB command come realize boosting, reliability can be fine, but need charger also must carry USB slave units function, then The cost of charger can be higher.
To sum up, can not be simultaneously using quick charge scheme of the prior art when carrying out quick charge to terminal device Meet that charging reliability is high, the accurate and quick and low cost requirement of boosting.
The content of the invention
In view of this, it is an object of the invention to provide a kind of charging method of terminal device, system and device, to alleviate Quick charge scheme of the prior art can not meet the reliability height that charges, the accurate and quick and low cost skill of boosting simultaneously Art problem.
In a first aspect, the embodiments of the invention provide a kind of charging method of terminal device, it is described applied to terminal device Method includes:
Establish the charging connection relation with charger;
Target serial port command is sent to the charger based on the charging connection relation, so that the charger is to described Target serial port command is verified, and sends answer signal, and exports charging voltage, wherein, included in the target serial port command The information of target voltage values, the information of check code;
After the answer signal that the charger is sent is received, the charging electricity of the charger output is detected Pressure, when the charging voltage is the target voltage values, the terminal device receives the charging voltage, with to the terminal The battery of equipment is charged.
With reference in a first aspect, the embodiments of the invention provide the possible embodiment of the first of first aspect, wherein, In the case that the terminal device does not receive the answer signal, methods described also includes:
Serial ports reset command is sent to the charger, so that the charger is resetted.
With reference in a first aspect, the embodiments of the invention provide the possible embodiment of second of first aspect, wherein, In the case that the terminal device detects that the charging voltage is not the target voltage values, methods described also includes:
Charge command is retransmitted to the charger.
With reference in a first aspect, the embodiments of the invention provide the possible embodiment of the third of first aspect, wherein, base Sending target serial port command to the charger in the charging connection relation includes:
Determine whether the charger is standard charger based on the charging connection relation;
In the case where determining that the charger is the standard charger, by the first transmission link to the charging Device sends the high level signal of preset time, to control the link between the first of the charger group of pin to disconnect, and by institute State first group of pin and be arranged to serial port function pin, wherein, first group of pin draws for the DM pins and DP of the charger Pin;
It is serial port function pin to set second group of pin, wherein, second group of pin is power supply in the terminal device The DM pins and DP pins of managing chip;
Target voltage values are determined, wherein, the target voltage values are central processing unit in the terminal device according to voltage Regulation algorithm is calculated;
The target serial port command is generated according to the target voltage values, so that the charger is ordered the target serial ports Order is verified, and sends the answer signal, and export the charging voltage.
With reference in a first aspect, the embodiments of the invention provide the possible embodiment of the 4th of first aspect kind, wherein, root Generating the target serial port command according to the target voltage values includes:
Serial port command is generated according to the target voltage values, wherein, the target voltage values are included in the serial port command Information;
The check code is added to the serial port command, to obtain the target serial port command.
With reference in a first aspect, the embodiments of the invention provide the possible embodiment of the 5th of first aspect kind, wherein, In the case that the charger is non-standard charger, methods described also includes:
The 5V charging voltages that the charger is sent are received, to be charged using the 5V charging voltages to the battery.
Second aspect, the embodiment of the present invention additionally provide a kind of charging system of terminal device, including:Terminal device and fill Electrical equipment;
The terminal device, for establishing the charging connection relation with the charger, based on the charging connection relation Target serial port command is sent to the charger, wherein, the information of target voltage values is included in the target serial port command, is examined The information of code;
The charger, for receiving the target serial port command, the target serial port command is verified, sending should Signal is answered, and exports charging voltage;
Wherein, the terminal device detects the charging after the answer signal that the charger is sent is received The charging voltage of device output, when the charging voltage is the target voltage values, filled described in the terminal device reception Piezoelectric voltage, charged with the battery to the terminal device.
With reference to second aspect, the embodiments of the invention provide the possible embodiment of the first of second aspect, wherein, In the case that the terminal device does not receive the answer signal, the terminal device sends serial ports to the charger and resetted Order, so that the charger is resetted.
With reference to second aspect, the embodiments of the invention provide the possible embodiment of second of second aspect, wherein, In the case that the terminal device detects that the charging voltage is not the target voltage values, the terminal device fills to described Electrical equipment retransmits charge command.
The third aspect, the embodiment of the present invention additionally provide a kind of charging device of terminal device, including:Memory, processing Device and the computer program that can be run on the memory and on the processor is stored in, meter described in the computing device The charging method of the terminal device described in above-mentioned first aspect is realized during calculation machine program.
The embodiment of the present invention brings following beneficial effect:The embodiments of the invention provide a kind of charging side of terminal device Method, system and device, the charging method of the terminal device include:The charging connection relation with charger is established, is connected based on charging Connect relation and send target serial port command to charger, so that charger verifies to target serial port command, send answer signal, And charging voltage is exported, wherein, the information of target voltage values, the information of check code are included in target serial port command;Receiving After the answer signal that charger is sent, the charging voltage of detection charger output, when charging voltage is target voltage values, terminal Equipment receives charging voltage, is charged with the battery to terminal device.
Traditional fast charge method be by send current model realize boosting either by USB DP pins or DM pins send some waveforms to realize boosting.Compared with traditional fast charge method, in filling for terminal device of the invention In method for electrically, after terminal device establishes the charging connection relation with charger, terminal device is based on charging connection relation to charging Device sends target serial port command, so that charger verifies to target serial port command, sends answer signal, and exports charging electricity Pressure, terminal device the charging voltage of detection charger output, work as charging voltage after the answer signal of charger transmission is received For target voltage values when, terminal device receives the charging voltage, is charged with the battery to terminal device.The charging method is Target serial port command is sent from terminal device to charger, charger is to target serial ports command checksum response and then fills Electricity, the reliability and stability of charging greatly improve, and can quickly obtain target voltage values, shorten magnitude of voltage conversion when Between, without using USB slave units, cost is reduced, alleviating quick charge scheme of the prior art can not meet to fill simultaneously Electric reliability is high, the accurate and quick and low cost technical problem of boosting.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages are in specification, claims And specifically noted structure is realized and obtained in accompanying drawing.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.
Brief description of the drawings
, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical scheme of the prior art The required accompanying drawing used is briefly described in embodiment or description of the prior art, it should be apparent that, in describing below Accompanying drawing is some embodiments of the present invention, for those of ordinary skill in the art, before creative work is not paid Put, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart of the charging method of terminal device provided in an embodiment of the present invention;
Fig. 2 is the charging connection relation circuit diagram of the charging process of terminal device provided in an embodiment of the present invention;
Fig. 3 is the flow provided in an embodiment of the present invention for sending target serial port command to charger based on charging connection relation Figure;
Fig. 4 is a kind of structural representation of the charging system of terminal device provided in an embodiment of the present invention.
Icon:
11- terminal devices;12- chargers.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with accompanying drawing to the present invention Technical scheme be clearly and completely described, it is clear that described embodiment is part of the embodiment of the present invention, rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work premise Lower obtained every other embodiment, belongs to the scope of protection of the invention.
For ease of understanding the present embodiment, the charging first to a kind of terminal device disclosed in the embodiment of the present invention Method describes in detail.
Embodiment one:
A kind of charging method of terminal device, with reference to figure 1, applied to terminal device, this method includes:
S101, foundation and charger charging connection relation;
In embodiments of the present invention, terminal device illustrates by taking mobile phone as an example, or other-end equipment, such as Tablet personal computer etc., the embodiment of the present invention is not particularly limited to it.When charger passes through the charging inlet of USB line insertion mobile phone Afterwards, the charging connection relation of terminal device and charger is just established.Specifically, the circuit diagram of charging connection relation may be referred to Fig. 2 (device in Fig. 2 is hereinafter specifically described again).
S102, based on charging connection relation to charger send target serial port command so that charger to target serial ports order Order is verified, and sends answer signal, and export charging voltage, wherein, the letters of target voltage values is included in target serial port command Breath, the information of check code;
After charging connection relation is established, terminal device can just be based on charging connection relation and include mesh to charger transmission The target serial port command of magnitude of voltage and check code is marked, charger is after target serial port command is received, to the target serial port command Being verified, the detailed process of verification is realized by checking algorithm, and checking algorithm has used in the prior art, It is not discussed here.After the completion of verification, answer signal is sent.
S103, receive charger transmission answer signal after, detection charger output charging voltage, when charging electricity Press for target voltage values when, terminal device receive charging voltage, charged with the battery to terminal device.
After terminal device receives the answer signal of charger transmission, the charging voltage of detection charger output, when filling When piezoelectric voltage is target voltage values, terminal device receives the charging voltage, realizes and the battery of terminal device is charged.
Traditional fast charge method be by send current model realize boosting either by USB DP pins or DM pins send some waveforms to realize boosting.Compared with traditional fast charge method, in filling for terminal device of the invention In method for electrically, after terminal device establishes the charging connection relation with charger, terminal device is based on charging connection relation to charging Device sends target serial port command, so that charger verifies to target serial port command, sends answer signal, and exports charging electricity Pressure, terminal device the charging voltage of detection charger output, work as charging voltage after the answer signal of charger transmission is received For target voltage values when, terminal device receives the charging voltage, is charged with the battery to terminal device.The charging method is Target serial port command is sent from terminal device to charger, charger is to target serial ports command checksum response and then fills Electricity, the reliability and stability of charging greatly improve, and can quickly obtain target voltage values, shorten magnitude of voltage conversion when Between, without using USB slave units, cost is reduced, alleviating quick charge scheme of the prior art can not meet to fill simultaneously Electric reliability is high, the accurate and quick and low cost technical problem of boosting.
Further, in the case where terminal device does not receive answer signal, this method also includes:
Serial ports reset command is sent to charger, so that charger is resetted.
Further, in the case where terminal device detects that charging voltage is not target voltage values, this method also includes:
Charge command is retransmitted to charger.
Specifically, in the case where terminal device detects that charging voltage is not target voltage values, terminal device is first to filling Electrical equipment send serial ports reset command, charger reset after the completion of, then to charger retransmit charge command.
Further, with reference to figure 3, sending target serial port command to charger based on charging connection relation includes:
S301, based on charging connection relation determine whether charger is standard charger;
In embodiments of the present invention, when the DM pins and DP pins of charger (being specially the chip that charger internal carries) During short circuit, the charger is standard charger.
S302, determine charger be standard charger in the case of, by the first transmission link to charger send The high level signal of preset time, to control the link between the first of charger group of pin to disconnect, and first group of pin is set Serial port function pin is set to, wherein, first group of pin is the DM pins and DP pins of charger;
In embodiments of the present invention, the first transmission link be terminal device (be specially power management chip) DM pins with Link between the DM pins of charger (being specially the chip that charger internal carries).Preset time is the regular hour, should Preset time is adjustable.Charger has high level on DM pins are judged, and when duration meets the requirements, charger just will Short circuit link between its internal DM pin and DP pins is disconnected, and its internal DM pin and DP pins are arranged into serial ports Functional pin, to realize the communication of serial port protocol.
Second group of S303, setting pin are serial port function pin, wherein, second group of pin is power management in terminal device The DM pins and DP pins of chip;
Specifically, after the power management chip of terminal device recognizes DM pins and the disconnection of DP pins of charger internal, The DM pins and DP pins for setting power management chip are serial port function pin, so, can between terminal device and charger To realize serial communication.
S304, target voltage values are determined, wherein, target voltage values are central processing unit in terminal device according to voltage-regulation What algorithm was calculated;
Specifically, target voltage values are calculated according to voltage adjustment algorithms (such as the algorithm that boosts) in central processing unit, and Target voltage values are sent to power management chip.
S305, according to target voltage values target serial port command is generated, so that charger verifies to target serial port command, Answer signal is sent, and exports charging voltage.
After power management chip receives above-mentioned target voltage values, target serial ports life is generated according to the target voltage values Order, and target serial port command is sent to charger, so that charger verifies to target serial port command, send response letter Number, and export charging voltage.
Further, generating target serial port command according to target voltage values includes:
Serial port command is generated according to target voltage values, wherein, the information of target voltage values is included in serial port command;
Check code is added to serial port command, to obtain target serial port command.
Further, in the case where charger is non-standard charger, this method also includes:
The 5V charging voltages that charger is sent are received, to be charged using 5V charging voltages to battery.
Below with reference to Fig. 2, to the charging method of terminal device provided in an embodiment of the present invention (by taking mobile phone as an example) (with boosting Exemplified by quick charge) simply introduced:
After charger inserts mobile phone, the circuit connecting relation of charger and mobile phone is as shown in Figure 2.In Fig. 2, central processing Device, power management chip and two 300 Ohmic resistances are the device in mobile phone, and the chip carried is included in charger.Specifically, The chip that charger internal carries includes the first DM pins, the first DP pins, power supply output pin (VBUS in Fig. 2), power supply Managing chip includes the 2nd DM pins, the 2nd DP pins, power input pin (USBIN in Fig. 2), and central processing unit includes the Three DM pins, the 3rd DP pins, the chip and power management chip that charger internal carries in addition also include grounding pin (GND), after charger connects mobile phone, the first DM pins connect with the 2nd DM pins, the 3rd DM pins respectively, the first DP pins Respectively with the 2nd DP pins, the connection of the 3rd DP pins, power supply output pin is connected with power input pin, power management chip and Battery connects.
The course of work is:Mobile phone is primarily based on charging connection relation and determines whether charger is standard charger, that is, Judge the chip that charger internal carries the first DM pins and the first DP pins whether short circuit, be that standard is filled if short circuit Electrical equipment;If not short circuit, illustrate criteria of right and wrong charger, the 5V charging voltages that charger is sent in this case are received, using this 5V charging voltages charge to the battery of mobile phone, it is, in this case charger uses as common charger.
When charger is standard charger, power management chip conveys high electricity by the 2nd DM pins to the first DM pins Flat (i.e. above-mentioned first transmission link), that is, power management chip send preset time to the chip that charger internal carries High level, when the chip that charger internal carries judges to have high level on the first DM pins, and duration meets the requirements When, the first DM pins of the chip controls short circuit that charger internal carries and the first DP pins disconnect, and set the first DM pins It is serial port function pin with the first DP pins.
Further, power management chip recognizes the first DM pins of the chip that charger internal carries and the first DP draws After pin disconnects, it is serial port function pin that power management chip, which sets the 2nd DM pins and the 2nd DP pins, so, mobile phone and charging Can realizes serial communication between device.
When there is the demand of boosting quick charge, the central processing unit of mobile phone is calculated by its internal boosting algorithm Target voltage values, and the target voltage values being calculated are sent to power management chip, power management chip is according to the target Serial port command corresponding to magnitude of voltage matching, then check code is added for the serial port command, target serial port command is obtained, finally, by this Target serial port command sends the chip carried to charger internal.
The chip that charger internal carries verifies after target serial port command is received to the target serial port command, After the completion of verification, answer signal is sent, and charging voltage is exported by power supply output pin.
Power management chip is after the answer signal for the chip transmission that charger internal carries is received, detection power supply output Charging voltage on pin, if the charging voltage on power supply output pin is target voltage values, the electricity of power management chip Source input pin receives the charging voltage, is charged for battery;If the charging voltage on power supply output pin is not target voltage Value, the chip carried to charger internal sends reset command, after the completion of reset, retransmits charge command;If power management core Piece does not receive the answer signal that the chip that charger internal carries is sent, then, the chip carried to charger internal is sent Reset command.
Mobile phone is sent commands to charger, charger check command and response and then boosted by serial ports, can Greatly improved by property and stability.And can boost to the magnitude of voltage specified can settle at one go, shorten pressure rising time.Also, go here and there Mouth communication belongs to traditional stable communication modes, if in transmission command procedure, order receives interference, then is sentenced by check algorithm It is disconnected to come out.Simultaneously by acknowledgement mechanism, mobile phone terminal is it will also be appreciated that whether order is sent to like clockwork, so as to take measures This wrong situation is ordered in reply.
Embodiment two:
The embodiment of the present invention additionally provides a kind of charging system of terminal device, and with reference to figure 4, the system includes terminal device 11 and charger 12;
Terminal device, for establishing the charging connection relation with charger, sent based on charging connection relation to charger Target serial port command, wherein, the information of target voltage values, the information of check code are included in target serial port command;
Charger, for receiving target serial port command, target serial port command is verified, sends answer signal, and it is defeated Go out charging voltage;
Wherein, terminal device is after the answer signal of charger transmission is received, the charging voltage of detection charger output, When charging voltage is target voltage values, terminal device receives charging voltage, is charged with the battery to terminal device.
Further, in the case where terminal device does not receive answer signal, terminal device sends serial ports to charger Reset command, so that charger is resetted.
Further, in the case where terminal device detects that charging voltage is not target voltage values, terminal device is to filling Electrical equipment retransmits charge command.
The charging system for the terminal device that the embodiment of the present invention is provided, its realization principle and caused technique effect are with before It is identical to state embodiment of the method (that is, embodiment one), to briefly describe, system embodiment (that is, embodiment two) part does not refer to it Place, refers to corresponding contents in preceding method embodiment, is no longer repeated herein.
Embodiment three:
The embodiment of the present invention additionally provides a kind of charging device of terminal device, and the device includes:Memory, processor and Storage realizes above-mentioned reality on a memory and the computer program that can run on a processor, during computing device computer program Apply the charging method of the terminal device in example one.
The computer program production of the charging method of terminal device that the embodiment of the present invention is provided a kind of, system and device Product, including the computer-readable recording medium of program code is stored, the instruction that described program code includes can be used for before performing Method described in the embodiment of the method for face, specific implementation can be found in embodiment of the method, will not be repeated here.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description With the specific work process of device, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In addition, in the description of the embodiment of the present invention, unless otherwise clearly defined and limited, term " installation ", " phase Even ", " connection " should be interpreted broadly, for example, it may be being fixedly connected or being detachably connected, or be integrally connected;Can To be mechanical connection or electrical connection;Can be joined directly together, can also be indirectly connected by intermediary, Ke Yishi The connection of two element internals.For the ordinary skill in the art, with concrete condition above-mentioned term can be understood at this Concrete meaning in invention.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
In the description of the invention, it is necessary to explanation, term " " center ", " on ", " under ", "left", "right", " vertical ", The orientation or position relationship of the instruction such as " level ", " interior ", " outer " be based on orientation shown in the drawings or position relationship, merely to Be easy to the description present invention and simplify description, rather than instruction or imply signified device or element must have specific orientation, With specific azimuth configuration and operation, therefore it is not considered as limiting the invention.In addition, term " first ", " second ", " the 3rd " is only used for describing purpose, and it is not intended that instruction or hint relative importance.
Finally it should be noted that:Embodiment described above, it is only the embodiment of the present invention, to illustrate the present invention Technical scheme, rather than its limitations, protection scope of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, it will be understood by those within the art that:Any one skilled in the art The invention discloses technical scope in, it can still modify to the technical scheme described in previous embodiment or can be light Change is readily conceivable that, or equivalent substitution is carried out to which part technical characteristic;And these modifications, change or replacement, do not make The essence of appropriate technical solution departs from the spirit and scope of technical scheme of the embodiment of the present invention, should all cover the protection in the present invention Within the scope of.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (10)

1. a kind of charging method of terminal device, it is characterised in that applied to terminal device, methods described includes:
Establish the charging connection relation with charger;
Target serial port command is sent to the charger based on the charging connection relation, so that the charger is to the target Serial port command is verified, and sends answer signal, and exports charging voltage, wherein, target is included in the target serial port command The information of magnitude of voltage, the information of check code;
After the answer signal that the charger is sent is received, the charging voltage of the charger output is detected, When the charging voltage is the target voltage values, the terminal device receives the charging voltage, to be set to the terminal Standby battery is charged.
2. according to the method for claim 1, it is characterised in that do not receive the answer signal in the terminal device In the case of, methods described also includes:
Serial ports reset command is sent to the charger, so that the charger is resetted.
3. according to the method for claim 1, it is characterised in that detect that the charging voltage is not in the terminal device In the case of the target voltage values, methods described also includes:
Charge command is retransmitted to the charger.
4. according to the method for claim 1, it is characterised in that sent based on the charging connection relation to the charger Target serial port command includes:
Determine whether the charger is standard charger based on the charging connection relation;
In the case where determining that the charger is the standard charger, sent out by the first transmission link to the charger The high level signal of preset time is sent, to control the link between the first of the charger group of pin to disconnect, and by described One group of pin is arranged to serial port function pin, wherein, first group of pin is the DM pins and DP pins of the charger;
It is serial port function pin to set second group of pin, wherein, second group of pin is power management in the terminal device The DM pins and DP pins of chip;
Target voltage values are determined, wherein, the target voltage values are central processing unit in the terminal device according to voltage-regulation What algorithm was calculated;
The target serial port command is generated according to the target voltage values, so that the charger enters to the target serial port command Row verification, sends the answer signal, and export the charging voltage.
5. according to the method for claim 4, it is characterised in that generate the target serial ports according to the target voltage values and order Order includes:
Serial port command is generated according to the target voltage values, wherein, the letters of the target voltage values is included in the serial port command Breath;
The check code is added to the serial port command, to obtain the target serial port command.
6. according to the method for claim 4, it is characterised in that in the case where the charger is non-standard charger, Methods described also includes:
The 5V charging voltages that the charger is sent are received, to be charged using the 5V charging voltages to the battery.
A kind of 7. charging system of terminal device, it is characterised in that including:Terminal device and charger;
The terminal device, for establish with the charging connection relation of the charger, based on the charging connection relation to institute State charger and send target serial port command, wherein, the information of target voltage values is included in the target serial port command, check code Information;
The charger, for receiving the target serial port command, the target serial port command is verified, send response letter Number, and export charging voltage;
Wherein, it is defeated to detect the charger after the answer signal that the charger is sent is received for the terminal device The charging voltage gone out, when the charging voltage is the target voltage values, the terminal device receives the charging electricity Pressure, is charged with the battery to the terminal device.
8. system according to claim 7, it is characterised in that
In the case where the terminal device does not receive the answer signal, the terminal device sends to the charger and gone here and there Mouth reset command, so that the charger is resetted.
9. system according to claim 7, it is characterised in that
In the case where the terminal device detects that the charging voltage is not the target voltage values, the terminal device to The charger retransmits charge command.
A kind of 10. charging device of terminal device, it is characterised in that including:Memory, processor and it is stored in the memory Computer program that is upper and can running on the processor, it is characterised in that computer program described in the computing device The charging method of terminal device any one of Shi Shixian the claims 1 to 6.
CN201710654054.3A 2017-08-02 2017-08-02 Charging method, system and device of terminal equipment Active CN107425570B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710654054.3A CN107425570B (en) 2017-08-02 2017-08-02 Charging method, system and device of terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710654054.3A CN107425570B (en) 2017-08-02 2017-08-02 Charging method, system and device of terminal equipment

Publications (2)

Publication Number Publication Date
CN107425570A true CN107425570A (en) 2017-12-01
CN107425570B CN107425570B (en) 2020-06-19

Family

ID=60436717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710654054.3A Active CN107425570B (en) 2017-08-02 2017-08-02 Charging method, system and device of terminal equipment

Country Status (1)

Country Link
CN (1) CN107425570B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112636402A (en) * 2019-09-24 2021-04-09 北京小米移动软件有限公司 Charging method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140139033A1 (en) * 2008-12-12 2014-05-22 Hanrim Postech Co., Ltd. Non-contact power transmission apparatus
CN105071473A (en) * 2015-08-11 2015-11-18 小米科技有限责任公司 USB charging method and device
CN105449764A (en) * 2015-12-17 2016-03-30 小米科技有限责任公司 Charging method, charging apparatus and charging system
CN105932729A (en) * 2016-04-27 2016-09-07 乐视控股(北京)有限公司 Charger authentication method and device for electronic equipment and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140139033A1 (en) * 2008-12-12 2014-05-22 Hanrim Postech Co., Ltd. Non-contact power transmission apparatus
CN105071473A (en) * 2015-08-11 2015-11-18 小米科技有限责任公司 USB charging method and device
CN105449764A (en) * 2015-12-17 2016-03-30 小米科技有限责任公司 Charging method, charging apparatus and charging system
CN105932729A (en) * 2016-04-27 2016-09-07 乐视控股(北京)有限公司 Charger authentication method and device for electronic equipment and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112636402A (en) * 2019-09-24 2021-04-09 北京小米移动软件有限公司 Charging method and device and electronic equipment

Also Published As

Publication number Publication date
CN107425570B (en) 2020-06-19

Similar Documents

Publication Publication Date Title
CN105680501B (en) Portable electronic device and its charging method
CN106787055B (en) A kind of charging circuit, system, method and terminal
CN104393628B (en) USB charger, mobile terminal and charging control method
US10554060B2 (en) Systems and methods for charging via USB port
US9859740B2 (en) Adapter, portable electronic device and charge control method thereof
CN105576727B (en) Method, device and system for quick charging
CN106537719A (en) Electronic device, charger, charging system, and charging method
CN105429245A (en) Charging control method and charging control device
CN105281398A (en) Portable device, cable assembly, and USB system
CN107707000B (en) OTG power supply and wireless charging compatible circuit, related method and terminal equipment
CN106356918A (en) Quick charge recognition method and terminal equipment
CN106532820A (en) Quick charging method and electronic equipment
CN103618356A (en) Charging system for mobile terminal and charging method thereof
CN105829990A (en) Method and apparatus for charging electronic device with USB connection
CN104377781A (en) Adapter, charging system comprising same and charging method using same
CN108599281A (en) a kind of mobile terminal and charging method
CN105071484B (en) A kind of charging method and device of the terminal with data exchanging function
CN110138022A (en) Charging unit, battery charge controller, terminal device and charging method
CN103647318A (en) Communication terminal, and charging control method, apparatus, and circuit
CN105048018B (en) The charging method and device of a kind of terminal with data exchanging function
CN105826962B (en) Poewr control method and device in a kind of charging process
CN107681730A (en) A kind of battery, terminal device, charging system, the recognition methods of battery and device
CN106972558B (en) Charging control method and electronic equipment
CN107425570A (en) Charging method, system and the device of terminal device
CN106384436A (en) Intelligent charging system and intelligent charging method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant