64. TAMP

64.1. Overview

  • This example demonstrates the functionality of the tamper module, which has active mode and passive mode.

  • The active mode has two pins (one pair), one pin outputs a specific waveform sequence, and the other pin receives a specific waveform sequence. When the received data sequence is inconsistent with the output sequence, it represents an intrusion event.

  • Passive mode has one pin to detect level signals. In this example, the non-invasive state level is low and the invasive state level is high.

64.2. Board Setting

  • Please refer to the readme.md in the board folder for pin configuration

  • Connect the two pins of the active mode using a DuPont cable

  • Connect the pins of passive mode to GND

64.3. Running the example

  • After the project is running correctly, the serial terminal will output the following information:

Tamper example
  • When the two pins of the active mode are disconnected, the serial terminal will output the following information:

Tamper active mode trigged!
Tamper active mode trigged!
Tamper active mode trigged!
Tamper active mode trigged!
Tamper active mode trigged!
  • When the pin of the passive mode is connected to a high level, the serial terminal will output the following information:

Tamper passive mode trigged!
Tamper passive mode trigged!
Tamper passive mode trigged!
Tamper passive mode trigged!
Tamper passive mode trigged!