CN105932729A - Charger authentication method and device for electronic equipment and electronic equipment - Google Patents

Charger authentication method and device for electronic equipment and electronic equipment Download PDF

Info

Publication number
CN105932729A
CN105932729A CN201610270929.5A CN201610270929A CN105932729A CN 105932729 A CN105932729 A CN 105932729A CN 201610270929 A CN201610270929 A CN 201610270929A CN 105932729 A CN105932729 A CN 105932729A
Authority
CN
China
Prior art keywords
charger
electronic equipment
module
authentication data
certification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610270929.5A
Other languages
Chinese (zh)
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.)
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing 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 LeTV Holding Beijing Co Ltd, LeTV Mobile Intelligent Information Technology Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201610270929.5A priority Critical patent/CN105932729A/en
Publication of CN105932729A publication Critical patent/CN105932729A/en
Pending legal-status Critical Current

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • 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/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00034Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a charger authentication method and device for electronic equipment and electronic equipment. The method comprises the following steps: detecting whether the electronic equipment establishes connection with a charger; if so, generating charger authentication data and sending the charger authentication data to the connected charger for charger authentication; encrypting the generated charger authentication data according to a predetermined algorithm to obtain an authentication reference; receiving a calculation result obtained by encrypting the received charger authentication data according to the predetermined algorithm and returned by the charger; and comparing whether the calculation result is consistent with the authentication reference, and if so, determining the charger is a matched dedicated PD charger. According to the charger authentication method and device and the electronic equipment, when the inserted charger is the matched dedicated PD charger, a quick charge mode is started, and thus safety of quick charge can be ensured effectively.

Description

