CN106816933A - The system processing unit and method of a kind of complicated charge protocol - Google Patents
The system processing unit and method of a kind of complicated charge protocol Download PDFInfo
- Publication number
- CN106816933A CN106816933A CN201710162241.XA CN201710162241A CN106816933A CN 106816933 A CN106816933 A CN 106816933A CN 201710162241 A CN201710162241 A CN 201710162241A CN 106816933 A CN106816933 A CN 106816933A
- Authority
- CN
- China
- Prior art keywords
- coding
- protocol
- response
- mcu
- waveform
- 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
Links
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/00032—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
- H02J7/00036—Charger exchanging data with battery
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01M—PROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
- H01M10/00—Secondary cells; Manufacture thereof
- H01M10/42—Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
- H01M10/425—Structural combination with electronic components, e.g. electronic circuits integrated to the outside of the casing
- H01M10/4257—Smart batteries, e.g. electronic circuits inside the housing of the cells or batteries
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/00032—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
- H02J7/00034—Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/00032—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
- H02J7/00045—Authentication, i.e. circuits for checking compatibility between one component, e.g. a battery or a battery charger, and another component, e.g. a power source
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Abstract
The present invention discloses the system processing unit and method of a kind of complicated charge protocol, with MCU and charge protocol chip, realizes the treatment of complicated charge protocol.The processing unit includes charge protocol chip and MCU, and charge protocol chip includes that detection circuit, protocol command receiving circuit and response wave shape transtation mission circuit are extracted in equipment insertion;MCU includes protocol command analysis module and response data coding module.The content of memory response data is not needed in charge protocol chip of the present invention, also without the decoding circuit that design is complicated, the realization of this partial function is transferred in MCU, the design difficulty and cost of protocol chip in complicated charge protocol moving source application scheme are supported so as to reduce, the cost of reduction system application scheme, and lifting scheme autgmentability.
Description
" technical field "
The present invention relates to electric energy conduction technique field, and in particular to the complicated charging of one kind between electronic equipment and charger
The system processing unit and method of agreement.
" background technology "
Electronic equipment is increasingly intelligent, the intelligent movable equipment especially with smart mobile phone as representative, due to its powerful work(
Can, abundant application, to the demand more and more higher of battery capacity, but if in the case of battery constancy of volume, to improve battery
Capacity, is difficult to realize under the conditions of current technology, therefore raising charging rate becomes another feasible approach, Ke Yirang
Smart mobile phone obtains substantial amounts of energy in a short period of time.
Therefore manufacturer is proposed various fast charge protocols one after another both at home and abroad, and as power supply stand-by, portable power source
Product need also exist for support these fast charge protocols, could well play the charging performance of smart machine.
Charge protocol broad categories, but totally can be divided into two classes:1st, by the simple electricity for changing DP/DM in USB interface
Put down to be shaken hands, determine charged state;2nd, by increasing the Handshake Protocol of complexity on DP/DM in USB interface, it is determined that charging
State;In charge protocol chip increase treatment complex protocol circuit, it would be desirable to the response data content of memory response and
Order coding-decoding circuit, can cause charge protocol chip to design complicated, high cost.
" content of the invention "
The invention provides the system processing unit and method of a kind of complicated charge protocol, by MCU and charge protocol chip
Coordinate, realize the treatment of complicated charge protocol.The present invention is realized by following technical scheme:
A kind of system processing unit of complicated charge protocol, including charge protocol chip and MCU, it is characterised in that charge
Protocol chip includes that detection circuit, protocol command receiving circuit and response wave shape transtation mission circuit are extracted in equipment insertion;MCU includes association
View order analysis module and response data coding module;The input that detection circuit is extracted in the equipment insertion is used to monitor whether
There is charging equipment to access, output end connects the input of the protocol command receiving circuit;The protocol command analysis module
Input connect the output end of the protocol command receiving circuit, the input of output end connection response data coding module;
The output of the input connection response waveform coding module of the response wave shape transtation mission circuit, output end is used to connect to be charged setting
It is standby.
A kind of system processing method of complicated charge protocol, it is characterised in that including:
(1) insertion extracts whether detection circuit monitoring has smart machine to access, and starts single treatment if having access, otherwise
It is lasting to wait;
(2) protocol command receiving circuit judges the starting of order, terminates, and therefrom resolve command or generation status signal,
Protocol command analysis module for MCU reads;
(3) protocol command analysis module analysis is ordered and inquires corresponding response data;
(4) response wave shape coding module carries out waveform volume according to pre-designed waveform coding table to response data
Code;
(5) be sent to data on the pin of response according to the waveform coding of response data by response wave shape transtation mission circuit.
Relative to prior art, the beneficial effects of the invention are as follows:Memory response data are not needed in charge protocol chip
Content, it is not required that the complicated decoding circuit of design, the realization of this partial function is transferred in MCU, so that it is multiple to reduce support
The design difficulty and cost of protocol chip in miscellaneous charge protocol moving source application scheme, reduce the cost of system application scheme, and
And the autgmentability of lifting scheme.
" brief description of the drawings "
The structured flowchart of the system processing unit of the complicated charge protocol that Fig. 1 is provided for the present embodiment of the present invention.
The waveform coding table of the system processing method of the complicated charge protocol that Fig. 2 is provided for the present embodiment of the present invention.
The coding waveforms exemplary plot of the system processing method of the complicated charge protocol that Fig. 3 is provided for the present embodiment of the present invention.
Fig. 3 waveforms of the system processing method of the complicated charge protocol that Fig. 4 is provided for the present embodiment of the present invention according to Fig. 2 volume
The waveform coding result of code table.
The waveform transtation mission circuit state diagram of the complicated charge protocol that Fig. 5 is provided for the present embodiment of the present invention.
" specific embodiment "
Specific embodiment of the invention is described further below in conjunction with the accompanying drawings:
As shown in figure 1, the invention provides a kind of system processing unit of complicated charge protocol, including MCU and association of charging
View chip, charge protocol chip includes that equipment insertion is extracted detection circuit, protocol command receiving circuit and response wave shape and sends electricity
Road, MCU includes protocol command analysis module and response data coding module.
Circuit structure based on Fig. 1, its control method is described as follows:
Detection circuit 1 is extracted in insertion, has monitored whether that smart machine is accessed, and starts single treatment if having access, otherwise
It is lasting to wait.Protocol command receiving circuit 2, judges the starting of charge command, terminates, and therefrom resolve command, or produces state
Signal, reads for MCU.Protocol command analysis module 3, responsible analysis is ordered and produces corresponding response data.Response data
Coding module 5, encodes according to waveform coding table generation response wave shape predetermined in advance.Response wave shape transtation mission circuit 5, be responsible for according to
Waveform coding table predetermined in advance and response wave shape coding, response wave shape is sent on the pin of output.
The coded system of waveform is described as follows with reference to Fig. 2, Fig. 3, Fig. 4, Fig. 5:
1), such as Fig. 2 description, waveform coding table provide 3 ' the d7 eight kinds of code of d0~3 ', respectively represent wave level do not overturn,
Maintain wave level special time length (including 40us, 80us, 160us, 200us, 320us), waveform send terminate, by with
Upper 3 class coding can carry out coding to the waveform with 40us length as granularity
2), waveform as shown in Figure 3, when detect need to send waveform when, can do following coding according to waveform coding table,
A, B, C are such as schemed for 40us continuous overturnings, then may be encoded as 3 ' d1,3 ' d1,3 ' d1;D is 80us, is encoded to 3 ' d2, and E is 160us,
3 ' d4 are encoded to, F is 640us, single encoded to describe, therefore are encoded to 3 ' d6,3 ' d0,3 ' d6, wherein 3 ' d0 codings can
Coupled together with by the coding of two smaller time spans, represent the coding of longer time.
3) communication bus by between MCU and protocol chip (as shown in Figure 4) after above-mentioned waveform coding, is sent out by MCU
Protocol chip is given, after protocol chip receives above-mentioned coded data, waveform transmission will be carried out according to the flow chart shown in Fig. 5;
S101, electrification reset;
S102, determines whether that response wave shape needs to send;
S103, the waveform coding sent from MCU is stored in a caching for 16bit width, and the step is from the caching
In fetch a coded data;
S104, judges whether the coding is " holding wave level ", if it is records the current state, and continue to remove
One waveform coding;
S105, judges whether the coding is " waveform terminates ", if yes then enter S109, stops sending response wave shape, such as
Fruit is not to enter S106 steps;
S106, judges whether a upper coding is " holding wave level ", if yes then enter S107, if not then entering
Enter S108;
S107, wave level upset, i.e., if it is low level that high level just overturns, if it is height that low level then overturns
Level;
S108, allows response wave shape that stabilization is kept corresponding time range is encoded, and it is next that the retention time completes post processing
Individual coding.
Above-described embodiment beneficial effect compared to existing technology is:Can all there is one in current portable power source scheme
MCU, the treatment to complicated charge protocol can be easily realized by the cooperation of MCU and charge protocol chip, but if complete
If portion is realized by MCU, MCU I/O operation rate limitations are limited by, it is impossible to burst pulse agreement is processed well, if using height
The MCU costs of performance can be significantly increased again, and if by MCU memory responses data and processing order, protocol chip is only responsible for
The mode of Processing Interface electric signal, will can solve this problem.
Above example is only that fully disclosure is not intended to limit the present invention, every based on present subject matter and without creative labor
The replacement of dynamic i.e. obtainable equivalence techniques feature, should belong to the covered scope of invention.
Claims (5)
1. a kind of system processing unit of complicated charge protocol, including charge protocol chip and MCU, it is characterised in that association of charging
View chip includes that detection circuit, protocol command receiving circuit and response wave shape transtation mission circuit are extracted in equipment insertion;MCU includes agreement
Order analysis module and response data coding module;The input that detection circuit is extracted in the equipment insertion is used to monitor whether
Charging equipment is accessed, and output end connects the input of the protocol command receiving circuit;The protocol command analysis module
Input connects the output end of the protocol command receiving circuit, the input of output end connection response data coding module;Institute
The output of the input connection response waveform coding module of response wave shape transtation mission circuit is stated, output end is used to connect to be charged setting
It is standby.
2. a kind of system processing method of complicated charge protocol, it is characterised in that including:
(1) insertion extracts whether detection circuit monitoring has smart machine to access, and single treatment is started if having access, otherwise lasting
Wait;
(2) protocol command receiving circuit judges the starting of order, terminates, and therefrom resolve command or generation status signal, for MCU
Protocol command analysis module read;
(3) protocol command analysis module analysis is ordered and inquires corresponding response data;
(4) response wave shape coding module carries out waveform coding according to pre-designed waveform coding table to response data;
(5) be sent to data on the pin of response according to the waveform coding of response data by response wave shape transtation mission circuit.
3. the system processing method of complicated charge protocol according to claim 2, it is characterised in that the waveform coding table
Waveform coding table is provided and represents that wave level does not overturn, maintains wave level special time length, waveform to send three classes for terminating
Coding.
4. the system processing method of complicated charge protocol according to claim 3, it is characterised in that the waveform coding table
Such as following table:
5. the system processing method of the complicated charge protocol according to claim 2,3 or 4, it is characterised in that described to carry out
The transmission of waveform coding is comprised the following steps:
S101, electrification reset;
S102, determines whether that response wave shape needs to send;
S103, the waveform coding sent from MCU is stored in a caching for 16bit width, and the step takes from the caching
Return a coded data;
S104, judges whether the coding is " holding wave level ", if it is records the current state, and continues to take next
Waveform coding;
S105, judges whether the coding is " waveform terminates ", if yes then enter S109, stops sending response wave shape, if not
It is to enter S106 steps;
S106, judges whether a upper coding is " holding wave level ", if yes then enter S107, if not then entering
S108;
S107, wave level upset, i.e., if it is low level that high level just overturns, if it is electricity high that low level then overturns
It is flat;
S108, allows response wave shape that stabilization is kept corresponding time range is encoded, and the retention time completes the next volume of post processing
Code.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710162241.XA CN106816933B (en) | 2017-03-17 | 2017-03-17 | A kind of the system processing unit and method of complexity charge protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710162241.XA CN106816933B (en) | 2017-03-17 | 2017-03-17 | A kind of the system processing unit and method of complexity charge protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106816933A true CN106816933A (en) | 2017-06-09 |
CN106816933B CN106816933B (en) | 2019-03-01 |
Family
ID=59115609
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710162241.XA Active CN106816933B (en) | 2017-03-17 | 2017-03-17 | A kind of the system processing unit and method of complexity charge protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106816933B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020080773A1 (en) * | 2000-12-21 | 2002-06-27 | Lg Electronics Inc. | Voice over internet protocol gateway system and method therefor |
CN101814896A (en) * | 2010-03-30 | 2010-08-25 | 东北大学 | Remote control device and method for motor of submersible pump of offshore oil well |
CN202025234U (en) * | 2011-04-12 | 2011-11-02 | 中国电子科技集团公司第四十一研究所 | Field bus module used in self-diagnosis sensor |
CN204497797U (en) * | 2015-04-17 | 2015-07-22 | 深圳市鸿达顺科技开发有限公司 | The intelligent vehicle-carried charger of a kind of double-H groove weld SB |
CN106300551A (en) * | 2016-09-26 | 2017-01-04 | 宇龙计算机通信科技(深圳)有限公司 | Electronic installation and charging method thereof |
-
2017
- 2017-03-17 CN CN201710162241.XA patent/CN106816933B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020080773A1 (en) * | 2000-12-21 | 2002-06-27 | Lg Electronics Inc. | Voice over internet protocol gateway system and method therefor |
CN101814896A (en) * | 2010-03-30 | 2010-08-25 | 东北大学 | Remote control device and method for motor of submersible pump of offshore oil well |
CN202025234U (en) * | 2011-04-12 | 2011-11-02 | 中国电子科技集团公司第四十一研究所 | Field bus module used in self-diagnosis sensor |
CN204497797U (en) * | 2015-04-17 | 2015-07-22 | 深圳市鸿达顺科技开发有限公司 | The intelligent vehicle-carried charger of a kind of double-H groove weld SB |
CN106300551A (en) * | 2016-09-26 | 2017-01-04 | 宇龙计算机通信科技(深圳)有限公司 | Electronic installation and charging method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN106816933B (en) | 2019-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104701583B (en) | Battery charging method based on USB interface, adapter, electric equipment and system | |
EP3309924B1 (en) | A terminal with two charging circuits | |
CN102882077B (en) | A kind of method and smart jack of controlling consumer power switch | |
CN110138022A (en) | Charging unit, battery charge controller, terminal device and charging method | |
CN113473300A (en) | High efficiency charging system and method for TWS charging box and headset | |
CN206479188U (en) | Multi-turn modular converter and encoder | |
CN202548576U (en) | Intelligent data control terminal | |
CN108233461A (en) | A kind of charging circuit and terminal device | |
CN201130342Y (en) | Apparatus for obtaining power from serial port | |
CN106816933A (en) | The system processing unit and method of a kind of complicated charge protocol | |
CN108063487A (en) | A kind of charger and charging method | |
CN203445629U (en) | Multifunctional back clip system of intelligent mobile terminal | |
CN107278075B (en) | DTU box for Internet of things | |
CN114722987A (en) | Method and chip for realizing passive AIoT node | |
CN103632518B (en) | USB wireless network connections equipment, onboard system and its awakening method | |
CN114094663A (en) | Power supply chip, electronic equipment and power supply chip control method | |
CN201869223U (en) | Machine to machine terminal, communication module and data sending device | |
CN111191476A (en) | Portable wireless SD card reading system and operation method | |
CN111464405A (en) | Cloud controller | |
CN213122074U (en) | NB-IoT electric meter circuit and NB-IoT electric meter structure | |
CN210514973U (en) | Efficient communication circuit based on message queue control | |
CN204794222U (en) | Controlling means that charges of battery charging outfit | |
CN217640185U (en) | Circuit and equipment supporting software burning and power output | |
CN212462814U (en) | Intelligent endurance device | |
CN204481920U (en) | A kind of audio conversion infrared remote-control device, governor circuit and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |