The content of the invention
In view of this, the embodiment of the present invention provides a kind of determination methods of charger type, judges system and user terminal,It can not independently judge whether charger is matching to solve the problems, such as existing user terminal in charging process.
In a first aspect, a kind of determination methods for charger type that one embodiment of the invention provides, applied to user terminal,Including:Obtain the hardware data of charger;When the hardware data of charger mismatches with user terminal, output mismatch carriesShow.
In an embodiment of the present invention, hardware data is port type information.
In an embodiment of the present invention, this method further comprises:When the hardware data of charger matches with user terminalWhen, obtain the first running parameter of user terminal;When the first running parameter exceeds normal range (NR), output mismatches prompting.
In an embodiment of the present invention, this method further comprises:When the first running parameter is in normal range (NR), obtainSecond running parameter of user terminal;When the second running parameter keeps off the theoretical value of the second running parameter, output mismatchesPrompting;When theoretical value of second running parameter close to the second running parameter, output matching prompting.
In an embodiment of the present invention, the first running parameter is battery temperature when user terminal is in constant-current charging phaseDegree, the second running parameter are current value when user terminal is in constant-current charging phase.
Second aspect, one embodiment of the invention provide a kind of judgement system of charger type, applied to user terminal, bagInclude:Hardware data acquisition module, for obtaining the hardware data of charger;Hardware data mismatches reminding module, is filled for working asWhen the hardware data of electrical equipment mismatches with user terminal, output mismatches prompting.
In an embodiment of the present invention, the hardware data that hardware data acquisition module obtains is port type information.
In an embodiment of the present invention, the system further comprises:First running parameter acquisition module, for working as chargerHardware data when being matched with user terminal, obtain the first running parameter of user terminal;First running parameter mismatches promptingModule, for when the first running parameter exceeds normal range (NR), output to mismatch prompting.
In an embodiment of the present invention, the system further comprises:Second running parameter acquisition module, for when the first workWhen making parameter and being in normal range (NR), the second running parameter of user terminal is obtained;Second running parameter mismatches reminding module, usesWhen the theoretical value of the second running parameter is kept off when the second running parameter, output mismatches prompting;Second running parameter matchesReminding module, for when theoretical value of second running parameter close to the second running parameter, output matching to be prompted.
In an embodiment of the present invention, when the first running parameter in the system is that user terminal is in constant-current charging phaseBattery temperature, the second running parameter is current value when user terminal is in constant-current charging phase.
The third aspect, one embodiment of the invention provide a kind of user terminal, and the user terminal includes any of the above-described embodimentThe judgement system of described charger type.
Fourth aspect, one embodiment of the invention provide a kind of user terminal, the user terminal include processor, memory andThe proving program that can be run on a memory and on a processor is stored, is realized when proving program is executed by processor any of the above-describedThe step of determination methods of charger type described by embodiment.
5th aspect, one embodiment of the invention provide a kind of computer-readable recording medium, the computer-readable storage mediumProving program is stored with matter, the charger type described by any of the above-described embodiment is realized when proving program is executed by processorDetermination methods the step of.
The determination methods of charger type provided in an embodiment of the present invention work as acquisition by obtaining the hardware data of chargerHardware data and user terminal when mismatching, output mismatches the mode of prompting, realizes the charging process in user terminalIt is middle judge the charger that uses whether the purpose matched with the user terminal.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, completeSite preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Based on thisEmbodiment in invention, the every other reality that those of ordinary skill in the art are obtained under the premise of creative work is not madeExample is applied, belongs to the scope of protection of the invention.
Fig. 3 show the schematic flow sheet of the determination methods of the charger type of first embodiment of the invention offer.Such as Fig. 3Shown, the determination methods for the charger type that first embodiment of the invention provides include:
Step 10:Obtain the hardware data of charger.
Step 20:When the hardware data of charger mismatches with user terminal, output mismatches prompting.
In an embodiment of the present invention, hardware data is port type information, the multiple types such as including SDP, CDP and DCPType data.Wherein, port type is mainly determined according to the D+ of port and D-.
It should be appreciated that hardware data can also be other kinds of hardware data, the present invention no longer repeats this one by one.
In actual application, the hardware data (such as port type information) of charger is obtained first, then will be obtainedHardware data matched with user terminal, when hardware data and the user terminal of acquisition mismatch, output mismatch carriesShow.
The determination methods for the charger type that first embodiment of the invention provides by obtaining the hardware data of charger, whenWhen the hardware data of acquisition mismatches with user terminal, output mismatches the mode of prompting, realizes the charging in user terminalDuring the charger that judges to use whether the purpose matched with the user terminal.
Fig. 4 show the schematic flow sheet of the determination methods of the charger type of second embodiment of the invention offer.At thisExtend second embodiment of the invention on the basis of invention first embodiment, second embodiment of the invention is implemented with the present invention firstExample is essentially identical, and narration difference, something in common repeat no more emphatically below.
As shown in figure 4, the determination methods for the charger type that second embodiment of the invention provides are implemented in the present invention firstFurther comprise after the step 20 of the determination methods for the charger type that example provides:
Step 30:When the hardware data of charger matches with user terminal, the first running parameter of user terminal is obtained.
In an embodiment of the present invention, the first running parameter is battery temperature when user terminal is in constant-current charging phaseDegree.Battery temperature during by the way that the first running parameter being set as into user terminal is in constant-current charging phase can simply, it is quickGround detects whether charger matches with user terminal.
Step 40:When the first running parameter exceeds normal range (NR), output mismatches prompting.
It should be appreciated that the normal range (NR) of the first running parameter can be set according to actual conditions, the present embodiment to this notIt is construed as limiting.
In an embodiment of the present invention, the normal range (NR) for the first running parameter of setting sets fault tolerance.ShouldUnderstand, the fault tolerance of the normal range (NR) of setting can also not be limited this according to actual conditions sets itself, the present embodimentIt is fixed.
In an embodiment of the present invention, when the first running parameter is battery temperature when user terminal is in constant-current charging phaseWhen spending, the fault tolerance of its normal range (NR) is set as ± 5 DEG C, fully to adapt to practical application.
In actual application, the hardware data (such as port type information) of charger is obtained first, then will be obtainedHardware data matched with user terminal, when the hardware data of acquisition matches with user terminal, obtain user terminalFirst running parameter, when the first running parameter exceeds normal range (NR), output mismatches prompting.
The determination methods for the charger type that second embodiment of the invention provides pass through when the hardware data and user that obtainDuring terminal coupling, the first running parameter of user terminal is obtained, when the first running parameter exceeds normal range (NR), output mismatchesThe mode of prompting, realize and quickly judge the purpose whether charger matches with user terminal.
Fig. 5 show the schematic flow sheet of the determination methods of the charger type of third embodiment of the invention offer.At thisExtend third embodiment of the invention on the basis of invention second embodiment, third embodiment of the invention is implemented with the present invention secondExample is essentially identical, and narration difference, something in common repeat no more emphatically below.
As shown in figure 5, the determination methods for the charger type that third embodiment of the invention provides are implemented in the present invention secondFurther comprise after the step 40 of the determination methods for the charger type that example provides:
Step 50:When the first running parameter is in normal range (NR), the second running parameter of user terminal is obtained.
Step 60:When the second running parameter keeps off the theoretical value of the second running parameter, output mismatches prompting.
Step 70:When theoretical value of second running parameter close to the second running parameter, output matching prompting.
In an embodiment of the present invention, compared for the second running parameter and the comparison setting of the theoretical value of the second running parameterThreshold value, wherein, the concrete numerical value and set-up mode for comparing threshold value can be set according to actual conditions, and the present embodiment is not made to thisLimit.
In an embodiment of the present invention, the second running parameter is current value when user terminal is in constant-current charging phase.
Because the current value that when charger matches with user terminal, user terminal is in constant-current charging phase is fixedMaximum current value, if mismatching, it can determine that charger mismatches with user terminal.Therefore, the second running parameter is set asCurrent value when user terminal is in constant-current charging phase, which can be realized, precisely judges whether charger matches with user terminal, withBe substantially prevented from because the production standard of different vendor slightly has difference, caused by the consistent charger of port type also different feelingsCondition, improve the accuracy of judgement.
In actual application, the hardware data (such as port type information) of charger is obtained first, then will be obtainedHardware data matched with user terminal, when the hardware data of acquisition matches with user terminal, obtain user terminalFirst running parameter, when the first running parameter is in normal range (NR), the second running parameter of user terminal is obtained, when the second workWhen keeping off the theoretical value of the second running parameter as parameter, output mismatches prompting, when the second running parameter works close to secondDuring the theoretical value of parameter, output matching prompting.
The determination methods for the charger type that third embodiment of the invention provides when the first running parameter by being in normalDuring scope, the second running parameter of user terminal is obtained, when the second running parameter keeps off the theoretical value of the second running parameter,Output mismatches prompting, and when theoretical value of second running parameter close to the second running parameter, the mode of output matching prompting is realShow the accurate matching of charger and user terminal, improve the accuracy of matching.
Fig. 6 show the practical application schematic diagram of the determination methods of the charger type of fourth embodiment of the invention offer.As shown in fig. 6, the determination methods for the charger type that fourth embodiment of the invention provides include:
Step S1:Judge whether charger type is consistent with standard charger.
In step sl, when the charger type of judgement is consistent with standard charger, step S2 is performed, when filling for judgementWhen appliance type and inconsistent standard charger, step S6 is performed.
Step S2:Detection is in battery temperature during constant-current charging phase.
Step S3:Judge battery temperature whether in normal temperature range.
In step s3, when judging that battery temperature is in normal temperature range, step S4 is performed, when judging battery temperatureWhen degree is not in normal temperature range, step S6 is performed.
Step S4:Judge constant-current charging phase electric current whether close to standard charger maximum charging current.
In step s 4, when the electric current for judging constant-current charging phase is near the mark the maximum charging current of charger, holdRow step S5, when the electric current for judging constant-current charging phase keeps off the maximum charging current of standard charger, perform step S6.
Step S5:It is standard charger to prompt current charger.
Step S6:It is non-standard charger to prompt current charger.
It should be appreciated that whether the battery temperature mentioned in step S3 and step S4 fills in normal temperature range and constant currentWhether the electric current in electric stage close to the judgement of the maximum current of standard charger is set with comparison threshold value all in accordance with actual conditions,Fully to improve the adaptability of the determination methods of charger type provided in an embodiment of the present invention.Wherein, the specific of threshold value is comparedNumerical value and set-up mode can be not construed as limiting according to actual conditions sets itself, the embodiment of the present invention to this.
Fig. 7 show the structural representation of the judgement system of the charger type of fifth embodiment of the invention offer.Such as Fig. 7Shown, the judgement system for the charger type that fifth embodiment of the invention provides includes:
Hardware data acquisition module 100, for obtaining the hardware data of charger.
Hardware data mismatches reminding module 200, defeated for when hardware data and the user terminal of charger mismatchGo out to mismatch prompting.
Fig. 8 show the structural representation of the judgement system of the charger type of sixth embodiment of the invention offer.At thisInvent and extend sixth embodiment of the invention on the basis of the 5th embodiment, sixth embodiment of the invention is implemented with the present invention the 5thExample is essentially identical, and narration difference, something in common repeat no more emphatically below.
As shown in figure 8, the charger type that sixth embodiment of the invention provides judges system to be real in the present invention the 5thThe judgement system for applying the charger type of example offer further comprises:
First running parameter acquisition module 300, for when the hardware data of charger matches with user terminal, obtaining and usingFirst running parameter of family terminal.
First running parameter mismatches reminding module 400, for when the first running parameter exceeds normal range (NR), output to be notMatching prompting.
Fig. 9 show the structural representation of the judgement system of the charger type of seventh embodiment of the invention offer.At thisExtend seventh embodiment of the invention on the basis of invention sixth embodiment, seventh embodiment of the invention is implemented with the present invention the 6thExample is essentially identical, and narration difference, something in common repeat no more emphatically below.
As shown in figure 9, the charger type that seventh embodiment of the invention provides judges system to be real in the present invention the 6thThe judgement system for applying the charger type of example offer further comprises:
Second running parameter acquisition module 500, for when the first running parameter is in normal range (NR), obtaining user terminalThe second running parameter.
Second running parameter mismatches reminding module 600, for keeping off the second running parameter when the second running parameterDuring theoretical value, output mismatches prompting.
Second running parameter matches reminding module 700, for working as the second running parameter close to the theory of the second running parameterDuring value, output matching prompting.
Hardware data acquisition module 100, hardware data in the judgement system for the charger type that Fig. 7 to Fig. 9 is provided are notMatch reminding module 200, the first running parameter acquisition module 300, the first running parameter and mismatch reminding module 400, the second workMake parameter acquisition module 500, the second running parameter mismatches the running parameter of reminding module 600 and second matching reminding module 700Operation and function may be referred to the determination methods of the charger type that above-mentioned Fig. 3 to Fig. 5 is provided, in order to avoid repeating, hereinRepeat no more.
One embodiment of the invention provides a kind of user terminal, and the user terminal includes filling described by any of the above-described embodimentThe judgement system of appliance type.The user terminal includes but is not limited to the user terminals such as mobile phone, tablet personal computer.
Figure 10 show the structural representation of the judgement system of the charger type of eighth embodiment of the invention offer.Figure 10The judgement system of offer is used to perform the method described in embodiments of the Fig. 3 to Fig. 5.The system includes processor 810, memory820 and bus 830.
Processor 810, for calling the code stored in memory 820 by bus 830, to obtain the hardware of chargerData;When the hardware data of charger mismatches with user terminal, output mismatches prompting.
In an embodiment of the present invention, a kind of user terminal is also provided, the user terminal includes processor, memory and depositedThe proving program that can be run on a memory and on a processor is stored up, the proving program is realized any of the above-described when being executed by processorThe step of determination methods of charger type described by item embodiment.The user terminal includes but is not limited to mobile phone, flat board electricityThe user terminals such as brain.
In an embodiment of the present invention, a kind of computer-readable recording medium is also provided, on computer-readable recording mediumProving program is stored with, the proving program realizes the charger type described by any of the above-described embodiment when being executed by processorDetermination methods the step of.The computer-readable storage medium can be any tangible media, such as floppy disk, CD-ROM, DVD, hard diskDriver, even network medium etc..
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described hereinMember and algorithm steps, it can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardwareWith the interchangeability of software, the composition and step of each example are generally described according to function in the above description.ThisA little functions are performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.SpeciallyIndustry technical staff can realize described function using distinct methods to each specific application, but this realization is notIt is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, can be withRealize by another way.For example, device embodiment described above is only schematical, for example, the unitDivision, only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizingAnother system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown orThe mutual coupling discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unitClose or communicate to connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unitThe part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multipleOn NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can alsoThat unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated listMember can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or useWhen, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantiallyThe part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software productsEmbody, the computer software product is stored in a storage medium, including some instructions are causing a computerEquipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the present inventionPortion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-OnlyMemory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journeyThe medium of sequence code.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present inventionWithin god and principle, any modification for being made, equivalent substitution etc., it should be included in the scope of the protection.