Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

中文补充说明,以及C#小程序(获取Token及DID、解密消息串、生成加密消息串、发送和接收UDP等) #7

Open
xcray opened this issue Jan 25, 2018 · 1 comment

Comments

@xcray
Copy link

xcray commented Jan 25, 2018

首先感谢OpenMiHome的协议文档!为我们打开了一扇非常有趣的大门。

但是非常遗憾,文档里存在一些信息描述错误、以及有些重要的信息没有提及。

踩过几个坑之后,简单总结一下,学习着开了一个repo,试着补充说明一些关于协议的重要的内容,供大家参考。

miio by C#

@xcray
Copy link
Author

xcray commented Jan 26, 2018

另外,pcap-decrypt.py存在瑕疵,在我的环境下运行报错。原因是把小米手机上的米家客户端发出的21310020fffffffffffff判断错误,把fffff当成token并试图解密。

解决方法:在第99行插入
if token == b"\xff" * 16:
continue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant