The content of invention
Technology of the present invention is dealt with problems and is: provide a kind of and can discern the personation battery, can avoid palming off the solution of the damage that charger causes true battery charge again, and system scale is little, simple in structure, cost is low, and is low in energy consumption.
Technical solution of the present invention is: Recharageable battery antiforge system; its characteristics are: send the signal identification division of identification code and being used to of in the battery protection chip, increasing to battery and receive identification code and the signal processing part that the calculation process result feeds back to charger is grouped into by being contained in the charger, the communication between signal identification division and the signal processing during by charging the splicing ear of charger and battery realize.If battery is a counterfeit when charging, charger will be refused charging, if the battery formal dress is on mobile phone at this moment, charger will stop the power supply of mobile phone is come to User Alarms; If battery is filled independent charging with by present, can see that charging indicator light extinguishes.Its principle is: the signal identification division sends the pending signal be used to discern to battery, receives signal section in the battery then to this Signal Processing result, by result's judgement being determined the true and false of battery; And signal processing is used for receiving identification signal that identification division sends and handle according to the algorithm of maintaining secrecy, if can draw the discriminating that correct result has passed through the signal identification division, illustrates that battery is not a counterfeit.Simultaneously, if charger can not send normally begin, end signal, battery can not be recharged yet, and has so realized battery false proof to charger yet, has stopped with pretending to be damage that electrical equipment causes battery charge.
The signal identification division is by the signal identification chip and constituted by one group of power device of its control, wherein the signal identification chip in the signal identification division is made up of signal identification controller, clock sum counter, load sensor, read-only memory (ROM), signal modulator, current-voltage (I/V) transducer, signal amplifier, information-storing device and feedback detector, the signal identification controller is connected with above-mentioned each module, is used to carry out State Control; Clock is used to control dominant frequency and operating time, and is connected with counter; Counter is used for the expression system and sends the identification signal number of times and be used for controlling each transmission time of implementation; Load sensor detects the signal that the voltage jump when inserting battery produces, and the notification signal identification controller is started working; The coding (information of correct result) of ROM storage identification code and identification code, the coding of identification code is used for the check to feedback signal; Signal modulator sends commencing signal under the control of signal identification controller, and is that identification code is modulated and exported to the output of ROM; I/V transducer, signal amplifier, information-storing device convert the feedback signal that current forms transmits to voltage form, after the signal amplification, the content that the useful information detection feedback that storage is used for differentiating reads memory compares with the information that has the correct result among the ROM, and whether the checking feedback is correct.
Signal processing is by Voltage stabilizing module, signal processing controller, demodulator, signal amplifier, arithmetic unit, charging determining device and voltage-to-current (V/I) transducer are formed, the Voltage stabilizing module filtering is modulated at the identification signal on the supply voltage, provide burning voltage to each module as operating voltage, signal processing controller is connected with above-mentioned each module respectively and it is controlled, demodulator, signal amplifier is isolated beginning from identification signal, end signal and identification code also are enlarged into digital signal, deliver to signal processing controller and arithmetic unit respectively, arithmetic unit carries out computing to isolated identification code and obtains a result, through the V/I transducer operation result is converted to current forms by voltage form again, be modulated on the electric current, feed back to the signal identification chip.
The splicing ear of charger and battery was realized when charging was passed through in the communication between signal identification division and the signal processing.Signal in the signal identification division is modulated at by the signal identification division and supplies with on the supply voltage of signal processing, i.e. the positive pole that charges the battery of charger; Signal processing adopts the current-modulation mode to transmit feedback information by the charger negative pole.Serial communication mode is adopted in the data communication of signal identification division and signal processing.
The advantage that the present invention compared with prior art has is: Circuits System is simple, small scale; existing systems is not required big change; be easy to realize; because the protective circuit of in battery, having utilized battery self to have; do not increase chip separately again, utilize existing connection resource to finish entire identification process.In addition, charger and battery are discerned mutually, are difficult for personation.
The present invention is described in more detail below in conjunction with drawings and Examples.
Embodiment
As shown in Figure 1, signal identification division in the charger sends identification code with the splicing ear (positive pole) of voltage modulated mode by charger and battery to battery, assign to receive and handle by signal processing part, then result is fed back to charger with the splicing ear (negative pole) of current-modulation mode by charger and battery, the identification division of charger is again by determining the true and false of battery to the judgement of feedback result.Signal identification division in the charger is connected on the output of charger, and signal processing is controlled the power supply of battery protecting circuit in the battery protection chip.Serial communication mode is adopted in the data communication of signal identification division and signal processing, and carry out simultaneously during the transmission of identification signal and feedback signal, promptly when identification signal transmits, charger is handled, obtain a result.
As shown in Figure 2, it in the fine rule frame signal identification division, it is that two selector switches 1 and selector switch 2 are formed by a block signal identification chip independent in the bold box and one group of power device, and the signal identification chip is made up of signal identification controller, clock sum counter, load sensor, ROM, information modulator, I/V transducer, signal amplifier, information-storing device and feedback detector.The signal identification controller is used for the module of entire chip is carried out State Control, for example the selection signal of the reading of data, selector, detection feedback sequential etc. among counter reset, the ROM, the voltage jump when load sensor detects battery and inserts produces signalisation signal identification controller and starts working.Clock is used for the Control work dominant frequency, counter sends the counter 1 (state) of identification signal number of times by the expression system and is used for controlling the calculator 2 (step) of each transmission time of implementation to be formed, their value is used for representing system's current working state, do not receive correct feedback yet when information code sends several times, charger differentiate battery be forge and quit work.ROM is used for storing data, and the data packet of storage is drawn together two parts: the coding of identification code and identification code, identification code are used for sending to signal processing, and the coding of identification code is used for the check to feedback signal.The function of information modulator is under the control of controller, send commencing signal earlier, output to ROM is that identification code is modulated and exported then, under controller control, send stop signal after receiving correct feedback, the signal modulation is subtracted each other realization with specific DC level and identification signal, send the preceding beginning of identification signal, end signal can subtract each other acquisition by a DC level and a level greater than (for example twice) identification signal amplitude, in order to guarantee the operate as normal of portable terminal and signal processing chip in the identifying, the signal voltage after the modulation is controlled in the normal working voltage scope of portable terminal.The function of I/V transducer, signal amplifier, information-storing device, feedback detector, be that the feedback signal that current forms transmits is converted to voltage form, after the signal amplification, the useful information that storage is used to differentiate, after an identification code sends end, the content that detection feedback reads in the memory compares with the information that has the correct result among the ROM, and whether the checking feedback is correct.Because the restriction of battery and charger contact point quantity, the signal in the signal identification division are modulated at by the signal identification division and supply with on the supply voltage of signal processing, i.e. the positive pole that charges the battery of charger.Therefore, the signal identification division adopts the voltage modulated mode by the original recognition data of the anodal transmission of charger.
As shown in Figure 3, the workflow of signal identification division is: when charger was not worked, the positive electricity that selector switch is connected charging usefulness was pressed onto OUT+.When battery inserted charger, load detecting detected voltage jump, thereby produced signal activation signal identification controller, simultaneously counter reset, connected modulator and outputed to OUT+.At first, under the control of signal identification controller, signal modulator sends commencing signal, and after this, selector switch is OUT-access module " I/V conversion ", the feedback of ready-to-receive signal processing section.Commencing signal is a big change in voltage of the normal signal amplitude of ratio, is used for the signal processing controller of notification signal processing section to start working.After the above release, the initialization information memory cell begins to send identification code; Simultaneously, the I/V transducer is converted into voltage form to the information that is modulated on the electric current that fed back by signal processing, through extracting the information stores that is used for differentiating after amplifying in memory cell.After identification signal sent, the storage of feedback was also finished.Differentiate the result this moment.If feedback result is correct, the controller control signal modulator sends end signal, and notification signal processing section end of identification inserts battery and begins charging; Two selector switches are connected charging circuits and are charged, otherwise carry out transmission, processing, the identifying of identification signal again, are used to simultaneously to represent that the value that identification code sends the counter 1 (state) of number of times adds one.Carried out continuously still not obtaining correct feedback for several times when count value acquires a certain degree promptly to discern, charger will quit work.
The structure of identification signal is that the each length that sends of signal is 64bit, and preceding 33bit exists among the ROM, is to be 1 16bit ordered series of numbers with 0 two groups of identical first places that separate, and all the other positions are additional with 0.
1 | DATA(15bit) | 0 | 1 | DATA(15bit) | 0(31bit) |
As shown in Figure 4, because the restriction of battery and charger contact point quantity, can't when transmitting signal, transmit the unified synchronous clock that is used between two parts of system, so signal processing adopts unclocked design, and adopt the mode of feedback in real time, promptly when transmitting identification signal, it is carried out computing and produces feedback.
Signal processing is made up of Voltage stabilizing module, signal processing controller, demodulator, signal amplifier, arithmetic unit, charging determining device and V/I transducer, the function that Voltage stabilizing module is finished is, because the signal identification division offers on the operating voltage of chip and has modulated identification signal, so will from the change voltage filtered signal, produce the power supply of stable voltage as each module operate as normal.The function of charging determining device is, when battery is connected on the charger, the charging determining device produces the signal activation signal processing controller, after signal processing controller is activated, to control each module and enter status recognition, and identification process controlled, demodulator, signal amplifier is isolated beginning from identification signal, end signal and identification code also are enlarged into digital signal, deliver to signal processing controller and arithmetic unit respectively, the function of arithmetic unit is, to demodulator is arranged, the isolated identification code of amplifier is carried out computing and is obtained a result, and through the V/I transducer operation result is converted to current forms by voltage form again, be modulated on the electric current, feed back to the signal identification chip.Therefore, signal processing adopts the current-modulation mode to transmit feedback information by the charger negative pole.
As shown in Figure 5, the flow process of signal processing is: signal processing controller is connected the protective circuit of battery when the initial condition of chip, and this moment, battery can regular picture.When battery is connected on the charger, the charging arbitration functions in the protective circuit will be made respective reaction, and the determining device that charges this moment detects this variation, produces the signal activation signal processing controller.After signal processing controller is activated, at first disconnect being connected of input IN+ and battery protecting circuit, thereby promptly stop charging circuit to battery protecting circuit power supply cut-out battery; Simultaneously IN+ is inserted demodulator, amplifier, enter status recognition.When signal processing controller receives by the isolated commencing signal of demodulator, connect arithmetic unit, simultaneously identification code is sent into, begin processing to identification code.The V/I conversion changes into current forms with different operation results and is modulated on the total current; feed back to the signal identification division; when signal processing controller receives by demodulator behind the isolated end signal, IN+ reconnects to battery protecting circuit input, the time battery enter the state of being recharged.
As shown in Figure 6, two selector switches are used for selecting the passage that connects under the control of signal identification controller.Among Fig. 2 since when charging electric current very big, common device can not bear, and use power device to realize, therefore two selector switches will be placed on outside the chip.When control end is low level, P channel mosfet Mp1 conducting, P channel mosfet Mp2 by, the input in2 be output.On the contrary, when control end ctrl is high level, the Mp2 conducting, Mp1 by, the input in1 be output.
As shown in Figure 7, signal modulator is the subtraction circuit that is made of two amplifiers of A71, A72, the function that this circuit is realized is that supply voltage deducts input signal, the voltage VOUT of gained promptly is the stack of supply voltage and inversion signal, is selected from the less identification code of the bigger beginning of amplitude, end signal and amplitude under the control of controller by cut signal.
As shown in Figure 8, load sensor is to produce signal triggering trigger (U81) by the differential circuit that two operational amplifiers (A81, A82) and peripheral circuit thereof constitute to realize.When input voltage jumped to low-voltage by high voltage, differential circuit was converted into pulse signal to this variation, was input to the trigger from clock end, made trigger output high level, and the notification signal identification controller is started working.
As shown in Figure 9, feedback detector compares the information (Q3Q2Q1Q0) that has the information of the correct result among the ROM and extract from feedback signal, has any difference all will output to the signal identification controller.Trigger among Fig. 9 all is to have the low level asynchronous resetting and high level is put several d type flip flops synchronously.The control truth table of shift register part is as follows among Fig. 9:
Zero clearing | Put number | Displacement | Realize function |
0 | X | X | Zero clearing | |
1 | 0 | 0 | Preservation state but do not export |
1 | 0 | 1 | Displacement, output |
1 | 1 | 0 | Read in data but do not export |
1 | 1 | 1 | Preservation state but do not export |
The discriminating of feedback information is: because feedback is real-time, identification code in having ROM sends when finishing, the storage of feedback information also should be through with, can put number (LOAD) to the value of storage this moment under clock control, and utilize displacement (SHIFT) and exist the correct result among the ROM to compare by turn.In addition, the feedback information memory can tentatively be judged canned data, if canned data does not meet rule, and will can be to the feedback detector output signal.
As shown in figure 10, current-voltage (I/V) change-over circuit is made up of two amplifier A101, A102 and resistance R 101-R105 thereof, the amplitude of output voltage Output_V changes with the variation of input current Input_I size, the size of R101 control output voltage gain.
As shown in figure 11, information stores is used for the extraction of information that feedback signal is used to detect, and before each identification code sent, memory was reset, and starts working then.As mentioned above, information-storing device can carry out preliminary detection to canned data, and the value that does not meet rule can not exported to feedback detector.
As shown in figure 12, signal processing is controlled it and mainly comprised three parts: output selects (D121, selector), end signal to detect (D122, D123) and identification code intercept signal generation (D124, D125).When beginning to charge, selector disconnects the power supply of battery protecting circuit, and beginning is exported to demodulator.When controller received by the isolated end signal of demodulator, the end signal test section resetted D121, connected the power supply of battery protecting circuit, made battery enter the state of being recharged.Simultaneously, D124, D125 produce that a high level from the commencing signal trailing edge to the end signal rising edge is used to intercept identification code and only by this high period, arithmetic unit just carries out computing.
As shown in figure 13, the demodulator of signal processing, amplifier core element are step-downs with diode and two inverter INV1 and INV2, after the input of signal via controller, carry out step-down earlier, so that make the median of the centered level of signal near supply voltage, help inverter and amplify, the amplitude of synchronous signal can not reduce.The upset level of INV1 is positioned at the center of the less identification code part of amplitude among Figure 13, consequently beginning, end signal and identification code part all is amplified to same amplitude, removes beginning, end signal by the identification code intercept signal; The counter-rotating level of INV2 will be obtained enough little, has only the bigger beginning of amplitude, end signal just can make its output high level.So just identification code and beginning, end signal are separated and zoom into the digital signal of enough amplitudes, simultaneously, the signal that is inverted during modulation in the signal identification division returns to correct phase place.Circuit is similar therewith for amplifier principle in the signal identification division, but has only one the tunnel.
As shown in figure 14, the V/I change-over circuit is made up of two amplifiers of A141, A142 and resistance R 141-R145, and the amplitude of output current Output_I changes with the changes in amplitude of input voltage Input_V, the amplitude size of R143 may command Output_I.
As shown in figure 15, the arithmetic unit of signal processing is made of a series of triggers.The control of clock when not required in the signal processing.
As shown in figure 16, after load inserts and is stable, the signal identification controller is connected modulator to exporting and send commencing signal, selector switch 2 is connected with the I/V conversion, begin to control ROM and modulator after the initialization feedback register and send identification code, finish etc. the identification code transmission, and after guaranteeing that feedback store finishes, information in the memory is read in feedback detector, and compares by turn with correct information among the ROM.If feedback is correct, signal identification controller control modulator sends end signal, makes two selector switches connect charging circuit simultaneously and begins charging, i.e. all outputs are changed to low by force.Counter quits work.If feed back incorrectly, the signal identification controller does not allow modulator to send end signal to connect charging circuit, but circulation sends identification code, and the state counter adds one.When the identification code circulation sent 7 still incorrect feedbacks, controller sent the refusal working signal, cuts off all outputs.For the signal identification controller, realize correct control timing when important, the implementation that specifically makes of circuit does not have special requirement.