-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit de2fa6b
Showing
5 changed files
with
148 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
此文档为猪头大神所出,只需要执行完成3.6升级固件即可.之后的配置wifi等过程,请查看文档[开始使用](https://github.com/a2633063/zM1/wiki/开始使用) | ||
|
||
|
||
|
||
A1与M1烧录方法相同,可以共用烧录过程 | ||
|
||
请注意: | ||
|
||
- 斐讯M1通过TTL转USB刷固件接入HA教程.pdf 文档版权由原作者所有,此处仅提供文档方便大家. | ||
- 为刷A1的,只需要执行文档中刷机相关步骤,拆机及功能说明等非A1的说明. | ||
- 刷A1参考文档中`3.2 EMW3080B模块引脚定义` 至 `3.6 升级固件` 执行完成即可,`3.7 修改SecureCRT软件串口参数设置` 及之后的内容不用处理 | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
# zM1 | ||
|
||
**斐讯悟空M1空气检测仪个人固件.** 优化开发中 | ||
|
||
因为服务器关闭,无法远程控制. | ||
|
||
为此,开发供自己使用的FW及对应app,确保自己能够正常使用此排插.取名为zM1. | ||
|
||
|
||
|
||
注意:本项目还在开发完善中,部分文档还为完成,所以以下链接可能无效或错误,请等待更新. | ||
|
||
|
||
|
||
> ### 作者声明 | ||
> | ||
> 虽然zTC1不良商用问题太严重,但是zM1暂时依然没有增加激活码功能. 先不加激活码放出. | ||
> | ||
> 虽然没有激活码,**但是依然严禁他人将本项目用户用于任何商业活动.个人在非盈利情况下可以自己使用,严禁收费代刷等任何盈利服务.** | ||
> | ||
> 有需要请联系作者:zip_zhang@foxmail.com | ||
|
||
|
||
## 特性 | ||
|
||
本固件使用斐讯TC1排插硬件为基础,实现以下功能: | ||
- [x] 热点web配网 | ||
|
||
- [x] 五组定时任务设置屏幕亮度开关 | ||
|
||
- [x] ota在线升级 | ||
|
||
- [x] 无服务器时使用UDP通信 | ||
|
||
- [x] MQTT服务器连接控制 | ||
|
||
- [x] 通过mqtt连入homeassistant(需要更新homeassistant配置文件) | ||
|
||
- [ ] 配合A1实现联动功能(后续增加此功能) | ||
|
||
|
||
|
||
|
||
|
||
## 目录 | ||
|
||
[前言(必看)](#前言必看) | ||
|
||
[开始](#开始) | ||
|
||
~~[激活码说明](#激活码说明)~~ | ||
|
||
[拆机接线及烧录固件相关](#拆机接线及烧录固件相关) | ||
|
||
[开始使用/使用方法](#开始使用/使用方法) | ||
|
||
[接入home assistant](#接入home-assistant) | ||
|
||
[其他内容](#其他内容) | ||
|
||
[代码编译](#代码编译) | ||
|
||
[通信协议](#通信协议) | ||
|
||
|
||
|
||
|
||
|
||
## 前言(必看) | ||
|
||
- 除非写明了`如果你不是开发人员,请忽略此项`之类的字眼,否则,请**一个字一个字看清楚看完**整后再考虑动手及提问!很可能一句话就是你成功与否的关键! | ||
- 烧录固件,可以用支持swd的jlink烧录器,也可以用串口ttl工具烧录.(本人不做任何烧录器的售卖,所有提供的链接或推荐都为第三方卖家,和本人无关). | ||
- 使用此固件,需要app端配合,见[SmartControl_Android_MQTT](https://github.com/a2633063/SmartControl_Android_MQTT). | ||
- app只有android,因ios限制,本人不考虑免费做ios开发.(不要再问是否有ios端). | ||
|
||
> 后续会支持homeassistant,对homeassistant不太熟,所以可能需要点时间. | ||
> | ||
> ~~虽然没有ios端,但固件支持homeassistant,可以使用安卓APP配置完成后,连入homeassistant后,使用ios控制. APP主要仅为第一次使用配对网络及配置mqtt服务器时使用,之后可以用homeassistant控制不再使用app.~~ | ||
> ~~如果你不知道什么是mqtt或homeassistant,所有有关的内容可以跳过.~~ | ||
> ~~如果你有任何问题,可以直接在此项目中提交issue,或给我发送邮件:zip_zhang@foxmail.com,邮件标题中请注明[zM1].~~ | ||
|
||
|
||
|
||
|
||
## 开始 | ||
|
||
整体流程如下:拆开M1,将固件/烧录器/pc互相连接,在pc运行烧录软件进行烧录,烧录固件. | ||
|
||
烧录完成后,首次使用需要配对网络并配置mqtt服务器,之后就可以使用了. | ||
|
||
|
||
|
||
## ~~激活码说明~~ | ||
|
||
暂时不需要激活码 | ||
|
||
~~为防止被不良商用,直接了必须使用激活码激活的功能.暂时不提供激活,仅测试人员可申请.~~ | ||
|
||
~~激活方式见[开始使用中的激活~~](https://github.com/a2633063/zM1/wiki/开始使用#激活) | ||
|
||
## 拆机接线及烧录固件相关 | ||
|
||
见[固件烧录](https://github.com/a2633063/zM1/wiki/固件烧录) | ||
|
||
烧录固件完成后,即可开始使用 | ||
|
||
|
||
|
||
## 开始使用/使用方法 | ||
|
||
见[开始使用](https://github.com/a2633063/zM1/wiki/开始使用) | ||
|
||
|
||
|
||
## 接入home assistant | ||
|
||
见[homeassistant接入](https://github.com/a2633063/zM1/wiki/homeassistant接入) | ||
|
||
|
||
|
||
## 其他内容 | ||
|
||
### 通信协议 | ||
|
||
> 此项为专业开发人员准备,如果你不是开发人员,请跳过此项 | ||
所有通信协议开源,你可以自己开发控制app或ios端 | ||
|
||
见[通信协议](https://github.com/a2633063/zM1/wiki/通信协议) | ||
|
||
|
||
|