我将 Onyehn PIR 运动传感器连接到 Raspberry Pi Zero,它会在实际发生运动时检测到运动。然而,即使它被密封在一个盒子里,它也会每小时检测一次运动。有没有办法确定根本原因或阻止这种情况?
RPi 正在运行 Raspbian GNU/Linux 10 (buster)。该脚本使用 Python 2.7.16
蟒蛇脚本是:
# all the pre-requisite modules are imported, globals defined and defs work ... not included
MOTION_PIN = 17
GPIO.setup(MOTION_PIN, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.add_event_detect(MOTION_PIN, GPIO.RISING)
def motionTextCallback():
sendTextMessage('motion detected') # sends text message to my cellphone number
while True:
time.sleep(3600) # I checked this timer to see if it was triggering motion sensor
运行以下命令会显示在每小时触发运动传感器时会发生以下情况:hh:21:40。对我来说,这似乎表明 HRNG 中的某些东西正在触发运动传感器。
有任何想法吗?
谢谢。杰夫
$ sudo journalctl | grep ":21"
Sep 26 23:21:40 rpiDoorbell rngd[290]: stats: bits received from HRNG source: 380064
Sep 26 23:21:40 rpiDoorbell rngd[290]: stats: bits sent to kernel pool: 334336
Sep 26 23:21:40 rpiDoorbell rngd[290]: stats: entropy added to kernel pool: 334336
Sep 26 23:21:40 rpiDoorbell rngd[290]: stats: FIPS 140-2 successes: 19
Sep 26 23:21:40 rpiDoorbell rngd[290]: stats: FIPS 140-2 failures: 0
Sep 26 23:21:40 rpiDoorbell rngd[290]: stats: FIPS 140-2(2001-10-10) Monobit: 0
Sep 26 23:21:40 rpiDoorbell rngd[290]: stats: FIPS 140-2(2001-10-10) Poker: 0
Sep 26 23:21:40 rpiDoorbell rngd[290]: stats: FIPS 140-2(2001-10-10) Runs: 0
Sep 26 23:21:40 rpiDoorbell rngd[290]: stats: FIPS 140-2(2001-10-10) Long run: 0
Sep 26 23:21:40 rpiDoorbell rngd[290]: stats: FIPS 140-2(2001-10-10) Continuous run: 0
Sep 26 23:21:40 rpiDoorbell rngd[290]: stats: HRNG source speed: (min=74.852; avg=338.275; max=801.282)Kibits/s
Sep 26 23:21:40 rpiDoorbell rngd[290]: stats: FIPS tests speed: (min=5.936; avg=6.198; max=6.231)Mibits/s
Sep 26 23:21:40 rpiDoorbell rngd[290]: stats: Lowest ready-buffers level: 2
Sep 26 23:21:40 rpiDoorbell rngd[290]: stats: Entropy starvations: 0
Sep 26 23:21:40 rpiDoorbell rngd[290]: stats: Time spent starving for entropy: (min=0; avg=0.000; max=0)us