CN103311584B - Battery unit, terminal equipment and battery verification method - Google Patents

Battery unit, terminal equipment and battery verification method Download PDF

Info

Publication number
CN103311584B
CN103311584B CN201210064033.3A CN201210064033A CN103311584B CN 103311584 B CN103311584 B CN 103311584B CN 201210064033 A CN201210064033 A CN 201210064033A CN 103311584 B CN103311584 B CN 103311584B
Authority
CN
China
Prior art keywords
battery
terminal part
length
validation mode
verification code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210064033.3A
Other languages
Chinese (zh)
Other versions
CN103311584A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210064033.3A priority Critical patent/CN103311584B/en
Publication of CN103311584A publication Critical patent/CN103311584A/en
Application granted granted Critical
Publication of CN103311584B publication Critical patent/CN103311584B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

  • Battery Mounting, Suspending (AREA)

Abstract

Battery unit, terminal equipment and battery verification method, described battery unit comprises: battery interface unit, and configuration is connected with terminal part, and provides electric power to described terminal part; And battery management unit, configuration performs battery unit and mates with the battery of terminal part, and support the first battery Validation Mode and the second battery Validation Mode, wherein when described terminal part is connected with described battery unit, described battery management unit receives the random verification code from described terminal part by described battery interface unit; Described battery management unit judges the length of described random verification code; And determine whether to perform battery checking by described first battery Validation Mode or described second battery Validation Mode based on the length of described random verification code, and to the auth response of described terminal part feedback battery.

Description