Charger authentication method, device and electronic equipment for electronic equipment
Technical field
The present invention relates to USB-PD rapid nitriding field, more particularly, to one for electricity The charging matching process of subset and device, a kind of charging matching process for PD charger and dress Put, a kind of electronic equipment and a kind of PD charger.
Background technology
USB-PD (Power Delivery) charging is a kind of emerging rapid nitriding, mainly leads to Cross Type-C interface and realize this kind of quick charge design, for the ease of understanding USB-PD charging technique, The basic structure of Type-C interface will be first explained below.
The maximum feature of Type-C interface is to support from tow sides the most insertable " positive anti-plug " merit Can, its A face and B face respectively have 12 stitch, and the layout of each stitch is as shown in table 1:
Table 1:
Wherein, TX1+, TX1-, RX1+, RX1-, TX2+, TX2-, RX2+, RX2-are four right Differential signal stitch, GND is ground pin, and D+, D-are the USB difference letter for compatible USB2.0 Number stitch, VBUS is power supply stitch, and CC1, CC2 are for being used for detecting positive anti-plug, distinguishing principal and subordinate, configuration The stitch of voltage of VBUS etc., SBU1, SBU2 are bus stitch.
Owing to Type-C interface has four power supply stitch and four grounded stitch, therefore, Type-C Interface can support that the power supply of 100W exports in theory, and this is also that Type-C interface is capable of USB-PD The reason of quick charge.
On this basis, USB-PD quick charge refers to by coupling FSK letter in VBUS DC level Number ask charger to adjust output voltage and the process of electric current, specifically include following steps:
Step 1: whether the charger that electronic equipment identification is inserted is the PD charging supporting quick charge Device, in this way, then switches over, and will the differential signal stitch of Type-C change into for transmitting DP letter Number (including PD order and data etc.), SBU1, SUB2 bus stitch of Type-C is changed into for Transmission AUX auxiliary signal.
Step 2: start USB-PD equipment strategy manager, the direct current of policy manager monitoring VBUS FSK (Frequency-shift keying) signal of coupling on level, and therefrom decoding obtains ability money Source (Capabilities Source) message, resolves this message further according to USB-PD specification and draws PD All voltage and currents that charger is supported are to list;
Step 3: electronic equipment selects from Capabilities Source message according to the configuration of user Select a voltage and current pair, and by voltage and current to being loaded onto charge request (Request) message Load (payload) part, then, fsk signal is coupled to VBUS direct current by policy manager On level.
Step 4: charger decoding fsk signal also sends reception (Accept) message to electronic equipment, Adjust output voltage and the electric current of charger simultaneously.
Step 5: after electronic equipment receives Accept message, adjust charging IC charging voltage and Electric current.
Here, electronic equipment can dynamically send Request message in charging process asks charging Device changes output voltage and electric current, thus realizes the process of quick charge.
Above-mentioned quick charge process there is problems of, and electronic equipment can only be known according to USB-PD specification Whether the charger not inserted is the PD charger supporting PD charging, but the charging that None-identified inserts Whether device is and the special PD charger of corresponding electronic equipment coupling, so, if insert is mountain vallage Or unmatched PD charger, the quick charge carrying out high voltage and/or big electric current is likely to Electronic equipment is caused to be burned out, it is impossible to ensure the security of quick charge.
Summary of the invention
One purpose of the embodiment of the present invention is to provide one and realizes special PD charger certification, to carry The new technical scheme of high quick charge security.
According to the first aspect of the invention, it is provided that a kind of charger authenticating party for electronic equipment Method, comprising:
Whether detection electronic equipment is connected, in this way, then with charger foundation:
Generate charger authentication data, and described charger authentication data is sent to setting up filling of connection Electrical equipment is charged device certification;
The charger authentication data generated according to engagement arithmetic encryption, obtains certification benchmark;
Receive charger authentication data that described charger returns, that receive according to engagement arithmetic encryption The result of calculation obtained;
Relatively described result of calculation is the most consistent, in this way with described certification benchmark, it is determined that described charging Device is the special PD charger matched.
Optionally, described method also includes:
As inconsistent, then:
Carry out setting up the prompting that the charger connected is not the special PD charger matched.
Output requires that user is confirmed whether the request being charged, and etc. confirmation signal to be received.
Optionally, described method also includes:
The stand-by period of the confirmation signals to be received such as calculating;
If the described stand-by period exceedes setting time threshold does not receives confirmation signal yet, then control electricity The charge management circuit of subset remains open the state of charging connection.
Optionally, described method also includes:
As inconsistent, then:
First judge whether user setup is to open conventional charge mode in the case of inconsistencies, as no, Output requires that user is confirmed whether the request being charged again, in this way, the most directly opens normal charge mould Formula.
According to a second aspect of the present invention, it is provided that a kind of charger certification device for electronic equipment, Comprising:
Detection module, is used for detecting whether electronic equipment is connected with charger foundation;
At described detection module, authentication data generation module, for detecting that electronic equipment is built with charger Generate charger authentication data in the case of vertical connection, and described charger authentication data is sent to building The vertical charger connected is charged device certification;
Certification benchmark module, for the charger authentication data generated according to engagement arithmetic encryption, Obtain certification benchmark;
Result of calculation receiver module is that described charger returns, according to engagement arithmetic encryption for receiving The result of calculation that the charger authentication data received obtains;And,
Comparison module, the most consistent with described certification benchmark for relatively described result of calculation, in this way, Then determine that described charger is the special PD charger matched.
Optionally, described device also includes:
Reminding module, in the case of the comparative result of described comparison module is inconsistent, is carried out Set up the prompting that the charger connected is not the special PD charger matched;And,
Charging confirms module, is used in the case of the comparative result of described comparison module is inconsistent, Output requires that user is confirmed whether the request being charged, and etc. confirmation signal to be received.
Optionally, described device also includes:
Stand-by period computing module, for the stand-by period of the confirmation signals to be received such as calculating;
Perform module, do not receive confirmation letter yet for exceeding setting time threshold in the described stand-by period In the case of number, the charge management circuit controlling electronic equipment remains open the state of charging connection.
Optionally, described device also includes:
Judge module, in the case of the comparative result of described comparison module is inconsistent, first sentences Whether disconnected user setup is to open conventional charge mode in the case of inconsistencies, as no, then makes described Charging confirms that module output requires that user is confirmed whether the request being charged, and in this way, then opens routine Charge mode.
According to the third aspect of the invention we, it is provided that a kind of electronic equipment, it includes according to the present invention the Charger certification device described in two aspects.
According to the fourth aspect of the invention, it is provided that a kind of electronic equipment, it includes interface arrangement, deposits Reservoir and processor, described interface arrangement is used for being connected with charger foundation by Type-C data wire, Described memory is used for storing instruction, and described instruction is used for controlling described processor and carries out operating to perform Method described according to a first aspect of the present invention.
It was found by the inventors of the present invention that in the prior art, the charger that there is None-identified insertion is No for the special PD charger that matches, and then cause the problem that charging security reduces.And at this In bright embodiment, by increase charger certification step, just can reliable recognition insert charger be The no special PD charger for matching, being then turned on fast charge mode on this basis can be effective Ensure the security of quick charge.
By detailed description to the exemplary embodiment of the present invention referring to the drawings, its of the present invention Its feature and advantage thereof will be made apparent from.
Accompanying drawing explanation
Combined in the description and the accompanying drawing of the part that constitutes specification shows the reality of the present invention Execute example, and together with its explanation for explaining the principle of the present invention.
Fig. 1 is the flow chart of a kind of embodiment according to charger authentication method of the present invention;
Fig. 2 is a kind of frame principle figure implementing structure of coalignment of charging according to the present invention;
Fig. 3 is a kind of frame principle figure implementing structure according to electronic equipment of the present invention.
Detailed description of the invention
The various exemplary embodiments of the present invention are described in detail now with reference to accompanying drawing.It should also be noted that Unless specifically stated otherwise, the parts that illustrate the most in these embodiments and step positioned opposite, Numerical expression and numerical value do not limit the scope of the invention.
Description only actually at least one exemplary embodiment is illustrative below, never makees For to the present invention and application thereof or any restriction of use.
May not beg in detail for technology, method and apparatus known to person of ordinary skill in the relevant Opinion, but in the appropriate case, described technology, method and apparatus should be considered a part for specification.
Shown here with in all examples discussed, any occurrence should be construed as merely example Property rather than as limit.Therefore, other example of exemplary embodiment can have different Value.
It should also be noted that similar label and letter represent similar terms, therefore, one in following accompanying drawing A certain Xiang Yi the accompanying drawing of denier is defined, then need not it is carried out further in accompanying drawing subsequently Discuss.
The present invention is to solve whether the charger that None-identified inserts present in prior art is phase The special PD charger of coupling, and then cause the problem that charging security reduces, it is provided that one is passed through It is charged device certification and improves the new technical scheme of quick charge security.
Fig. 1 is the flow chart of a kind of embodiment of the charger authentication method according to the present invention, in figure Solid line represents electronic equipment and the respective implementing procedure of PD charger, and dotted line represents electronic equipment and PD The implementing procedure interacted between charger.
According to Fig. 1, the inventive method comprises the steps:
Step S101, whether detection electronic equipment is connected with charger foundation, in this way, then performs step S102, as no, then continues executing with step S101.
This connection refers specifically to be set up by USB data line be electrically connected with.
Step S102, electronic equipment one end generates charger authentication data.
This charger authentication data can be random number, generate time, electronic appliance models etc., it is possible to To include any combination of above-mentioned all types of data, it is also possible to be at least to include random-number portion, to carry The security of high charger authentication data.
For random number, can set and generate the character types etc. that random number requires to include, such as, to seek survival Become the random number including numeral and alphabetic character type.
Step S103, the charger authentication data that electronic equipment one end generates according to engagement arithmetic encryption, Obtain certification benchmark.
This engagement arithmetic can be such as charger authentication data appointed position insert character or Random number, changes putting in order between each character of charger authentication data according to stipulated form, removes The character etc. of the appointed position of charger authentication data.
Step S104, the charger authentication data that step S102 is generated by electronic equipment one end sends extremely Set up the charger connected and be charged device certification.
Step S105, charger one end receives electronic equipment one end and sends the charger authentication data of coming, And obtain result of calculation according to the charger authentication data that receives of engagement arithmetic encryption.
Here, made an appointment due to electronic equipment and the special PD charger matched encrypt charging The algorithm of device authentication data, therefore, if charger is the special PD charger matched, then this meter Calculating result should be consistent with above-mentioned certification benchmark.
Step S106, charger one end returns what step S105 obtained to setting up the electronic equipment connected Result of calculation.
Step S107, electronic equipment one end receives the result of calculation that charger one end returns.
Step S108, it is the most consistent with above-mentioned certification benchmark that this result of calculation is compared in electronic equipment one end, In this way, it is determined that charger is the special PD charger matched, i.e. charger certification success, afterwards Just PD charge mode can be opened.
This PD charge mode is: all voltages that electronic equipment one end is supported from special PD charger Select a corresponding user configured voltage and current pair with electric current centering, or select that there is the highest filling The voltage and current pair of electrical power, and by the voltage and current of selection to being loaded onto charge request message Payload segment sends to PD charger.And PD charger one end is receiving filling of electronic equipment transmission After electricity request message, charging voltage and the electric current of request, and root will be determined according to this charge request message Output voltage and the electric current of charger is adjusted according to the charging voltage of this request and electric current.
Wherein, according to PD agreement, all voltage and currents that PD charger can be supported are to list Sending to electronic equipment one end, therefore, electronic equipment one end will select concrete one from this list Voltage and current pair, selection principle can be according to user's configuration to quick charge, it is also possible to is institute Obtainable high charge power, although here, USB-PD is capable of the charging of 100W in theory Power, but be two power supply stitch and two ground pin due to what reality connected, and combine electricity Subset configures, and this high charge power is usually arranged as 27W, and corresponding 9V charging voltage and 3A fill Electricity electric current.
If comparative result is inconsistent, i.e. charger authentification failure, then can carry out corresponding according to demand Setting, for example, it is possible to directly control charge management circuit disconnect and charger between charging connection, To protect electronic equipment, the most such as, in order to improve the electronic equipment compatibility to different chargers, also Can in the case of inconsistencies, carrying out setting up the charger connected is not that the special PD matched fills The prompting of electrical equipment, and export and require that user is confirmed whether the request being charged, and etc. confirmation to be received Signal.On this basis, it is also possible to the stand-by period of the confirmation signal to be received such as calculating, with such In the case of the time for the treatment of exceedes setting time threshold receives confirmation signal not yet, control electronic equipment Charge management circuit remains open the state of charging connection.On this basis, it is also possible to increase for user The option selected is arranged, to reduce user operation after user setup, the most in the case of inconsistencies, First judge whether user setup is to open conventional charge mode in the case of inconsistencies, as no more defeated Go out the request that requirement user is confirmed whether to be charged, in this way, the most directly open conventional charge mode, And confirm without waiting for user.
Above-mentioned conventional charge mode for regular charger, be according to conventional 7.5W (5V, 1.5A) charge mode is charged.
Above-mentioned conventional charge mode, for non-dedicated PD charger, can be from PD charger The all voltage and current centerings supported select to meet the voltage and current pair of normal charge, usually electricity Pressure 5V, electric current 1.5V, carry out normal charge.
As can be seen here, the inventive method is by being charged device certification, it is possible to reliably identify insertion Charger whether be the special PD charger matched, so, just can realize filling with special PD Just open the design of fast charge mode when electrical equipment connects, and can also realize with non-dedicated charger even Various Demand Design when connecing, and then the security of quick charge can not only be effectively ensured, moreover it is possible to carry The high electronic equipment compatibility to other chargers.
Present invention also offers a kind of charger certification device, Fig. 2 shows a kind of enforcement of this device The frame principle figure of structure.
According to Fig. 2, this device 200 include detection module 201, authentication data generation module 202, Authentication data sending module 203, certification benchmark module 204, result of calculation receiver module 205 and Comparison module 206.
Above-mentioned detection module 201 is used for detecting whether electronic equipment is connected with charger foundation.
Above-mentioned authentication data generation module 202 is for electronic equipment being detected at detection module 201 and fill Electrical equipment is set up in the case of connecting and is generated charger authentication data.
Above-mentioned authentication data sending module 203 is for sending charger authentication data to setting up connection Charger be charged device certification.
Above-mentioned certification benchmark module 204 is recognized for the charger generated according to engagement arithmetic encryption Card data, obtain certification benchmark.
Above-mentioned result of calculation receiver module 205 for receive that charger returns, add according to engagement arithmetic The result of calculation that the charger authentication data that contiguity receives obtains.
It is the most consistent with certification benchmark that above-mentioned comparison module 206 is used for comparing result of calculation, in this way, then Determine that charger is the special PD charger matched.
This device 200 can further include reminding module and charging confirms that module (is not shown in figure Go out), wherein, this reminding module is inconsistent situation for the comparative result at described comparison module Under, carry out setting up the prompting that the charger connected is not the special PD charger matched;This charging Confirm that module, in the case of the comparative result of comparison module is inconsistent, exports and requires that user is true Recognize the request whether being charged, and etc. confirmation signal to be received.
This device 200 can further include stand-by period computing module and performs module (in figure not Illustrate), wherein, waiting time computing module is when the wait of the confirmation signals to be received such as calculating Between;This execution module does not receives confirmation signal yet for exceeding setting time threshold in the stand-by period In the case of, the charge management circuit controlling electronic equipment remains open the state of charging connection.
This device 200 can further include judge module (not shown), this judge module For, in the case of the comparative result of comparison module 206 is inconsistent, first whether judging user setup For opening conventional charge mode in the case of inconsistencies, as no, then module output is wanted to make charging confirm Ask user to be confirmed whether the request being charged, in this way, then open conventional charge mode.
Present invention also offers a kind of electronic equipment, according on the one hand, this electronic equipment includes the present invention The charger certification device 210 for electronic equipment.
Fig. 3 is the frame principle figure of the enforcement structure of this electronic equipment according to another aspect of the present invention.
According to Fig. 3, this electronic equipment 300 includes memory 301 and processor 302, and this is deposited Reservoir 301 is used for storing instruction, and this instruction is used for controlling processor 302 and carries out operating performing above-mentioned Charging matching process for electronic equipment.
In addition, according to Fig. 3, this electronic equipment 300 also includes interface arrangement 303, defeated Enter device 304, display device 305, communicator 306, loudspeaker 307, microphone 308 etc.. Although figure 3 illustrates multiple device, but, electronic equipment of the present invention can only relate to therein Partial devices, such as, processor 301, memory 302, interface arrangement 303 etc..
Above-mentioned communicator 306 such as can carry out there is wired or wireless communication.
Above-mentioned interface arrangement 303 such as includes earphone jack, Type-C interface etc., so that interface arrangement The Type-C interface of 303 is connected with charger foundation by Type-C data wire.
Above-mentioned input unit 304 such as can include touch-screen, button etc..
Above-mentioned display device 305 e.g. LCDs, touch display screen etc..
Electronic equipment of the present invention e.g. mobile phone, panel computer etc..
The various embodiments described above primary focus describes and the difference of other embodiments, but art technology Personnel are it should be understood that, the various embodiments described above can be used alone as required or be combined with each other makes With.
Each embodiment in this specification all uses the mode gone forward one by one to describe, phase between each embodiment Part cross-reference as homophase, each embodiment stress with other embodiments Difference, but it will be clear for those skilled in the art that the various embodiments described above can be as required It is used alone or is combined with each other.It addition, for device embodiment, owing to it is and side Method embodiment is corresponding, so describing fairly simple, relevant part sees the correspondence of embodiment of the method The explanation of part.System embodiment described above is only schematically, wherein as dividing Module from part description can be or may not be physically separate.
The present invention can be device, method and/or computer program.Computer program can To include computer-readable recording medium, containing for making processor realize each side of the present invention The computer-readable program instructions in face.
Computer-readable recording medium can keep and store by instruction execution equipment use The tangible device of instruction.Computer-readable recording medium such as may be-but not limited to-electricity and deposits Storage equipment, magnetic storage apparatus, light storage device, electromagnetism storage device, semiconductor memory apparatus or The combination of above-mentioned any appropriate.The more specifically example of computer-readable recording medium is (non exhaustive List) including: portable computer diskette, hard disk, random access memory (RAM), read-only storage Device (ROM), erasable type programmable read only memory (EPROM or flash memory), static random-access are deposited Reservoir (SRAM), Portable compressed dish read-only storage (CD-ROM), digital versatile disc (DVD), Memory stick, floppy disk, mechanical coding equipment, such as storage has punch card or the groove convex of instruction on it Play structure and the combination of above-mentioned any appropriate.Computer-readable recording medium used herein above It is not construed as instantaneous signal itself, the electromagnetic wave of such as radio wave or other Free propagations, logical Cross electromagnetic wave (such as, by the light pulse of fiber optic cables) that waveguide or other transmission mediums propagate, Or by the signal of telecommunication of wire transfer.
Computer-readable program instructions as described herein can be downloaded from computer-readable recording medium To each calculating/processing equipment, or by network, such as internet, LAN, wide area network and/ Or wireless network downloads to outer computer or External memory equipment.Network can include copper transmission cable, Optical Fiber Transmission, be wirelessly transferred, router, fire wall, switch, gateway computer and/or edge clothes Business device.Adapter or network interface in each calculating/processing equipment receive computer from network Readable program instructions, and forward this computer-readable program instructions, calculate for being stored in each/process In computer-readable recording medium in equipment.
Can be assembly instruction, instruction set architecture for performing the computer program instructions of present invention operation (ISA) instruction, machine instruction, machine-dependent instructions, microcode, firmware instructions, state arrange number According to or the source code write with any combination of one or more programming languages or object code, institute State programming language and include OO programming language such as Smalltalk, C++ etc., and conventional Procedural programming languages such as " C " language or similar programming language.Computer-readable program refers to Order can perform the most on the user computer, perform the most on the user computer, as one Individual independent software kit performs, part part the most on the user computer performs the most on the remote computer or Person performs completely on remote computer or server.In the situation relating to remote computer, remotely By the network of any kind, computer can include that LAN (LAN) or wide area network (WAN) connect To subscriber computer, or, it may be connected to outer computer (such as utilizes Internet service to provide Business passes through Internet connection).In certain embodiments, by utilizing computer-readable program instructions Status information come personalized customization electronic circuit, such as PLD, field programmable gate Array (FPGA) or programmable logic array (PLA), this electronic circuit can perform computer-readable Programmed instruction, thus realize various aspects of the invention.
Referring herein to method according to embodiments of the present invention, device (system) and computer program Flow chart and/or block diagram describe various aspects of the invention.Should be appreciated that flow chart and/or frame The combination of each square frame in each square frame of figure and flow chart and/or block diagram, can be by computer-readable Programmed instruction realizes.
These computer-readable program instructions can be supplied to all-purpose computer, special-purpose computer or other The processor of programmable data processing means, thus produce a kind of machine so that these instructions are logical When crossing the processor execution of computer or other programmable data processing means, create flowchart And/or the device of the function/action of regulation in the one or more square frames in block diagram.Can also be these Computer-readable program instructions store in a computer-readable storage medium, these instruction make computer, Programmable data processing means and/or other equipment work in a specific way, thus, storage has instruction Computer-readable medium then includes a manufacture, and it includes one in flowchart and/or block diagram Or the instruction of the various aspects of the function/action of regulation in multiple square frame.
Computer-readable program instructions can also be loaded into computer, other programmable data processes dress Put or on miscellaneous equipment so that at computer, other programmable data processing means or miscellaneous equipment Upper execution sequence of operations step, to produce computer implemented process so that computer, The instruction flowchart performed in other programmable data processing means or miscellaneous equipment and/or block diagram In one or more square frames in regulation function/action.
Flow chart and block diagram in accompanying drawing show the system of multiple embodiments according to the present invention, method Architectural framework in the cards, function and operation with computer program.In this, flow process Each square frame in figure or block diagram can represent a module, program segment or a part for instruction, described A part for module, program segment or instruction comprises one or more logic function for realizing regulation Executable instruction.At some as in the realization replaced, the function marked in square frame can also be with not The order being same as being marked in accompanying drawing occurs.Such as, two continuous print square frames can essentially the most also Performing, they can also perform sometimes in the opposite order capablely, and this is depending on involved function. It is also noted that in each square frame in block diagram and/or flow chart and block diagram and/or flow chart The combination of square frame, can come by the special hardware based system of the function or action that perform regulation Realize, or can realize with the combination of specialized hardware with computer instruction.For art technology It is well known that for personnel, realize by hardware mode, realized by software mode and pass through software Realize being all of equal value with the mode of combination of hardware.
Being described above various embodiments of the present invention, described above is exemplary, and exhaustive Property, and it is also not necessarily limited to disclosed each embodiment.At the model without departing from illustrated each embodiment Enclose with spirit in the case of, many modifications and changes for those skilled in the art Will be apparent from.The selection of term used herein, it is intended to explain the former of each embodiment best Reason, actual application or the technological improvement to the technology in market, or make other of the art general Logical technical staff is understood that each embodiment disclosed herein.The scope of the present invention is come by claims Limit.

