CN109755997A - A kind of charging method and terminal device - Google Patents

A kind of charging method and terminal device Download PDF

Info

Publication number
CN109755997A
CN109755997A CN201811544003.6A CN201811544003A CN109755997A CN 109755997 A CN109755997 A CN 109755997A CN 201811544003 A CN201811544003 A CN 201811544003A CN 109755997 A CN109755997 A CN 109755997A
Authority
CN
China
Prior art keywords
terminal device
charger
battery
connection status
charging
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
CN201811544003.6A
Other languages
Chinese (zh)
Other versions
CN109755997B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201811544003.6A priority Critical patent/CN109755997B/en
Publication of CN109755997A publication Critical patent/CN109755997A/en
Application granted granted Critical
Publication of CN109755997B publication Critical patent/CN109755997B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the present invention provides a kind of charging method and terminal device, is applied to field of communication technology, to solve the problem of to cause battery to generate in the charging interface of terminal device due to pulling out charger during the battery to terminal device carries out fast charge and leak electricity.This method comprises: detecting the connection status of charger during the battery charging that charger is terminal device;When detecting that connection status instruction is not connected, the charge switch pipe cut-off of controlling terminal equipment;Wherein, above-mentioned charge switch pipe is for the access described on or off between the charging interface of terminal device and the battery of terminal device.

Description