Battery unit, terminal equipment and battery verification method
Technical field
The present invention relates to a kind of battery unit, terminal equipment and battery verification method.
Background technology
Current, along with terminal equipment universal of such as notebook computer and so on, increasing counterfeit batteries occurs commercially.Use counterfeit batteries may affect flying power and the useful life of terminal equipment.Therefore, whether current to there is multiple battery verification technique with the battery of verification terminal equipment be legal battery.Here, due to different types of terminal equipment (as, Thinkpad or Ideapad) the usual battery verification technique using (support) different, therefore must support the battery of different battery verification techniques for the design of above-mentioned terminal equipment, cause above-mentioned battery can not be general in different types of terminal equipment.
Summary of the invention
In order to solve above-mentioned technical problem of the prior art, according to an aspect of the present invention, providing a kind of battery unit, comprising: battery interface unit, configuration is connected with terminal part, and provides electric power to described terminal part; And battery management unit, configuration performs battery unit and mates with the battery of terminal part, and support the first battery Validation Mode and the second battery Validation Mode, wherein when described terminal part is connected with described battery unit, described battery management unit receives the random verification code from described terminal part by described battery interface unit; Described battery management unit judges the length of described random verification code; And determine whether to perform battery checking by described first battery Validation Mode or described second battery Validation Mode based on the length of described random verification code, and to the auth response of described terminal part feedback battery.
In addition, according to one embodiment of present invention, if wherein the length of described random verification code is the first length, then described battery management unit performs battery checking by described first battery Validation Mode, and to the auth response of described terminal part feedback battery; And if the length of described random verification code is the second length, then described battery management unit performs battery checking by described second battery Validation Mode, and to the auth response of described terminal part feedback battery.
In addition, according to one embodiment of present invention, wherein said first length is 20 bytes, and described first battery Validation Mode is SHA1 pattern; And described second length is 17 bytes, and described second battery Validation Mode is ECC pattern.
In addition, according to a further aspect in the invention, a kind of battery verification method being applied to battery unit is provided, described battery unit supports the first battery Validation Mode and the second battery Validation Mode, described method comprises: when terminal part is connected with described battery unit, receive the random verification code from described terminal part; Judge the length of described random verification code; Length based on described random verification code determines whether to perform battery checking by described first battery Validation Mode or described second battery Validation Mode; And to the auth response of described terminal part feedback battery.
In addition, according to one embodiment of present invention, if wherein the length of described random verification code is the first length, then battery checking is performed by described first battery Validation Mode, and to the auth response of described terminal part feedback battery; And if the length of described random verification code is the second length, then perform battery checking by described second battery Validation Mode, and to the auth response of described terminal part feedback battery.
In addition, according to one embodiment of present invention, wherein said first length is 20 bytes, and described first battery Validation Mode is SHA1 pattern; And described second length is 17 bytes, and described second battery Validation Mode is ECC pattern.
In addition, according to a further aspect in the invention, provide a kind of terminal equipment, comprising: terminal part, comprising: control unit, configuration sends random verification code, and analyzes the battery auth response of battery compartment feedback; Battery compartment, comprising: battery interface unit, and configuration is connected with terminal part, and provides electric power to described terminal part; And battery management unit, configuration performs battery unit and mates with the battery of terminal part, and support the first battery Validation Mode and the second battery Validation Mode, wherein when described terminal part is connected with described battery compartment or described control unit resets, described control unit sends described random verification code to described battery compartment; Described battery management unit receives the random verification code from described terminal part by described battery interface unit; Described battery management unit judges the length of described random verification code; And determine whether to perform battery checking by described first battery Validation Mode or described second battery Validation Mode based on the length of described random verification code, and to the auth response of described terminal part feedback battery.
In addition, according to one embodiment of present invention, if wherein the length of described random verification code is the first length, then described battery management unit performs battery checking by described first battery Validation Mode, and to the auth response of described terminal part feedback battery; And if the length of described random verification code is the second length, then described battery management unit performs battery checking by described second battery Validation Mode, and to the auth response of described terminal part feedback battery.
In addition, according to one embodiment of present invention, wherein said first length is 20 bytes, and described first battery Validation Mode is SHA1 pattern; And described second length is 17 bytes, and described second battery Validation Mode is ECC pattern.
In addition, according to one embodiment of present invention, if wherein the length of described random verification code is the first length, then described control unit performs battery checking by described first battery Validation Mode, based on battery checking generation first battery the result; And described first battery the result and the battery auth response from described battery compartment are analyzed by described control unit; And if described first battery the result mates with the battery auth response from described battery compartment, then control unit judges that described battery compartment is legal battery.
In addition, according to one embodiment of present invention, if wherein the length of described random verification code is the second length, then described control unit performs battery checking by described second battery Validation Mode, based on battery checking generation second battery the result; And described second battery the result and the battery auth response from described battery compartment are analyzed by described control unit; And if described second battery the result mates with the battery auth response from described battery compartment, then control unit judges that described battery compartment is legal battery.
In addition, according to a further aspect in the invention, a kind of battery verification method is provided, be applied to terminal equipment, described terminal equipment comprises terminal part and battery compartment, described battery verification method comprises: when described terminal part is connected with described battery compartment or the control unit of described terminal part resets, send random verification code to described battery compartment; Receive the random verification code from described terminal part; Judge the length of described random verification code; And determine whether to perform battery checking by the first battery Validation Mode or the second battery Validation Mode based on the length of described random verification code, and to the auth response of described terminal part feedback battery.
By above-mentioned configuration, battery unit can support multiple battery Validation Mode, and judges to need to perform any battery Validation Mode based on the length of the random verification code received.In this case, battery unit can be general between the terminal equipment supporting different types of battery Validation Mode, and do not affect the battery verification the verifying results of battery unit.
Accompanying drawing explanation
Fig. 1 is the schematic block diagram of diagram according to the battery unit of the embodiment of the present invention;
Fig. 2 is the flow chart of diagram according to the battery verification method of the embodiment of the present invention;
Fig. 3 is the schematic block diagram of diagram according to the terminal equipment of the embodiment of the present invention; And
Fig. 4 is the flow chart of diagram according to the battery verification method of the embodiment of the present invention.
Embodiment
Describe in detail with reference to the accompanying drawings according to each embodiment of the present invention.Here it is to be noted that it in the accompanying drawings, identical Reference numeral is given there is identical or similar structures and function part substantially, and the repeated description of will omit about them.
Below, with reference to Fig. 1, the battery unit according to the embodiment of the present invention is described.Fig. 1 is the schematic block diagram of diagram according to the battery unit of the embodiment of the present invention.Here, according to the battery unit of the embodiment of the present invention can be the rechargeable battery (e.g., lithium battery) of the terminal equipment for such as notebook computer and so on.
As shown in Figure 1, battery interface unit 11 and battery management unit 12 can be comprised according to the battery unit 1 of the embodiment of the present invention.
Battery interface unit 11 can be realized by arbitrary battery interface, and connects with the corresponding battery interface of the terminal part (terminal equipment does not comprise the part of battery unit) of terminal equipment.Here, electric power can be provided by battery interface unit 11 to terminal part, and can with terminal part exchange message.
Battery management unit 12 can by arbitrary microcontroller implementation.Battery management unit 12 can perform battery unit 1 and verify with the battery of terminal part.According to embodiments of the invention, battery management unit 12 supports the first battery Validation Mode (e.g., SHA1 pattern) and the second battery Validation Mode (e.g., ECC pattern).
According to embodiments of the invention, terminal part be connected with battery unit 1 (as, battery unit 1 is arranged on terminal part) time, or when the control unit of terminal part resets, battery management unit 12 receives the random verification code from terminal part by battery interface unit 11.After receiving the random verification code from terminal part, battery management unit 12 judges the length of random verification code.Then, battery management unit 12 determines whether to perform battery checking by the first battery Validation Mode or the second battery Validation Mode based on the length of random verification code, and to the auth response of terminal part feedback battery.
Particularly, after receiving the random verification code from terminal part, battery management unit 12 judges the length of random verification code.Such as, if battery management unit 12 determines that the length of random verification code is the first length, then battery management unit 12 performs battery checking by the first battery Validation Mode, and by battery interface unit 11 to the auth response of terminal part feedback battery.Here, such as, when the first battery Validation Mode is SHA1 pattern, the length of its random verification code is generally 20 bytes.Therefore, when the length that battery management unit 12 determines random verification code is 20 byte, battery management unit 12, by SHA1 pattern, performs battery based on obtained random verification code and verifies and produce battery auth response.
In addition, if the length of random verification code is the second length, then battery management list 12 yuan performs battery checking by the second battery Validation Mode, and by battery interface unit 11 to the auth response of terminal part feedback battery.Here, such as, when the second battery Validation Mode is ECC pattern, the length of its random verification code is generally 17 bytes.Therefore, when the length that battery management unit 12 determines random verification code is 17 byte, battery management unit 12, by ECC pattern, performs battery based on obtained random verification code and verifies and produce battery auth response.Here it is to be noted that it owing to being known to those skilled in the art by the battery verification process of SHA1 pattern and the execution of ECC pattern, be therefore omitted here the detailed description about them.
In addition, if the length of random verification code is neither the first length (20 byte), be not the second length (17 byte) yet, then battery management list 12 yuan determines that battery unit 1 does not mate with terminal part, and by battery interface unit 11 to the unmatched battery auth response of terminal part feedback pilot cell.
Here, be 20 bytes with the first length, the second length is 17 bytes, and the first battery Validation Mode is SHA1 pattern, and the second battery Validation Mode be ECC pattern is that example is described.But the present invention is not limited thereto, battery unit 1 can also adopt other battery Validation Mode.In this case, because the random verification code of other battery Validation Mode may change according to design needs, therefore when battery unit 1 supports other battery Validation Mode, 20 bytes described before the first length and the second length are not limited to and 17 bytes.In addition, battery unit 1 can also support two or more battery Validation Modes.In this case, the description judging to perform the mode of which kind of battery checking and Fig. 1 based on the length of random verification code due to battery unit 1 is similar, therefore repeats no more here.
By above-mentioned configuration, battery unit 1 can support multiple battery Validation Mode, and judges to need to perform any battery Validation Mode based on the length of the random verification code received.In this case, battery unit 1 can support different types of battery Validation Mode terminal equipment (as, Thinkpad supports ECC pattern, and Ideapad supports SHA1 pattern) between general, and do not affect the battery verification the verifying results of battery unit 1.
Below, with reference to Fig. 2, the battery verification method according to the embodiment of the present invention is described.Battery verification method shown in Fig. 2 can be applied to the battery unit 1 of the support first battery Validation Mode shown in Fig. 1 and the second battery Validation Mode.
As shown in Figure 2, in step S201, when terminal part is connected with battery unit, receive the random verification code from terminal part.
Particularly, terminal part be connected with battery unit 1 (as, battery unit 1 is arranged on terminal part) time, or when the control unit of terminal part resets, battery management unit 12 receives the random verification code from terminal part by battery interface unit 11.
In step S202, judge the length of random verification code.
Particularly, after receiving the random verification code from terminal part, battery management unit 12 judges the length of random verification code.Such as, battery management unit 12 judges the length of random verification code by the byte number calculating received random verification code.
In step S203, the length based on random verification code determines whether to perform battery checking by the first battery Validation Mode or the second battery Validation Mode.
Particularly, if battery management unit 12 determines that the length of random verification code is the first length, then battery management unit 12 performs battery checking by the first battery Validation Mode.Here, such as, when the first battery Validation Mode is SHA1 pattern, the length of its random verification code is generally 20 bytes.Therefore, when the length that battery management unit 12 determines random verification code is 20 byte, battery management unit 12, by SHA1 pattern, performs battery based on obtained random verification code and verifies and produce battery auth response.
In addition, if the length of random verification code is the second length, then battery management list 12 yuan performs battery checking by the second battery Validation Mode.Here, such as, when the second battery Validation Mode is ECC pattern, the length of its random verification code is generally 17 bytes.Therefore, when the length that battery management unit 12 determines random verification code is 17 byte, battery management unit 12, by ECC pattern, performs battery based on obtained random verification code and verifies and produce battery auth response.
In addition, if the length of random verification code is neither the first length (20 byte), also be not the second length (17 byte), then battery management list 12 yuan determines that battery unit 1 does not mate with terminal part, and produces the unmatched battery auth response of pilot cell.
Then, in step S204, to the auth response of terminal part feedback battery.
Particularly, after battery management list 12 produces battery auth response based on the first battery Validation Mode or the second battery Validation Mode, or after battery management unit 12 produces the unmatched battery auth response of pilot cell, battery management list 12 feeds back battery auth response by battery interface unit 11 to terminal part.
Below, with reference to Fig. 3, the terminal equipment according to the embodiment of the present invention is described.Fig. 3 is the schematic block diagram of diagram according to the terminal equipment of the embodiment of the present invention.Here, the terminal equipment shown in Fig. 3 can be notebook computer.
As shown in Figure 3, terminal equipment 3 can comprise battery compartment 31 and terminal part 32, and wherein terminal part 32 is the part of terminal equipment removing battery compartment 31.
Here, similar with the description of Fig. 1, battery compartment 31 can comprise battery interface unit 311 and battery management unit 312.
Battery interface unit 311 connects with the corresponding battery interface of the terminal part 32 of terminal equipment, and can by battery interface unit 11 to terminal part 32 electric power is provided and with terminal part 32 exchange message.Battery management unit 312 can perform battery compartment 31 and verify with the battery of terminal part 32.Here, battery management unit 12 supports the first battery Validation Mode (e.g., SHA1 pattern) and the second battery Validation Mode (e.g., ECC pattern).
Terminal part 32 can comprise control unit 321.Control unit 321 can be realized by embedded controller (EC).Control unit 321 can send random verification code under predetermined circumstances, and analyzes the battery auth response that battery compartment 31 feeds back.
According to embodiments of the invention, terminal part 32 be connected with battery compartment 31 (as, battery compartment 31 is inserted terminal part 32) time, or control unit 321 reset (as, restarting of terminal equipment 3) time, control unit 321 sends random verification code to battery compartment 13.Here, according to the difference of the battery Validation Mode that terminal part 32 is supported, the control unit 321 of dissimilar terminal part 32 can send the random verification code with different length.Such as, when terminal part 32 supports the first battery Validation Mode (e.g., SHA1 pattern), control unit 321 can send the random verification code with the first length (e.g., 20 bytes).In addition, when terminal part 32 supports the second battery Validation Mode (e.g., ECC pattern), control unit 321 can send the random verification code with the second length (e.g., 17 bytes).
In this case, similar with the description for Fig. 1, the battery management unit 312 of battery compartment 31 receives the random verification code from terminal part 32 by battery interface unit 311.After receiving the random verification code from terminal part 32, battery management unit 312 judges the length of random verification code.Then, battery management unit 312 determines whether to perform battery checking by the first battery Validation Mode or the second battery Validation Mode based on the length of random verification code, and feeds back battery auth response to terminal part 32.
Particularly, after receiving the random verification code from terminal part 32, battery management unit 312 judges the length of random verification code.Such as, if battery management unit 312 determine the length of random verification code be the first length (as, 20 bytes), then battery management unit 312 performs battery by the first battery Validation Mode (SHA1 pattern) and verifies and produce battery auth response, and feeds back battery auth response by battery interface unit 311 to terminal part 32.In addition, if the length of random verification code be the second length (as, 17 bytes), then battery management list 312 yuan is verified by the second battery Validation Mode execution battery and is produced battery auth response, and feeds back battery auth response by battery interface unit 311 to terminal part 32.In addition, if the length of random verification code is neither the first length (20 byte), be not the second length (17 byte) yet, then battery management list 312 yuan determines that battery compartment 31 does not mate with terminal part 32, and feeds back the unmatched battery auth response of pilot cell by battery interface unit 311 to terminal part 32.
Here, according to embodiments of the invention, the control unit 321 of terminal part 32 also performs corresponding battery verification process.Here, control unit 321 can perform corresponding battery verification process immediately after transmission random verification code, or when receiving battery auth response from battery compartment 31, performs corresponding battery verification process.
Such as, when terminal part 32 supports the first battery Validation Mode (e.g., SHA1 pattern), control unit 321 sends the random verification code with the first length (e.g., 20 bytes) to battery compartment 31.Then control unit 321 is by the first battery Validation Mode, performs battery checking, and produce the first battery the result (e.g., the battery the result of SHA1 pattern) based on this random verification code.In addition, if control unit 321 receives the battery auth response from battery compartment 31, then control unit 321 is analyzed from the battery auth response of battery compartment 31 and the first battery the result.Here, if battery compartment 31 is the battery units according to the embodiment of the present invention, then battery compartment 31 also correspondingly should perform the first battery Validation Mode (SHA1 pattern) and feed back battery auth response.When the first battery Validation Mode is SHA1 pattern, control unit 321 compares from the battery auth response of battery compartment 31 and the first battery the result, if the two is identical, then control unit 321 can determine that battery compartment 31 is for legal battery.In addition, if the two is different, then control unit 321 can determine that battery compartment 31 is for non-legally battery.
In addition, when terminal part 32 supports the second battery Validation Mode (e.g., ECC pattern), control unit 321 sends the random verification code with the second length (e.g., 17 bytes) to battery compartment 31.Then control unit 321 is by the second battery Validation Mode, performs battery checking, and produce the second battery the result (e.g., the battery the result of ECC pattern) based on this random verification code.In addition, if control unit 321 receives the battery auth response from battery compartment 31, then control unit 321 is analyzed from the battery auth response of battery compartment 31 and the second battery the result.Here, if battery compartment 31 is the battery units according to the embodiment of the present invention, then battery compartment 31 also correspondingly should perform the second battery Validation Mode (ECC pattern) and feed back battery auth response.When the second battery Validation Mode is ECC pattern, control unit 321 compares from the battery auth response of battery compartment 31 and the second battery the result, if the two matches (mutually corresponding), then control unit 321 can determine that battery compartment 31 is legal battery.In addition, if the two does not mate (not corresponding), then control unit 321 can determine that battery compartment 31 is for non-legally battery.
Here, determine that battery compartment 31 is for before non-legally battery at control unit 321, control unit 321 can also repeat above-mentioned process for several times, to guarantee that battery verification process can not be subject to the impact of data transmission fault (e.g., losing data).In addition, determine that battery compartment 31 is for after non-legally battery at control unit 321, control unit 321 can point out battery compartment 31 to be non-legally battery to user.Such as, control unit 321 can show the information about non-legally battery on the display screen of terminal equipment 3, or the flicker of the power lights of terminal equipment can be made to point out user using non-legally battery.
By above-mentioned configuration, even if the terminal part 32 of terminal equipment 3 supports different battery Authentication-Types, battery compartment 31 also can support that different battery Authentication-Types is general, and the battery Authentication-Type can supported according to terminal part 32 adjusts used battery Validation Mode adaptively, and terminal equipment 32 can be made thus to complete battery verification process.
Below with reference to Fig. 4, the battery verification method according to the embodiment of the present invention is described.Fig. 4 is the flow chart of diagram according to the battery verification method of the embodiment of the present invention.Here, the battery verification method of Fig. 4 can be applied on the terminal equipment 3 shown in Fig. 3.
As shown in Figure 4, in step S401, be connected with battery compartment at terminal part, or when the control unit of terminal part resets, send random verification code to battery compartment.
Particularly, when terminal part 32 is connected (e.g., battery compartment 31 being inserted terminal part 32) with battery compartment 31, or control unit 321 reset (as, restarting of terminal equipment 3) time, control unit 321 sends random verification code to battery compartment 13.Here, according to the difference of the battery Validation Mode that terminal part 32 is supported, the control unit 321 of dissimilar terminal part 32 can send the random verification code with different length.Such as, when terminal part 32 supports the first battery Validation Mode (e.g., SHA1 pattern), control unit 321 can send the random verification code with the first length (e.g., 20 bytes).In addition, when terminal part 32 supports the second battery Validation Mode (e.g., ECC pattern), control unit 321 can send the random verification code with the second length (e.g., 17 bytes).
In step S402, receive the random verification code from terminal part.
Particularly, the battery management unit 312 of battery compartment 31 receives random verification code from terminal part 32 by battery interface unit 311.
In step S403, judge the length of random verification code.
Particularly, after receiving the random verification code from terminal part 32, battery management unit 312 judges the length of random verification code.
Then, in step S404, the length based on random verification code determines whether to perform battery checking by the first battery Validation Mode or the second battery Validation Mode, and to the auth response of terminal part feedback battery.
Particularly, such as, if battery management unit 312 determine the length of random verification code be the first length (as, 20 bytes), then battery management unit 312 performs battery by the first battery Validation Mode (SHA1 pattern) and verifies and produce battery auth response, and feeds back battery auth response by battery interface unit 311 to terminal part 32.In addition, if the length of random verification code be the second length (as, 17 bytes), then battery management list 312 yuan is verified by the second battery Validation Mode execution battery and is produced battery auth response, and feeds back battery auth response by battery interface unit 311 to terminal part 32.In addition, if the length of random verification code is neither the first length (20 byte), be not the second length (17 byte) yet, then battery management list 312 yuan determines that battery compartment 31 does not mate with terminal part 32, and feeds back the unmatched battery auth response of pilot cell by battery interface unit 311 to terminal part 32.
Be described above the battery verification method according to the embodiment of the present invention.In addition, the method shown in Fig. 4 can also be included in terminal part and also perform corresponding battery verification process, produces battery the result, and battery the result and battery auth response is carried out analyzing and judge that whether battery compartment is the step of legal battery.Here, this step can perform immediately after step S401, also can perform after step S404.
Particularly, such as, terminal part 32 support the first battery Validation Mode (as, SHA1 pattern) when, control unit 321 is by the first battery Validation Mode, perform battery checking based on this random verification code, and produce the first battery the result (e.g., the battery the result of SHA1 pattern).In addition, if control unit 321 receives the battery auth response from battery compartment 31, then control unit 321 is analyzed from the battery auth response of battery compartment 31 and the first battery the result.In this case, if the two is identical, then control unit 321 can determine that battery compartment 31 is for legal battery.In addition, if the two is different, then control unit 321 can determine that battery compartment 31 is for non-legally battery.In addition, terminal part 32 support the second battery Validation Mode (as, ECC pattern) when, control unit 321 is by the second battery Validation Mode, battery checking is performed based on this random verification code, and produce the second battery the result (e.g., the battery the result of ECC pattern).According to embodiments of the invention, if control unit 321 receives the battery auth response from battery compartment 31, control unit 321 is analyzed from the battery auth response of battery compartment 31 and the second battery the result.In this case, if the two matches (mutually corresponding), then control unit 321 can determine that battery compartment 31 is legal battery.In addition, if the two does not mate (not corresponding), then control unit 321 can determine that battery compartment 31 is for non-legally battery.
Each embodiment of the present invention is described in detail above.But, it should be appreciated by those skilled in the art that without departing from the principles and spirit of the present invention, various amendment can be carried out to these embodiments, combination or sub-portfolio, and such amendment should fall within the scope of the present invention.

