The invention discloses a method for realizing the remote control door lock monitoring using the mobile client, including server and mobile client control step control procedures, closed detection terminal control step, close to the detection terminal press switch as a trigger, using STM32F103 as the control core, memory chip connections are stored in a closed detection terminal number, terminal contains WiFi module can through the home wireless router to connect to the server, the server records, lock the door and door opening state duration, when the door is not closed at a predefined time, the system will not notify the closing notice is sent to the mobile client. The mobile client is used to send out the alarm without closing the door, and the remote control of the door lock is realized through the door closing detection terminal, the server and the mobile client. The accuracy rate reaches 100%; the instant transmission is realized and the time efficiency is high.
【技术实现步骤摘要】
一种利用移动客户端实现门锁监控的远程控制方法
本专利技术涉及一种防盗方法,具体地说,涉及一种利用移动客户端实现门锁监控的远程控制方法,属于自动控制
技术介绍
现在的人们由于工作力大、生活节奏快,在日常生活中会忘记关闭家门是或是虚掩,这样对于家里的财产安全产生的隐患。如果将嵌入式技术与移动互联网技术相结合,实现远程关门与锁门检测并报警一种系统,将会极大的保证家中财物安全。
技术实现思路
本专利技术所要解决的技术问题在于针对上述现有技术中的不足,提供一种利用移动客户端实现门锁监控的远程控制方法,其结构简单、实现方便、操作简单、智能化程度高,便于实现,推广应用价值高。为解决上述技术问题,本专利技术所采用的技术方案为:一种利用移动客户端实现门锁监控的远程控制方法,其特征在于,包括服务器控制步骤。一种优化方案,服务器控制步骤包括:流程开始于S101,在步骤S102,服务器进入监听请求状态,等待来关门检测终端、移动客户端和自发的请求,接收到请求后进入步骤S103;在步骤S103,判断请求是否为来自开关检测设备的状态更新请求,如果是进入步骤S104,否则进入S105;在步 ...
【技术保护点】
一种利用移动客户端实现门锁监控的远程控制方法,其特征在于,包括服务器控制步骤。
【技术特征摘要】
1.一种利用移动客户端实现门锁监控的远程控制方法,其特征在于,包括服务器控制步骤。2.如权利要求1所述的一种利用移动客户端实现门锁监控的远程控制方法,其特征在于,服务器控制步骤包括:流程开始于S101,在步骤S102,服务器进入监听请求状态,等待来关门检测终端、移动客户端和自发的请求,接收到请求后进入步骤S103;在步骤S103,判断请求是否为来自开关检测设备的状态更新请求,如果是进入步骤S104,否则进入S105;在步骤S104,将关门检测终端唯一编号、门的开关状态、检测时间记录到服务器的数据库中,然后进入步骤S108;在步骤S105,判断是否为时钟请求,该时间请求为5秒发生一次,如果是进入步骤S106,否则进入步骤S108;在步骤S106,判断数据库中是否有未关门状态的设备超过预设时间的记录,如果有进入步骤S107,否则进入步骤S108;在步骤S107,发送未关门通知到移动客户端,通知包括未关门设备的编号、开门的时间,然后进入步骤S108;在步骤S108中,判断是否要退出服务程序,是则进入步骤S109,否则进入步骤S102中;流程结束于步骤S109。3.如权利要求1所述的一种利用移动客户端实现门锁监控的远程控制方法,其特征在于,还包括移动客户端控制步骤。4.如权利要求3所述的一种利用移动客户端实现门锁监控的远程控制方法,其特征在于,移动客户端控制步骤包括:流程开始于S201,在步骤S202,与服务器建立长连接,在服务器有通知时可以立即发送到移动客户端,然后进入步骤S203;在步骤S203,监听服务器发来的指令,接收到指令后进入步骤S204;在步骤S204,判断接收的指令是否为未关...
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。