Claims (10)

1. the charger authentication method for electronic equipment, it is characterised in that including:
Whether detection electronic equipment is connected, in this way, then with charger foundation:
Generate charger authentication data, and described charger authentication data is sent to setting up filling of connection Electrical equipment is charged device certification;
The charger authentication data generated according to engagement arithmetic encryption, obtains certification benchmark;
Receive charger authentication data that described charger returns, that receive according to engagement arithmetic encryption The result of calculation obtained;
Relatively described result of calculation is the most consistent, in this way with described certification benchmark, it is determined that described charging Device is the special PD charger matched.
Charger authentication method the most according to claim 1, it is characterised in that described method is also Including:
As inconsistent, then:
Carry out setting up the prompting that the charger connected is not the special PD charger matched;
Output requires that user is confirmed whether the request being charged, and etc. confirmation signal to be received.
Charger authentication method the most according to claim 2, it is characterised in that described method is also Including:
The stand-by period of the confirmation signals to be received such as calculating;
If the described stand-by period exceedes setting time threshold does not receives confirmation signal yet, then control electricity The charge management circuit of subset remains open the state of charging connection.
Charger authentication method the most according to claim 2, it is characterised in that described method is also Including:
As inconsistent, then:
First judge whether user setup is to open conventional charge mode in the case of inconsistencies, as no, Output requires that user is confirmed whether the request being charged again, in this way, the most directly opens normal charge mould Formula.
5. the charger certification device for electronic equipment, it is characterised in that including:
Detection module, is used for detecting whether electronic equipment is connected with charger foundation;
At described detection module, authentication data generation module, for detecting that electronic equipment is built with charger Charger authentication data is generated in the case of vertical connection;
Authentication data sending module, for sending described charger authentication data to setting up filling of connection Electrical equipment is charged device certification;
Certification benchmark module, for the charger authentication data generated according to engagement arithmetic encryption, Obtain certification benchmark;
Result of calculation receiver module is that described charger returns, according to engagement arithmetic encryption for receiving The result of calculation that the charger authentication data received obtains;And,
Comparison module, the most consistent with described certification benchmark for relatively described result of calculation, in this way, Then determine that described charger is the special PD charger matched.
Charger certification device the most according to claim 5, it is characterised in that described device is also Including:
Reminding module, in the case of the comparative result of described comparison module is inconsistent, is carried out Set up the prompting that the charger connected is not the special PD charger matched;And,
Charging confirms module, is used in the case of the comparative result of described comparison module is inconsistent, Output requires that user is confirmed whether the request being charged, and etc. confirmation signal to be received.
Charger certification device the most according to claim 6, it is characterised in that described device is also Including:
Stand-by period computing module, for the stand-by period of the confirmation signals to be received such as calculating;
Perform module, do not receive confirmation letter yet for exceeding setting time threshold in the described stand-by period In the case of number, the charge management circuit controlling electronic equipment remains open the state of charging connection.
Charger certification device the most according to claim 6, it is characterised in that described device is also Including:
Judge module, in the case of the comparative result of described comparison module is inconsistent, first sentences Whether disconnected user setup is to open conventional charge mode in the case of inconsistencies, as no, then makes described Charging confirms that module output requires that user is confirmed whether the request being charged, and in this way, then opens routine Charge mode.
9. an electronic equipment, it is characterised in that include according to any one of claim 5 to 8 Charger certification device.
10. an electronic equipment, including interface arrangement, memory and processor, described interface arrangement For being connected with charger foundation by Type-C data wire, it is characterised in that described memory is used for Storage instruction, described instruction is used for controlling described processor and carries out operating to perform according to claim 1 To the method according to any one of 4.
CN201610270929.5A 2016-04-27 2016-04-27 Charger authentication method and device for electronic equipment and electronic equipment Pending CN105932729A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610270929.5A CN105932729A (en) 2016-04-27 2016-04-27 Charger authentication method and device for electronic equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610270929.5A CN105932729A (en) 2016-04-27 2016-04-27 Charger authentication method and device for electronic equipment and electronic equipment