Claims (12)

1. a battery unit, comprising:
Battery interface unit, configuration is connected with terminal part, and provides electric power to described terminal part; And
Battery management unit, configuration performs battery unit and mates with the battery of terminal part, and support the first battery Validation Mode and the second battery Validation Mode, the battery Authentication-Type can supported according to described terminal part adjusts used battery Validation Mode adaptively
Wherein when described terminal part is connected with described battery unit, described battery management unit receives the random verification code from described terminal part by described battery interface unit;
Described battery management unit judges the length of described random verification code; And
Length based on described random verification code determines whether to perform battery checking by described first battery Validation Mode or described second battery Validation Mode, and to the auth response of described terminal part feedback battery.
2. battery unit as claimed in claim 1, wherein
If the length of described random verification code is the first length, then described battery management unit performs battery checking by described first battery Validation Mode, and to the auth response of described terminal part feedback battery; And
If the length of described random verification code is the second length, then described battery management unit performs battery checking by described second battery Validation Mode, and to the auth response of described terminal part feedback battery.
3. battery unit as claimed in claim 2, wherein
Described first length is 20 bytes, and described first battery Validation Mode is SHA1 pattern; And
Described second length is 17 bytes, and described second battery Validation Mode is ECC pattern.
4. one kind is applied to the battery verification method of battery unit, described battery unit supports the first battery Validation Mode and the second battery Validation Mode, and can adjust used battery Validation Mode adaptively according to the battery Authentication-Type of terminal part support, described method comprises:
When terminal part is connected with described battery unit, receive the random verification code from described terminal part;
Judge the length of described random verification code;
Length based on described random verification code determines whether to perform battery checking by described first battery Validation Mode or described second battery Validation Mode; And
To the auth response of described terminal part feedback battery.
5. battery verification method as claimed in claim 4, wherein
If the length of described random verification code is the first length, then perform battery checking by described first battery Validation Mode, and to the auth response of described terminal part feedback battery; And
If the length of described random verification code is the second length, then perform battery checking by described second battery Validation Mode, and to the auth response of described terminal part feedback battery.
6. battery verification method as claimed in claim 5, wherein
Described first length is 20 bytes, and described first battery Validation Mode is SHA1 pattern; And
Described second length is 17 bytes, and described second battery Validation Mode is ECC pattern.
7. a terminal equipment, comprising:
Terminal part, comprising:
Control unit, configuration sends random verification code, and analyzes the battery auth response of battery compartment feedback;
Battery compartment, comprising:
Battery interface unit, configuration is connected with terminal part, and provides electric power to described terminal part; And
Battery management unit, configuration performs battery unit and mates with the battery of terminal part, and support the first battery Validation Mode and the second battery Validation Mode, the battery Authentication-Type can supported according to described terminal part adjusts used battery Validation Mode adaptively
Wherein
When described terminal part is connected with described battery compartment or described control unit resets, described control unit sends described random verification code to described battery compartment;
Described battery management unit receives the random verification code from described terminal part by described battery interface unit;
Described battery management unit judges the length of described random verification code; And
Length based on described random verification code determines whether to perform battery checking by described first battery Validation Mode or described second battery Validation Mode, and to the auth response of described terminal part feedback battery.
8. terminal equipment as claimed in claim 7, wherein
If the length of described random verification code is the first length, then described battery management unit performs battery checking by described first battery Validation Mode, and to the auth response of described terminal part feedback battery; And
If the length of described random verification code is the second length, then described battery management unit performs battery checking by described second battery Validation Mode, and to the auth response of described terminal part feedback battery.
9. terminal equipment as claimed in claim 8, wherein
Described first length is 20 bytes, and described first battery Validation Mode is SHA1 pattern; And
Described second length is 17 bytes, and described second battery Validation Mode is ECC pattern.
10. terminal equipment as claimed in claim 7, wherein
If the length of described random verification code is the first length, then described control unit performs battery checking by described first battery Validation Mode, based on battery checking generation first battery the result; And
Described first battery the result and the battery auth response from described battery compartment are analyzed by described control unit; And
If described first battery the result mates with the battery auth response from described battery compartment, then control unit judges that described battery compartment is legal battery.
11. terminal equipments as claimed in claim 7, wherein
If the length of described random verification code is the second length, then described control unit performs battery checking by described second battery Validation Mode, based on battery checking generation second battery the result; And
Described second battery the result and the battery auth response from described battery compartment are analyzed by described control unit; And
If described second battery the result mates with the battery auth response from described battery compartment, then control unit judges that described battery compartment is legal battery.
12. 1 kinds of battery verification methods, be applied to terminal equipment, described terminal equipment comprises terminal part and battery compartment, and the battery Authentication-Type that described battery compartment can be supported according to described terminal equipment adjusts used battery Validation Mode adaptively, and described battery verification method comprises:
When described terminal part is connected with described battery compartment or the control unit of described terminal part resets, send random verification code to described battery compartment;
Receive the random verification code from described terminal part;
Judge the length of described random verification code; And
Length based on described random verification code determines whether to perform battery checking by the first battery Validation Mode or the second battery Validation Mode, and to the auth response of described terminal part feedback battery.
CN201210064033.3A 2012-03-12 2012-03-12 Battery unit, terminal equipment and battery verification method Active CN103311584B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210064033.3A CN103311584B (en) 2012-03-12 2012-03-12 Battery unit, terminal equipment and battery verification method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210064033.3A CN103311584B (en) 2012-03-12 2012-03-12 Battery unit, terminal equipment and battery verification method

