44 Star 192 Fork 53

adai.design/homehub

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

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

Empty file

About

家庭设备控制中枢 expand collapse
Go and 3 more languages
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/adaidesigner/homehub.git
git@gitee.com:adaidesigner/homehub.git
adaidesigner
homehub
homehub
master

Search