CN105515092A - Terminal charging control method and device - Google Patents
Terminal charging control method and device Download PDFInfo
- Publication number
- CN105515092A CN105515092A CN201510886167.7A CN201510886167A CN105515092A CN 105515092 A CN105515092 A CN 105515092A CN 201510886167 A CN201510886167 A CN 201510886167A CN 105515092 A CN105515092 A CN 105515092A
- Authority
- CN
- China
- Prior art keywords
- terminal
- temperature
- usb
- full
- usb driver
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0047—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J2207/00—Indexing scheme relating to details of circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J2207/30—Charge provided using DC bus or data bus of a computer
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0047—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
- H02J7/0048—Detection of remaining charge capacity or state of charge [SOC]
- H02J7/0049—Detection of fully charged condition
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The invention discloses a terminal charging control method and a device. The method comprises the steps of detecting whether a terminal being charged is full of power or not; upon detecting that the terminal is full of power, stopping the operation of a USB driving program in the terminal. According to the invention, through detecting whether the terminal being charged is full of power or not and stopping the operation of the USB driving program in the terminal upon detecting that the terminal is full of power, the terminal is not charged any more when being fully charged. Therefore, the damage to the battery of the terminal, caused by the continuous charging of the terminal, can be avoided.
Description
Technical field
The application relates to field of terminal technology, particularly relates to terminal charge control method and device.
Background technology
Along with user is to the dependence of intelligent terminal, terminal power consumption is also more and more faster, then the number of times charged also increases thereupon.Battery in charging process along with charging carrying out, both end voltage is raising gradually, need when keeping extraneous charging voltage constant, the actual voltage being added to battery two ends is made to increase gradually by regulating circuit, almost constant to guarantee the charging current of battery, when cell voltage is charged to the saturation value of setting, show that electricity is full of, although external voltage is still higher than cell voltage, fill if continue and still have charging current, but filling battery is again exactly a kind of infringement, can accelerate the aging of battery, now should cut off charging circuit in time by control circuit.But when terminal power is full of, user is difficult to accomplish to cut off the electricity supply in time, and when particularly charging at night, when terminal power is full of, user could not cut off the electricity supply in time, causes damage to end cell.
Summary of the invention
For overcoming Problems existing in correlation technique, present disclose provides terminal charge control method and device.
According to the first aspect of disclosure embodiment, provide a kind of terminal charge control method, described method comprises:
Detect the electricity being in the terminal of charged state whether to be full of;
When the electricity of described terminal is full of, forbid the operation of USB driver in described terminal.
Optionally, before whether the electricity that described detection is in the terminal of charged state is full of, also comprise:
Determine that terminal is in connection status by described USB and feeder ear;
Terminal temperature is obtained from built-in temperature sensor;
When described terminal temperature is in the safe temperature range preset, loads USB driver, described terminal is charged;
When described terminal temperature is not in the safe temperature range preset, forbid loading described USB driver.
Optionally, described terminal temperature at least comprises following a kind of temperature: end cell temperature, terminal mainboard temperature.
Optionally, describedly determine that terminal is in connection status by described USB and feeder ear, comprising:
USB connection status value is read from file system;
Connection status is in by described USB and feeder ear according to described USB connection status value determination terminal.
Optionally, when the described electricity when described terminal is full of, forbids the operation of USB driver in described terminal, comprising:
When the electricity of described terminal is full of, the present mode of terminal is switched to battery saving mode, and forbid the operation of USB driver in described terminal.
Optionally, forbid comprising the operation of USB driver in described terminal described in:
Remove USB driver; Or,
Unloading USB driver.
According to the second aspect of disclosure embodiment, a kind of terminal charge control device is provided, comprises:
Detection module, whether the electricity being configured to detect the terminal being in charged state is full of;
Disabled module, is configured to, when the electricity of described terminal is full of, forbid the operation of USB driver in described terminal.
Optionally, described device also comprises:
Connection status determination module, is configured to determine that terminal is in connection status by described USB and feeder ear;
Terminal temperature acquisition module, is configured to obtain terminal temperature from built-in temperature sensor;
Terminal temperature respond module, is configured to, when described terminal temperature is in the safe temperature range preset, loads USB driver, charge to described terminal; When described terminal temperature is not in the safe temperature range preset, forbid loading described USB driver.
Optionally, described terminal temperature at least comprises following a kind of temperature: end cell temperature, terminal mainboard temperature.
Optionally, described connection status determination module comprises:
State value reading submodule, is configured to from file system, read USB connection status value;
Connection status determination submodule, is configured to be in connection status according to described USB connection status value determination terminal by described USB and feeder ear.
Optionally, described disabled module comprises:
First forbids submodule, is configured to, when the electricity of described terminal is full of, the present mode of terminal is switched to battery saving mode, and forbids the operation of USB driver in described terminal.
Optionally, described disabled module at least comprises a following submodule:
Second forbids submodule, is configured to remove USB driver;
3rd forbids submodule, is configured to unloading USB driver.
According to the third aspect of disclosure embodiment, a kind of terminal charge control device is provided, comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Detect the electricity being in the terminal of charged state whether to be full of;
When the electricity of described terminal is full of, forbid the operation of USB driver in described terminal.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
Whether the disclosure detects the electricity being in the terminal of charged state and is full of, when terminal power is full of, forbid the operation of USB driver in terminal, thus realize when terminal power is full of, forbidding that terminal continues charging, thus avoid the infringement continuing to charge to end cell.
The disclosure is after determining that terminal is in connection status by USB and feeder ear, terminal temperature is obtained from built-in temperature sensor, when described terminal temperature is not in the safe temperature range preset, forbid loading described USB driver, when terminal temperature is in the safe temperature range preset, load USB driver, described terminal is charged, and when the electricity of terminal is full of, forbid the operation of USB driver in terminal, thus realize terminal temperature not in safe temperature range time forbid charging, terminal temperature is avoided not charge the potential safety hazard caused to terminal in safe temperature range, when terminal temperature is in safe temperature range simultaneously, terminal is charged, and when terminal power is full of, forbid continuing charging, thus avoid the infringement continuing to charge to end cell.
In the disclosure, terminal temperature can be end cell temperature, can also be terminal mainboard temperature, when can avoid end cell temperature and terminal mainboard temperature not in safe temperature range, continues to charge the infringement caused to end cell.
The disclosure can read USB connection status value from file system, is in connection status according to USB connection status value determination terminal by USB and feeder ear, thus realizes just obtaining terminal temperature when USB inserts terminal, avoids the wasting of resources that Real-time Obtaining causes.
Terminal present mode, when terminal power is full of, is switched to battery saving mode by the disclosure, thus can extend the stand-by time of terminal.
The disclosure can remove USB driver on the one hand, and this mode USB driver also stores in the terminal, directly can load, economize on resources when next time needs.On the other hand, can unload USB driver, this mode makes USB driver not in the terminal, can reinstall and load when next time needs.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows and meets embodiment of the present disclosure, and is used from specification one and explains principle of the present disclosure.
Fig. 1 is the flow chart of a kind of terminal charge control method of the disclosure according to an exemplary embodiment.
Fig. 2 is the application scenarios figure of a kind of terminal charge control method of the disclosure according to an exemplary embodiment.
Fig. 3 is the flow chart of the another kind of terminal charge control method of the disclosure according to an exemplary embodiment.
Fig. 4 is the block diagram of a kind of terminal charge control device of the disclosure according to an exemplary embodiment.
Fig. 5 is the block diagram of the another kind of terminal charge control device of the disclosure according to an exemplary embodiment.
Fig. 6 is the block diagram of the another kind of terminal charge control device of the disclosure according to an exemplary embodiment.
Fig. 7 is the block diagram of the another kind of terminal charge control device of the disclosure according to an exemplary embodiment.
Fig. 8 is the block diagram of the another kind of terminal charge control device of the disclosure according to an exemplary embodiment.
A kind of block diagram for terminal charge control device of Fig. 9 disclosure according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
The term used in the disclosure is only for the object describing specific embodiment, and the not intended to be limiting disclosure." one ", " described " and " being somebody's turn to do " of the singulative used in disclosure and the accompanying claims book is also intended to comprise most form, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more project of listing be associated any or all may combine.
Term first, second, third, etc. may be adopted although should be appreciated that to describe various information in the disclosure, these information should not be limited to these terms.These terms are only used for the information of same type to be distinguished from each other out.Such as, when not departing from disclosure scope, the first information also can be called as the second information, and similarly, the second information also can be called as the first information.Depend on linguistic context, word as used in this " if " can be construed as into " ... time " or " when ... time " or " in response to determining ".
As shown in Figure 1, Fig. 1 is the flow chart of a kind of terminal charge control method of the disclosure according to an exemplary embodiment, and the method may be used for, in terminal, comprising the following steps:
In a step 101, detect the electricity being in the terminal of charged state whether to be full of.
In a step 102, when the electricity of described terminal is full of, the operation of USB driver in described terminal is forbidden.
Terminal involved in disclosure embodiment can be intelligent terminal, intelligent terminal can be smart mobile phone, panel computer, PDA (PersonalDigitalAssistant, personal digital assistant), E-book reader, multimedia player etc.
Terminal in the disclosure can be passed through USB (UniversalSerialBus, USB) and be connected with feeder ear, thus realizes charging to terminal.Feeder ear can be the charger computer etc. be connected with power supply, can also be mobile charging power supply.As shown in Figure 2, Fig. 2 is the application scenarios figure of a kind of terminal charge control method of the disclosure according to an exemplary embodiment.In this application scenarios, terminal can be smart mobile phone, and feeder ear can be the main frame of computer.
Wherein, a USB power supply unit, also needs corresponding USB driver except firmware program, just can make it to communicate with terminal.USB driver is actually the function of a series of control hardware equipment, is the key modules controlling and link hardware in operating system.It provides the software interface of the hardware device being connected to terminal.
After terminal is connected with feeder ear by USB, needs to load USB driver, the charging process of terminal could be realized.The disclosure is after terminal enters charged state, and whether the electricity of sense terminals is full of.As wherein a kind of judgment mode, can be whether the electricity of sense terminals reaches capacity value.When the electricity of terminal is full of, in order to avoid terminal continues the infringement to battery caused of charging, can forbid that USB driver runs.
Wherein, as forbidding the means that USB driver runs, can remove USB driver on the one hand, this mode USB driver also stores in the terminal, directly can load, economize on resources when next time needs.On the other hand, USB driver can be unloaded, because USB driver being installed than being easier to, can reinstall when next time needs and loading.
As seen from the above-described embodiment, whether the disclosure detects the electricity being in the terminal of charged state and is full of, when terminal power is full of, forbid the operation of USB driver in terminal, thus realize when terminal power is full of, forbidding that terminal continues charging, thus avoid the infringement continuing to charge to end cell.
As shown in Figure 3, Fig. 3 is the flow chart of a kind of terminal charge control method of the disclosure according to an exemplary embodiment, and the method may be used for, in terminal, comprising the following steps 301 to 306:
In step 301, determine that terminal is in connection status by USB and feeder ear.
In step 302, from built-in temperature sensor, terminal temperature is obtained.
In step 303, when described terminal temperature is in the safe temperature range preset, loads USB driver, described terminal is charged, and performs step 304.
In step 304, detect the electricity being in the terminal of charged state whether to be full of.
In step 305, when the electricity of described terminal is full of, the operation of USB driver in described terminal is forbidden.
Within step 306, when described terminal temperature is not in the safe temperature range preset, forbid loading described USB driver.
Wherein, first can judge whether terminal is in connection status by USB and feeder ear, namely monitor USB plug.As wherein a kind of listening mode, USB connection status value can be read from the file system of terminal, be in connection status according to described USB connection status value determination terminal by described USB and feeder ear.Wherein, file system can be sys file system, then can read USB connection status value from following path:
“/sys/class/android_usb/android0/stateCONFIGURED”
Thus judging whether terminal is connected with feeder ear by USB according to USB connection status value, the disclosure is only in the situation of connection status by USB and feeder ear for terminal, for not connection status, the disclosure is not paid attention to.
Can be built-in with temperature sensor in the terminal, temperature sensor can sense terminals temperature.Such as, terminal temperature can be one or more temperature in end cell temperature, terminal mainboard temperature, terminal enclosure temperature etc.Corresponding safe temperature range can be had for often kind of terminal temperature, such as, at the normal temperature range of emblem injection terminal battery in document, the normal temperature range etc. of terminal mainboard of dispatching from the factory, can using normal temperature range as corresponding safe temperature range.
When terminal temperature is in the safe temperature range preset; load USB driver; terminal is charged; and perform step 304 and 305; when terminal temperature is not in the safe temperature range preset; forbid loading USB driver, thus realize the protection to terminal, avoid the too high infringement caused terminal that still continues to charge of terminal temperature.
Wherein, be understandable that, terminal temperature can be a kind of temperature, also can be various temperature, and when terminal temperature is various temperature, each temperature simultaneously in safe temperature range, just must can load USB driver, charge to terminal.Such as, when terminal temperature be end cell temperature and terminal mainboard temperature time, when end cell temperature preset the first safe temperature range in, and terminal mainboard temperature preset the second safe temperature range in time, load USB driver, terminal is charged.Wherein, the first safe temperature range is the normal temperature range of end cell, and the second safe temperature range is the normal temperature range of terminal mainboard.
Wherein, step 304 is with 305 with embodiment illustrated in fig. 1 similar, and this is no longer going to repeat them.
In an optional implementation, when the electricity of described terminal is full of, the present mode of terminal is switched to battery saving mode, and forbid the operation of USB driver in described terminal.
Wherein, battery saving mode is the pattern of saving electricity, and the battery saving mode of different terminals may be different, and such as, battery saving mode can be the illumination of display screen or the button of closing a terminal, and is turned down by terminal phone sound, closes background light etc.
As seen from the above-described embodiment, when terminal power is full of, terminal present mode is switched to battery saving mode, thus the stand-by time of terminal can be extended.
In an optional implementation, when terminal is charged, the present mode of terminal is switched to battery saving mode.
As seen from the above-described embodiment, when terminal starts to charge, terminal present mode is switched to battery saving mode, thus the defect that the time avoiding causing terminal power to be full of due to power consumption factors such as display screen bright screens in charging process is longer, shorten the charging interval.
In an optional embodiment, after forbidding loading USB driver, judge terminal is connected after whether disconnecting with USB again, if so, then repeated execution of steps 301 to 306, realize charging process next time.
As seen from the above-described embodiment, the disclosure is after determining that terminal is in connection status by USB and feeder ear, from built-in temperature sensor, obtain terminal temperature, when described terminal temperature is not in the safe temperature range preset, forbid loading described USB driver; When terminal temperature is in the safe temperature range preset, load USB driver, described terminal is charged, and when the electricity of terminal is full of, forbid the operation of USB driver in terminal, thus realize terminal temperature not in safe temperature range time forbid charging, terminal temperature is avoided not charge the potential safety hazard caused to terminal in safe temperature range, when terminal temperature is in safe temperature range simultaneously, terminal is charged, and when terminal power is full of, forbid continuing charging, thus avoid the infringement continuing to charge to end cell.
Corresponding with the embodiment of aforementioned terminals charge control method, the embodiment of terminal that the disclosure additionally provides terminal charge control device and applies.
As shown in Figure 4, Fig. 4 is the block diagram of a kind of terminal charge control device of the disclosure according to an exemplary embodiment, and described device comprises: detection module 410 and disabled module 420.
Detection module 410, whether the electricity being configured to detect the terminal being in charged state is full of.
Disabled module 420, is configured to, when the electricity of described terminal is full of, forbid the operation of USB driver in described terminal.
As seen from the above-described embodiment, detect the electricity being in the terminal of charged state whether to be full of, when terminal power is full of, forbid the operation of USB driver in terminal, thus realize when terminal power is full of, forbidding that terminal continues charging, thus avoid the infringement continuing to charge to end cell.
As shown in Figure 5, Fig. 5 is the block diagram of the another kind of terminal charge control device of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 4, and described device also comprises: connection status determination module 430, terminal temperature acquisition module 440 and terminal temperature respond module 450.
Wherein, connection status determination module 430, is configured to determine that terminal is in connection status by described USB and feeder ear.
Terminal temperature acquisition module 440, is configured to obtain terminal temperature from built-in temperature sensor.
Terminal temperature respond module 450, is configured to, when described terminal temperature is in the safe temperature range preset, loads USB driver, charge to described terminal; When described terminal temperature is not in the safe temperature range preset, forbid loading described USB driver.
As seen from the above-described embodiment, after determining that terminal is in connection status by USB and feeder ear, terminal temperature is obtained from built-in temperature sensor, when described terminal temperature is not in the safe temperature range preset, forbid loading described USB driver, when terminal temperature is in the safe temperature range preset, load USB driver, described terminal is charged, and when the electricity of terminal is full of, forbid the operation of USB driver in terminal, thus realize terminal temperature not in safe temperature range time forbid charging, terminal temperature is avoided not charge the potential safety hazard caused to terminal in safe temperature range, when terminal temperature is in safe temperature range simultaneously, terminal is charged, and when terminal power is full of, forbid continuing charging, thus avoid the infringement continuing to charge to end cell.
Wherein in an embodiment, described terminal temperature at least comprises following a kind of temperature: end cell temperature, terminal mainboard temperature.
As seen from the above-described embodiment, terminal temperature can be end cell temperature, can also be terminal mainboard temperature, when can avoid end cell temperature and terminal mainboard temperature not in safe temperature range, continues to charge the infringement caused to end cell.
As shown in Figure 6, Fig. 6 is the block diagram of the another kind of terminal charge control device of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 5, and described connection status determination module 430 comprises: state value reading submodule 431 and connection status determination submodule 432.
Wherein, state value reading submodule 431, is configured to from file system, read USB connection status value.
Connection status determination submodule 432, is configured to be in connection status according to described USB connection status value determination terminal by described USB and feeder ear.
As seen from the above-described embodiment, USB connection status value can be read from file system, be in connection status according to USB connection status value determination terminal by USB and feeder ear, thus realize just obtaining terminal temperature when USB inserts terminal, avoid the wasting of resources that Real-time Obtaining causes.
As shown in Figure 7, Fig. 7 is the block diagram of the another kind of terminal charge control device of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 4, and described disabled module 420 comprises: first forbids submodule 421.
Wherein, first forbids submodule 421, is configured to, when the electricity of described terminal is full of, the present mode of terminal is switched to battery saving mode, and forbids the operation of USB driver in described terminal.
As seen from the above-described embodiment, when terminal power is full of, terminal present mode is switched to battery saving mode, thus the stand-by time of terminal can be extended.
As shown in Figure 8, Fig. 8 is the block diagram of the another kind of terminal charge control device of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 4, described disabled module 420 can comprise at least one following submodule, in order to clarity of illustration, all submodules that this disabled module 420 can comprise are shown in Fig. 8: second forbids that submodule 422 and the 3rd forbids submodule 423.
Wherein, second forbids submodule 422, is configured to remove USB driver.
3rd forbids submodule 423, is configured to unloading USB driver.
As seen from the above-described embodiment, can remove USB driver on the one hand, this mode USB driver also stores in the terminal, directly can load, economize on resources when next time needs.On the other hand, can unload USB driver, this mode makes USB driver not in the terminal, can reinstall and load when next time needs.
Accordingly, the disclosure also provides a kind of terminal charge control device, and described device includes processor; For the memory of storage of processor executable instruction; Wherein, described processor is configured to:
Detect the electricity being in the terminal of charged state whether to be full of.
When the electricity of described terminal is full of, forbid the operation of USB driver in described terminal.
In said apparatus, the concrete details of the implementation procedure of the function and efficacy of unit are shown in the implementation procedure of corresponding step in said method, do not repeat them here.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of disclosure scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
As shown in Figure 9, Fig. 9 is a kind of block diagram for terminal charge control device 900 of the disclosure according to an exemplary embodiment.Such as, device 900 can be the mobile phone with routing function, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 9, device 900 can comprise following one or more assembly: processing components 902, memory 904, power supply module 906, multimedia groupware 908, audio-frequency assembly 910, the interface 912 of I/O (I/O), sensor cluster 914, and communications component 916.
The integrated operation of the usual control device 900 of processing components 902, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 902 can comprise one or more processor 920 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 902 can comprise one or more module, and what be convenient between processing components 902 and other assemblies is mutual.Such as, processing components 902 can comprise multi-media module, mutual with what facilitate between multimedia groupware 908 and processing components 902.
Memory 904 is configured to store various types of data to be supported in the operation of device 900.The example of these data comprises for any application program of operation on device 900 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 904 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that power supply module 906 is device 900 provide electric power.Power supply module 906 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 900 and be associated.
Multimedia groupware 908 is included in the screen providing an output interface between described device 900 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 908 comprises a front-facing camera and/or post-positioned pick-up head.When device 900 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 910 is configured to export and/or input audio signal.Such as, audio-frequency assembly 910 comprises a microphone (MIC), and when device 900 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 904 further or be sent via communications component 916.In certain embodiments, audio-frequency assembly 910 also comprises a loud speaker, for output audio signal.
I/O interface 912 is for providing interface between processing components 902 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 914 comprises one or more transducer, for providing the state estimation of various aspects for device 900.Such as, sensor cluster 914 can detect the opening/closing state of device 900, the relative positioning of assembly, such as described assembly is display and the keypad of device 900, sensor cluster 914 can also change the position of an assembly in checkout gear 900 or device 900, the presence or absence that user contacts with device 900, the variations in temperature of device 900 orientation or acceleration/deceleration and device 900.Sensor cluster 914 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 914 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 914 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor, microwave remote sensor or temperature sensor.
Communications component 916 is configured to the communication being convenient to wired or wireless mode between device 900 and other equipment.Device 900 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 916 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 916 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 900 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 904 of instruction, above-mentioned instruction can perform said method by the processor 920 of device 900.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of terminal, make terminal can perform a kind of terminal charge control method, described method comprises:
Detect the electricity being in the terminal of charged state whether to be full of.
When the electricity of described terminal is full of, forbid the operation of USB driver in described terminal.
Those skilled in the art, at consideration specification and after putting into practice invention disclosed herein, will easily expect other embodiment of the present disclosure.The disclosure is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.
The foregoing is only preferred embodiment of the present disclosure, not in order to limit the disclosure, all within spirit of the present disclosure and principle, any amendment made, equivalent replacements, improvement etc., all should be included within scope that the disclosure protects.
Claims (13)
1. a terminal charge control method, is characterized in that, described method comprises:
Detect the electricity being in the terminal of charged state whether to be full of;
When the electricity of described terminal is full of, forbid the operation of USB driver in described terminal.
2. method according to claim 1, is characterized in that, before whether the electricity that described detection is in the terminal of charged state is full of, also comprises:
Determine that terminal is in connection status by described USB and feeder ear;
Terminal temperature is obtained from built-in temperature sensor;
When described terminal temperature is in the safe temperature range preset, loads USB driver, described terminal is charged;
When described terminal temperature is not in the safe temperature range preset, forbid loading described USB driver.
3. method according to claim 2, is characterized in that, described terminal temperature at least comprises following a kind of temperature: end cell temperature, terminal mainboard temperature.
4. method according to claim 2, is characterized in that, describedly determines that terminal is in connection status by described USB and feeder ear, comprising:
USB connection status value is read from file system;
Connection status is in by described USB and feeder ear according to described USB connection status value determination terminal.
5. method according to claim 1, is characterized in that, when the described electricity when described terminal is full of, forbids the operation of USB driver in described terminal, comprising:
When the electricity of described terminal is full of, the present mode of terminal is switched to battery saving mode, and forbid the operation of USB driver in described terminal.
6. method according to claim 1, is characterized in that, described in forbid comprising the operation of USB driver in described terminal:
Remove USB driver; Or,
Unloading USB driver.
7. a terminal charge control device, is characterized in that, described device comprises:
Detection module, whether the electricity being configured to detect the terminal being in charged state is full of;
Disabled module, is configured to, when the electricity of described terminal is full of, forbid the operation of USB driver in described terminal.
8. device according to claim 7, is characterized in that, described device also comprises:
Connection status determination module, is configured to determine that terminal is in connection status by described USB and feeder ear;
Terminal temperature acquisition module, is configured to obtain terminal temperature from built-in temperature sensor;
Terminal temperature respond module, is configured to, when described terminal temperature is in the safe temperature range preset, loads USB driver, charge to described terminal; When described terminal temperature is not in the safe temperature range preset, forbid loading described USB driver.
9. device according to claim 8, is characterized in that, described terminal temperature at least comprises following a kind of temperature: end cell temperature, terminal mainboard temperature.
10. device according to claim 8, is characterized in that, described connection status determination module comprises:
State value reading submodule, is configured to from file system, read USB connection status value;
Connection status determination submodule, is configured to be in connection status according to described USB connection status value determination terminal by described USB and feeder ear.
11. devices according to claim 7, is characterized in that, described disabled module comprises:
First forbids submodule, is configured to, when the electricity of described terminal is full of, the present mode of terminal is switched to battery saving mode, and forbids the operation of USB driver in described terminal.
12. devices according to claim 7, is characterized in that, described disabled module at least comprises a following submodule:
Second forbids submodule, is configured to remove USB driver;
3rd forbids submodule, is configured to unloading USB driver.
13. 1 kinds of terminal charge control device, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Detect the electricity being in the terminal of charged state whether to be full of;
When the electricity of described terminal is full of, forbid the operation of USB driver in described terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510886167.7A CN105515092A (en) | 2015-12-04 | 2015-12-04 | Terminal charging control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510886167.7A CN105515092A (en) | 2015-12-04 | 2015-12-04 | Terminal charging control method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105515092A true CN105515092A (en) | 2016-04-20 |
Family
ID=55722854
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510886167.7A Pending CN105515092A (en) | 2015-12-04 | 2015-12-04 | Terminal charging control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105515092A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105845998A (en) * | 2016-05-03 | 2016-08-10 | 珠海市魅族科技有限公司 | Display method of charged state and terminal |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101706759A (en) * | 2009-11-10 | 2010-05-12 | 无敌科技(西安)有限公司 | System for judging USB connection mode and method thereof |
CN101783427A (en) * | 2010-01-19 | 2010-07-21 | 中兴通讯股份有限公司 | Intelligent charging method and intelligent charging device of terminal |
CN102280902A (en) * | 2010-06-10 | 2011-12-14 | 鸿富锦精密工业(深圳)有限公司 | Protector for battery charging |
KR20130098515A (en) * | 2012-02-28 | 2013-09-05 | 주식회사 코리아하이텍 | Battery charger for portable terminal and charging method thereof |
CN103413986A (en) * | 2013-08-27 | 2013-11-27 | 贝壳网际(北京)安全技术有限公司 | Method and device for automatically stopping charging after full charge of mobile terminal |
CN103927282A (en) * | 2013-01-15 | 2014-07-16 | 郝明学 | Device for controlling connection or removal of USB (Universal Serial Bus) device |
CN103944230A (en) * | 2014-04-25 | 2014-07-23 | 可牛网络技术(北京)有限公司 | Charging system and method for mobile terminal and charger |
CN104330740A (en) * | 2014-07-08 | 2015-02-04 | 北京鸿智电通科技有限公司 | Terminal charging protecting method and device |
-
2015
- 2015-12-04 CN CN201510886167.7A patent/CN105515092A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101706759A (en) * | 2009-11-10 | 2010-05-12 | 无敌科技(西安)有限公司 | System for judging USB connection mode and method thereof |
CN101783427A (en) * | 2010-01-19 | 2010-07-21 | 中兴通讯股份有限公司 | Intelligent charging method and intelligent charging device of terminal |
CN102280902A (en) * | 2010-06-10 | 2011-12-14 | 鸿富锦精密工业(深圳)有限公司 | Protector for battery charging |
KR20130098515A (en) * | 2012-02-28 | 2013-09-05 | 주식회사 코리아하이텍 | Battery charger for portable terminal and charging method thereof |
CN103927282A (en) * | 2013-01-15 | 2014-07-16 | 郝明学 | Device for controlling connection or removal of USB (Universal Serial Bus) device |
CN103413986A (en) * | 2013-08-27 | 2013-11-27 | 贝壳网际(北京)安全技术有限公司 | Method and device for automatically stopping charging after full charge of mobile terminal |
CN103944230A (en) * | 2014-04-25 | 2014-07-23 | 可牛网络技术(北京)有限公司 | Charging system and method for mobile terminal and charger |
CN104330740A (en) * | 2014-07-08 | 2015-02-04 | 北京鸿智电通科技有限公司 | Terminal charging protecting method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105845998A (en) * | 2016-05-03 | 2016-08-10 | 珠海市魅族科技有限公司 | Display method of charged state and terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102158288B1 (en) | Method for charging battery and an electronic device thereof | |
CN104881104A (en) | Intelligent equipment, intelligent equipment performance improvement method and intelligent equipment performance improvement device | |
CN105896666A (en) | Charging method and device of terminal and terminal | |
CN104578372A (en) | Method and device for controlling charging of terminal device | |
CN104951335A (en) | Processing method and device for application program installation packages | |
CN104915123A (en) | Terminal display method and device | |
CN108091808B (en) | Battery, equipment, charging control method and device | |
CN105516824A (en) | Method and device for adjusting brightness of television screen | |
CN105530384A (en) | Method and device for power reminding based on alarm clock | |
CN106445856A (en) | Interface circuit, and state switching method and apparatus | |
CN105162193A (en) | Charging method and charging apparatus for terminal, and terminal | |
CN104639745A (en) | Voice prompt method and device | |
CN105137831A (en) | Power-saving mode starting method and device | |
CN105356529A (en) | Prompting method and apparatus for rapid charging state | |
US20150271595A1 (en) | Electronic device, audio device, and method for supplying power to the audio device | |
CN104779420A (en) | Battery charging method and device | |
CN104714826A (en) | Application theme loading method and device | |
CN105807894A (en) | Processing method and device of lock holding of application | |
CN105792328A (en) | Terminal device network connection method, terminal device network connection apparatus and terminal device | |
CN107329520B (en) | USB interface connection method, device and system of mobile terminal | |
CN105554631A (en) | Audio switching method and device, and electronic device | |
CN104991625A (en) | Electronic device and reset method and apparatus thereof | |
EP3614523B1 (en) | Charging processing method and terminal device | |
CN105282867A (en) | Network connection method and device | |
CN105390120A (en) | Bright screen control method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160420 |