自动化仪表
自動化儀錶
자동화의표
PROCESS AUTOMATION INSTRUMENTATION
2015年
5期
64-67
,共4页
数据库%ZigBee技术%Bluetooth技术%ENC28J60%网关%B/S架构
數據庫%ZigBee技術%Bluetooth技術%ENC28J60%網關%B/S架構
수거고%ZigBee기술%Bluetooth기술%ENC28J60%망관%B/S가구
Database%ZigBee technology%Bluetooth technology%ENC28J60%Gateway%B/S framework
针对物联网智能家居领域多网络和多系统的现状,提出了一种能够同时兼容ZigBee、Bluetooth和以太网,并且能方便操作的B/S智能家居控制系统。网关采用STM32F103作为核心处理器,扩展多个功能模块和各个子系统节点构成硬件平台。软件方面采用线程编程,添加ENC28J60驱动,通过线程轮询的模式来控制不同子系统的数据传输与转换。以MySQL作为数据库,通过PHPsocket编程实现用户与网关、数据库之间的信息交互。网关与子节点之间通过串口电路进行通信。试验结果表明,系统运行效果良好、使用方便、维护难度较低,能更好地应用到智能家居领域。
針對物聯網智能傢居領域多網絡和多繫統的現狀,提齣瞭一種能夠同時兼容ZigBee、Bluetooth和以太網,併且能方便操作的B/S智能傢居控製繫統。網關採用STM32F103作為覈心處理器,擴展多箇功能模塊和各箇子繫統節點構成硬件平檯。軟件方麵採用線程編程,添加ENC28J60驅動,通過線程輪詢的模式來控製不同子繫統的數據傳輸與轉換。以MySQL作為數據庫,通過PHPsocket編程實現用戶與網關、數據庫之間的信息交互。網關與子節點之間通過串口電路進行通信。試驗結果錶明,繫統運行效果良好、使用方便、維護難度較低,能更好地應用到智能傢居領域。
침대물련망지능가거영역다망락화다계통적현상,제출료일충능구동시겸용ZigBee、Bluetooth화이태망,병차능방편조작적B/S지능가거공제계통。망관채용STM32F103작위핵심처리기,확전다개공능모괴화각개자계통절점구성경건평태。연건방면채용선정편정,첨가ENC28J60구동,통과선정륜순적모식래공제불동자계통적수거전수여전환。이MySQL작위수거고,통과PHPsocket편정실현용호여망관、수거고지간적신식교호。망관여자절점지간통과천구전로진행통신。시험결과표명,계통운행효과량호、사용방편、유호난도교저,능경호지응용도지능가거영역。
In accordance with the current status of multi-network and multi-system in IOT smart home field, the B/S smart home control system that is compatible with ZigBee, Bluetooth, and Ethernet and easy to operate is proposed. In the gateway, STM32F103 is adopted as the core processor for expanding multiple functional modules and constituting the hardware platform. The thread programming is used in software, and the drive of ENC28J60 is added, data transmission and transformation of different subsystems are controlled through thread polling mode. With MySQL as the database of the system, the information interaction among users, gateway and database is implemented via PHPsocket programming, while the communication between gateway and child nodes is through the serial port circuit. The experimental results show that the system is running with excellent effect and is easy operated;it features lower maintenance difficulty, and is suitable for applying in the field of smart home.