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

大佬,发送指令的mudada, cmd可以传啥 #3

Open
geekape opened this issue Mar 3, 2022 · 1 comment
Open

大佬,发送指令的mudada, cmd可以传啥 #3

geekape opened this issue Mar 3, 2022 · 1 comment

Comments

@geekape
Copy link

geekape commented Mar 3, 2022

这是您写的源码和蓝牙的部分接口文档,能给个示例吗?
image
image

@arsize
Copy link
Owner

arsize commented Mar 3, 2022

BLE的mudata和cmd是和嵌入式工程师约定的通信协议,每个公司都不一样,这个sentorder函数只是把需要的数据以及指令装包,贴上帧头帧尾和crc校验,组成一个完成的数据包之后通过微信的api发送给硬件,这一块你需要按你们的协议调整一下,譬如我们的0,1位置是帧头,2是数据长度length,3是命令码(和工程师约定好的),4开始往后就是携带的数据,然后是crc完整性校验,最后两个位置是帧尾。

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

2 participants