基于树莓派的远程智能门控系统的设计与实现
2018-09-05王宏
王宏
文章编号: 2095-2163(2018)03-0079-05中图分类号: 文献标志码: A
摘要: 关键词: remote intelligent gating system based on Raspberry Pi
(School of Computer, Xi'an Shiyou University, Xi'an 710065, China)
Abstract: Compared with the traditional mechanical lock control, intelligent lock control has the features such as the electronic control modes and diverse unlocking methods, which have been applied in some occasions. But because of high product prices, it has encountered greater resistance in the home market. As a cheap solution to intelligent gating, this paper designs and implements a remote intelligent gating system based on open source hardware (Raspberry Pi). The idea is to set up an embedded gated server on Raspberry Pi, integrate camera and ultrasonic sensors to achieve the front door monitoring, remote lock control, lock control management and other functions. After that, with the help of QR code technology, a smart key based on the mobile terminal is achieved . The system is highly integrated and has both front and remote lock control capabilities. The fruits is a feature-rich and powerful upgrade of intelligent gating.
Key words:
基金項目: 作者简介:
收稿日期: 引言
随着对家居安全性的重视,现代门锁也在融入电子技术后进入了智能化时代,为人们的家居生活提供了更安全、便捷、功能日趋丰富的用户体验。阻碍智能化门锁应用于普通家庭的主要原因是产品价格高昂,因此本文以住宅门户作为应用对象,在廉价开源的树莓派开发板基础上设计实现了一种融合视频监控、超声波测距、网络遥控和二维码技术的远程智能门控系统。
1门控系统设计
1.1应用场景
远程智能门控系统应用场景如图1所示。
从图1可以看出,门控装置安装在住宅入户门内,其摄像头和超声波传感器固定在入户门外侧,系统将依托住宅内WiFi网络进行数据传输和后台管理。另外,用户在门前可以手机展示二维码的方式实现开门功能。
1.2系统功能设计
树莓派是一款开源的基于ARM的卡片式电脑主板,门控系统以树莓派为基础进行设计,共分5个模块,对其阐释如下:
(1)近距拍照记录。通过超声波检测门外人员与入户门距离,并在一定条件下开启拍照模式,再将照片保存至系统。
(2)远程视频监控。对门前区域进行远程视频监控。
(3)远程协助门控。访客通过触发开关发送开门请求,户主可通过远程视频在确认安全情况下允许为访客开门。
(4)智能门钥。一个运行于Android上的移动应用,可通过展示门钥二维码来指令开门。
(5)系统管理。用户可通过住宅内WiFi网络以Web方式对门控系统进行后台管理、参数设置及生成智能门钥(APK:Android安装包)。……
