CN102854907A - Tamper circuit based on STM32 chip - Google Patents
Tamper circuit based on STM32 chip Download PDFInfo
- Publication number
- CN102854907A CN102854907A CN201210276442XA CN201210276442A CN102854907A CN 102854907 A CN102854907 A CN 102854907A CN 201210276442X A CN201210276442X A CN 201210276442XA CN 201210276442 A CN201210276442 A CN 201210276442A CN 102854907 A CN102854907 A CN 102854907A
- Authority
- CN
- China
- Prior art keywords
- tamper
- stm32 chip
- charge
- switch
- battery
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 239000003990 capacitor Substances 0.000 claims abstract description 15
- 230000002265 prevention Effects 0.000 claims description 11
- 230000006870 function Effects 0.000 abstract description 7
- 230000035945 sensitivity Effects 0.000 abstract description 4
- 230000001105 regulatory effect Effects 0.000 description 5
- 238000001514 detection method Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003534 oscillatory effect Effects 0.000 description 1
Images
Landscapes
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The invention provides a tamper circuit based on an STM32 chip. The tamper circuit comprises a battery, a switch and a resistor-capacitor (RC) charge-discharge circuit, wherein the battery is respectively connected with one end of the switch and a real time clock (RTC) register in the STM32 chip and supplies power for the RTC register, the other end of the switch is connected with one end of the RC charge-discharge circuit, and the other end of the RC charge-discharge circuit is connected with a TAMPER pin of the STM32 chip. According to the tamper circuit, additional chips (ICs) are not required to be added to achieve tamper functions, the tamper time is easy to control, and the tamper circuit is high in tamper sensitivity, low in cost, good in performance and interference resistance characteristics and long in service life of the battery.
Description
[technical field]
The present invention relates to electronic information field, particularly a kind of decomposing prevention circuit based on the STM32 chip.
[background technology]
There is at present the terminal device of the security requirement of relating to that tamper machine function is arranged, still effective in order to ensure terminal device tamper function when cutting off the power supply, generally realize by button cell, RTC chip, described RTC chip is the English full name of a kind of real-time clock IC(RTC: Real Time Clock, Chinese: real-time clock; IC Chinese: chip), can increase like this cost of terminal device, and because button cell directly connects RTC chip power pin, only can not accurately control power supply discharge time by the decoupling capacitor that connects the RTC supply pin, if discharge time is too short, then vibration is fallen and is caused power supply moment to disconnect being prone to the mistake lock machine, if discharge time is long, then be prone to not lock machine, therefore tear the bad control of machine time of fire alarming open, be prone to by mistake lock machine or not lock machine phenomenon.
[summary of the invention]
The technical problem to be solved in the present invention is to provide a kind of decomposing prevention circuit based on the STM32 chip, and it does not need to increase extra IC and realizes the tamper function, the tamper time is easy to control, tamper is highly sensitive and have noiseproof feature, and cost is low, the good and battery of performance.
The present invention is achieved in that
A kind of decomposing prevention circuit based on the STM32 chip, comprise a battery, a switch and a RC charge-discharge circuit, described battery connects respectively an end of described switch and the RTC register of described STM32 chip internal, described battery is described RTC register power supply, the other end of described switch connects an end of described RC charge-discharge circuit, and the other end of described RC charge-discharge circuit connects the TAMPER pin of described STM32 chip.
Further, described RC charge-discharge circuit is to be composed in parallel successively by a capacitor C 1, a capacitor C 2 and a resistance R 1 three.
Further, the appearance value of described capacitor C 1 and capacitor C 2 is 100nf, and the resistance of described resistance R 1 is 10M.
Further, the described battery diode of connecting connects respectively an end of described switch and the RTC register of described STM32 chip internal again.
Further, the resistance R 2 of connecting between the other end of described switch and described RC charge-discharge circuit.
The present invention has following advantage: the present invention is by the level of battery, switch and RC charge-discharge circuit control STM32 chip TAMPER pin, when TAMPER pin low level, the RTC data in register of STM32 chip is eliminated, thereby triggering the STM32 chip reports to the police and lock machine, it realizes that tamper need not to increase the extra chips expense, reduces equipment cost.The RC charge-discharge circuit adopts large resistance to prolong battery, adopts simultaneously two 100nF electric capacity, not only guarantees tamper sensitivity but also possess anti-interference function.The capacitance parameter of RC charge-discharge circuit is adjustable, is capable of regulating discharge time by adjusting capacitance parameter, so the tamper time is easily adjusted easy to control.
[description of drawings]
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the circuit diagram that the present invention is based on the decomposing prevention circuit of STM32 chip.
[embodiment]
See also shown in Figure 1, a kind of decomposing prevention circuit based on the STM32 chip, comprise a battery B1, a switch S 1 and a RC charge-discharge circuit, described battery B1 connects respectively an end of described switch S 1 and the RTC register of described STM32 chip internal, described battery B1 is described RTC register power supply, the other end of described switch S 1 connects an end of described RC charge-discharge circuit, and the other end of described RC charge-discharge circuit connects the TAMPER pin of described STM32 chip.Be installed under the normal condition described switch S 1 closed, run into and tear terminal device that the machine situation disconnects open somewhere, for example breaking-proof switch is on mainboard, switch contact is on shell, and during the terminal device normal mounting, the contact withstands on the breaking-proof switch, switch closure, after terminal was torn machine open, breaking-proof switch was left in the contact, and switch disconnects.Described RTC register memory contains data.Under normal condition, switch S 1 is closure state, and described battery B1 is described RTC register power supply, and for the TAMPER pin of described STM32 chip provides a high level, simultaneously described RC charge-discharge circuit charging namely keeps electric weight constant after charging is finished, and does not recharge.When running into the abnormal conditions such as the machine of tearing open, switch S 1 disconnects, described RC charge-discharge circuit discharge, the TAMPER pin level of described STM32 chip is reduced to low level from high level, triggers intrusion detection feature, storage data in the described RTC register are eliminated, when described STM32 chip detection is sky to described RTC register, will trigger one and invade event interrupt, will carry out the lock machine operation on the software, as close the transaction business function, terminal can't normally be used.The present invention realizes that the tamper of terminal device need not extra chip expense, reduces equipment cost.
Another embodiment of the present invention is that described RC charge-discharge circuit is to be composed in parallel successively by a capacitor C 1, a capacitor C 2 and a resistance R 1 three.The appearance value of described capacitor C 1 and capacitor C 2 is 100nf, and the resistance of described resistance R 1 is 10M.By the resistance R 1 of 10M, reduce electric current, prolong battery.The electric capacity of 100nF by two parallel connections, the time that voltage is discharged to 1.3V by 3.3V is 1.7s approximately, 1.3V voltage is that the STM32 chip identification is to low level ceiling voltage, tamper sensitivity and noiseproof feature have been guaranteed, for example equipment is falling or oscillatory type, and switch S 1 moment disconnection is because the time is very short, be far smaller than 1.7s, terminal device just can not carry out false alarm or mistake lock machine.Certainly, the present embodiment only provides the parameter of one group of RC charge-discharge circuit, but the resistance R 1 of RC charge-discharge circuit, capacitor C 1, the equal capable of regulating of C2 parameter, it is capable of regulating discharge time by adjusting capacitance parameter, therefore the tamper time easily adjust easy to control, simultaneously by adjusting resistance R1 capable of regulating battery B1 serviceable life also.
The described battery diode D1 that connects connects respectively an end of described switch S 1 and the RTC register of described STM32 chip internal again.Can prevent that by this diode D1 electric current from pouring in down a chimney battery B1.The resistance R 2 of connecting between the other end of described switch and described RC charge-discharge circuit.Can weaken electrostatic interference and thunder and lightning interference, the better performance of holding circuit by this resistance R 2.
Need to prove because the supply voltage of the RTC register of STM32 chip internal be 3.3V therefore, battery B1 adopts the button cell of 3.3V.
The present invention is by the level of battery, switch and RC charge-discharge circuit control STM32 chip TAMPER pin, when TAMPER pin low level, the RTC data in register of STM32 chip is eliminated, thereby triggering the STM32 chip reports to the police and lock machine, it realizes that tamper need not to increase the extra chips expense, reduces equipment cost.The RC charge-discharge circuit adopts large resistance to prolong battery, adopts simultaneously two 100nF electric capacity, not only guarantees tamper sensitivity but also possess anti-interference function.The capacitance parameter of RC charge-discharge circuit is adjustable, is capable of regulating discharge time by adjusting capacitance parameter, so the tamper time is easily adjusted easy to control.
Although more than described the specific embodiment of the present invention; but being familiar with those skilled in the art is to be understood that; our described specific embodiment is illustrative; rather than for the restriction to scope of the present invention; those of ordinary skill in the art are in modification and the variation of the equivalence of doing according to spirit of the present invention, all should be encompassed in the scope that claim of the present invention protects.
Claims (5)
1. decomposing prevention circuit based on the STM32 chip, it is characterized in that: comprise a battery, a switch and a RC charge-discharge circuit, described battery connects respectively an end of described switch and the RTC register of described STM32 chip internal, described battery is described RTC register power supply, the other end of described switch connects an end of described RC charge-discharge circuit, and the other end of described RC charge-discharge circuit connects the TAMPER pin of described STM32 chip.
2. the decomposing prevention circuit based on the STM32 chip according to claim 1, it is characterized in that: described RC charge-discharge circuit is to be composed in parallel successively by a capacitor C 1, a capacitor C 2 and a resistance R 1 three.
3. the decomposing prevention circuit based on the STM32 chip according to claim 2, it is characterized in that: the appearance value of described capacitor C 1 and capacitor C 2 is 100nf, and the resistance of described resistance R 1 is 10M.
4. according to claim 1 to 3 each described decomposing prevention circuits based on the STM32 chip, it is characterized in that: the described battery diode of connecting connects respectively an end of described switch and the RTC register of described STM32 chip internal again.
5. according to claim 1 to 3 each described decomposing prevention circuits based on the STM32 chip, it is characterized in that: the resistance R 2 of connecting between the other end of described switch and described RC charge-discharge circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210276442.XA CN102854907B (en) | 2012-08-03 | 2012-08-03 | Tamper circuit based on STM32 chip |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210276442.XA CN102854907B (en) | 2012-08-03 | 2012-08-03 | Tamper circuit based on STM32 chip |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102854907A true CN102854907A (en) | 2013-01-02 |
CN102854907B CN102854907B (en) | 2014-04-09 |
Family
ID=47401564
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210276442.XA Expired - Fee Related CN102854907B (en) | 2012-08-03 | 2012-08-03 | Tamper circuit based on STM32 chip |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102854907B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103699857A (en) * | 2013-12-20 | 2014-04-02 | 广东威创视讯科技股份有限公司 | Plagiary preventing device of electronic device and electronic device |
CN103778727A (en) * | 2014-01-21 | 2014-05-07 | 深圳市科羽科技发展有限公司 | Intelligent interactive terminal for bank counter |
CN107069860A (en) * | 2017-03-31 | 2017-08-18 | 成都天奥电子股份有限公司 | A kind of energy long-time stable provides the battery of Perfect Time information |
CN107219803A (en) * | 2017-07-27 | 2017-09-29 | 福建升腾资讯有限公司 | It is a kind of to be used to detect that terminal opens or closes the device of lid in real time |
CN111753341A (en) * | 2020-06-29 | 2020-10-09 | 广州邦讯信息系统有限公司 | Illegal disassembly detection method for Internet of things equipment |
CN112906849A (en) * | 2021-05-06 | 2021-06-04 | 北京数盾信息科技有限公司 | Password card cover opening detection method and device and password card |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070040023A1 (en) * | 2005-08-22 | 2007-02-22 | Aj Ruggirello | Method and apparatus for protecting self service terminals from fraud and tampering |
CN201130406Y (en) * | 2007-11-28 | 2008-10-08 | 淄博卓尔电器有限公司 | Anti-disassembling device of alarm |
GB2457102A (en) * | 2008-02-04 | 2009-08-05 | George Schaar | Wireless intruder alarm with pressure sensor within double glazing unit |
CN102376103A (en) * | 2010-08-17 | 2012-03-14 | 中兴通讯股份有限公司 | Anti-dismounting on-board unit and realization method thereof |
CN102609823A (en) * | 2012-02-27 | 2012-07-25 | 深圳市华奥通通信技术有限公司 | Asset management system and asset management terminal |
CN202771294U (en) * | 2012-08-03 | 2013-03-06 | 福建升腾资讯有限公司 | Anti-disassembly circuit based on STM32 chip |
-
2012
- 2012-08-03 CN CN201210276442.XA patent/CN102854907B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070040023A1 (en) * | 2005-08-22 | 2007-02-22 | Aj Ruggirello | Method and apparatus for protecting self service terminals from fraud and tampering |
CN201130406Y (en) * | 2007-11-28 | 2008-10-08 | 淄博卓尔电器有限公司 | Anti-disassembling device of alarm |
GB2457102A (en) * | 2008-02-04 | 2009-08-05 | George Schaar | Wireless intruder alarm with pressure sensor within double glazing unit |
CN102376103A (en) * | 2010-08-17 | 2012-03-14 | 中兴通讯股份有限公司 | Anti-dismounting on-board unit and realization method thereof |
CN102609823A (en) * | 2012-02-27 | 2012-07-25 | 深圳市华奥通通信技术有限公司 | Asset management system and asset management terminal |
CN202771294U (en) * | 2012-08-03 | 2013-03-06 | 福建升腾资讯有限公司 | Anti-disassembly circuit based on STM32 chip |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103699857A (en) * | 2013-12-20 | 2014-04-02 | 广东威创视讯科技股份有限公司 | Plagiary preventing device of electronic device and electronic device |
CN103699857B (en) * | 2013-12-20 | 2016-07-27 | 广东威创视讯科技股份有限公司 | The anti-hacking device of electronic equipment and electronic equipment |
CN103778727A (en) * | 2014-01-21 | 2014-05-07 | 深圳市科羽科技发展有限公司 | Intelligent interactive terminal for bank counter |
CN107069860A (en) * | 2017-03-31 | 2017-08-18 | 成都天奥电子股份有限公司 | A kind of energy long-time stable provides the battery of Perfect Time information |
CN107219803A (en) * | 2017-07-27 | 2017-09-29 | 福建升腾资讯有限公司 | It is a kind of to be used to detect that terminal opens or closes the device of lid in real time |
CN107219803B (en) * | 2017-07-27 | 2024-03-26 | 福建升腾资讯有限公司 | Device for detecting opening or closing of terminal cover in real time |
CN111753341A (en) * | 2020-06-29 | 2020-10-09 | 广州邦讯信息系统有限公司 | Illegal disassembly detection method for Internet of things equipment |
CN111753341B (en) * | 2020-06-29 | 2023-09-22 | 广州邦讯信息系统有限公司 | Illegal disassembly detection method for Internet of things equipment |
CN112906849A (en) * | 2021-05-06 | 2021-06-04 | 北京数盾信息科技有限公司 | Password card cover opening detection method and device and password card |
Also Published As
Publication number | Publication date |
---|---|
CN102854907B (en) | 2014-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102854907B (en) | Tamper circuit based on STM32 chip | |
KR100824828B1 (en) | Method for verifying smart battery failures by measuring input charging voltage and associated system | |
CN204559175U (en) | A kind of electric automobile charging pile intelligent monitoring and controlling device | |
CN208241335U (en) | Battery protecting circuit and electronic cigarette | |
US7538519B2 (en) | Information handling system with battery protected from non-permanent failures | |
CN102790378A (en) | Intelligent motor protector and protection method thereof | |
US20240128744A1 (en) | Electrostatic discharge (esd) protection circuit with disable feature based on hot-plug condition detection | |
US20230022867A1 (en) | Smart battery device, and electronic device thereof | |
CN202771294U (en) | Anti-disassembly circuit based on STM32 chip | |
CN101299618A (en) | Real time clock circuit of intelligent mobile phone | |
CN211653795U (en) | Tamper pin extension circuit and POS machine | |
CN210957773U (en) | Intelligent protection plate | |
CN111537915A (en) | Broken string detection circuitry and treasured that charges of polymorphic type charging wire | |
CN110569679A (en) | Cover-detaching self-destruction circuit for terminal and control method thereof | |
CN110855278A (en) | Instantaneous residual voltage locking module with anti-shake function | |
EP3819161A1 (en) | Control unit for a battery system | |
US10804717B1 (en) | Resettable battery disconnect device | |
CN117080994A (en) | Battery protection circuit and electronic device | |
CN212965358U (en) | Broken line detection circuit with load access automatic wake-up function and power bank | |
CN210324204U (en) | A tear lid self-destruction circuit open for terminal | |
CN208571679U (en) | The electrostatic discharge circuit of mobile terminal | |
CN208352475U (en) | A kind of lithium battery fireproof anti-explosion device | |
CN108879587B (en) | Protection circuit and mobile terminal | |
CN209879449U (en) | Reset unit for power distribution management device | |
CN209462010U (en) | A kind of lithium battery group safe charging protection circuit |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140409 |
|
CF01 | Termination of patent right due to non-payment of annual fee |