Publications (1)

Publication Number Publication Date
CN105932729A true CN105932729A (en) 2016-09-07

Family

ID=56837386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610270929.5A Pending CN105932729A (en) 2016-04-27 2016-04-27 Charger authentication method and device for electronic equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN105932729A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107104484A (en) * 2017-05-19 2017-08-29 上海掌门科技有限公司 A kind of method and apparatus charged by charging device to user equipment
CN107425570A (en) * 2017-08-02 2017-12-01 闻泰通讯股份有限公司 Charging method, system and the device of terminal device
CN107612058A (en) * 2017-09-07 2018-01-19 北京小米移动软件有限公司 Charging method and equipment
WO2018210322A1 (en) * 2017-05-19 2018-11-22 上海掌门科技有限公司 Charging device and power supply output management device
CN109795359A (en) * 2019-01-11 2019-05-24 广州小鹏汽车科技有限公司 A kind of charging method for authenticating, device, system and charging system
CN112636402A (en) * 2019-09-24 2021-04-09 北京小米移动软件有限公司 Charging method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1322049A (en) * 2000-07-29 2001-11-14 深圳市中兴通讯股份有限公司 Charging method for handset and its intelligent integrated charging device
CN103607505A (en) * 2013-11-13 2014-02-26 四川长虹电器股份有限公司 Mutual verification-based mobile phone and charger thereof, and working method thereof
CN104281065A (en) * 2014-09-16 2015-01-14 深圳市赤道极光信息科技有限公司 Network control charging method and system
WO2015048105A1 (en) * 2013-09-27 2015-04-02 Intel Corporation Apparatus and method to change current limit
CN105140990A (en) * 2015-08-27 2015-12-09 徐业友 Power supply device with data transmission function

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1322049A (en) * 2000-07-29 2001-11-14 深圳市中兴通讯股份有限公司 Charging method for handset and its intelligent integrated charging device
WO2015048105A1 (en) * 2013-09-27 2015-04-02 Intel Corporation Apparatus and method to change current limit
CN103607505A (en) * 2013-11-13 2014-02-26 四川长虹电器股份有限公司 Mutual verification-based mobile phone and charger thereof, and working method thereof
CN104281065A (en) * 2014-09-16 2015-01-14 深圳市赤道极光信息科技有限公司 Network control charging method and system
CN105140990A (en) * 2015-08-27 2015-12-09 徐业友 Power supply device with data transmission function

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107104484A (en) * 2017-05-19 2017-08-29 上海掌门科技有限公司 A kind of method and apparatus charged by charging device to user equipment
WO2018210320A1 (en) * 2017-05-19 2018-11-22 上海掌门科技有限公司 Method and device for charging user equipment by means of charging apparatus
WO2018210322A1 (en) * 2017-05-19 2018-11-22 上海掌门科技有限公司 Charging device and power supply output management device
CN107104484B (en) * 2017-05-19 2020-12-18 上海掌门科技有限公司 Method and equipment for charging user equipment through charging device
CN107425570A (en) * 2017-08-02 2017-12-01 闻泰通讯股份有限公司 Charging method, system and the device of terminal device
CN107425570B (en) * 2017-08-02 2020-06-19 闻泰通讯股份有限公司 Charging method, system and device of terminal equipment
CN107612058A (en) * 2017-09-07 2018-01-19 北京小米移动软件有限公司 Charging method and equipment
CN107612058B (en) * 2017-09-07 2021-07-27 北京小米移动软件有限公司 Charging method and device
CN109795359A (en) * 2019-01-11 2019-05-24 广州小鹏汽车科技有限公司 A kind of charging method for authenticating, device, system and charging system
CN112636402A (en) * 2019-09-24 2021-04-09 北京小米移动软件有限公司 Charging method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN105932729A (en) Charger authentication method and device for electronic equipment and electronic equipment
CN105975420A (en) Charging power adjustment method and apparatus used for electronic device and electronic device
CN105826979A (en) Charging matching method, apparatus, electronic device and PD charger
CN103376870B (en) For judging whether annex comprises the method for particular electrical circuit, system and equipment
CN102138134B (en) Intelligent power-enabled communications port
CN109313626A (en) Universal serial bus (USB) type of cable detects and controls technology
US20180240109A1 (en) Data Processing Method and System, and Wearable Electronic Device
CN108604266A (en) A kind of safe checking method and equipment
CN103701977B (en) Portable electronic equipment, communication system and information authentication method
CN104636777B (en) ID card information obtains system
CN105451299B (en) A kind of method and its electronic equipment controlling WiFi connection
CN105975039A (en) Method and device for controlling power supply of Type-C interface, and electronic equipment
CN105338550B (en) A kind of management method and device of the connection for wireless network
US9755441B2 (en) Battery authentication method and apparatus
CN108196458A (en) Intelligent home equipment control method, device and terminal device
CN108564776A (en) Equipment debugging system, apparatus debugging method and computer storage media
CN104867004A (en) Mobile payment system and mobile payment method thereof
CN104899497A (en) Identity card reading apparatus having no SAM module, SAM apparatus and system
CN109254210A (en) Electronic device port type detection method, apparatus, detection circuit and electronic equipment
CN105958562A (en) Electronic equipment, charging protection method and device thereof
US10678905B2 (en) Process for controlling battery authentication
CN110492575A (en) For the quick charging system and method for handheld device, handheld device
KR20140017035A (en) Audio security storage system and method for managing certification using the same
CN107124012A (en) Charging method, device, charger, terminal and system
CN107276180B (en) Charging control method, device and system and user equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160907