CN106877462A - A kind of method and charger for detecting charged state - Google Patents

A kind of method and charger for detecting charged state Download PDF

Info

Publication number
CN106877462A
CN106877462A CN201710265670.XA CN201710265670A CN106877462A CN 106877462 A CN106877462 A CN 106877462A CN 201710265670 A CN201710265670 A CN 201710265670A CN 106877462 A CN106877462 A CN 106877462A
Authority
CN
China
Prior art keywords
communication interface
communication
port pattern
charger
state
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
CN201710265670.XA
Other languages
Chinese (zh)
Other versions
CN106877462B (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 CN201710265670.XA priority Critical patent/CN106877462B/en
Publication of CN106877462A publication Critical patent/CN106877462A/en
Application granted granted Critical
Publication of CN106877462B publication Critical patent/CN106877462B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • H02J7/0048Detection of remaining charge capacity or state of charge [SOC]
    • H02J7/0049Detection of fully charged condition

Landscapes

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

Abstract

The present invention provides a kind of method and charger for detecting charged state, and the method includes:By the first communication interface in I/O port pattern, level state is read, wherein, first communication interface is the interface that the charger sets up communication connection with mobile terminal;According to the level state, charged state is determined.In the embodiment of the present invention, when the first communication interface is configured to I/O port pattern, determine charged state by reading level state, so as to the charged state between quick detection charger and mobile terminal, in order to abnormal timely responding to of charging, communication success rate and response speed are improve, the security of system is enhanced.

Description

A kind of method and charger for detecting charged state
Technical field
The present invention relates to the communications field, more particularly to a kind of method and charger for detecting charged state.
Background technology
With the fast development of mobile terminal rapid nitriding, commonly charged compared to previous generation and high-voltage charging skill Art, the technology of filling soon popular at present is filled using low-pressure direct, it is necessary to build mobile terminal and fill in low-pressure direct fills technology Communication system between electrical equipment, charger can in real time enter the tune of line output voltage, output current according to the state of mobile terminal It is whole, and the adjustment and control for realizing each link of charging system.
Current is filled in technology soon, and a microcontroller is respectively set by mobile terminal and charger, and based on microcontroller Device builds communication system, is communicated by the way of twin wire universal serial bus, and wherein mobile terminal sends instruction as master control The adjustment of charger output voltage and electric current is carried out to charger.To filling by the way of poll between charger and mobile terminal Voltage and current parameter in electric process is adjusted, it is impossible to is quickly detected charged state, and then influences the security for charging.Can See, existing charger has that charged state detection speed is slow.
The content of the invention
The embodiment of the present invention provides a kind of method and charger for detecting charged state, to solve the charging of charger presence The slow-footed problem of state-detection.
In a first aspect, the embodiment of the invention provides a kind of method for detecting charged state, charger is applied to, including:
By the first communication interface in IO (In/Out, input and output) mouth mold formula, level state is read, wherein, institute It is the interface that the charger sets up communication connection with mobile terminal to state the first communication interface;
According to the level state, charged state is determined.
Second aspect, the embodiment of the present invention also provides a kind of charger, including:
Read module, for by the first communication interface in I/O port pattern, reading level state, wherein, described the One communication interface is the interface that the charger sets up communication connection with mobile terminal;
Determining module, for according to the level state, determining charged state.
So, in the embodiment of the present invention, the present invention provides a kind of method and charger for detecting charged state, the method bag Include:By the first communication interface in I/O port pattern, level state is read, wherein, first communication interface is filled for described Electrical equipment sets up the interface of communication connection with mobile terminal;According to the level state, charged state is determined.So, when first is logical When letter interface is configured to I/O port pattern, charged state is determined by reading level state, so that quick detection charger and movement Charged state between terminal, in order to be timely responded to the exception that charges, improves communication success rate and response speed, increases The strong security of system.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to needed for embodiment of the present invention description The accompanying drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, For those of ordinary skill in the art, without having to pay creative labor, can also be obtained according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is a kind of flow chart of method for detecting charged state provided in an embodiment of the present invention;
Fig. 2 is a kind of communication system hardware block diagram provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the method for another detection charged state provided in an embodiment of the present invention;
Fig. 4 is the flow chart of the method for another detection charged state provided in an embodiment of the present invention;
Fig. 5 is a kind of structure chart of charger provided in an embodiment of the present invention;
Fig. 6 is the structure chart of determining module provided in an embodiment of the present invention;
Fig. 7 is the structure chart of read module provided in an embodiment of the present invention;
Fig. 8 is the structure chart of another charger provided in an embodiment of the present invention;
Fig. 9 is the structure chart of first communication module provided in an embodiment of the present invention;
Figure 10 is the structure chart of another charger provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
Referring to Fig. 1-2, Fig. 1 is a kind of flow chart of method for detecting charged state provided in an embodiment of the present invention, and Fig. 2 is A kind of communication system hardware block diagram provided in an embodiment of the present invention, as shown in figure 1, comprising the following steps:
Step 101, by the first communication interface in I/O port pattern, read level state.
In the step, in the charging process using charger to mobile terminal, can be by mobile terminal and charging Communication system as shown in Figure 2 is built between device, and by the first communication interface in I/O port pattern, can quickly be read To the level state of the first communication interface, wherein, the first communication interface is that charger sets up connecing for communication connection with mobile terminal Mouthful.In the present embodiment, the first communication interface can be the data positive signal pin of charger, i.e., the D+ of charger shown in Fig. 2 Signal pins.
As shown in Fig. 2 the communication system includes charger, mobile terminal, wherein, charger side is provided with data minus letter Number pin (D- signal pins) and data positive signal pin (D+ signal pins), are provided with data negative signal and draw in mobile terminal side Pin (D- signal pins) and data positive signal pin (D+ signal pins).Wherein, the data minus signal pins of mobile terminal with fill The data minus signal pins connection of electrical equipment, the data positive signal pin of mobile terminal connects with the data positive signal pin of charger Connect.In the present embodiment, can be TX+ signals by the D+ signal definitions of charger, D- signal definitions are RX- signals;Will be mobile The D+ signal definitions of terminal are RX+ signals, and D- signal definitions are TX- signals, and wherein TX+ signals and TX- signals are sending signal, RX- signals and RX+ signals are reception signal.
It should be noted that can be by setting pull-up resistor in the charging circuit of mobile terminal, by mobile terminal side The voltage of data positive signal pin be pulled to predeterminated voltage.For example, when charging voltage is 5V, can be by mobile terminal Charging circuit in 100 kilo-ohms of pull-up resistor is set, the data positive signal pin voltage of mobile terminal side is pulled up by 2.5V To 3.3V.And the initial voltage of the data positive signal pin of charger side is 2.5V, then can be by reading charger side Data positive signal pin voltage status, that is, read the voltage status of the first communication interface, you can determine charger and movement Charged state between terminal.
Step 102, according to level state, determine charged state.
In the step, filling between charger and mobile terminal can be determined according to the level state of the first communication interface Electricity condition.Wherein, when the level state of the first communication interface is high level, then can determine between charger and mobile terminal Charged state be access state;When the level state of the first communication interface is low level, then charger and shifting can be determined Charged state between dynamic terminal is off-state.
If for example, the initial voltage of the first communication interface is 2.5V, when reading the communication interface under I/O port pattern Voltage when be 3.3V, then can determine that charged state between charger and mobile terminal is access state;If first The voltage of communication interface is 3.3V, when the voltage for reading the communication interface under I/O port pattern is 2.5V, then may be used It is off-state with the charged state determined between charger and mobile terminal.
In the embodiment of the present invention, the above method can apply to charger, and the charger includes to carry out mobile terminal The charger of quick charge, the wherein mobile terminal can be mobile phone, the panel computer (Tablet for being capable of quick charge Personal Computer), kneetop computer (Laptop Computer), personal digital assistant (personal digital Assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or Wearable device (Wearable Device) etc..
The method of the detection charged state of the embodiment of the present invention, the present invention provides a kind of method for detecting charged state and fills Electrical equipment, the method includes:By the first communication interface in I/O port pattern, level state is read;According to level state, it is determined that Charged state.So, when the first communication interface is configured to I/O port pattern, charged state is determined by reading level state, from And the charged state between quick detection charger and mobile terminal, in order to be timely responded to the exception that charges, improve Communication success rate and response speed, enhance the security of system.
Referring to Fig. 3, Fig. 3 is the flow chart of the method for another detection charged state provided in an embodiment of the present invention, this reality It is by detecting that interrupt signal realizes quick reading level state, as shown in figure 3, bag that example is applied with the main distinction of a upper embodiment Include following steps:
Step 301, when interrupt signal is detected, by the first communication interface in I/O port pattern, reads level shape State.
In the step, when the first communication interface is in I/O mode, if detecting interrupt signal, reads the first communication and connect The level state of mouth.And in the present embodiment, the classification of the interrupt signal can be determined according to level state.If for example, The level state of the first communication interface is high level, then the interrupt signal is rising edge interruption;If the level of the first communication interface State is low level, then the interrupt signal is trailing edge interruption, it is possible to interrupted according to rising edge or trailing edge is interrupted come really Determine the charged state between charger and mobile terminal.
Step 302, when level state be high level when, determine charged state be access state.
In the step, when the level state of the first communication interface is high level, it may be determined that charger and mobile terminal Between charged state be access state.But also can be determined between charger and mobile terminal according to the type of interrupt signal Charged state, for example, when interrupt signal is interrupted for rising edge, it is determined that the charged state between charger and mobile terminal It is access state.
Step 303, when level state be low level when, determine charged state be off-state.
In the step, when the level state of the first communication interface is low level, it may be determined that charger and mobile terminal Between charged state be off-state.But also can be determined between charger and mobile terminal according to the type of interrupt signal Charged state, for example, when interrupt signal is interrupted for trailing edge, it is determined that the charged state between charger and mobile terminal It is off-state.
Optionally, by the first communication interface in I/O port pattern, level state is read, including:
First communication interface is configured to I/O port pattern, and by the first communication interface, reading level state.
In the implementation method, in the charging process using charger to mobile terminal, match somebody with somebody by by the first communication interface I/O port pattern is set to, so the first communication interface can quickly be read by the first communication interface in I/O port pattern Level state, and then determine the charged state between charger and mobile terminal, so as to realize quick detection charger and movement Charged state between terminal.
Optionally, before the first communication interface being configured into I/O port pattern, also include:
By the first communication interface in serial communication port pattern, according to default polling cycle, enter with mobile terminal Row communication handshake;
First communication interface is configured to I/O port pattern, including:
In polling interval, the first communication interface is configured to I/O port pattern;
By the first communication interface in I/O port pattern, read after level state, method also includes:
By the first communication interface from I/O port pattern switching to serial communication port pattern, and continue according to polling cycle, with shifting Dynamic terminal carries out communication handshake.
In the implementation method, in the charging process using charger to mobile terminal, can be by presetting poll Cycle, and being adjusted to the voltage and current parameter in charging process by the way of poll, when during in poll, can be with By the first communication interface in serial communication port pattern, communication handshake is carried out with mobile terminal.Wherein, when charger and shifting When data communication between dynamic terminal is in the polling interval phase, then the first communication interface is configured to I/O port pattern, uses I/O port Interrupt function under pattern, it is possible to achieve the charged state of quick detection charger.When polling interval, the phase terminates, then lead to first Letter interface continues according to polling cycle set in advance from I/O port pattern switching to serial communication port pattern, with mobile terminal Communication handshake is carried out, continuation is polled treatment to charging process.So, connect by the first communication under I/O port pattern Mouthful, the level state of the first communication interface can be quickly read, and then determine the charging shape between charger and mobile terminal State, realizes the charged state between quick detection charger and mobile terminal.
Optionally, by the first communication interface in serial communication port pattern, according to default polling cycle, with movement Terminal carries out communication handshake, including:
When the first communication interface is configured to serial communication port pattern, handshake data is sent to mobile terminal;
First communication interface is configured to I/O port pattern, including:
After handshake data is sent, by the first communication interface from serial communication port pattern switching to I/O port pattern.
In the implementation method, can be by being polled treatment, real-time adjustment charging voltage and the electricity that charges to charging process Stream parameter.Wherein, when the first communication interface is configured to serial communication port pattern, handshake data is sent to mobile terminal, when holding After the completion of hand data is activation, by the first communication interface from serial communication port pattern switching to I/O port pattern, so by using IO Interrupt function under mouth mold formula, can in polling interval quick detection charger charged state, realize safe charging.
Optionally, by the first communication interface in serial communication port pattern, according to default polling cycle, with movement Terminal carries out communication handshake, including:
When the first communication interface is configured to serial communication port pattern, handshake data is sent to mobile terminal;
By setting up the second communication interface of communication connection in charger with mobile terminal, the sound that mobile terminal is returned is received Answer data;
First communication interface is configured to I/O port pattern, including:
After response data is received by the second communication interface, by the first communication interface from serial communication port pattern switching To I/O port pattern.
In the implementation method, can be by being polled treatment, real-time adjustment charging voltage and the electricity that charges to charging process Stream parameter.Wherein, when the first communication interface is configured to serial communication port pattern, handshake data is sent to mobile terminal, and lead to Overcharge the second communication interface in electrical equipment and receive the response data that mobile terminal is returned, when the second communication interface receives movement eventually After holding the response data for returning, then by the first communication interface from serial communication port pattern switching to I/O port pattern, so by making With the interrupt function under I/O port pattern, can in polling interval quick detection charger charged state, realize safe charging.
It should be noted that in the present embodiment, the first communication interface is the data positive signal pin of charger, second Communication interface is the data minus signal pins of charger.
So, the method for detection charged state provided in an embodiment of the present invention, when interrupt signal is detected, by being in First communication interface of I/O port pattern, reads level state;When level state is high level, charged state is determined to access shape State;When level state is low level, determine that charged state is off-state.So, when the first communication interface is configured to I/O port During pattern, charged state is determined by reading level state, so that the charging shape between quick detection charger and mobile terminal State, in order to be timely responded to the exception that charges, improves communication success rate and response speed, enhances the safety of system Property.
Referring to Fig. 4, Fig. 4 is the flow chart of the method for another detection charged state provided in an embodiment of the present invention, this reality Example is applied with the main distinction of above-described embodiment for charged state is the situation of access state, as shown in figure 4, comprising the following steps:
Step 401, by the first communication interface in I/O port pattern, read level state.
It is logical by I/O port pattern first in the charging process using charger to mobile terminal in the step Letter interface, can quickly read the level state of the first communication interface, wherein, the first communication interface is charger and movement Terminal sets up the interface of communication connection.
Step 402, when level state be high level when, determine charged state be access state.
In the step, when the level state of the first communication interface of charger is high level, then charger can be determined Charged state and mobile terminal between is access state, and charger starts to mobile terminal output voltage, and is started to moving Dynamic terminal charge.
It should be noted that the embodiment of the present invention can also determine charged state by way of detecting and interrupting.For example, working as When charger accesses mobile terminal, and the initial voltage of the data positive signal pin of mobile terminal is 3.3V, then the of charger The voltage of one communication interface also can rise to 3.3V by initial 2.5V, and when the first communication interface of charger is configured to I/O port mould When under formula, it is that the corresponding upper drop edge of situation of change that low level is converted to high level is interrupted that can produce level situation of change.It is based on The rising edge is interrupted, then can determine that, in access state between charger and mobile terminal, charger starts to mobile terminal Output voltage, and start to charge mobile terminal.
Step 403, by the first communication interface from I/O port pattern switching to serial communication port pattern.
In the step, when it is determined that charged state be access state when, then by the first communication interface from I/O port pattern switching to Serial communication port pattern, it is possible to send handshake data to mobile terminal side using the characteristic of serial communication mouthful.
Step 404, by the first communication interface in serial communication port pattern, according to default polling cycle, with shifting Dynamic terminal carries out communication handshake.
In the step, after first object data communication interface is from I/O port pattern switching to serial communication mode, can be by According to the polling cycle for pre-setting, communication handshake is carried out with mobile terminal, i.e., send handshake data to mobile terminal, started to moving Dynamic terminal charge.
So, the method for detection charged state provided in an embodiment of the present invention, by input and output I/O port pattern First communication interface, reads level state;When level state is high level, determine that charged state is access state;By first Communication interface is from I/O port pattern switching to serial communication port pattern;By the first communication interface in serial communication port pattern, According to default polling cycle, communication handshake is carried out with mobile terminal.So, when the first communication interface is configured to I/O port pattern When, determine charged state by reading level state, so that the charged state between quick detection charger and mobile terminal, with It is easy to timely respond to the exception that charges, improves communication success rate and response speed, enhances the security of system.
Referring to Fig. 5, Fig. 5 is the structure chart of the charger that the present invention implements offer, as shown in figure 5, charger 500 includes reading Modulus block 501 and determining module 502, wherein, read module 501 and determining module 502 are connected.
Read module 501, for by the first communication interface in I/O port pattern, reading level state, wherein, it is described First communication interface is the interface that the charger sets up communication connection with mobile terminal;
Determining module 502, for according to the level state, determining charged state.
Optionally, as shown in fig. 6, the determining module 502 includes:
First determination sub-module 5021, for when the level state is high level, determining charged state to access shape State;
Second determination sub-module 5022, for when the level state is low level, determining charged state to disconnect shape State.
Optionally, as shown in fig. 7, the read module 501 includes:
First reading submodule 5011, for when interrupt signal is detected, by the first communication in I/O port pattern Interface, reads level state;
Or,
Second reading submodule 5012, for first communication interface to be configured into I/O port pattern, and by described One communication interface, reads level state.
Optionally, as shown in figure 8, the read module 501 include second reading submodule 5012 when, the charging Device 500 also includes:
First communication module 503, for by first communication interface in serial communication port pattern, according to default Polling cycle, carry out communication handshake with the mobile terminal;
Second reading submodule 5012, specifically in polling interval, first communication interface being configured to I/O port pattern, and by first communication interface, read level state;
The first communication module 503, is additionally operable to be connect by the described first communication in second reading submodule 5012 Mouth is read after level state, by first communication interface from I/O port pattern switching to serial communication port pattern, and continues to press According to the polling cycle, communication handshake is carried out with the mobile terminal.
Optionally, the first communication module 503, specifically for being configured to serial communication port in first communication interface During pattern, handshake data is sent to the mobile terminal;
Second reading submodule 5012, specifically for after the handshake data is sent, the described first communication being connect Mouth reads level state from the serial communication port pattern switching to I/O port pattern, and by first communication interface.
Optionally, as shown in figure 9, the first communication module 503 includes:
Sending submodule 5031, for when first communication interface is configured to serial communication port pattern, to the shifting Dynamic terminal sends handshake data;
Receiving submodule 5032, for being led to by setting up the second of communication connection in the charger with the mobile terminal Letter interface, receives the response data that the mobile terminal is returned;
Second reading submodule 5012, specifically for receiving the number of responses by second communication interface According to rear, by first communication interface from the serial communication port pattern switching to I/O port pattern, and communicated by described first Interface, reads level state.
Optionally, first communication interface is the data positive signal pin of the charger, second communication interface It is the data minus signal pins of the charger.
Optionally, as shown in Figure 10, the charger 500 also includes:
Configuration module 504, for after first determination sub-module 5021 determines that charged state is access state, by institute The first communication interface is stated from I/O port pattern switching to serial communication port pattern;
Second communication module 505, for by first communication interface in serial communication port pattern, according to default Polling cycle, carry out communication handshake with the mobile terminal.
Charger 500 can realize each process that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 4, to avoid Repeat, repeat no more here.
Charger provided in an embodiment of the present invention, the present invention provides a kind of method and charger for detecting charged state, should Method includes:By the first communication interface in I/O port pattern, level state is read;According to level state, it is determined that charging shape State.So, when the first communication interface is configured to I/O port pattern, charged state is determined by reading level state, so that quickly Charged state between detection charger and mobile terminal, in order to be timely responded to the exception that charges, improves and communicates into Power and response speed, enhance the security of system.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (16)

1. a kind of method for detecting charged state, is applied to charger, it is characterised in that including:
By the first communication interface in input and output I/O port pattern, level state is read, wherein, first communication interface The interface of communication connection is set up for the charger and mobile terminal;
According to the level state, charged state is determined.
2. method according to claim 1, it is characterised in that described according to the level state, determines charged state, wraps Include:
When the level state is high level, determine that charged state is access state;
When the level state is low level, determine that charged state is off-state.
3. method according to claim 1 and 2, it is characterised in that described to be connect by the first communication in I/O port pattern Mouthful, level state is read, including:
When interrupt signal is detected, by the first communication interface in I/O port pattern, level state is read;
Or,
First communication interface is configured to I/O port pattern, and by first communication interface, reads level state.
4. method according to claim 3, it is characterised in that described that first communication interface is configured to I/O port pattern Before, also include:
It is mobile whole with described according to default polling cycle by first communication interface in serial communication port pattern End carries out communication handshake;
It is described that first communication interface is configured to I/O port pattern, including:
In polling interval, first communication interface is configured to I/O port pattern;
It is described to be read after level state by the first communication interface in I/O port pattern, also include:
By first communication interface from I/O port pattern switching to serial communication port pattern, and continue according to the polling cycle, Communication handshake is carried out with the mobile terminal.
5. method according to claim 4, it is characterised in that described by serial communication port pattern described first Communication interface, according to default polling cycle, communication handshake is carried out with the mobile terminal, including:
When first communication interface is configured to serial communication port pattern, handshake data is sent to the mobile terminal;
It is described that first communication interface is configured to I/O port pattern, including:
After the handshake data is sent, by first communication interface from the serial communication port pattern switching to I/O port mould Formula.
6. method according to claim 4, it is characterised in that described by serial communication port pattern described first Communication interface, according to default polling cycle, communication handshake is carried out with the mobile terminal, including:
When first communication interface is configured to serial communication port pattern, handshake data is sent to the mobile terminal;
By setting up the second communication interface of communication connection in the charger with the mobile terminal, the mobile terminal is received The response data of return;
It is described that first communication interface is configured to I/O port pattern, including:
After the response data is received by second communication interface, first communication interface is serially led to from described Casually pattern switching is to I/O port pattern.
7. method according to claim 6, it is characterised in that first communication interface be the data of the charger just Signal pins, second communication interface is the data minus signal pins of the charger.
8. method according to claim 2, it is characterised in that described when the level state is low level, it is determined that filling Electricity condition be access state after, also include:
By first communication interface from I/O port pattern switching to serial communication port pattern;
It is mobile whole with described according to default polling cycle by first communication interface in serial communication port pattern End carries out communication handshake.
9. a kind of charger, it is characterised in that including:
Read module, for by the first communication interface in I/O port pattern, reading level state, wherein, described first leads to Letter interface is the interface that the charger sets up communication connection with mobile terminal;
Determining module, for according to the level state, determining charged state.
10. charger according to claim 9, it is characterised in that the determining module includes:
First determination sub-module, for when the level state is high level, determining that charged state is access state;
Second determination sub-module, for when the level state is low level, determining that charged state is off-state.
11. charger according to claim 9 or 10, it is characterised in that the read module includes:
First reading submodule, for when interrupt signal is detected, by the first communication interface in I/O port pattern, reads Level state;
Or,
Second reading submodule, for first communication interface to be configured into I/O port pattern, and is connect by the described first communication Mouthful, read level state.
12. chargers according to claim 11, it is characterised in that the read module includes that described second reads submodule During block, the charger also includes:
First communication module, for by first communication interface in serial communication port pattern, according to default poll In the cycle, communication handshake is carried out with the mobile terminal;
Second reading submodule, specifically in polling interval, first communication interface being configured into I/O port pattern, And by first communication interface, read level state;
The first communication module, is additionally operable to read level shape by first communication interface in second reading submodule After state, by first communication interface from I/O port pattern switching to serial communication port pattern, and continue according to poll week Phase, communication handshake is carried out with the mobile terminal.
13. chargers according to claim 12, it is characterised in that
The first communication module, specifically for when first communication interface is configured to serial communication port pattern, to described Mobile terminal sends handshake data;
Second reading submodule, specifically for after the handshake data is sent, by first communication interface from described Serial communication port pattern switching reads level state to I/O port pattern, and by first communication interface.
14. chargers according to claim 12, it is characterised in that the first communication module includes:
Sending submodule, for when first communication interface is configured to serial communication port pattern, being sent out to the mobile terminal Send handshake data;
Receiving submodule, for the second communication interface by setting up communication connection in the charger with the mobile terminal, Receive the response data that the mobile terminal is returned;
Second reading submodule, specifically for after the response data is received by second communication interface, inciting somebody to action First communication interface is read from the serial communication port pattern switching to I/O port pattern, and by first communication interface Power taking level state.
15. chargers according to claim 14, it is characterised in that first communication interface is the number of the charger According to positive signal pin, second communication interface is the data minus signal pins of the charger.
16. chargers according to claim 10, it is characterised in that the charger also includes:
Configuration module, for after first determination sub-module determines charged state for access state, by the described first communication Interface is from I/O port pattern switching to serial communication port pattern;
Second communication module, for by first communication interface in serial communication port pattern, according to default poll In the cycle, communication handshake is carried out with the mobile terminal.
CN201710265670.XA 2017-04-21 2017-04-21 A kind of method and charger detecting charged state Active CN106877462B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710265670.XA CN106877462B (en) 2017-04-21 2017-04-21 A kind of method and charger detecting charged state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710265670.XA CN106877462B (en) 2017-04-21 2017-04-21 A kind of method and charger detecting charged state

Publications (2)

Publication Number Publication Date
CN106877462A true CN106877462A (en) 2017-06-20
CN106877462B CN106877462B (en) 2019-04-12

Family

ID=59163674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710265670.XA Active CN106877462B (en) 2017-04-21 2017-04-21 A kind of method and charger detecting charged state

Country Status (1)

Country Link
CN (1) CN106877462B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108521417A (en) * 2018-03-30 2018-09-11 维沃移动通信有限公司 A kind of communication processing method and mobile terminal
CN109560581A (en) * 2018-11-13 2019-04-02 Oppo广东移动通信有限公司 Charging method, charging process circuit, electronic equipment and storage medium
CN111896884A (en) * 2020-07-31 2020-11-06 北京小米移动软件有限公司 Charging detection method and device
CN112946492A (en) * 2020-12-31 2021-06-11 苏州德凌迅动力科技有限公司 Aging test method and system for battery pack without communication interface

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1574539A (en) * 2003-05-27 2005-02-02 捷讯研究有限公司 Method and apparatus for controlling the charging state in a mobile electronic device
CN101082892A (en) * 2006-05-30 2007-12-05 三星电子株式会社 Electronic device having usb interface capable of supporting multiple usb interface standards and methods of operating same
CN102143266A (en) * 2011-02-18 2011-08-03 深圳桑菲消费通信有限公司 Method for extending universal serial bus (USB) interface of mobile terminal into serial communication interface
CN102393837A (en) * 2011-11-08 2012-03-28 深圳市海思半导体有限公司 USB charger recognition device and method
CN103024195A (en) * 2012-12-27 2013-04-03 青岛海信移动通信技术股份有限公司 Smart mobile terminal and implementation method of charging of smart mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1574539A (en) * 2003-05-27 2005-02-02 捷讯研究有限公司 Method and apparatus for controlling the charging state in a mobile electronic device
CN101082892A (en) * 2006-05-30 2007-12-05 三星电子株式会社 Electronic device having usb interface capable of supporting multiple usb interface standards and methods of operating same
CN102143266A (en) * 2011-02-18 2011-08-03 深圳桑菲消费通信有限公司 Method for extending universal serial bus (USB) interface of mobile terminal into serial communication interface
CN102393837A (en) * 2011-11-08 2012-03-28 深圳市海思半导体有限公司 USB charger recognition device and method
CN103024195A (en) * 2012-12-27 2013-04-03 青岛海信移动通信技术股份有限公司 Smart mobile terminal and implementation method of charging of smart mobile terminal

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108521417A (en) * 2018-03-30 2018-09-11 维沃移动通信有限公司 A kind of communication processing method and mobile terminal
CN108521417B (en) * 2018-03-30 2020-04-14 维沃移动通信有限公司 Communication processing method and mobile terminal
CN109560581A (en) * 2018-11-13 2019-04-02 Oppo广东移动通信有限公司 Charging method, charging process circuit, electronic equipment and storage medium
CN109560581B (en) * 2018-11-13 2020-12-01 Oppo广东移动通信有限公司 Charging processing method, charging processing circuit, electronic device, and storage medium
CN111896884A (en) * 2020-07-31 2020-11-06 北京小米移动软件有限公司 Charging detection method and device
CN111896884B (en) * 2020-07-31 2023-11-14 北京小米移动软件有限公司 Charging detection method and device
CN112946492A (en) * 2020-12-31 2021-06-11 苏州德凌迅动力科技有限公司 Aging test method and system for battery pack without communication interface

Also Published As

Publication number Publication date
CN106877462B (en) 2019-04-12

Similar Documents

Publication Publication Date Title
CN105576727B (en) Method, device and system for quick charging
CN207398851U (en) Charger, electronic device and charging system
CN106877462A (en) A kind of method and charger for detecting charged state
EP2985856B1 (en) Usb charging system with variable charging voltage, charger, and intelligent terminal
CN103618356B (en) The charging system of a kind of mobile terminal and charging method thereof
US10389153B2 (en) Charging control method and mobile terminal
EP2991156A1 (en) Method and device for performing large-current charging on intelligent terminal
CN105591431A (en) Charging method and equipment of mobile terminal, and mobile terminal
CN111404219A (en) Method for fast USB charging, electronic device and charger device
CN107707000B (en) OTG power supply and wireless charging compatible circuit, related method and terminal equipment
CN107516919B (en) A kind of charging method and charger
CN107820659A (en) Electronic installation, charger, charging system and charging method
CN101102119A (en) A charging detection circuit of appliance device and charging detection method
CN110138022A (en) Charging unit, battery charge controller, terminal device and charging method
CN105404450B (en) A kind of information processing method and electronic equipment
CN201075704Y (en) Detection circuit of electrical equipment and mobile phone having the circuit
CN107579558B (en) Charge control method, charger, charging system and computer readable storage medium
CN108683236A (en) A kind of mobile terminal OTG charging methods and device
CN117318221A (en) Charging chip, charging device and mobile terminal
CN105098893A (en) Terminal equipment and battery thereof
CN209786836U (en) Intelligence bluetooth headset storehouse of charging
CN217640185U (en) Circuit and equipment supporting software burning and power output
CN110737622A (en) single-wire bidirectional communication charging method
CN103036276A (en) Charger, terminal, controller, system and charger recognition method
CN109218880A (en) Earphone charging two-in-one circuit and control method, 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20171107

Address after: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Applicant after: VIVO MOBILE COMMUNICATION CO., LTD.

Applicant after: Wewo Mobile Communication Co. Ltd. Beijing branch

Address before: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Applicant before: VIVO MOBILE COMMUNICATION CO., LTD.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200521

Address after: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Patentee after: VIVO MOBILE COMMUNICATION Co.,Ltd.

Address before: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Co-patentee before: Wewo Mobile Communication Co. Ltd. Beijing branch

Patentee before: VIVO MOBILE COMMUNICATION Co.,Ltd.