Publications (2)

Publication Number Publication Date
CN103311584A CN103311584A (en) 2013-09-18
CN103311584B true CN103311584B (en) 2016-03-30

Family

ID=49136554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210064033.3A Active CN103311584B (en) 2012-03-12 2012-03-12 Battery unit, terminal equipment and battery verification method

Country Status (1)

Country Link
CN (1) CN103311584B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103607505A (en) * 2013-11-13 2014-02-26 四川长虹电器股份有限公司 Mutual verification-based mobile phone and charger thereof, and working method thereof
CN104682522B (en) * 2015-03-30 2017-06-16 北京中科盛康科技有限公司 A kind of charger for battery
CN106291383A (en) * 2016-08-25 2017-01-04 乐视控股(北京)有限公司 Battery detection method and battery check device
CN111327626B (en) * 2020-03-03 2022-07-22 英华达(上海)科技有限公司 Method and system for verifying and exchanging battery data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1444835A (en) * 2000-08-03 2003-09-24 奥林奇私人通讯服务有限公司 Authentication in mobile communications network
CN1779743A (en) * 2004-11-26 2006-05-31 索尼计算机娱乐公司 Battery and authentication requesting device
CN101438219A (en) * 2006-03-10 2009-05-20 爱特梅尔公司 Random number generator in a battery pack
CN101655814A (en) * 2008-08-18 2010-02-24 联想(北京)有限公司 Method for authenticating smart battery and terminal
CN102111272A (en) * 2010-12-24 2011-06-29 武汉天喻信息产业股份有限公司 Method for authenticating external equipment by using mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9100418B2 (en) * 2008-08-21 2015-08-04 GM Global Technology Operations LLC Adaptive data verification for resource-constrained systems

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1444835A (en) * 2000-08-03 2003-09-24 奥林奇私人通讯服务有限公司 Authentication in mobile communications network
CN1779743A (en) * 2004-11-26 2006-05-31 索尼计算机娱乐公司 Battery and authentication requesting device
CN101438219A (en) * 2006-03-10 2009-05-20 爱特梅尔公司 Random number generator in a battery pack
CN101655814A (en) * 2008-08-18 2010-02-24 联想(北京)有限公司 Method for authenticating smart battery and terminal
CN102111272A (en) * 2010-12-24 2011-06-29 武汉天喻信息产业股份有限公司 Method for authenticating external equipment by using mobile terminal

