The content of the invention
It is an object of the invention to provide a kind of recognition methods of mobile terminal safe charging and system, user can not only be promptedUsing the matching degree of charging device, and avoid in charging process because electronic component aging and charging mismatch causeSafety problem, so as to ensure charging security requirement.
The invention provides a kind of recognition methods of mobile terminal safe charging, comprise the following steps;
The charging status information of monitoring mobile terminal in real time;When monitoring that mobile terminal is in charged state, mobile terminal is obtainedOperation information;The operation information includes temperature information and charge parameter information;
By the temperature information compared with preset temperature threshold value, the mark that mobile terminal is obtained according to comparative result is believedBreath;
The charging curve information according to corresponding to obtaining the identification information, according to the charging curve information to the chargingAnalysis is identified in parameter information, obtains matching degree information;And matching degree information is carried out whether the current charging of feedback prompts is pacifiedEntirely.
As a kind of embodiment, it is described by the temperature information compared with preset temperature threshold value, according to comparingAs a result the identification information of mobile terminal is obtained, is comprised the following steps;
By the temperature information compared with preset temperature threshold value, judge whether the temperature information exceedes preset temperatureThreshold value;
If the temperature information exceedes preset temperature threshold value, the protection circuit of control mobile terminal disconnects mobile terminal charging,And produce temperature prompt information and fed back;
If the temperature information is no more than preset temperature threshold value, the identification information of mobile terminal is obtained.
As a kind of embodiment, the charging curve information according to corresponding to obtaining the identification information, including withLower step;
Local data base handle all over inquiry according to the type information of the identification information, judges the local data baseWith the presence or absence of corresponding charging curve information;
If corresponding charging curve information is not present in the local data base, the logical of mobile terminal and external server is establishedNews connection, obtained according to the identification information from external server corresponding to charging curve information, and by the charging curveInformation is downloaded in local data base;
If charging curve information corresponding to the local data base presence, extraction parse the charging curve information.
It is described that the charge parameter information is identified according to the charging curve information as a kind of embodimentAnalysis, comprises the following steps;
The charging current of the charge parameter information is joined according to the charging current curve information of the charging curve informationAnalysis is identified in number information;
And/or according to the charging of the charging voltage calibration curve information of the charging curve information to the charge parameter informationAnalysis is identified in voltage parameter information.
As a kind of embodiment, the recognition methods of mobile terminal safe charging provided by the invention also includes following stepSuddenly;
After charging curve information corresponding to being obtained according to the identification information, then obtain the Current Temperatures letter of mobile terminalBreath, the Current Temperatures information is judged compared with preset temperature threshold value.
Accordingly, the present invention also provides a kind of identifying system of mobile terminal safe charging, including monitors acquisition module, comparesAcquisition module and Recognition feedback module;
The monitoring acquisition module, for monitoring the charging status information of mobile terminal in real time;When monitoring that mobile terminal is inDuring charged state, the operation information of mobile terminal is obtained;The operation information includes temperature information and charge parameter information;
The relatively acquisition module, for the temperature information compared with preset temperature threshold value, to be tied according to comparingFruit obtains the identification information of mobile terminal;
The Recognition feedback module, for the charging curve information according to corresponding to identification information acquisition, according to describedAnalysis is identified to the charge parameter information in charging curve information, obtains matching degree information;And matching degree information is carried outWhether feedback prompts currently charging is safe.
As a kind of embodiment, the relatively acquisition module includes comparing unit, prompting feedback unit and markInformation acquisition unit;
The comparing unit, for the temperature information compared with preset temperature threshold value, to be judged to the temperature letterWhether breath exceedes preset temperature threshold value;
The prompting feedback unit, if exceeding preset temperature threshold value for the temperature information, control the guarantor of mobile terminalProtection circuit disconnects mobile terminal charging, and produces temperature prompt information and fed back;
The identification information obtaining unit, if being no more than preset temperature threshold value for the temperature information, obtain movementThe identification information at end.
As a kind of embodiment, the Recognition feedback module is included all over inquiry processing unit, download unit and extractionUnit;
Described time inquiry processing unit, local data base is carried out at inquiry for the type information according to the identification informationReason, judge that the local data base whether there is corresponding charging curve information;
The download unit, if corresponding charging curve information is not present for the local data base, establish movementEnd is connected with the communication of external server, obtained according to the identification information from external server corresponding to charging curve believeBreath, and the charging curve information is downloaded in local data base;
The extraction unit, if for charging curve information corresponding to local data base presence, extraction parsing instituteState charging curve information.
As a kind of embodiment, the Recognition feedback module includes electric current discriminance analysis unit and/or voltage identificationAnalytic unit;
The electric current discriminance analysis unit, for according to the charging current curve information of the charging curve information to describedAnalysis is identified in the charging current parameter information of charge parameter information;
The voltage identification analytic unit, for according to the charging voltage calibration curve information of the charging curve information to describedAnalysis is identified in the charging voltage parameter information of charge parameter information.
As a kind of embodiment, the identifying system of mobile terminal safe charging provided by the invention also compares including temperatureModule;
The temperature comparison module, for corresponding to being obtained according to the identification information after charging curve information, then obtainThe Current Temperatures information of mobile terminal is taken, the Current Temperatures information is judged compared with preset temperature threshold value.
Compared with prior art, the technical program has advantages below:
The recognition methods of mobile terminal safe charging provided by the invention and system, wherein, method is included by monitoring in real timeThe charging status information of mobile terminal;When monitoring that mobile terminal is in charged state, the operation information of mobile terminal is obtained;And according toThe operation information of mobile terminal is handled when preset temperature threshold value and charging curve information are to charging, obtains matching degree information;MostIt is whether safe that matching degree information is subjected to feedback prompts currently charging afterwards.The present invention can not only prompt user to use charging deviceMatching degree, and avoid in charging process due to electronic component aging and charging mismatch caused by safety problem,So as to ensure the security requirement of charging.
Embodiment
Below in conjunction with accompanying drawing, the technical characteristic above-mentioned and other to the present invention and advantage are clearly and completely described,Obviously, described embodiment is only the section Example of the present invention, rather than whole embodiments.
Referring to Fig. 1, the recognition methods for the mobile terminal safe charging that the embodiment of the present invention one provides, comprises the following steps;
The charging status information of S100, in real time monitoring mobile terminal;When monitoring that mobile terminal is in charged state, obtain and moveThe operation information of moved end;Operation information includes temperature information and charge parameter information;
S200, by temperature information compared with preset temperature threshold value, according to comparative result obtain mobile terminal mark believeBreath;
S300, the charging curve information according to corresponding to obtaining identification information, charge parameter is believed according to charging curve informationAnalysis is identified in breath, obtains matching degree information;It is and whether the currently charging of matching degree information progress feedback prompts is safe.
It should be noted that mobile terminal includes being not limited to mobile phone terminal, flat board end and computer end etc.;Their main flow operationSystem is generally one kind in Android, ios and Windows.For example, when the main system that mobile phone terminal uses is AndroidWhen, there is BatteryManager (battery management class) class in it, it can send the system broadcasts of Sticky (viscosity) type,Include the various information such as current battery electric quantity state, charged state, battery temperature in its function return value intent.CauseThis, module is monitored in battery electric quantity monitoring application programming interfaces registration that can be to system, carrys out the operation information of detecting system;OperationInformation includes being not limited to temperature information, charge parameter information;In general temperature information is exactly current battery temperature.And chargeParameter information can be the information such as battery electric quantity state, charged state, charging modes, charging current and charging voltage.Yu BenCan register to monitor to system service in embodiment, be disappeared by monitor that BatteryManager sends comprising battery temperatureIntent is ceased, to obtain the temperature information of present battery, is illustrated, code sample is as follows:
Int mTemperature=battery.getIntExtra (BatteryManager.EXTRA_TEMPERATURE,0)。
The letter such as current electric quantity, charging modes, charging current, charging voltage can also be obtained by BatteryManagerBreath, citing, code sample are as follows:
// battery charging arrangements int plugged=battery.getIntExtra (BatteryManager.EXTRA_PLUGGED,-1);
// current voltage int voltage=battery.getIntExtra (BatteryManager.EXTRA_VOLTAGE,-1);
By real-time monitoring system charge information, the real-time of data is effectively guaranteed, charger is calculated for accurateMatching degree provides solid data basis.
Preset temperature threshold value can be a fixed value or a float value, float value be with mobile terminal residing forEnvironment temperature it is relevant, according to residing environment temperature difference set up different preset temperature threshold values respectively.Such as environment temperatureSpend for 32 degrees Celsius, corresponding preset temperature threshold value is 19 degrees Celsius;Environment temperature is 15 degrees Celsius, corresponding preset temperature thresholdIt is worth for 14 degrees Celsius;In the present embodiment, to specific preset temperature threshold value and it is not limited.
Identification information can be type information, number information, company-information and facility information etc.;If mobile terminal isThe mobile phone terminal of Android versions, then there is Build (construction) class in system, can be used for obtaining the related letter of android systemBreath, such as the information such as cell phone manufacturer, mobile phone model, unit type, its code sample are as follows:
// mobile phone model String product=Build.PRODUCT.
Charging curve information is to carry out test collection to each model mobile phone of each manufacturer and corresponding charger to establishCharge graph.The charge graph comprises at least battery electric quantity percentage --- size of current, battery electric quantity percentageThan --- voltage swing.The charge graph of such as battery electric quantity percentage --- size of current shows each present battery electricityMeasure percentage and corresponding size of current;The charge graph of battery electric quantity percentage --- voltage swing, which is shown, each to be worked asPreceding battery electric quantity percentage and corresponding voltage swing.And according to by the charging curve information of foundation with according to correspondingIdentification information is stored;That is classification storage is carried out according to identification informations such as manufacturer, models.In the present embodiment, newlyThe charging curve information of generation is stored in external server, only when in use, just can be according to corresponding to downloading to requestIn mobile terminal, the requirement to mobile end memory is reduced.Feedback prompts can be one kind or several by short message, vibrations and the tinkle of bellsKind is prompted.
The recognition methods of mobile terminal safe charging provided by the invention and system, wherein, method is included by monitoring in real timeThe charging status information of mobile terminal;When monitoring that mobile terminal is in charged state, the operation information of mobile terminal is obtained;And according toThe operation information of mobile terminal is handled when preset temperature threshold value and charging curve information are to charging, obtains matching degree information;MostIt is whether safe that matching degree information is subjected to feedback prompts currently charging afterwards.The present invention can not only prompt user to use charging deviceMatching degree, and avoid in charging process due to electronic component aging and charging mismatch caused by safety problem,So as to ensure the security requirement of charging.
Further, step S200 comprises the following steps;
S210, by temperature information compared with preset temperature threshold value, judge whether temperature information exceedes preset temperature thresholdValue;
If S220, temperature information exceed preset temperature threshold value, the protection circuit of control mobile terminal disconnects mobile terminal charging,And produce temperature prompt information and fed back;
If S230, temperature information are no more than preset temperature threshold value, the identification information of mobile terminal is obtained.
In above-mentioned steps, temperature information obtains when monitoring that mobile terminal is in charged state, and preset temperatureThreshold value is default.When temperature information exceedes preset temperature threshold value, caused temperature prompt information can be by short message, shakeDynamic and the tinkle of bells one or more are prompted.For example in the form of short message it is in temperature information to exceed preset temperature threshold valueWhen, the short message sending of editor will be prestored to client.Judgement just is compared to the Current Temperatures of mobile phone before charging, improvedCharging safety, it also avoid due to the problem of existing temperature problem causes to safe charging in itself for mobile terminal.
It is further to note that after charging curve information corresponding to being obtained according to identification information, then obtain mobile terminalCurrent Temperatures information, Current Temperatures information is judged compared with preset temperature threshold value.Its specific multilevel iudge judgesProcess is identical with above-mentioned steps, and temperature information is simply updated to the temperature of current newest mobile terminal.
Further, the charging curve information according to corresponding to obtaining identification information in step S300 comprises the following steps;
S310, according to the type information of identification information local data base handle all over inquiry, judge that local data base isCharging curve information corresponding to no presence;
If corresponding charging curve information is not present in S320, local data base, mobile terminal and external server are establishedCommunication connection, obtained according to identification information from external server corresponding to charging curve information, and by under charging curve informationIt is loaded onto in local data base;
If charging curve information corresponding to the presence of S330, local data base, extraction parsing charging curve information.
Local data base is for storing charging curve information, and local data base can store each of each manufacturerModel mobile phone and corresponding charging curve information.Local data base is carried out at inquiry in the type information according to identification informationDuring reason, when each charging curve information is stored corresponding identification information and all over ask when identification information be compared, if timeAsk and do not found that the same identification information then thinks that local data base is not present corresponding charging curve and believed in local data baseBreath.Certainly time inquiry processing here can be carried out repeatedly.After charging curve information is downloaded into local data base, according to correspondingIdentification information stored.Charging every time afterwards, it is only necessary to which the charging curve information of extraction parsing local data library storage is justCan be with, without being downloaded every time from external server, the wasting of resources is reduced, improves runnability.
Immediate data can be carried out between local data base and external server to interact, and can also carry out indirect data friendshipMutually.The charging curve information being stored in local data base and external server can be passed in the form of compressed package is encryptedIt is defeated, improve the confidentiality of data.
Further, analysis is identified to charge parameter information according to charging curve information in S300, including it is followingStep;
The charging current parameter information of charge parameter information is entered according to the charging current curve information of charging curve informationRow discriminance analysis;And/or the charging voltage of charge parameter information is joined according to the charging voltage calibration curve information of charging curve informationAnalysis is identified in number information.
That is it can be directly according to electricity charge parameter information to be identified according to charging curve information analysisCarry out discriminance analysis, the discriminance analysis of voltage or the discriminance analysis of Current Voltage of electric current.In the present embodiment, preferable sideCase is that the charging current parameter information of charge parameter information is entered according to the charging current curve information of charging curve information firstRow discriminance analysis;The charging voltage parameter of charge parameter information is believed further according to the charging voltage calibration curve information of charging curve informationAnalysis is identified referring to Fig. 2 in breath.
Below to charge parameter information being identified according to charging curve information the specific discriminance analysis process of analysisIllustrate.
By respectively with the current battery charge percentage of acquisition, current flow size;It is current battery charge percentage, currentVoltage swing is as the battery electric quantity percentage in metadata and charging curve information, size of current;Battery electric quantity percentage, electricityThe value of pressure size homologous thread is made comparisons.Standard is used as using charging curve information;An if Current Voltage quota lower than standard valueDegree, then illustrate charger and the mismatch used, it will causes charging excessively slow, it is possible to remind the current charger of user simultaneouslyMismatch, how many electricity may not all can not filled for a long time.If electric current and voltage ratio standard value are higher by certain amount, equallyIllustrate that charger mismatches, and this result will allow user to be in the damage such as battery of mobile phone, mainboard, or even threaten user'sPersonal safety, is at this time just given to one feedback prompts of user, and recommended user stops current charging and changed suitably immediatelyCharger, and the identification information matched with this mobile terminal can be sent to user so which charger user knowsModel is adapted to the mobile terminal, for user bring it is safe with it is convenient.
It is illustrated in figure 2 the detailed process for judging whether charge parameter information matches:
Step 1, judge whether current flow is equal to reference current;If current flow is equal to reference current, electric current is reasonable,And the feedback information A drawn;If current flow is not equal to reference current, continue to judge whether current flow is more than reference currentThe limit value M that+current value floats;If current flow is greater than the limit value M that reference current+current value floats, what is drawn is anti-Feedforward information A, and judge that electric current is excessive, then it is transferred to step 2;Floated if current flow is not greater than reference current+current valueLimit value M, then continue to judge whether current flow is less than the limit value M that reference current-current value floats;If current flow is less thanThe limit value M that reference current-current value floats, then electric current is reasonable, and the feedback information A drawn;If current flow is not less thanLimit value M, then the feedback information A drawn that reference current-current value floats, and judge that electric current is too small, then it is transferred to step 2;After having judged that electric current is reasonable, it is also transferred to step 2 and continues to judge.
Step 2, judge whether current voltage is equal to reference voltage;If current voltage is equal to reference voltage, voltage reasonable,And the feedback information B drawn;If current voltage is not equal to reference voltage, continue to judge whether current voltage is more than reference voltageThe limit value N that+magnitude of voltage floats;If current voltage is greater than the limit value N that reference voltage+magnitude of voltage floats, what is drawn is anti-Feedforward information B, and judge that voltage is excessive, then feedback information A and feedback information B are fed back;If current voltage is to be not greater thanThe limit value N that reference voltage+magnitude of voltage floats, then continue to judge whether current voltage is less than what reference voltage-magnitude of voltage floatedLimit value N;If current voltage is less than the limit value N that reference voltage-magnitude of voltage floats, then voltage reasonable, and the feedback drawnInformation B;If current voltage judges electricity not less than limit value N, the feedback information B drawn that reference voltage-magnitude of voltage floatsPress through small, then feedback information A and feedback information B are fed back;After voltage reasonable has been judged, then to feedback information A and insteadFeedforward information B is fed back.
Specially first, the difference of current flow and reference current is contrasted;Afterwards, current voltage and reference voltage are contrastedDifference;Finally, the information of the gained after overcurrent, voltage-contrast is collected.Quantitative data further are calculated from qualitative, accuratelyDifference, and with the difference percentage of reference value etc., not only feed back to user's qualitatively direct result, and the essence of deviationFor exact figures according to user is given by a setting analysis, not only contribute to that senior user more removes sees matching degree, and helpsThere can be comparative data in domestic consumer.That is matching degree information can be the fix information such as matching and mismatch,It can be the specific percent value by being calculated.It is to be noted that reference current and reference voltage are charging curve letterIn breath different current battery charge percentages for value.
Based on same inventive concept, the embodiment of the present invention also provides a kind of identifying system of mobile terminal safe charging, and this isThe process that the implementation of system can refer to the above method is realized, it is no longer redundant later to repeat part.
As shown in figure 3, be the structural representation of the identifying system for the mobile terminal safe charging that the embodiment of the present invention two provides,Including monitoring acquisition module 100, compare acquisition module 200 and Recognition feedback module 300;Acquisition module 100 is monitored to be used in factWhen monitor mobile terminal charging status information;When monitoring that mobile terminal is in charged state, the operation information of mobile terminal is obtained;Operation information includes temperature information and charge parameter information;Compare acquisition module 200 to be used for temperature information and preset temperature thresholdValue is compared, and the identification information of mobile terminal is obtained according to comparative result;Recognition feedback module 300 is used to be obtained according to identification informationCharging curve information, analysis is identified according to charging curve information to charge parameter information corresponding to taking, and obtains matching degree letterBreath;It is and whether the currently charging of matching degree information progress feedback prompts is safe.
The identifying system of mobile terminal safe charging provided by the invention, including monitor acquisition module 100, compare acquisition module200 and Recognition feedback module 300;By the charging status information for monitoring mobile terminal in real time;Filled when monitoring that mobile terminal is inDuring electricity condition, the operation information of mobile terminal is obtained;And mobile terminal during according to preset temperature threshold value and charging curve information to chargingOperation information handled, obtain matching degree information;Matching degree information finally is carried out into feedback prompts, and currently whether charging is pacifiedEntirely.The present invention can not only prompt user to use the matching degree of charging device, and avoid in charging process due to electronicsSafety problem caused by component aging and charging mismatch, so as to ensure the security requirement of charging.
Obtained specifically, comparing acquisition module 200 and including comparing unit 210, prompting feedback unit 220 and identification informationUnit 230;Comparing unit 210 is used for temperature information compared with preset temperature threshold value, judges whether temperature information exceedesPreset temperature threshold value;
If prompting feedback unit 220 exceedes preset temperature threshold value for temperature information, the protection circuit of mobile terminal is controlledMobile terminal charging is disconnected, and produces temperature prompt information and is fed back;If identification information obtaining unit 230 is used for temperature information notMore than the identification information of preset temperature threshold value, then acquisition mobile terminal.
Specifically, Recognition feedback module 300 is included all over inquiry processing unit 310, download unit 320 and extraction unit 330;It is used to local data base handle all over inquiry according to the type information of identification information all over processing unit 310 is ask, judges local numberIt whether there is corresponding charging curve information according to storehouse;If download unit 320, which is used for local data base, is not present corresponding charging songLine information, the then communication for establishing mobile terminal and external server connect, and are obtained and corresponded to from external server according to identification informationCharging curve information, and charging curve information is downloaded in local data base;If extraction unit 330 is used for local data baseIn the presence of corresponding charging curve information, then extraction parses charging curve information.
Further, Recognition feedback module 300 includes electric current discriminance analysis unit and/or voltage identification analytic unit;ElectricityFlow charging current of the discriminance analysis unit for the charging current curve information according to charging curve information to charge parameter informationAnalysis is identified in parameter information;Voltage identification analytic unit is used for the charging voltage calibration curve information pair according to charging curve informationAnalysis is identified in the charging voltage parameter information of charge parameter information.
The identifying system for the mobile terminal safe charging that the embodiment of the present invention two provides also includes temperature comparison module;Temperature ratioIt is used for compared with module after charging curve information corresponding to being obtained according to identification information, then obtains the Current Temperatures information of mobile terminal,Current Temperatures information is judged compared with preset temperature threshold value.
Although the present invention is disclosed as above with preferred embodiment, it is not for limiting the present invention, any this areaTechnical staff without departing from the spirit and scope of the present invention, may be by the methods and technical content of the disclosure above to this hairBright technical scheme makes possible variation and modification, therefore, every content without departing from technical solution of the present invention, according to the present inventionAny simple modifications, equivalents, and modifications made to above example of technical spirit, belong to technical solution of the present inventionProtection domain.