38 Unstar Star 127 Fork 26

adai.design / homehub

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

HomeHub

该项目属于智能家居定制项目的一部分,该项目还包括:

智能家居定制项目介绍网址: https://adai.design/design

image

智能家居定制-网关V2019版

  • 网关方案: MT7688+Openwrt(linux)
  • 开发语言: Go编写应用层+C编写硬件驱动
  • 网关外观: 由Creo设计,采用3D打样+白色磨砂喷漆

image

  • 三维尺寸: 长(86mm) 宽(82mm) 高(86mm) 重量(365克) 材料(未来8000树脂+白色喷漆)
  • 处理器: MT7688 RAM(128MB) + Flash(32MB) Openwrt 15.10 (linux 3.18.29)
  • Zigbee协调器: JN5169 RAM(32kB) + Flash(512kB) FreeRTOS
  • PCB原理图导出文件: homemaster.pdf

image

项目框架

  • 项目主要采用Go语言开发,可在电脑上开发调试,再交叉编译到linux上运行
  • 框架参考了Homekit的设备模型 Accessory-Service-Characteristic 三层结构

image

编译与运行

  • 编译工程: make
  • 编译驱动: make ko
  • 部署: make remote (scp -r build/files/tmp/homemaster root@home.local:/tmp/)

局域网获取与控制设备状态

  • 参考: server/message_test.go
  • 设备控制操作示例(控制设备): aid(配件id) sid(服务id) cid(属性id) value(目标值:1开0关)
{
 "path": "characteristics",
 "method": "post",
 "data": [
   {
     "aid": "00158d000288fb3d",
     "sid": 1,
     "cid": 1,
     "value": 0
   }
 ]
}

历史记录

  • 2019-10-12: 支持宜家飞利浦灯的色温控制
  • 2018-08-29: Zigbee3.0设备接入, 移除433模块
  • 2018-03-04: 创建项目,接入433设备

智能家居定制项目介绍网址: https://adai.design/design

Comments ( 8 )

Sign in for post a comment

About

家庭设备控制中枢 spread retract
Go and 3 more languages
Cancel

Releases

No release

Gitee Metrics

Contributors

All

Activities

load more
can not load any more
Go
1
https://gitee.com/adaidesigner/homehub.git
git@gitee.com:adaidesigner/homehub.git
adaidesigner
homehub
homehub
master

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542