A kind of charging method and terminal device
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of charging method and terminal devices.
Background technique
As the high speed of terminal device (such as smart phone) is universal, people are also increasingly stronger for the dependence of terminal device. With the rapid development that terminal device hardware and APP (Application) are applied, the power consumption of terminal device also becomes more next It is bigger.In order to improve the cruising ability of terminal device, the charging time is reduced, nowadays quick charge has been the indispensable function of terminal device One of can.
Fig. 1 is the quick charge architecture diagram of terminal device common at present, as shown in Figure 1, standard charger passes through charging Switching tube (i.e. switch Q1 and switch Q2 in Fig. 1) charges to battery, wherein switch Q1 and switch Q2 is powerful N-type The output voltage Vbus (i.e. the charging voltage of the charging interface of terminal device) of metal-oxide-semiconductor, charger is slightly above cell voltage Vbat, That is Vbus ≈ Vbat, capacitor C1, C2 are used to improve the load transient response of entire charging circuit.Illustratively, micro-control unit (Microcontroller Unit, MCU) or CPU control driving circuit generate high voltage control signal CT1 and CT2 and are respectively used to drive Dynamic switch Q1 and switch Q2 is connected.
However, when user pulls out charger during fast charge, switch Q1 and switch Q2 still on state, thus Battery is caused to generate electric leakage in the charging interface of terminal device, which not only will increase the risk that charging interface is corroded, also It will affect the external external equipment of terminal device to work normally.
Summary of the invention
The embodiment of the present invention provides a kind of charging method and terminal device, fast to solve to carry out in the battery to terminal device During filling, battery is caused to lead to the problem of electric leakage in the charging interface of terminal device due to pulling out charger.
In order to solve the above-mentioned technical problem, the embodiments of the present invention are implemented as follows:
In a first aspect, providing a kind of charging method, it is applied to terminal device, this method comprises:
During the battery charging that charger is the terminal device, the connection status of the charger is detected;
When detecting that the connection status instruction is not connected, the charge switch pipe cut-off of the terminal device is controlled;
Wherein, between charging interface and the battery of the charge switch pipe for terminal device described on or off Access.
Second aspect, the embodiment of the invention also provides a kind of terminal devices, comprising:
Detection module, for detecting the charger during battery charging that charger is the terminal device Connection status;
Control module controls the terminal and sets when the detection module detects that the connection status instruction is not connected Standby charge switch pipe cut-off;
Wherein, between charging interface and the battery of the charge switch pipe for terminal device described on and off Access.
The third aspect the embodiment of the invention provides a kind of terminal device, including processor, memory and is stored in this and deposits On reservoir and the computer program that can run on the processor, such as first is realized when which is executed by the processor The step of charging method described in aspect.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage mediums Computer program is stored in matter, and the step of charging method as described in relation to the first aspect is realized when which is executed by processor Suddenly.
In embodiments of the present invention, during the battery charging that charger is terminal device, by detecting charger Connection status, so as to which the charge switch of the terminal device is immediately controlled when detecting that connection status instruction is not connected Pipe cut-off, ends the access between the charging interface of terminal device and battery, so as to avoid charging interface from generating electric leakage.
Detailed description of the invention
Fig. 1 is the charge construction schematic diagram of existing typical terminal device;
Fig. 2 is a kind of configuration diagram of Android operation system provided in an embodiment of the present invention;
Fig. 3 is a kind of one of flow diagram of charging method provided in an embodiment of the present invention;
Fig. 4 is the two of a kind of flow diagram of charging method provided in an embodiment of the present invention;
Fig. 5 is the three of a kind of flow diagram of charging method provided in an embodiment of the present invention;
Fig. 6 is a kind of one of structural schematic diagram of terminal device provided in an embodiment of the present invention;
Fig. 7 is a kind of second structural representation of terminal device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright embodiment, it is obtained by those of ordinary skill in the art without making creative efforts it is all its His embodiment, shall fall within the protection scope of the present invention.
It should be noted that "/" herein indicate or the meaning, for example, A/B can indicate A or B;Herein "and/or" is only a kind of incidence relation for describing affiliated partner, indicates may exist three kinds of relationships, for example, A and/or B, it can To indicate: individualism A exists simultaneously A and B, these three situations of individualism B." multiple " refer to two or more.
It should be noted that in the embodiment of the present invention, " illustrative " or " such as " etc. words make example, example for indicating Card or explanation.Be described as in the embodiment of the present invention " illustrative " or " such as " any embodiment or design scheme do not answer It is interpreted than other embodiments or design scheme more preferably or more advantage.Specifically, " illustrative " or " example are used Such as " word is intended to that related notion is presented in specific ways.
The executing subject of charge protection method provided in an embodiment of the present invention can (including mobile terminal be set for terminal device Standby and immobile terminal equipment), or can be realized in the terminal device charge protection method functional module and/or Functional entity can specifically determine that the embodiment of the present invention is not construed as limiting according to actual use demand.It is with terminal device below Example, illustratively illustrates charge protection method provided in an embodiment of the present invention.
Terminal device in the embodiment of the present invention can be mobile terminal device, or immobile terminal equipment.It moves Dynamic terminal device can be mobile phone, tablet computer, laptop, palm PC, vehicle-mounted terminal equipment, wearable device, surpass Grade mobile personal computer (ultra-mobile personal computer, UMPC), net book or personal digital assistant (personal digital assistant, PDA) etc.;Immobile terminal equipment can be personal computer (personal Computer, PC), television set (television, TV), automatic teller machine or self-service machine etc.;The embodiment of the present invention does not limit specifically It is fixed.
Illustratively, Fig. 1 is the quick charge configuration diagram of terminal device common at present, as shown in Figure 1, the terminal Equipment include: charging interface, capacitor C1, capacitor C2, switch Q1, switch Q2, driving circuit, processor (such as, MCU or CPU) with And battery.Wherein, charger is connect by charging interface with terminal device, so as to (i.e. above-mentioned by charge switch pipe Switch Q1 and switch Q2) it charges to battery, switch Q1 and switch Q2 are powerful N-type metal-oxide-semiconductor, and switch Q1 and switch Q2 It is " back-to-back " that capacitor C1, capacitor C2 are used to improve the load transient response of entire charging circuit, charging interface can be The customized interface for realizing large current charge of micro USB, Type-C either user, driving circuit can be integrated IC or divide Vertical voltage-multiplying circuit etc., battery are the assemblys of lithium ion or lighium polymer battery core and protection circuit etc., and processor drives for controlling Dynamic circuit generates high voltage control signal (including CT1 and CT2, wherein CT1 driving switch Q1, CT2 driving switch Q2) to drive out Q1 and switch Q2 is closed to be connected.
In addition, the output voltage Vbus (i.e. the charging voltage of the charging interface of terminal device) of charger is slightly above battery electricity Press Vbat, i.e. Vbus ≈ Vbat.
The embodiment of the present invention provides a kind of charging method and terminal device, is detecting that charger is the battery of terminal device During charging, by detecting the connection status of charger, so as to stand when detecting that connection status instruction is not connected Charge switch pipe (the switch Q1 and switch Q2 as shown in figure 1) cut-off for controlling the terminal device, ends the charging of terminal device Access between interface and battery, so as to avoid during the battery to terminal device carries out fast charge charging, due to pulling out The electrical leakage problems for falling charger and battery being caused to generate in the charging interface of terminal device.
Terminal device in the embodiment of the present invention can be the terminal device with operating system.The operating system can be Android (Android) operating system can be ios operating system, can also be other possible operating systems, and the present invention is implemented Example is not especially limited.
Below by taking Android operation system as an example, introduce applied by charge protection method provided in an embodiment of the present invention Software environment.
As shown in Fig. 2, being a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention.Scheming In 2, the framework of Android operation system includes 4 layers, be respectively as follows: application layer, application framework layer, system Runtime Library layer and Inner nuclear layer (is specifically as follows Linux inner core).
Wherein, application layer includes each application program (including system application and in Android operation system Tripartite's application program).
Application framework layer is the frame of application program, and developer can be in the exploitation for the frame for abiding by application program In the case where principle, some application programs are developed based on application framework layer.
System Runtime Library layer includes library (also referred to as system library) and Android operation system running environment.Library is mainly Android behaviour As system it is provided needed for all kinds of resources.Android operation system running environment is used to provide software loop for Android operation system Border.
Inner nuclear layer is the operating system layer of Android operation system, belongs to the bottom of Android operation system software level.It is interior Stratum nucleare provides core system service and hardware-related driver based on linux kernel for Android operation system.
By taking Android operation system as an example, in the embodiment of the present invention, developer can be based on above-mentioned Android as shown in Figure 2 The software program of charge protection method provided in an embodiment of the present invention is realized in the system architecture of operating system, exploitation, so that The charge protection method can be run based on Android operation system as shown in Figure 2.I.e. processor or terminal device can lead to It crosses and runs software program realization charge protection method provided in an embodiment of the present invention in Android operation system.
The charge protection method of the embodiment of the present invention is said below with reference to charge protection method flow chart shown in Fig. 3 Bright, Fig. 3 is a kind of charging method flow diagram provided in an embodiment of the present invention, including step 201 and step 202:
Step 201: terminal device detects the connection of charger during the battery charging that charger is terminal device State.
In embodiments of the present invention there are two types of the connection status of charger, a kind of state is used to indicate not connected, that is, charges Device is not connected with the charging interface of terminal device, and another state is used to indicate connection, i.e. charger connects filling for the terminal device Electrical interface.
Step 202: terminal device is when detecting that connection status instruction is not connected, the charge switch pipe of controlling terminal equipment Cut-off.
Wherein, above-mentioned charge switch pipe is for the charging interface of on and off terminal device and the battery of terminal device Between access, can refer to switch Q1 in Fig. 1 and switch Q2.
In embodiments of the present invention, the processor controlling terminal equipment due to usual situation, usually inside terminal device Internal driving circuit sends high voltage control signal to charge switch pipe, so that the on and off of charge switch pipe is controlled, because This, terminal device can send to processor and alert, processor is based on the alarm when detecting that connection status instruction is not connected Driving circuit sends control signal to charge switch pipe, to control the cut-off of charge switch pipe.
Optionally, in embodiments of the present invention, terminal device can detect the connection shape of charger by two ways State.
Charge protection method provided in an embodiment of the present invention, in the mistake for detecting that the battery that charger is terminal device charges Cheng Zhong, by detecting the connection status of charger, so as to which this is immediately controlled when detecting that connection status instruction is not connected The charge switch pipe of terminal device ends, and ends the access between the charging interface of terminal device and battery, so as to avoid filling Electrical interface generates electric leakage.
In one possible implementation:
Illustratively, in conjunction with Fig. 3, as shown in figure 4, above-mentioned step 201 specifically comprises the following steps:
Step 201a1: terminal device detects charging interface during the battery charging that charger is terminal device The discharge current of charging voltage, the voltage of battery and battery.
Step 201a2: if the charging voltage is less than or equal to the voltage of battery in predetermined amount of time and discharge current is greater than 0, then terminal device determines that the connection status instruction of charger is not connected, otherwise, it determines connection status instruction connection.
Wherein, the electric current of battery includes the power consumption electric current for being charged into electric current and terminal device of battery.
Illustratively, battery usually has voltameter circuit, and therefore, terminal device can be read in real time by voltameter circuit Take the voltage Vbat of battery and the charge/discharge current Ibat of battery etc..In addition, the voltage Vbat of battery can also pass through terminal The processor (for example, MCU or CPU in terminal device) of equipment reads obtain in real time, and the processor of the terminal device can be with The charging voltage Vbus of charging interface is read in real time.
Illustratively, by taking charge construction shown in FIG. 1 as an example, it is assumed that the battery that is charged into of battery is I1, the consumption of terminal device Electric current is I2, and resistance when charge switch pipe is connected is R, and the voltage of battery is Vbat, the charging voltage Vbus of charging interface. Therefore so Vbus=Vbat+ (I1+I2) * R, i.e. Vbus-Vbat=(I1+I2) * R is terminal device charging in charger In the process, if extracting charger, the battery I1 moment that is charged into for being charged into battery becomes 0A, and the electric current of battery outflow is I2, then Vbus-Vbat=(I2) * R, at this point, R≤0 (I2) *.Therefore, Vbus-Vbat≤0 and battery outflow electric current, it is determined that charger Connection status instruction it is not connected, Vbus-Vbat > 0, it is determined that the connection status of charger indicates connection.
In conjunction with above content, terminal device can be by determining whether the difference between charging voltage and the voltage of battery is less than Zero, to determine the connection status of charger.
In embodiments of the present invention, terminal device can (such as 200ms) the interior charging to charging interface in the given time The voltage and discharge current of voltage and battery carry out repeated detection, and only continuous several times detect that charging voltage is less than or equal to electricity When the voltage and discharge current in pond are greater than 0, then determine that the connection status instruction of charger is not connected.
In embodiments of the present invention, during detecting the battery charging that charger is terminal device, pass through detection The charging voltage of charging interface and the voltage of battery and discharge current, thus the voltage of the charging voltage of charging interface and battery and Discharge current judges whether charger is extraction state, when detecting charger is extraction state, then the terminal is immediately controlled The charge switch pipe of equipment ends, and ends the access between the charging interface of terminal device and battery, so as to avoid charging Mouth generates electric leakage.
In two kinds of possible implementations:
Illustratively, in conjunction with Fig. 3, as shown in figure 5, above-mentioned step 201 specifically comprises the following steps:
Step 201b1: terminal device sends detection signal to charger.
In embodiments of the present invention, terminal device sends detection signal to charger, if charger is fed back to terminal device Answer signal then continues to send detection signal, if charger determines charger not to terminal device feedback answer signal It extracts, that is, determines that the connection status instruction of charger is not connected.
Further, in embodiments of the present invention, terminal device sends detection signal to charger according to predetermined period, Wherein, a cycle sends at least one detection signal.It illustratively, can be with when terminal device periodicity sending detection signal A cycle sends a detection signal, can also send multiple detection signals with a cycle.
Wherein, above-mentioned predetermined period can be user and flexibly set according to practical application scene, or one solid Definite value, which is not limited by the present invention.
In a kind of example, terminal device sends detection by the D+/D- data line of microUSB or TypeC interface port Signal and the answer signal for receiving charger feedback.Illustratively, by taking the D+/D- data line of TypeC interface port as an example, eventually End equipment can send CLK signal by D+ data line, send detection signal (each instruction 8bit), example by D- data line Such as, the transmission detection signal between CLK high period.In general, D+/D- in fast charge, there is detection signal always, sending cycle is 20ms。
Step 201b2: if terminal device does not receive the answer signal of charger feedback, it is determined that the connection shape of charger State instruction is not connected, otherwise, it determines connection status instruction connection.
In embodiments of the present invention, terminal device do not receive charger feedback answer signal, then show charger with Exception is connected between terminal device, so that terminal device can not receive the answer signal of charger feedback, alternatively, charger is not Receive the detection signal.Conversely, terminal device receives the answer signal of charger feedback, then show that charger is set with terminal It is connected between standby normal.
Further, above-mentioned step 201b2 specifically comprises the following steps:
Step A: if terminal device does not receive the answer signal of charger feedback after continuously transmitting M detection signal, Then determine that the connection status instruction of charger is not connected, M is the integer greater than 1.
Illustratively, in order to improve accuracy in detection, terminal device can continuously transmit M to terminal device in charger In the case that detection signal does not have answer signal, determine that charger has been extracted, determines that the connection status instruction of charger does not connect It connects.
In a kind of example, the corresponding answer signal of M detection signal, i.e. terminal device is continuously transmitting M detection After signal, in the case where not receiving corresponding answer signal, determine that charger has been extracted.
In another example, the corresponding answer signal of detection signal, as long as i.e. unresponsive continuous of charger Number reaches M times, then determines that charger has been extracted.
In embodiments of the present invention, terminal device charger be terminal device battery charging during, pass through to Charger sends detection signal, thus by determining whether charger is that terminal device feeds back answer signal, to judge charger It whether is extraction state, when detecting charger is extraction state, then the charge switch pipe that the terminal device is immediately controlled is cut Only, end the access between the charging interface of terminal device and battery, so as to avoid charging interface from generating electric leakage.
A kind of possible structural schematic diagram of Fig. 6 terminal device that embodiment provides to realize the present invention, as shown in fig. 6, Terminal device 300 includes detection module 301 and control module 302, in which:
Detection module 301, for detecting charger during the battery charging that charger is terminal device 300 Connection status.
Control module 302, when detection module 301 detects that connection status instruction is not connected, controlling terminal equipment 300 Charge switch pipe cut-off;Wherein, charge switch pipe is between the charging interface and battery of on and off terminal device 300 Access.
Optionally, detection module 301 is specifically used for: detecting the charging voltage of charging interface, the voltage of battery and battery Discharge current;If charging voltage is less than or equal to the voltage of battery in predetermined amount of time and discharge current is greater than 0, it is determined that charging The connection status instruction of device is not connected, otherwise, it determines connection status instruction connection.
Optionally, detection module 301 is specifically used for: sending detection signal to charger;If terminal device 300 does not receive The answer signal of charger feedback, it is determined that the connection status instruction of charger is not connected, otherwise, it determines the connection status indicates Connection.
Optionally, detection module 301 is specifically used for: according to predetermined period, sending detection signal to charger;Wherein, one A period sends at least one detection signal.
Optionally, detection module 301 is specifically used for: if terminal device 300 does not receive after continuously transmitting M detection signal The M answer signal fed back to charger, it is determined that the connection status instruction of charger is not connected, and M is the integer greater than 1.
Terminal device provided in an embodiment of the present invention passes through during the battery charging that charger is terminal device The connection status of charger is detected, so as to which the terminal device is immediately controlled when detecting that connection status instruction is not connected Charge switch pipe cut-off, end the access between the charging interface of terminal device and battery, so as to avoid charging interface from producing Raw electric leakage.
Terminal device provided in an embodiment of the present invention can be realized terminal device in above method embodiment realize it is each Process, to avoid repeating, which is not described herein again.
A kind of hardware structural diagram of Fig. 7 terminal device of each embodiment to realize the present invention, the terminal device 100 Including but not limited to: radio frequency unit 101, audio output unit 103, input unit 104, sensor 105, is shown network module 102 Show the components such as unit 106, user input unit 107, interface unit 108, memory 109, processor 110 and power supply 111. It will be understood by those skilled in the art that the structure of terminal device 100 shown in Fig. 7 does not constitute the restriction to terminal device, Terminal device 100 may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.In embodiments of the present invention, terminal device 100 include but is not limited to mobile phone, tablet computer, laptop, palm PC, Vehicle-mounted terminal equipment, wearable device and pedometer etc..
Wherein, processor 110, for detecting charger during the battery charging that charger is terminal device Connection status, when detecting that connection status instruction is not connected, the charge switch pipe cut-off of controlling terminal equipment;Wherein, it fills Electric switch pipe is for the access between the charging interface and battery of on and off terminal device.
Terminal device provided in an embodiment of the present invention passes through during the battery charging that charger is terminal device The connection status of charger is detected, so as to which the terminal device is immediately controlled when detecting that connection status instruction is not connected Charge switch pipe cut-off, end the access between the charging interface of terminal device and battery, so as to avoid charging interface from producing Raw electric leakage.
It should be understood that the embodiment of the present invention in, radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 110 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 101 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also by wireless communication system and network and other set Standby communication.
Terminal device 100 provides wireless broadband internet by network module 102 for user and accesses, and such as helps user It sends and receive e-mail, browse webpage and access streaming video etc..
Audio output unit 103 can be received by radio frequency unit 101 or network module 102 or in memory 109 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide and end The relevant audio output of specific function that end equipment 100 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 103 includes loudspeaker, buzzer and receiver etc..
Input unit 104 is for receiving audio or video signal.Input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or network module 102.Mike Wind 1042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 101 is converted in the case where telephone calling model.
Terminal device 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when terminal device 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify terminal device posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 105 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate and terminal device 100 User setting and the related key signals input of function control.Specifically, user input unit 107 include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation).Touch panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 110, receiving area It manages the order that device 110 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 1071.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 1071 can be covered on display panel 1061, when touch panel 1071 is detected at it On or near touch operation after, send processor 110 to determine the type of touch event, be followed by subsequent processing device 110 according to touching The type for touching event provides corresponding visual output on display panel 1061.Although in Fig. 7, touch panel 1071 and display Panel 1061 is the function that outputs and inputs of realizing terminal device 100 as two independent components, but in certain implementations In example, touch panel 1071 and display panel 1061 can be integrated and be realized the function that outputs and inputs of terminal device 100, tool Body is herein without limitation.
Interface unit 108 is the interface that external device (ED) is connect with terminal device 100.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in terminal device 100 or can be used in 100 He of terminal device Data are transmitted between external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of terminal device 100, utilizes various interfaces and the entire terminal device of connection 100 various pieces, by running or executing the software program and/or module that are stored in memory 109, and calling storage Data in memory 109 execute the various functions and processing data of terminal device 100, to carry out to terminal device 100 Integral monitoring.Processor 110 may include one or more processing units;Optionally, processor 110 can integrate application processor and Modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation Processor mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110 In.
Terminal device 100 can also include the power supply 111 (such as battery) powered to all parts, optionally, power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, terminal device 100 includes some unshowned functional modules, details are not described herein.
Optionally, the embodiment of the present invention also provides a kind of terminal device, including processor, and memory is stored in memory Computer program that is upper and can running on the processor 110, the computer program realize above-mentioned fill when being executed by processor Each process of electric protection method embodiment, and identical technical effect can be reached, to avoid repeating, which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of above-mentioned charge protection method embodiment, and energy when being executed by processor Reach identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.