Also Published As

Publication number Publication date
CN103311584A (en) 2013-09-18

Similar Documents

Publication Publication Date Title
CN103311584B (en) Battery unit, terminal equipment and battery verification method
CN101848114B (en) Fault detection method and device
CN103345602B (en) A kind of client-side code integrality detection, device and system
CN108848163A (en) The upgrade method and TWS earphone of TWS earphone
CN105320598A (en) Software testing method and device
CN103888422A (en) Security certificate updating method, client and server
CN105897461A (en) Multi-system OTA upgrading method and multi-system device
CN104080086A (en) Wireless connection establishment method and wireless connection establishment device
CN103747013A (en) Cloud terminal login verification method and device
CN109063489A (en) A kind of starting method and device
CN105180378A (en) Air conditioner and upgrading control method and device thereof
US8581751B2 (en) Multi-cell voltage secure data encoding in hybrid vehicles
CN105786636B (en) A kind of system repair and device
CN111614548A (en) Message pushing method and device, computer equipment and storage medium
US20170074944A1 (en) Test system and method for testing a battery pack
CN109471779A (en) Board state monitoring method, micro-control unit, server and storage medium
CN106707194B (en) Rechargeable battery detection method and electronic equipment
CN112152825B (en) Multi-stage module upgrading method and device for household appliance and electronic equipment
CN105550276A (en) Method and apparatus for judging completeness of audio upgrading file in network
JP2017073966A (en) Power storage system and power storage method
CN110045969A (en) Application program installation method, server, system, equipment and storage medium
CN102958202B (en) wireless router, access device and system
CN105549995A (en) Audio device upgrading method and apparatus
CN103188084B (en) Method, system and the broadcasting server of a kind of broadcasting user picture
CN102761520B (en) Method and system for processing authentication information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant