CN106655339A - Mobile terminal charging management method and apparatus, and mobile terminal - Google Patents

Mobile terminal charging management method and apparatus, and mobile terminal Download PDF

Info

Publication number
CN106655339A
CN106655339A CN201611005449.2A CN201611005449A CN106655339A CN 106655339 A CN106655339 A CN 106655339A CN 201611005449 A CN201611005449 A CN 201611005449A CN 106655339 A CN106655339 A CN 106655339A
Authority
CN
China
Prior art keywords
data
charging
mobile terminal
wire pin
voltage
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
CN201611005449.2A
Other languages
Chinese (zh)
Other versions
CN106655339B (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201611005449.2A priority Critical patent/CN106655339B/en
Publication of CN106655339A publication Critical patent/CN106655339A/en
Application granted granted Critical
Publication of CN106655339B publication Critical patent/CN106655339B/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/007Regulation of charging or discharging current or voltage

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention relates to a mobile terminal charging management method and apparatus, and a mobile terminal. Specifically, the method comprises: reading the three-axis sensing data of a gravity sensor when voltage is input into the charging pin of a charging management chip; then determining whether all the three-axis sensing data is in corresponding preset threshold ranges; instructing the charging management chip to charge a battery in mobile terminal with desktop charging current if yes, otherwise, instructing the charging management chip to charge the battery in mobile terminal with USB charging current. Since the mobile terminal, when being charged in a desktop charging mode, is required to be tightly combined with a desktop charger to guarantee that the three-axis sensing data detected by the gravity sensor of the terminal is basically unchanged each time, the above method may detect the desktop charging mode. The method does not need a detection and isolation circuit and reduces production cost.

Description

A kind of charging management method of mobile terminal, device and mobile terminal
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of charging management method of mobile terminal, device and movement Terminal.
Background technology
To meet different user's requests, current mobile phone can be charged using various ways, for example, except the most frequently used Outside MICRO-USB (Micro Universal Serial Bus, micro universal serial bus) charging modes, also seat charges Mode.Wherein, be present fill in charging modes, two pins are generally provided with mobile phone, be respectively power supply (VBUS) pin and Ground connection (GND) pin, electric energy is transferred to the battery of mobile phone by above-mentioned two pin.
Due to the most of charging management chip only one of which charging pins in mobile phone, so work as be provided with mobile phone simultaneously When MICRO-USB charge functions and seat fill charge function, the power pins that MICRO-USB charging inlets and seat are filled in charging inlet It is connected to the charging pins.To realize the effective protection to battery of mobile phone, in mobile phone charging process, need to above two Charging modes are detected, so that charging management chip is directed to different charging modes, using different charging currents to battery Charge.Fig. 1 is the structural representation that charging modes detect circuit in mobile phone.As shown in figure 1, the circuit fills charging inlet including seat 1st, USB charging inlets 2, charging management chip 3, battery 4 and cpu chip 5, wherein, seat fills charging inlet 1 and USB charging inlets 2 In power pins VBUS be connected with the charging pins of charging management chip 3, the output pin and battery of charging management chip 3 4 connections;Further, the positive wire pin D+ of data and data negative wire pin D- in USB charging inlets 2 connects with cpu chip 5 Connect, when being charged using MICRO-USB charging modes, the data that above-mentioned data positive wire pin D+ and data negative wire pin D- sends To cpu chip 5, so that cpu chip 5 carries out USB charging modes detections;Set at power pins VBUS that seat is filled in charging inlet 1 There is detection circuit 12, when using seat charging, the output detection signal of detection circuit 12 is given to cpu chip 5, makes cpu chip 5 Know that charging modes are that seat charges.In addition, filling charging inlet 1 to prevent the voltage at USB charging inlets 2 to be back to seat At power pins 11, and detection trigger circuit 12, cause the wrong identification of cpu chip 5 charges for seat, in charging management chip 3 Charging pins and seat fill between the power pins 11 of charging inlet 1 and be additionally provided with isolation circuit 13.
Although above-mentioned charging modes detection circuit can respectively detect that MICRO-USB charges and seat charges, right Seat charge detection when, needs increase extra detection circuit 12 and isolation circuit 13 on hardware, so not only increase hardware Cost, also add the cloth plate suqare of wiring board.
The content of the invention
To overcome problem present in correlation technique, the present invention to provide a kind of charging management method of mobile terminal, device And mobile terminal.
First aspect according to embodiments of the present invention, there is provided a kind of charging management method of mobile terminal, the method includes:
When the charging pins of charging management chip have control source, then three axle sensing datas of gravity sensor are read, Wherein, the preset threshold range is used to indicate that the mobile terminal fills charging modes and is charged using seat;
Judge whether the three axles sensing data is in corresponding preset threshold range;
If the three axles sensing data is in corresponding preset threshold range, controlling the charging management chip makes Charging current is filled with seat to charge to the battery in the mobile terminal;
Otherwise, then control the charging management chip and use general-purpose serial bus USB charging current to the mobile terminal In battery charge.
Second aspect according to embodiments of the present invention, there is provided a kind of charging controller of mobile terminal, the device includes Processor, memory and communication interface, the processor, the memory are connected with the communication interface communication bus;
The communication interface, for receiving and sending signal parameter;
The memory, for store program codes;
The processor, for reading the memory in the program code that stores, and perform the charging valve of mobile terminal Reason method.
A kind of third aspect according to embodiments of the present invention, there is provided mobile terminal, including above-mentioned charging controller, also wrap Charging management chip and gravity sensor are included, the charging controller is passed respectively with the charging management chip and the gravity Sensor connects.
From above technical scheme, the present invention implement a kind of charging management method of the mobile terminal for providing, device and Mobile terminal.When the charging pins of charging management chip have control source, then three axle sensing datas of gravity sensor are read, Then, then judge whether the three axles sensing data is in corresponding preset threshold range;If the three axles sensing data Corresponding preset threshold range is in, is then controlled the charging management chip and is filled charging current to the mobile terminal using seat In battery charge.When being in different modes of emplacements due to mobile terminal, its internal gravity sensor will obtain difference Three axle sensing datas, also, when terminal is charged using the seat mode of filling, mobile terminal needs to fill cradle secret knot with seat Close, and then when ensure that each mobile terminal is charged using the seat mode of filling, three axles that its internal gravity sensor is detected are passed Sense data also hardly change, therefore, charging management method provided in an embodiment of the present invention can be realized filling seat Effective detection electrically, also, the method is without the need for increasing detection circuit and isolation circuit, and then reduce production cost.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The present invention can be limited.
Description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the enforcement for meeting the present invention Example, and be used to explain the principle of the present invention together with specification.
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without having to pay creative labor, can be with according to these other accompanying drawings of accompanying drawings acquisition.
Fig. 1 is the structural representation that charging modes detect circuit in mobile phone of the prior art;
Fig. 2 a are the first application scenarios schematic diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 2 b are the second application scenarios schematic diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 3 is application scenarios schematic diagram of the mobile terminal provided in an embodiment of the present invention using seat charging;
Fig. 4 is the schematic flow sheet of the charging management method of the mobile terminal of the embodiment of the present invention one;
Fig. 5 is the schematic flow sheet of the charging management method of the mobile terminal of the embodiment of the present invention two;
Fig. 6 is the schematic flow sheet of the charging management method of the mobile terminal of the embodiment of the present invention three;
Fig. 7 is a kind of structural representation of the charging controller of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.Conversely, they be only with it is such as appended The example of the consistent apparatus and method of some aspects described in detail in claims, the present invention.
At present gravity sensor is typically provided with most mobile terminal, for example, the automatic roller blind of mobile terminal is exactly root Perform after being judged according to the inspection data of gravity sensor, also, mobile terminal is in its gravity biography of different modes of emplacements Sensor can obtain different three axles (X, Y, Z axis) sensing datas, and Fig. 2 a and Fig. 2 b is two kinds provided in an embodiment of the present invention applications Schematic diagram of a scenario.As shown in Figure 2 a and 2 b, respectively show mobile terminal under two kinds of modes of emplacements, gravity sensor Three axle sensing datas detected by (Sensor Dump), specifically, in fig. 2 a its three axles sensing data is respectively X-axis and adds Velocity amplitude (X-Accel):0.5506592m/s^2, Y-axis accekeration (Y-Accel):0.05267334m/s^2, Z axis acceleration Value (Z-Accel):10.214859m/s^2, in figure 2b its three axles sensing data be respectively X-axis accekeration (X-Accel): 0.6528168m/s^2, Y-axis accekeration (Y-Accel):6.9635315m/s^2, Z axis accekeration (Z-Accel): 7.343811m/s^2。
Further, when in mobile terminal seat charge and USB port charging two ways simultaneously in the presence of, in order to ensure two Planting charging modes will not be carried out simultaneously, typically all seat can be filled into contact and USB port is arranged on the same side of terminal, and the present invention is implemented Example is also to fill contact mainly for seat and USB port is arranged on the scheme of terminal the same side.Fig. 3 is shifting provided in an embodiment of the present invention Dynamic terminal is charged using the application scenarios schematic diagram of seat charging as shown in figure 3, working as mobile terminal and placing present filling in cradle When, can contact with cradle well in order to the seat for ensureing terminal fills contact, the meeting contacted between terminal and cradle is tighter It is close, so, when the position that terminal is placed in cradle also can be very stable, so make terminal position be also it is relatively-stationary, Therefore the three axle sensing datas for detecting of gravity sensor also hardly change.
When filling charging modes using seat based on above-mentioned mobile terminal, the characteristics of its position is relatively fixed, the embodiment of the present invention There is provided a kind of charging management method of mobile terminal, the cardinal principle of the method is sensed by three axles to gravity sensor The detection of data, realizes the judgement to charging modes.
It should be noted that the mobile terminal in the embodiment of the present invention can be for mobile phone, panel computer or other are portable Equipment etc., in embodiments of the present invention, does not limit this.
Fig. 4 is the schematic flow sheet of the charging management method of the mobile terminal of the embodiment of the present invention one.As shown in figure 4, the party Method mainly comprises the steps:
S110:When the charging pins of charging management chip have control source, then the three axles sensing of gravity sensor is read Data.
When the charging pins for detecting charging management chip have control source, then start testing process, and read movement Three axle sensing datas of terminal inner gravity sensor.
S120:Judge whether the three axles sensing data is in corresponding preset threshold range, wherein, the default threshold Value scope is used to indicate that the mobile terminal fills charging modes and is charged using seat.
For example, if the mobile terminal fills charging modes using seat when being charged, corresponding three axles sensing data it is pre- If threshold range is respectively A, B and C, then judge the X-axis sensing data in the three axle sensing datas for reading whether in default threshold In value scope A, whether Y-axis sensing data is in preset threshold range B and whether Z axis sensing data is in predetermined threshold value In scope C, if above-mentioned X, Y and Z axis sensing data are in corresponding preset threshold range, execution step S130, otherwise, If above-mentioned have a sensing data to be not in corresponding preset threshold range, execution step S140.
S130:If the three axles sensing data is in corresponding preset threshold range, the Charge Management is controlled Chip fills charging current and charges to the battery in the mobile terminal using seat.
If the three axle sensing datas for reading are in corresponding preset threshold range, the position for illustrating mobile terminal is slotting Enter to corresponding position during seat charger, it is possible to adopt seat to fill charging current and charge for the battery in mobile terminal, such as Large current charge is carried out according to setting electric current value (1.5A).
S140:Otherwise, then the charging management chip is controlled using general-purpose serial bus USB charging current to the movement Battery in terminal charges.
If having one to be not in corresponding preset threshold range in the three axle sensing datas for reading, illustrate as mobile terminal Position be not inserted into corresponding position during charger, and charging current is drawn by the USB port on mobile terminal Enter, it is possible to charged to the battery in mobile terminal using the corresponding charging current of USB rechargeable standards, specifically, can be with By the voltage signal in the positive wire pin of the data (D+) and data negative wire pin (D-) that read USB charging inlets, according to reading The voltage signal for arriving, control charging management chip is according to the corresponding charging current of specific USB standard to the electricity in mobile terminal Pond is charged, and for example, is charged the battery according to USB charger, charging downstream interface or standard down interface standard.
In present invention method, when the charging pins that the CPU in mobile terminal detects charging management chip have electricity During pressure input, then three axle sensing datas of gravity sensor are read, then, then judge whether three axle sensing datas are in accordingly Preset threshold range;If three axle sensing datas are in corresponding preset threshold range, control charging management chip is adopted Charging current is filled with seat to charge to the battery in mobile terminal, otherwise, filled to the battery in mobile terminal using USB charging currents Electricity.
Present invention method, when being in different modes of emplacements due to mobile terminal, its internal gravity sensor Three different axle sensing datas will be obtained, also, when terminal is charged using the seat mode of filling, mobile terminal needs to be filled with seat The close combination of electric base, and then when ensure that each mobile terminal is charged using the seat mode of filling, its internal gravity sensor detection To three axle sensing datas also hardly change, such that it is able to realize filling seat the effective detection of charging modes, also, The method reduces production cost without the need for increasing detection circuit and isolation circuit.
Further, in order to improve the detection accuracy to three axle sensing datas, embodiment of the present invention still other charges Management method.Fig. 5 is the schematic flow sheet of the charging management method of the mobile terminal of the embodiment of the present invention two.As shown in figure 5, the party Method mainly comprises the steps:
S110:When the charging pins of charging management chip have control source, then the three axles sensing of gravity sensor is read Data.
S210:Choose all described three axles sensing data read in preset duration.
CPU in mobile terminal can read three axle sensing datas of gravity sensor according to prefixed time interval, then, The all three axles sensing datas read in preset duration are chosen, wherein, the preset duration is more than prefixed time interval, certainly, also Three axle sensing datas of the predetermined number of continuous acquisition can be chosen.
S220:Judge all three axles sensing datas whether all same.
The X, Y, Z axis sensing data of all three axles sensing datas whether all same is judged respectively, for example, judge first successively Whether the X, Y, Z axis sensing data in three axle sensing datas is corresponding with the X, Y, Z axis sensing data in the two or three axle sensing data It is identical, when have in above-mentioned three pairs of sensing datas a pair it is unequal, then judge that the one or three axle sensing data and the two or three axle sense number According to unequal.If all same, execution step S230, otherwise, then direct execution step 140.
S230:If all three axles sensing data all sames, judge whether the three axles sensing data is in Corresponding preset threshold range.
Specifically, can choose arbitrary three axles sensing data from all of three axles sensing data, then, then will select Three axle sensing datas are analyzed with preset threshold range.
If the three axles sensing data is in corresponding preset threshold range, execution step S130 otherwise, is then held Row step S140.
Present invention method, it is whether constant in a period of time interior holding by the three axle sensing datas for judging to read, When mobile terminal can be avoided to charge using USB port, because user move or adjust mobile terminal position make its position just with Seat charges corresponding position identical situation, and it is misjudged break as the situation of seat charging, and then improve seat charged The accuracy that mode is detected.
Further, during due to charging in mobile terminal, may be by surrounding environment (as placement rack fills cradle Position, the motor being also placed with a job) affect, causing the position of mobile terminal has fluctuation, and then makes three axles sense number According to unstable situation, for the problem, the embodiment of the present invention additionally provides another kind of detection method to three axle sensing datas, Specifically, after step silo, including:
S310:Judge the fluctuation range of all three axles sensing datas whether beyond default fluctuation range.
Maximum and minimum of a value are found out from all three axles sensing datas for reading, then judges that difference between the two is It is no beyond default fluctuation range, wherein, the method for searching maximum and minimum of a value can be by with X, Y or Z axis data as standard In make a look up, can also by three data of X, the Y in each three axle sensing data and Z axis data be weighted it is average after obtain One sensing data, recycling are calculated sensing data and are analyzed etc., and the present embodiment here is not specifically limited.
If the fluctuation range of all three axles sensing datas is without departing from default fluctuation range, execution step S320, Otherwise, then direct execution step 140.
S320:If the fluctuation range of all three axles sensing datas is without departing from default fluctuation range, judge described Whether three axle sensing datas are in corresponding preset threshold range.
In order to reduce data processing amount, arbitrary or several three axles sensing numbers can be chosen from all of three axles sensing data According to then, then the three axle sensing datas selected being analyzed with preset threshold range, it is, of course, also possible to will be all of Three axle sensing datas and preset threshold range are analyzed etc., and embodiment of the present invention here is not specifically limited.
If whether the three axles sensing data is in corresponding preset threshold range, execution step S130, otherwise, Then execution step S140.
In addition, during mobile terminal charges, may be existed by surrounding environment influence or terminal inner ambient influnence The situation of the data mutation for reading, for the problem, the present embodiment additionally provides the method for excluding abnormal data, i.e., in step After S310, also include:
S330:If the fluctuation range of all three axles sensing datas rejects all institutes beyond default fluctuation range State the outlier data in three axle sensing datas.
By default outlier recognition methods and rejecting rule, such as mean-square value method, point diagnostic method, Lai Tefa, Xiao Weiniefa Deng the outlier data being mutated in all three axles sensing datas of rejecting.
S340:Judge the fluctuation range for rejecting three axle sensing datas after outlier whether beyond the default fluctuation range.
If rejecting the fluctuation range of three axle sensing datas after outlier without departing from default fluctuation range, execution step S340, otherwise, then direct execution step 140.
S340:If rejecting the fluctuation range of three axle sensing datas after outlier without departing from the default fluctuation range, Judge whether three axle sensing datas after the rejecting outlier are in corresponding preset threshold range.
If rejecting three axle sensing datas after outlier is in corresponding preset threshold range, execution step S130, Otherwise, then direct execution step 140.
Whether the embodiment of the present invention, exceed default fluctuation range and reject number by the three axle sensing datas for judging to read Catastrophe point according in, not only can expand the suitable environment of present invention method, also improve and fill charging modes to seat The accuracy of detection.
S130:Control the charging management chip and charging current is filled to the battery charging in the mobile terminal using seat;
S140:The charging management chip is controlled using general-purpose serial bus USB charging current in the mobile terminal Battery charge.
Further, when being charged the battery due to USB charging inlets, what mobile terminal may be accessed is special charger (USB Charger), charging downstream interface (Charging Downstream Port) or standard down interface (Standard Downstream Port), to make equipment of the mobile terminal according to accessing, charged the battery using corresponding electric current, the present invention is real Apply a still other charging management method.Fig. 6 illustrates for the flow process of the charging management method of the mobile terminal of the embodiment of the present invention three Figure.As shown in fig. 6, the method mainly comprises the steps:
S110:When the charging pins of charging management chip have control source, then the three axles sensing of gravity sensor is read Data.
S120:Judge whether the three axles sensing data is in corresponding preset threshold range.
S130:If the three axles sensing data is in corresponding preset threshold range, the Charge Management is controlled Chip fills charging current and charges to the battery in the mobile terminal using seat.
S410:Otherwise, the voltage signal on the positive wire pin of data and data negative wire pin of USB charging inlets is read.
The voltage of a 0.6V or so, subsequently, detection data negative wire pin D- can be loaded on the positive wire pin D+ of data On voltage, the voltage for checking whether to receive 0.6V responds.
S420:Judge whether the voltage on the positive wire pin of the data and data negative wire pin is equal.
Because standard down interface will not make any response to the 0.6V signals on data main track pin D+, if PD insertions are standard down interfaces, then D- will stay in that low level, and in charging downstream interface (Charging Downstream Port) in, similar with mobile terminal and complementary therewith detection circuit is employed, when it detects that data When having 0.6V on positive wire pin D+, it will load 0.6V voltages to data minus wire pin D- immediately, to respond mobile terminal;And In special charger (USB Charger), because the positive wire pin D+ of data and data negative wire pin D- are short circuits, so when number During according to being loaded 0.6V voltages on positive wire pin D+, data minus wire pin D- also becomes 0.6V.
S430:If the positive wire pin of the data and the voltage on data negative wire pin are equal, the charging valve is controlled Reason chip is charged using USB charger charging current to the battery in the mobile terminal.
Because charging downstream interface (Charging Downstream Port) is i.e. compatibility USB2.0 specifications, it is directed to again USB charges and has made the descending USB interface of optimization, and it can be on USB interface, or usb hub on main frame. These descending USB interfaces can coordinate mobile terminal to complete charging port identification maneuver, and provide the maximum power supply capacity to 1.5A, The demand of mobile terminal high current quick charge is met, so when the voltage on the positive wire pin of data and data negative wire pin is equal When, possibly charging downstream interface or the special charger for accessing is illustrated, but two ways can adopt large current charge, institute So as to directly control charging management chip using USB charger charging current (such as 1.5A electric currents) in the mobile terminal Battery charge.
S440:If the positive wire pin of the data and the voltage on data negative wire pin are unequal, the charging is controlled Managing chip is charged using USB charging current downlink ports standard to the battery in the mobile terminal.
Further, it is to distinguish two kinds of charging modes of charging downstream interface or special charger, can be with step S430 Comprise the steps:
S510:If the positive wire pin of the data and the voltage on data negative wire pin are equal, by the data main track Voltage high on pin or data minus wire pin is to logic high.
S520:Detect whether the positive wire pin of the data or the voltage on data minus wire pin change, wherein, as general When voltage high on the positive wire pin of the data is to logic high, then the voltage on the data minus wire pin is detected, when During by the voltage high on the data minus wire pin to logic high, then the voltage on the positive wire pin of the data is detected.
First by the positive wire pin D+ of data (mobile terminal is high speed or full-speed device) or data minus wire pin D- (mobile terminals For low-speed device) draw high to logic high, it is that charging is descending then to be distinguished by detecting the voltage of an other data lines Interface or special charger.
S530:If the positive wire pin of the data or the voltage on data minus wire pin change, fill described in control Electric managing chip is charged using USB charger charging current to the battery in the mobile terminal.
Due to the special charger inside short circuit positive wire pin D+ of data and data negative wire pin D-, if a data lines It is driven high, then another data lines will also become high level, so its positive wire pin of corresponding data or data negative wire are drawn Voltage on pin can change.
S540:If the positive wire pin of the data or the voltage on data minus wire pin do not change, control is described Charging management chip is charged using USB charging downstream interfaces charging current to the battery in the mobile terminal.
Because charging downstream interface is in charging detection period, the voltage signal of the 0.6V of loading or so is only responded without returning Logic high is answered, so it is low that it will keep data line voltage.
Further, in order to realize the protection to mobile terminal, prevent that mobile terminal from inserting for non-standard interface, in step In rapid S110, when the charging pins of charging management chip have control source, the embodiment of the present invention also includes following detecting step:
S610:Judge that the magnitude of voltage on the charging pins is in predetermined voltage threshold scope.
Generally the standard configuration charging voltage of mobile terminal is 5V, can be with the accessible maximum electricity of setting terminal according to the standard Pressure value, and setting voltage threshold range, if exceeding the threshold range, terminate flow process.
S620:If the magnitude of voltage on the charging pins is in predetermined voltage threshold scope, gravity sensor is read Three axle sensing datas.
Corresponding to the charging management method in above-mentioned mobile terminal, the embodiment of the present invention is additionally provided in a kind of mobile terminal Charging controller.Fig. 7 is a kind of structural representation of the charging controller in mobile terminal, as shown in fig. 7, the charging Managing device 700, its structure may include:At least one processor (processor) 701, internal memory (memory) 702, periphery sets Standby interface (peripheralinterface) 703, input/output subsystem (I/Osubsystem) 704, the and of power circuit 705 Communication line 706.
In the figure 7, arrow represents the communication and data transmission between the inscape that can carry out computer system, and it can profit With high-speed serial bus (high-speed serial bus), parallel bus (parallelbus), storage area network (SAN, Storage Area Network) and/or other appropriate communication technologys and realize.
Internal memory 702 may include operating system 712 and Charge Management routine 722.For example, internal memory 702 may include random at a high speed It is access memory (high-speed random access memory), disk, static RAM (SPAM), dynamic State random access memory (DRAM), read-only storage (ROM), flash memory or non-voltile memory.Internal memory 702 can be stored for grasping Make the program coding of system 712 and Charge Management routine 722, that is to say, that needed for may include the action of charging controller 700 Software module, instruction set architecture or the various data outside it.Now, processor 701 or peripheral interface 706 etc. other Controller can be controlled with the access of internal memory 702 by processor 701.
Peripheral interface 703 can be by the input of charging controller 700 and/or output ancillary equipment and processor 701 Combine with internal memory 702.Also, input/output subsystem 704 can connect various input/output ancillary equipment with ancillary equipment Mouth 706 combines.For example, input/output subsystem 704 may include display, printer or as needed be used for by camera, Controller of the ancillary equipment such as various sensors in combination with peripheral interface 703.According to another side, outside input/output Enclosing also can be without input/output subsystem 704 in combination with peripheral interface 703.
Power circuit 705 can be to all or part of supply electric power of the component of mobile terminal.For example, power circuit 705 may include such as more than one power supply, charging system, the power failure monitor of electric power management system, battery or exchange (AC) Circuit (power failuredetection circuit), power converter or inverter, power state marker character are used for Electric power is generated, managed, any other components of distribution.
Communication line 706 is communicated using at least one interface with other computer systems, such as with other movements Terminal is communicated.
Processor 701 is by implementing the executable Charge Management of the software module or instruction set architecture that are stored in internal memory 702 The several functions and processing data of device 700.That is, processor 701 is by performing basic arithmetic, logic and calculating The input/output calculation of machine system, may be configured as processing the order of computer program.
The embodiment of Fig. 7 is only an example of the charging controller 700 in mobile terminal, charging controller 700 Can have following structure or configuration:May include in communication line 706 for communication (WiFi, 6G, LTE, Bluetooth, NFC, Zigbee etc.) RF communication circuit.Can be included in component in charging controller 700 can be by Both the hardware of the integrated circuit becomed privileged including more than one signal transacting or application program, software or hardware and software Combination and realize.
The charging controller 700 of above-mentioned composition, when the charging pins of charging management chip have control source, then reads Three axle sensing datas of gravity sensor, judge whether three axle sensing datas are in corresponding preset threshold range;If three Axle sensing data is in corresponding preset threshold range, then control charging management chip and fill charging current to mobile whole using seat Battery in end charges;Otherwise, then charging management chip is controlled using general-purpose serial bus USB charging current in mobile terminal Battery charge.
Based on charging controller shown in Fig. 7, the embodiment of the present invention additionally provides a kind of mobile terminal, in the mobile terminal Including the charging controller shown in Fig. 7, also including charging management chip and gravity sensor, wherein, the charging controller It is connected with charging management chip and gravity sensor respectively.The mobile terminal provided in an embodiment of the present invention can perform above-mentioned reality Apply the charging management method of example one to embodiment three.
For convenience of description, it is divided into various units with function when describing apparatus above to describe respectively.Certainly, this is being implemented The function of each unit can be realized in same or multiple softwares and/or hardware during invention.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.Especially for device or For system embodiment, because it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to method The part explanation of embodiment.Apparatus and system embodiment described above is only schematic, wherein as separation The unit of part description can be or may not be it is physically separate, can be as the part that unit shows or Can not be physical location, you can be located at a place, or can also be distributed on multiple NEs.Can be according to reality The purpose for needing to select some or all of module therein to realize this embodiment scheme on border.Those of ordinary skill in the art In the case where creative work is not paid, you can to understand and implement.
The above is only the specific embodiment of the present invention, it is noted that for those skilled in the art come Say, under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvements and modifications also should be regarded as Protection scope of the present invention.

Claims (10)

1. a kind of charging management method of mobile terminal, it is characterised in that include:
When the charging pins of charging management chip have control source, then three axle sensing datas of gravity sensor are read;
Judge whether the three axles sensing data is in corresponding preset threshold range, wherein, the preset threshold range is used Charging modes are filled in the instruction mobile terminal using seat to be charged;
If the three axles sensing data is in corresponding preset threshold range, controls the charging management chip and use seat Fill charging current to charge to the battery in the mobile terminal;
Otherwise, then control the charging management chip and use general-purpose serial bus USB charging current in the mobile terminal Battery charges.
2. method according to claim 1, it is characterised in that judge whether the three axles sensing data is in accordingly Preset threshold range, including:
Choose all described three axles sensing data read in preset duration;
Judge all three axles sensing datas whether all same;
If all three axles sensing data all sames, judge whether the three axles sensing data is in corresponding default Threshold range.
3. method according to claim 1, it is characterised in that judge whether the three axles sensing data is in accordingly Preset threshold range, including:
Choose all described three axles sensing data read in preset duration;
Judge the fluctuation range of all three axles sensing datas whether beyond default fluctuation range;
If the fluctuation range of all three axles sensing datas is without departing from default fluctuation range, the three axles sensing number is judged According to whether being in corresponding preset threshold range.
4. method according to claim 3, it is characterised in that methods described also includes:
If the fluctuation range of all three axles sensing datas is beyond default fluctuation range, all three axles sensings are rejected Outlier data in data;
Judge the fluctuation range for rejecting three axle sensing datas after outlier whether beyond the default fluctuation range;
If rejecting the fluctuation range of three axle sensing datas after outlier without departing from the default fluctuation range, judge described in pick Whether three axle sensing datas after except outlier are in corresponding preset threshold range.
5. method according to claim 1, it is characterised in that the control charging management chip uses USB USB charging currents charge to the battery in the mobile terminal, including:
Read the voltage signal on the positive wire pin of data and data negative wire pin of USB charging inlets;
According to the voltage signal on the positive wire pin of the data and data negative wire pin, the control charging management chip uses logical Charged to the battery in the mobile terminal with serial bus USB charging current.
6. method according to claim 5, it is characterised in that according on the positive wire pin of the data and data negative wire pin Voltage signal, control the charging management chip using general-purpose serial bus USB charging current in the mobile terminal Battery charges, including:
Judge whether the voltage on the positive wire pin of the data and data negative wire pin is equal;
If the positive wire pin of the data and the voltage on data negative wire pin are equal, control the charging management chip and use USB charger charging current charges to the battery in the mobile terminal;
If the positive wire pin of the data and the voltage on data negative wire pin are unequal, controlling the charging management chip makes Charged to the battery in the mobile terminal with standard down port charging current.
7. method according to claim 6, it is characterised in that the control charging management chip is filled using USB charger Electric current charges to the battery in the mobile terminal, including:
By the positive wire pin of the data or voltage high on data minus wire pin to logic high;
Detect whether the positive wire pin of the data or the voltage on data minus wire pin change, wherein, when by the data When voltage high on positive wire pin is to logic high, then the voltage on the data minus wire pin is detected, when by the number During according to the voltage high on negative wire pin to logic high, then the voltage on the positive wire pin of the data is detected;
If the positive wire pin of the data or the voltage on data minus wire pin change, the charging management chip is controlled Charged to the battery in the mobile terminal using USB charger charging current;
If the positive wire pin of the data or the voltage on data minus wire pin do not change, the Charge Management core is controlled Piece is charged using charging downstream interface charging current to the battery in the mobile terminal.
8. method according to claim 1, it is characterised in that when the charging pins of charging management chip have control source When, methods described also includes:
Judge the magnitude of voltage on the charging pins whether in predetermined voltage threshold scope;
If the magnitude of voltage on the charging pins is in predetermined voltage threshold scope, the three axles sensing of gravity sensor is read Data.
9. a kind of charging controller of mobile terminal, it is characterised in that include:Processor, memory and communication interface, it is described Processor, the memory are connected with the communication interface communication bus;
The communication interface, for receiving and sending signal parameter;
The memory, for store program codes;
The processor, for reading the memory in the program code that stores, and perform as arbitrary in claim 1 to 8 Method described in.
10. a kind of mobile terminal, it is characterised in that including the charging controller described in claim 9, also including Charge Management Chip and gravity sensor, the charging controller is connected respectively with the charging management chip and the gravity sensor.
CN201611005449.2A 2016-11-14 2016-11-14 A kind of charging management method of mobile terminal, device and mobile terminal Active CN106655339B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611005449.2A CN106655339B (en) 2016-11-14 2016-11-14 A kind of charging management method of mobile terminal, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611005449.2A CN106655339B (en) 2016-11-14 2016-11-14 A kind of charging management method of mobile terminal, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN106655339A true CN106655339A (en) 2017-05-10
CN106655339B CN106655339B (en) 2019-07-05

Family

ID=58805335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611005449.2A Active CN106655339B (en) 2016-11-14 2016-11-14 A kind of charging management method of mobile terminal, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN106655339B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109193974A (en) * 2018-09-06 2019-01-11 宁波麦度智联科技股份有限公司 A method of optimization wireless charging stability
CN111834679A (en) * 2019-04-22 2020-10-27 北京小米移动软件有限公司 Charging method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102201697A (en) * 2011-05-20 2011-09-28 中兴通讯股份有限公司 Internet equipment, method for automatically switching charging interfaces of the internet equipment, apparatus and circuit thereof
CN102684270A (en) * 2012-05-31 2012-09-19 华为技术有限公司 Method for identifying type of universal serial bus (USB) chargers and USB device
CN103178583A (en) * 2013-03-25 2013-06-26 成都西可科技有限公司 Mobile phone USB (Universal Serial Bus) interface charging system supporting charging for other mobile devices and charging realization method of mobile phone USB interface charging system
CN103683436A (en) * 2013-12-30 2014-03-26 广东欧珀移动通信有限公司 Method for regulating charging current of mobile terminal, device and mobile terminal
CN105244942A (en) * 2015-09-30 2016-01-13 深圳天珑无线科技有限公司 Charging current control method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102201697A (en) * 2011-05-20 2011-09-28 中兴通讯股份有限公司 Internet equipment, method for automatically switching charging interfaces of the internet equipment, apparatus and circuit thereof
CN102684270A (en) * 2012-05-31 2012-09-19 华为技术有限公司 Method for identifying type of universal serial bus (USB) chargers and USB device
CN103178583A (en) * 2013-03-25 2013-06-26 成都西可科技有限公司 Mobile phone USB (Universal Serial Bus) interface charging system supporting charging for other mobile devices and charging realization method of mobile phone USB interface charging system
CN103683436A (en) * 2013-12-30 2014-03-26 广东欧珀移动通信有限公司 Method for regulating charging current of mobile terminal, device and mobile terminal
CN105244942A (en) * 2015-09-30 2016-01-13 深圳天珑无线科技有限公司 Charging current control method and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109193974A (en) * 2018-09-06 2019-01-11 宁波麦度智联科技股份有限公司 A method of optimization wireless charging stability
CN111834679A (en) * 2019-04-22 2020-10-27 北京小米移动软件有限公司 Charging method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN106655339B (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN104978300B (en) Mobile terminal and its detection method being connect with external equipment and device
CN106230070B (en) Charging method and device
CN108845655B (en) Electronic equipment control method and device, control circuit and electronic equipment
CN111239617B (en) Control method and device for charge and discharge test, storage medium and system
CN104617615B (en) Charging method and electronic equipment
CN102708077A (en) State recognition method and state recognition apparatus
CN106786903A (en) Information Authentication method, device, wireless charging device and mobile terminal
EP2993757A1 (en) Method of managing the charging of battery and electronic device adapted thereto
CN106329627A (en) Charging method and device
CN106329630B (en) A kind of charging method and device
CN105607838A (en) Information processing method and device as well as electronic equipment
CN105048018B (en) The charging method and device of a kind of terminal with data exchanging function
CN109254210A (en) Electronic device port type detection method, apparatus, detection circuit and electronic equipment
CN106655339A (en) Mobile terminal charging management method and apparatus, and mobile terminal
CN205958716U (en) A system and electronic equipment that is arranged in accurate electronic equipment's of sureness battery state of charge
CN106329625B (en) charging method and device
CN106786959B (en) Charge control method, device and terminal
CN108270921A (en) The detection method and Related product of drop information
CN101097536A (en) Operation mode judging system and method thereof
CN107370196A (en) Charging device and charging method
CN106329628B (en) A kind of charging method and device
CN109507507A (en) Adapter detection method, device, storage medium, test board and detection system
CN209282342U (en) A kind of battery system and mobile terminal detecting state in place
CN110556884B (en) Charging management method, device, medium and electronic equipment applying method
CN210743087U (en) Portable power source leases equipment

Legal Events

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