Claims (12)

1. a kind of charging method is applied to terminal device, which is characterized in that the described method includes:
During the battery charging that charger is the terminal device, the connection status of the charger is detected;
When detecting that the connection status instruction is not connected, the charge switch pipe cut-off of the terminal device is controlled;
Wherein, the charge switch pipe is for logical between the charging interface and the battery of terminal device described on and off Road.
2. the method according to claim 1, wherein the connection status of the detection charger, comprising:
Detect the discharge current of the charging voltage of the charging interface, the voltage of the battery and the battery;
If the charging voltage is less than or equal to the voltage of the battery in predetermined amount of time and the discharge current is greater than 0, Determine that the connection status instruction of the charger is not connected, otherwise, it determines connection status instruction connection.
3. the method according to claim 1, wherein the connection status of the detection charger, comprising:
Detection signal is sent to the charger;
If the terminal device does not receive the answer signal of the charger feedback, it is determined that the connection status of the charger Instruction is not connected, otherwise, it determines connection status instruction connection.
4. according to the method described in claim 3, it is characterized in that, described send detection signal to the charger, comprising:
According to predetermined period, Xiang Suoshu charger sends detection signal;
Wherein, a cycle sends at least one detection signal.
5. the method according to claim 3 or 4, which is characterized in that if the terminal device do not receive it is described The answer signal of charger feedback, it is determined that the connection status instruction of the charger is not connected, comprising:
If the terminal device does not receive the answer signal of the charger feedback after continuously transmitting M detection signal, Determine that the connection status instruction of the charger is not connected, M is the integer greater than 1.
6. a kind of terminal device characterized by comprising
Detection module, for detecting the company of the charger during battery charging that charger is the terminal device Connect state;
Control module controls the terminal device when the detection module detects that the connection status instruction is not connected The cut-off of charge switch pipe;
Wherein, the charge switch pipe is for logical between the charging interface and the battery of terminal device described on and off Road.
7. terminal device according to claim 6, which is characterized in that the detection module is specifically used for:
Detect the discharge current of the charging voltage of the charging interface, the voltage of the battery and the battery;
If the charging voltage is less than or equal to the voltage of the battery in predetermined amount of time and the discharge current is greater than 0, Determine that the connection status instruction of the charger is not connected, otherwise, it determines connection status instruction connection.
8. terminal device according to claim 6, which is characterized in that the detection module is specifically used for:
Detection signal is sent to the charger;
If the terminal device does not receive the answer signal of the charger feedback, it is determined that the connection status of the charger Instruction is not connected, otherwise, it determines connection status instruction connection.
9. terminal device according to claim 8, which is characterized in that the detection module is specifically used for:
According to predetermined period, Xiang Suoshu charger sends detection signal;
Wherein, a cycle sends at least one detection signal.
10. terminal device according to claim 8 or claim 9, which is characterized in that the detection module is specifically used for:
If the terminal device does not receive the answer signal of the charger feedback after continuously transmitting M detection signal, Determine that the connection status instruction of the charger is not connected, M is the integer greater than 1.
11. a kind of terminal device, which is characterized in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor Any one of described in charging method the step of.
12. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence realizes the step of the charging method as described in any one of claims 1 to 5 when the computer program is executed by processor Suddenly.
CN201811544003.6A 2018-12-17 2018-12-17 Charging method and terminal equipment Active CN109755997B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811544003.6A CN109755997B (en) 2018-12-17 2018-12-17 Charging method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811544003.6A CN109755997B (en) 2018-12-17 2018-12-17 Charging method and terminal equipment

Publications (2)

Publication Number Publication Date
CN109755997A true CN109755997A (en) 2019-05-14
CN109755997B CN109755997B (en) 2021-05-25

Family

ID=66402722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811544003.6A Active CN109755997B (en) 2018-12-17 2018-12-17 Charging method and terminal equipment

Country Status (1)

Country Link
CN (1) CN109755997B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111722122A (en) * 2020-06-01 2020-09-29 Oppo广东移动通信有限公司 Detection method, detection device, electronic equipment and computer-readable storage medium
CN112054564A (en) * 2019-06-05 2020-12-08 Oppo广东移动通信有限公司 Circuit detection method and device, equipment and storage medium
CN113156244A (en) * 2021-04-12 2021-07-23 Oppo广东移动通信有限公司 Method and device for testing charging device, electronic device and storage medium
WO2023124216A1 (en) * 2021-12-29 2023-07-06 广州市科锐达光电技术股份有限公司 Non-electric leakage type-c theft prevention device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106537722A (en) * 2016-05-27 2017-03-22 广东欧珀移动通信有限公司 Battery protection board, battery and mobile terminal
CN106684955A (en) * 2015-11-11 2017-05-17 小米科技有限责任公司 Charger, electronic equipment and charging method
CN106786994A (en) * 2017-02-20 2017-05-31 维沃移动通信有限公司 A kind of charging method, charger and mobile terminal
US20170222464A1 (en) * 2016-02-01 2017-08-03 Qualcomm Incorporated Dual-phase operation for concurrently charging a battery and powering a peripheral device
CN107231013A (en) * 2016-05-24 2017-10-03 华为技术有限公司 A kind of method of charging, terminal, charger and system
CN108233460A (en) * 2017-09-04 2018-06-29 珠海市魅族科技有限公司 A kind of charging method, charging unit and terminal device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106684955A (en) * 2015-11-11 2017-05-17 小米科技有限责任公司 Charger, electronic equipment and charging method
US20170222464A1 (en) * 2016-02-01 2017-08-03 Qualcomm Incorporated Dual-phase operation for concurrently charging a battery and powering a peripheral device
CN107231013A (en) * 2016-05-24 2017-10-03 华为技术有限公司 A kind of method of charging, terminal, charger and system
CN106537722A (en) * 2016-05-27 2017-03-22 广东欧珀移动通信有限公司 Battery protection board, battery and mobile terminal
CN106786994A (en) * 2017-02-20 2017-05-31 维沃移动通信有限公司 A kind of charging method, charger and mobile terminal
CN108233460A (en) * 2017-09-04 2018-06-29 珠海市魅族科技有限公司 A kind of charging method, charging unit and terminal device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112054564A (en) * 2019-06-05 2020-12-08 Oppo广东移动通信有限公司 Circuit detection method and device, equipment and storage medium
CN112054564B (en) * 2019-06-05 2022-07-19 Oppo广东移动通信有限公司 Circuit detection method and device, equipment and storage medium
CN111722122A (en) * 2020-06-01 2020-09-29 Oppo广东移动通信有限公司 Detection method, detection device, electronic equipment and computer-readable storage medium
CN113156244A (en) * 2021-04-12 2021-07-23 Oppo广东移动通信有限公司 Method and device for testing charging device, electronic device and storage medium
CN113156244B (en) * 2021-04-12 2022-07-12 Oppo广东移动通信有限公司 Method and device for testing charging device, electronic device and storage medium
WO2023124216A1 (en) * 2021-12-29 2023-07-06 广州市科锐达光电技术股份有限公司 Non-electric leakage type-c theft prevention device

Also Published As

Publication number Publication date
CN109755997B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
CN109445736A (en) A kind of multi-screen display method and mobile terminal
CN108255378A (en) A kind of display control method and mobile terminal
CN109755997A (en) A kind of charging method and terminal device
CN109661016A (en) A kind of method for network access and terminal device
CN108494030A (en) A kind of wireless charging method, terminal and transmitting end equipment
CN108989668A (en) A kind of working method and mobile terminal of camera
CN110058836A (en) A kind of output method and terminal device of audio signal
CN109672254A (en) A kind of charging control circuit, terminal device and control method
CN108628521A (en) A kind of screen operating method and mobile terminal
CN110069180A (en) A kind of function control method and terminal device
CN109888928A (en) A kind of terminal and wireless charging control method
CN110096203A (en) A kind of screenshot method and mobile terminal
CN109639887A (en) A kind of control method and terminal device
CN108170559A (en) A kind of data back up method and terminal
CN110505279A (en) The method and apparatus of delay is set
CN107992378B (en) A kind of document handling method and mobile terminal
CN109614020A (en) A kind of method of payment and terminal
CN109981442A (en) Method for sending information and terminal device
CN109831582A (en) Non- response events processing method and terminal
CN108448177A (en) A kind of charging method and terminal
CN109189514A (en) A kind of control method and terminal device of terminal device
CN109582174A (en) A kind of touch-control input response method and terminal device
CN108988413A (en) A kind of method and mobile terminal of mobile terminal charging
CN108845261A (en) A kind of electric quantity reminding method and terminal device
CN109950952A (en) A kind of method of supplying power to and mobile terminal

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