CN105137356B - Detect the method and device of charged state - Google Patents

Detect the method and device of charged state Download PDF

Info

Publication number
CN105137356B
CN105137356B CN201510515903.8A CN201510515903A CN105137356B CN 105137356 B CN105137356 B CN 105137356B CN 201510515903 A CN201510515903 A CN 201510515903A CN 105137356 B CN105137356 B CN 105137356B
Authority
CN
China
Prior art keywords
terminal device
real
charged state
power supply
supply line
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.)
Active
Application number
CN201510515903.8A
Other languages
Chinese (zh)
Other versions
CN105137356A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510515903.8A priority Critical patent/CN105137356B/en
Publication of CN105137356A publication Critical patent/CN105137356A/en
Application granted granted Critical
Publication of CN105137356B publication Critical patent/CN105137356B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The disclosure is directed to a kind of method and device for detecting charged state, with to avoid can not identify charging failure phenomenon caused by charge protocol.The described method includes: real-time current of the monitoring USB interface on the power supply line of the insertion end of the terminal device;The charged state of the terminal device is determined according to the real-time current;If charged state indicates that charging is abnormal, instruction re-recognizes the charging process of charger.Disclosed technique scheme can promote user experience, improve the charge function of terminal device to avoid due to the exception that charges caused by can not correctly identifying charge protocol.

Description

Detect the method and device of charged state
Technical field
This disclosure relates to the charging technique field universal serial bus (Universal Serial Bus, referred to as USB), especially It is related to a kind of method and device for detecting charged state.
Background technique
USB interface is the standard that USB-IF is formulated, to ensure that cable power supply line (Vbus) is inserted into prior to data (data) line Host (host) guarantees that power supply line is detected first, power supply line (Vbus)/ground line (GND) length at insertion (Plug) end Degree needs the length than data line (D+/D-) long, and above-mentioned design, which will lead to power supply and signal, has delay in mutual detection, and Delay time depends on the speed of user's plug.1.2 versions (referred to as BC1.2 agreement) of USB-IF charging specifications are although specification The maximum duration of delay, but it can no longer meet charging requirement rapidly and efficiently.In the related technology, it is electrically charged in equipment Power management chip charging timing on meet BC1.2 agreement after, then carry out fast charge protocol (Quick Charge2.0, Referred to as QC2.0 agreement) identification, judge it is BC1.2 agreement or QC2.0 agreement in time by power management chip. When being charged using USB interface, if charger comes into the fast charge mode of normal QC2.0 agreement, user is being pulled out at a slow speed The insertion end of USB and after insertion end is turned back to host again out, since the power supply line of USB insertion end and the length of data line are different Lead to exception of the insertion end in plug, and then battery management chip can not identify charge protocol and charging is caused to fail.
Summary of the invention
To overcome the problems in correlation technique, the embodiment of the present disclosure provides a kind of method and dress for detecting charged state It sets, with to avoid can not identify charging failure phenomenon caused by charge protocol.
According to the first aspect of the embodiments of the present disclosure, a kind of method detecting charged state is provided, is applied in terminal device On, comprising:
Monitor real-time current of the USB interface on the power supply line of the insertion end of the terminal device;
The charged state of the terminal device is determined according to the real-time current;
If charged state indicates that charging is abnormal, instruction re-recognizes the charging process of charger.
In one embodiment, the real-time electricity on the power supply line of insertion end of the monitoring USB interface in the terminal device Stream, it may include:
Obtain the voltage difference for being connected to resistance of the USB interface on the power supply line of the insertion end of the terminal device;
The real-time current on the power supply line is flowed through according to the voltage difference and the monitoring of the resistance value of the resistance.
In one embodiment, the real-time electricity on the power supply line of insertion end of the monitoring USB interface in the terminal device Stream, it may include:
Monitoring is connected to the electric current of electromagnetic coil of the USB interface on the power supply line of the insertion end of the terminal device.
In one embodiment, the charged state that the terminal device is determined according to the electric current, it may include:
Monitor the variation of the real-time current;
If the variation of the real-time current exceeds preset range, determine that the charged state of the terminal device is in abnormal State;
If at the charged state that the variation of the real-time current within the preset range, determines the terminal device In normal condition.
In one embodiment, the method may also include that
If the charged state of the terminal device is in abnormality, shutdown is connected to the USB interface at the end The data line of the insertion end of end equipment, the corresponding control switch of the power supply line.
According to the second aspect of an embodiment of the present disclosure, a kind of device detecting charged state is provided, is applied in terminal device On, comprising:
Current monitoring module is configured as reality of the monitoring USB interface on the power supply line of the insertion end of the terminal device When electric current;
Determining module is configured as determining that the terminal is set according to the electric current of the real-time current monitoring module monitors Standby charged state;
Indicating module, if being configured as the charged state that the determining module determines indicates that charging is abnormal, instruction Re-recognize the charging process of charger.
In one embodiment, the current monitoring module can include:
Acquisition submodule is configured as acquisition and is connected to USB interface on the power supply line of the insertion end of the terminal device Resistance voltage difference;
First monitoring submodule, is configured as the voltage difference got according to the acquisition submodule and the resistance Resistance value monitoring flow through real-time current on the power supply line.
In one embodiment, the current monitoring module can include:
Second monitoring submodule, is configured as monitoring and is connected to USB interface in the power supply of the insertion end of the terminal device The real-time current of electromagnetic coil on line.
In one embodiment, the determining module can include:
Third monitors submodule, is configured as monitoring the variation of the real-time current;
First determines submodule, if being configured as the variation that the third monitoring submodule monitors the real-time current Beyond preset range, determine that the charged state of the terminal device is in abnormality;
Second determines submodule, if being configured as the variation that the third monitoring submodule monitors the real-time current Within the preset range, determine that the charged state of the terminal device is in normal condition.
In one embodiment, described device may also include that
Control module, if being configured as the determining module determines that the charged state of the terminal device is in abnormal shape State, control be connected to the USB interface the insertion end of the terminal device data line, the power supply line is corresponding opens Shutdown.
According to the third aspect of an embodiment of the present disclosure, a kind of device detecting charged state is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Monitor real-time current of the USB interface on the power supply line of the insertion end of the terminal device;
The charged state of the terminal device is determined according to the real-time current;
If charged state indicates that charging is abnormal, instruction re-recognizes the charging process of charger.
The technical scheme provided by this disclosed embodiment can include the following benefits: by monitoring USB interface at end Real-time current on the power supply line of the insertion end of end equipment, when terminal device application QC2.0 agreement is charged by USB interface, If determining that terminal device charging is abnormal according to real-time current, instruction re-recognizes the charging process of charger, so as to keep away Exempt to promote user experience due to the exception that charges caused by can not correctly identifying charge protocol, improve the charging function of terminal device Energy.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is flow chart when being charged according to USB charger in the related technology to terminal device.
Fig. 2 is the abnormal flow chart of charging when being plugged according to USB cable in the related technology.
Fig. 3 is the flow chart of the method for detection charged state shown according to an exemplary embodiment.
Fig. 4 A is the flow chart according to the method for the detection charged state shown in an exemplary embodiment one.
Fig. 4 B is the schematic diagram according to the identification circuit shown in an exemplary embodiment one.
Fig. 5 A is the flow chart according to the method for the detection charged state shown in an exemplary embodiment two.
Fig. 5 B is the schematic diagram according to the identification circuit shown in an exemplary embodiment two.
Fig. 6 is a kind of block diagram of device for detecting charged state shown according to an exemplary embodiment.
Fig. 7 is the block diagram of the device of another detection charged state shown according to an exemplary embodiment.
Fig. 8 is a kind of block diagram suitable for detecting the device of charged state shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
" slow to extract " in the disclosure refers to, after USB cable is extracted from terminal device, leads to the number of terminal It has been disconnected with the data line of USB line cable-end (D+/D-) according to line (D+/D-), but the electricity of terminal device and USB line cable-end Source line (Vbus)/ground line (GND) still maintains the state of connection, and the reason of causing above-mentioned phenomenon is USB-IF defined Cable end power supply signal is different with D+/D- signal pins length, at this point, will lead to after terminal device is plugged USB cable again It can not charge to terminal device.
Fig. 1 is flow chart when being charged according to USB charger in the related technology to terminal device;As shown in Figure 1, Charging identification process under normal condition is detected in the related technology to include the following steps:
In step s101, charger is inserted into USB interface, and the data line at charger end is in short circuit state, terminal device The data line at end is in an off state.
In step S102 and step S103, need to carry out BC1.2 agreement detection for the first time (primary detect) and The detection (second detect) of secondary QC2.0 agreement, that is, BC1.2 agreement is first carried out between charger and terminal device Communication executes the communication of QC2.0 agreement later.
In step S104, according to the voltage on the data line of QC2.0 protocol configuration charger, it is desirable that charger is in power supply 9 volts of voltage is exported on line.
In step s105, the voltage on the data line of terminal and the short data line of charger is kept, charger The voltage for being 9 volts in high-voltage charging state, the power supply line of terminal.
Fig. 2 is the abnormal flow chart of charging when being plugged according to USB cable in the related technology;As shown in Fig. 2, related skill Charging identification process of the USB cable that charges in art when plugging abnormal includes the following steps:
In step s 201, USB cable is pulled out slowly, leads to the data line of the data line of terminal and the insertion end of USB It disconnects, but the power supply line of the insertion end of the power supply line of terminal device and USB, still in connection status, charge mode is QC2.0 mode.Under QC2.0 mode, the D+/D- signal wire of terminal remains correctly connection and output, in this way Charger obtains the D+/D- instruction table of comparisons (as shown in table 1) that terminal device provides could provide corresponding voltage on Vbus.
1 QC2.0 of table configures voltage and Vbus exports value comparison table
In step S202, USB cable is turned back to again, and terminal device is the voltage value that charger exports D+/D-.
In step S203, charger can not Direct Recognition QC2.0 agreement, provide BC1.2 agreement default Vbus value.
In above process, it if the output of D+/D- is interrupted (USB line is extracted slowly, and D+/D- is disconnected, Vbus connection), will lead Charger is caused to be unable to get the voltage value for the D+/D- that terminal provides, at this moment it is silent to come back to BC1.2 agreement for charger The Vbus voltage output of the 5V recognized, even if the subnormal charger (USB line turns back to charger again) that is connected to provides just D+/D- again Normal command voltage can not also export normal voltage value on Vbus, and charger can only keep the default of BC1.2 at this time The voltage output of Vbus5V, and terminal then remains in the requirement of QC2.0 agreement, that is, terminal Vbus requires charger with the high-voltage charging of 7.3V-10.3V, and charger can only provide 5V voltage on Vbus at this time, and by In terminal Vbus always without middle connection breaking, so the identification process of charger can not be restarted, then report an error; At charger end, although D+/D- has the control tabular value of QC2.0, but voltage value at this time is not the stream by BC1.2 agreement Journey, so charger is considered as the identification for not carrying out BC1.2 agreement, after the charge mode without entering QC2.0 agreement, therefore So that charging identification process enters endless loop, even if terminal device is plugged in USB cable, can not also charge.
Fig. 3 is the flow chart of the method for detection charged state shown according to an exemplary embodiment;This is used to control peace The method of dress indicator light on intelligent devices can apply terminal device (such as: intelligent terminal, tablet computer etc. can Charging equipment) on, as shown in figure 3, the method for the detection charged state includes the following steps S301-S303:
In step S301, real-time current of the USB interface on the power supply line of the insertion end of terminal device is monitored.
In one embodiment, can by the VBUS line of terminal increase a milliohm grade precision resistance, The voltage difference at real-time monitoring resistance both ends, the real-time current of resistance is flowed through according to the computing the resistor value of voltage difference and resistance.Another , can be by increasing inductor winding on the VBUS line of terminal in embodiment, real-time monitoring incudes the real-time electricity of winding Stream.
In step s 302, the charged state of terminal device is determined according to real-time current.
In step S303, if charged state indicates that charging is abnormal, instruction re-recognizes the charging process of charger.
In one embodiment, when terminal device is in normal charged state, real-time current is in a constant current state, Real-time current is in a preset range at this time, if the variation of real-time current exceeds a preset range, can determine end The charged state of end equipment is in abnormality, can control power management chip at this time and backs off power supply line (Vbus) and fill The connection of electric appliance re-executes charger testing process.
In the present embodiment, by real-time current of the monitoring USB interface on the power supply line of the insertion end of terminal device, at end When end equipment application QC2.0 agreement is charged by USB interface, if determining that terminal device charging is abnormal according to real-time current, refer to Show the charging process for re-recognizing charger, it is different due to charging caused by can not correctly identifying charge protocol so as to avoid Often, user experience is promoted, the charge function of terminal device is improved.
In one embodiment, real-time current of the monitoring USB interface on the power supply line of the insertion end of terminal device, can wrap It includes:
Obtain the voltage difference for being connected to resistance of the USB interface on the power supply line of the insertion end of terminal device;
The real-time current on power supply line is flowed through according to voltage difference and the monitoring of the resistance value of resistance.
In one embodiment, real-time current of the monitoring USB interface on the power supply line of the insertion end of terminal device, can wrap It includes:
Monitoring is connected to the electric current of electromagnetic coil of the USB interface on the power supply line of the insertion end of terminal device.
In one embodiment, the charged state of terminal device is determined according to electric current, it may include:
Monitor the variation of real-time current;
If the variation of electric current exceeds preset range, determine that the charged state of terminal device is in abnormality;
If the variation of real-time current within preset range, determines that the charged state of terminal device is in normal condition.
In one embodiment, method may also include that
If the charged state of terminal device is in abnormality, shutdown is connected to USB interface in the insertion of terminal device The corresponding control switch of data line, power supply line at end.
The charged state of terminal device specifically how is detected, subsequent embodiment is please referred to.
So far, the above method that the embodiment of the present disclosure provides, can lead to avoid due to can not correctly identify charge protocol The charging of cause is abnormal, promotes user experience, improves the charge function of terminal device.
The technical solution of embodiment of the present disclosure offer is provided below with specific embodiment.
Fig. 4 A is according to the flow chart of the method for the detection charged state shown in an exemplary embodiment one, and Fig. 4 B is basis The schematic diagram of identification circuit shown in one exemplary embodiment one;The above-mentioned side that the present embodiment utilizes the embodiment of the present disclosure to provide Method, with real-time on power supply line to obtain by being connected to resistance of the USB interface on the power supply line of the insertion end of terminal device It illustrates for electric current, as shown in Figure 4 A, includes the following steps:
In step S401, the electricity for being connected to resistance of the USB interface on the power supply line of the insertion end of terminal device is obtained Pressure difference.
In step S402, the real-time current on power supply line is flowed through according to voltage difference and the monitoring of the resistance value of resistance.
In step S403, whether the variation for monitoring real-time current exceeds preset range, if the variation of real-time current is super Preset range out executes step S404, if the variation of real-time current within preset range, executes step S407.
In one embodiment, the charging current of charger includes 3 stages, that is, pre-charge current (Ipre_chg), constant current Charge (Icc_chg), constant-voltage charge (Icv_chg), and the charging current in 3 stages passes through the power management core on terminal device Piece is set, when being filled with the normal range (NR) of the real-time current (Ibat) of terminal below or above the electric current in 3 stages, It can then determine the variation of real-time current beyond preset range.
In step s 404, it if the variation of real-time current exceeds preset range, determines at the charged state of terminal device In abnormality, step S405 is executed.
In step S405, if the charged state of terminal device is in abnormality, shutdown is connected to USB interface at end The corresponding control switch of data line, power supply line of the insertion end of end equipment.
In step S406, the charging process for re-recognizing charger of instruction terminal equipment.
In step S 407, if the variation of real-time current is within preset range, the charged state of terminal device is determined In normal condition.
As shown in Figure 4 B, by connecting high-precision 411 real-time monitoring of sensitive resistance on the VBUS line of terminal The voltage V1 and V2 at 411 both ends of resistance in charged state of terminal device 41, power management chip 412 is according to voltage value V1 and V2 Go out to flow through the real-time current Ibus of resistance with the computing the resistor value of resistance 411, so as to reflection charging in real time during the charging process The charged state of device 43 and terminal device 41.
Wherein, Vbus=V2, the voltage difference delta V=V at resistance both ends2-V1, real-time current Ibus=Δ V/Rsense
When the charged state of terminal device 41 is when in an abnormal state, power management chip 412 can turn off and be connected to USB Data line, power supply line corresponding control switch group 413 of the interface in the insertion end of terminal device 41.
In the present embodiment, by monitoring the real-time current flowed through on power supply line, filling for terminal device can be monitored in real time Electricity condition does not interfere with the function of entire terminal device since the resistance value of resistance is smaller and is to connect on the power line Consumption will not then influence the charge efficiency of terminal device due to influencing charging current, it is ensured that the height of terminal device is compatible Property, in addition, the low cost of resistance also ensures that the hardware cost of terminal device not will increase dramatically.
Fig. 5 A is according to the flow chart of the method for the detection charged state shown in an exemplary embodiment two, and Fig. 5 B is basis The schematic diagram of identification circuit shown in one exemplary embodiment two;The above-mentioned side that the present embodiment utilizes the embodiment of the present disclosure to provide Method, to be obtained on power supply line by being connected to electromagnetic coil of the USB interface on the power supply line of the insertion end of terminal device It illustrates for real-time current, as shown in Figure 5A, includes the following steps:
In step S501, monitoring is connected to electromagnetic coil of the USB interface on the power supply line of the insertion end of terminal device Real-time current.
In step S502, whether the variation for monitoring real-time current exceeds preset range, if the variation of electric current is beyond pre- If range, step S503 is executed, if the variation of electric current within preset range, executes step S506.
In step S503, if the variation of real-time current exceeds preset range, determine at the charged state of terminal device In abnormality, step S504 is executed.
In step S504, if the charged state of terminal device is in abnormality, shutdown is connected to USB interface at end The corresponding control switch of data line, power supply line of the insertion end of end equipment.
In step S505, the charging process for re-recognizing charger of instruction terminal equipment.
In step S506, if the variation of real-time current within preset range, determines the charged state of terminal device In normal condition.
As shown in Figure 5 B, when electric current quickly changes, the coupled end of electromagnetic coil 511 can generate couple current, if coupling Electric current is slowly varying, then on the coupled end of electromagnetic coil 511 without influence, when on the coil of the coupled end on power supply line (Vbus) When current anomaly, electric current can increase or become smaller moment, and transient state change also occurs for the induced current that the mutual inductor of the other end generates Change, power management chip 412 detects the both ends curent change of induction coil it can be learnt that flowing through electromagnetic coil in charged state The variation of 511 real-time current Ibus, so as to which reflection charger 43 and terminal device 41 fill in real time during the charging process Electricity condition.
When the charged state of terminal device 41 is when in an abnormal state, power management chip 412 can turn off and be connected to USB Data line, power supply line corresponding control switch group 413 of the interface in the insertion end of terminal device 41.
In the present embodiment, by monitoring the real-time current flowed through on power supply line, filling for terminal device can be monitored in real time Electricity condition can monitor that terminal is set when electric current has minor change since electromagnetic coil is to the sensibility of curent change Whether standby charged state is abnormal, and improves the susceptibility to charged state monitoring.
Fig. 6 is a kind of block diagram of device for detecting charged state shown according to an exemplary embodiment, as shown in fig. 6, Detection charged state device include:
It is real-time on the power supply line of the insertion end of terminal device to be configured as monitoring USB interface for current monitoring module 61 Electric current;
Determining module 62 is configured as determining the charging of terminal device according to the real-time current that current monitoring module 61 monitors State;
Indicating module 63 is configured as if it is determined that the charged state that module 62 determines indicates that charging is abnormal, and instruction is again Identify the charging process of charger.
Fig. 7 is the block diagram of the device of another detection charged state shown according to an exemplary embodiment, such as Fig. 7 institute Show, on the basis of above-mentioned embodiment illustrated in fig. 6, in one embodiment, current monitoring module 61 can include:
Acquisition submodule 611 is configured as acquisition and is connected to USB interface on the power supply line of the insertion end of terminal device The voltage difference of resistance;
First monitoring submodule 612, is configured as the resistance value of the voltage difference and resistance that get according to acquisition submodule 611 Monitoring flows through the real-time current on power supply line.
In one embodiment, current monitoring module 61 can include:
Second monitoring submodule 613, is configured as monitoring and is connected to USB interface in the power supply line of the insertion end of terminal device On electromagnetic coil real-time current.
In one embodiment, determining module 62 can include:
Third monitors submodule 621, is configured as the variation of monitoring real-time current;
First determines submodule 622, if being configured as third monitoring submodule 621 monitors that the variation of real-time current is super Preset range out determines that the charged state of terminal device is in abnormality;
Second determines submodule 623, if being configured as third monitoring submodule 621 monitors that the variation of real-time current exists Within preset range, determine that the charged state of terminal device is in normal condition.
In one embodiment, device may also include that
Control module 64, be configured as if it is determined that module 62 determine terminal device charged state be in abnormality, Control is connected to USB interface in the corresponding switch OFF of data line, power supply line of the insertion end of terminal device.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 8 is a kind of block diagram suitable for detecting the device of charged state shown according to an exemplary embodiment.For example, Device 800 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, doctor Treat equipment, body-building equipment, personal digital assistant etc..
Referring to Fig. 8, device 800 may include following one or more components: processing component 802, memory 804, power supply Component 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, and Communication component 816.
The integrated operation of the usual control device 800 of processing component 802, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing element 802 may include that one or more processors 820 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, just Interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitate Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in equipment 800.These data are shown Example includes the instruction of any application or method for operating on device 800, contact data, and telephone book data disappears Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Electric power assembly 806 provides electric power for the various assemblies of device 800.Electric power assembly 806 may include power management system System, one or more power supplys and other with for device 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between described device 800 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 808 includes a front camera and/or rear camera.When equipment 800 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when device 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set Part 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented Estimate.For example, sensor module 814 can detecte the state that opens/closes of equipment 800, and the relative positioning of component, for example, it is described Component is the display and keypad of device 800, and sensor module 814 can be with 800 1 components of detection device 800 or device Position change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800 Temperature change.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of device 800 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (11)

1. a kind of method for detecting charged state, using on the terminal device and USB interface is in slow and extracts and turn back to again Scene, which is characterized in that the described method includes:
Monitor real-time current of the USB interface on the power supply line of the insertion end of the terminal device;It is provided on the power supply line One resistance, the real-time current are obtained by the ohmically voltage difference and computing the resistor value;
The charged state of the terminal device is determined according to the real-time current;
If charged state indicates that charging is abnormal, instruction re-recognizes the charging process of charger;The charging refers to logical extremely It is different according to the charged state of QC2.0 protocol requirement to cross the determining charged state of the real-time current and the terminal device.
2. the method according to claim 1, wherein insertion of the monitoring USB interface in the terminal device Real-time current on the power supply line at end, comprising:
Obtain the voltage difference for being connected to resistance of the USB interface on the power supply line of the insertion end of the terminal device;
The real-time current on the power supply line is flowed through according to the voltage difference and the monitoring of the resistance value of the resistance.
3. the method according to claim 1, wherein insertion of the monitoring USB interface in the terminal device Real-time current on the power supply line at end, comprising:
Monitoring is connected to the real-time current of electromagnetic coil of the USB interface on the power supply line of the insertion end of the terminal device.
4. the method according to claim 1, wherein described determine filling for the terminal device according to the electric current Electricity condition, comprising:
Monitor the variation of the real-time current;
If the variation of the real-time current exceeds preset range, determine that the charged state of the terminal device is in abnormal shape State;
If the variation of the real-time current within the preset range, determines that the charged state of the terminal device is in just Normal state.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
If the charged state of the terminal device is in abnormality, shutdown is connected to the USB interface and sets in the terminal The data line of standby insertion end, the corresponding control switch of the power supply line.
6. a kind of device for detecting charged state, using on the terminal device and USB interface is in slow and extracts and turn back to again Scene, which is characterized in that described device includes:
Current monitoring module is configured as real-time electricity of the monitoring USB interface on the power supply line of the insertion end of the terminal device Stream;A resistance is provided on the power supply line, the real-time current is obtained by the ohmically voltage difference and computing the resistor value;
Determining module is configured as determining the terminal device according to the electric current of the real-time current monitoring module monitors Charged state;
Indicating module, if being configured as the charged state that the determining module determines indicates that charging is abnormal, instruction is again Identify the charging process of charger;The charging is abnormal to refer to the charged state and the terminal determined by the real-time current Equipment is different according to the charged state of QC2.0 protocol requirement.
7. device according to claim 6, which is characterized in that the current monitoring module includes:
Acquisition submodule is configured as acquisition and is connected to electricity of the USB interface on the power supply line of the insertion end of the terminal device The voltage difference of resistance;
First monitoring submodule, is configured as the resistance of the voltage difference got according to the acquisition submodule and the resistance Value monitoring flows through the real-time current on the power supply line.
8. device according to claim 6, which is characterized in that the current monitoring module includes:
Second monitoring submodule, is configured as monitoring and is connected to USB interface on the power supply line of the insertion end of the terminal device Electromagnetic coil electric current.
9. device according to claim 6, which is characterized in that the determining module includes:
Third monitors submodule, is configured as monitoring the variation of the real-time current;
First determines submodule, monitors the variation of the electric current beyond default if being configured as the third monitoring submodule Range determines that the charged state of the terminal device is in abnormality;
Second determines submodule, monitors the variation of the electric current described pre- if being configured as the third monitoring submodule Within the scope of if, determine that the charged state of the terminal device is in normal condition.
10. device according to claim 9, which is characterized in that described device further include:
Control module, if being configured as the determining module determines that the charged state of the terminal device is in abnormality, Control is connected to data line, the power supply line corresponding switch of the USB interface in the insertion end of the terminal device Shutdown.
11. a kind of device for detecting charged state, which is characterized in that application is on the terminal device and USB interface is in slow and extracts And the scene turned back to again, described device include:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Monitor real-time current of the USB interface on the power supply line of the insertion end of the terminal device;It is provided on the power supply line One resistance, the real-time current are obtained by the ohmically voltage difference and computing the resistor value;
The charged state of the terminal device is determined according to the real-time current;
If charged state indicates that charging is abnormal, instruction re-recognizes the charging process of charger;The charging refers to logical extremely It is different according to the charged state of QC2.0 protocol requirement to cross the determining charged state of the real-time current and the terminal device.
CN201510515903.8A 2015-08-20 2015-08-20 Detect the method and device of charged state Active CN105137356B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510515903.8A CN105137356B (en) 2015-08-20 2015-08-20 Detect the method and device of charged state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510515903.8A CN105137356B (en) 2015-08-20 2015-08-20 Detect the method and device of charged state

Publications (2)

Publication Number Publication Date
CN105137356A CN105137356A (en) 2015-12-09
CN105137356B true CN105137356B (en) 2019-10-11

Family

ID=54722763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510515903.8A Active CN105137356B (en) 2015-08-20 2015-08-20 Detect the method and device of charged state

Country Status (1)

Country Link
CN (1) CN105137356B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653421B (en) * 2015-12-21 2018-06-05 北京金山安全软件有限公司 Information detection method and device
CN106199731A (en) * 2016-08-18 2016-12-07 乐视控股(北京)有限公司 A kind of detection method, device and charger
CN106711697B (en) * 2016-11-30 2019-10-11 宇龙计算机通信科技(深圳)有限公司 Charging cable insert state suggestion device and charging cable insert state reminding method
CN107422825A (en) * 2017-07-26 2017-12-01 惠州Tcl移动通信有限公司 A kind of CDP mouths charge control method, device, storage medium and electronic equipment
CN107658916B (en) * 2017-08-24 2021-02-09 深圳市凯德旺科技有限公司 Prompting circuit and electronic equipment
CN107831386A (en) * 2017-10-31 2018-03-23 奇酷互联网络科技(深圳)有限公司 Identification charging abnormal method, equipment, mobile terminal and computer-readable storage medium
CN109828173B (en) * 2019-03-11 2020-08-11 江苏紫米软件技术有限公司 Load detection system and load detection method thereof
CN111030208B (en) * 2019-11-19 2021-07-20 国网江苏省电力有限公司电力科学研究院 Household appliance power supply method, power receiving method and circuit based on USB Type-C interface

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202749620U (en) * 2012-07-25 2013-02-20 *** Display device used for universal serial bus (USB) data line / power line
CN103701182A (en) * 2013-12-16 2014-04-02 小米科技有限责任公司 Charger, electronic equipment and charging system
CN103972955A (en) * 2014-03-24 2014-08-06 西安乾易企业管理咨询有限公司 USB (universal serial bus) interface charge handshaking method and quickly-chargeable power adapter
CN104065147A (en) * 2014-06-27 2014-09-24 宇龙计算机通信科技(深圳)有限公司 Charging adapter, terminal and charging control method
CN203942311U (en) * 2014-06-13 2014-11-12 万马电子医疗有限公司 The device of the passive charging indication of a kind of low-power consumption
CN104578291A (en) * 2014-12-30 2015-04-29 智慧城市***服务(中国)有限公司 Charging method and device for electric vehicle
CN104701583A (en) * 2015-04-09 2015-06-10 福州瑞芯微电子有限公司 Battery charging method based on USB interface, adapter, electric equipment and system
CN104810909A (en) * 2014-01-28 2015-07-29 广东欧珀移动通信有限公司 Quick charge control method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202749620U (en) * 2012-07-25 2013-02-20 *** Display device used for universal serial bus (USB) data line / power line
CN103701182A (en) * 2013-12-16 2014-04-02 小米科技有限责任公司 Charger, electronic equipment and charging system
CN104810909A (en) * 2014-01-28 2015-07-29 广东欧珀移动通信有限公司 Quick charge control method and system
CN103972955A (en) * 2014-03-24 2014-08-06 西安乾易企业管理咨询有限公司 USB (universal serial bus) interface charge handshaking method and quickly-chargeable power adapter
CN203942311U (en) * 2014-06-13 2014-11-12 万马电子医疗有限公司 The device of the passive charging indication of a kind of low-power consumption
CN104065147A (en) * 2014-06-27 2014-09-24 宇龙计算机通信科技(深圳)有限公司 Charging adapter, terminal and charging control method
CN104578291A (en) * 2014-12-30 2015-04-29 智慧城市***服务(中国)有限公司 Charging method and device for electric vehicle
CN104701583A (en) * 2015-04-09 2015-06-10 福州瑞芯微电子有限公司 Battery charging method based on USB interface, adapter, electric equipment and system

Also Published As

Publication number Publication date
CN105137356A (en) 2015-12-09

Similar Documents

Publication Publication Date Title
CN105137356B (en) Detect the method and device of charged state
TWI668936B (en) Method for controlling charging and computer - readable media
WO2013168289A1 (en) Electronic device and control method therefor
US9979220B2 (en) Electronic device and method for controlling charging of the same
CN110829523B (en) Electronic equipment and reverse charging method
CN102694400B (en) Imput output circuit
CN111742459A (en) Method for controlling voltage output to external electronic device according to voltage magnitude detected at signal terminal connected to external electronic device, and electronic device
US20140340026A1 (en) Input-output circuit
US20150050881A1 (en) Wireless power charger
CN105634092B (en) Charging circuit, charger and charging system with USB port
KR102288067B1 (en) Method for improving data transmissiom speed of an electronic device and an electronic device implementing the same
US20140039830A1 (en) Test device to measure coating thickness and test system
KR20160030261A (en) Apparatus and method to change current limit
CN103618356A (en) Charging system for mobile terminal and charging method thereof
CN108964182A (en) The adjusting method and device of reverse charging equipment, reverse charging electric current
EP3614523B1 (en) Charging processing method and terminal device
CN106026232A (en) Detecting method and apparatus for USB port type
CN110970970A (en) Processing method and device of terminal charger
CN115800557A (en) Wireless charging method, electronic device, storage medium, and program
CN106856289B (en) Electronic equipment and circuit thereof, switching equipment and circuit thereof and signal processing system
CN104836290A (en) Detection method for plugging and unplugging of charger of mobile terminal and detection system
CN107681727A (en) The control method and device of electronic equipment
CN106164686A (en) A kind of leakage current test system of terminal
CN106487061B (en) Charging circuit and method
WO2020073466A1 (en) Wireless charging storage device and system

Legal Events

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