SnapDragonfly / SnapAirUnit

SnapAirUnit aims to provide an basic kit connecting open-source flight controller and snap/python programming language.
GNU General Public License v3.0
1 stars 2 forks source link

Extra addon simulation feature based on HuiYuan V1.1.12 Beta API #68

Closed lida2003 closed 1 year ago

lida2003 commented 1 year ago

Is your feature request related to a problem? Please describe. Extra addon simulation feature based on HuiYuan V1.1.12 Beta API <慧源GPS WiFi板通讯协议 V1.1.12 Beta.pdf>

Describe the solution you'd like

-- 【Link 2】PC( any) <--> WiFi(8889) <--> TTL <--> F //Two-way communication

PC ( "Hello world!") --> Wifi module --> TTL (数据格式: 帧头(1byte, 0x68) +功能(1byte, 0xF2) + 长度(1byte) + 数据(nbytes, "Hello world!") + 校验(1byte))

PC ( "Hello world!") <-- Wifi module <-- TTL (数据格式: 帧头(1byte, 0x58) +功能(1byte, 0xF2) + 长度(1byte) + 数据(nbytes, "Hello world!") + 校验(1byte))

-- 【Link 3】PC(8890) <--- WiFi( any) <--- TTL <--- FC //One-way communication

PC ( "Hello world!") <-- Wifi module <-- TTL (数据格式: 帧头(1byte, 0x58) +功能(1byte, 0xF3) + 长度(1byte) + 数据(nbytes, "Hello world!") + 校验(1byte))

Additional context

From <慧源GPS WiFi板通讯协议 V1.1.12 Beta.pdf>

串口参数: 115200bps, 8, none, 1 数据格式: 帧头(1byte) +功能(1byte) + 长度(1byte) + 数据(nbytes) + 校验(1byte) 帧头字节: wifi 板发送 0x68, 飞控板应答 0x58, 按字节对齐; 校验计算: 按字节计算(功能、 长度、 数据) 所有字节的异或值。

lida2003 commented 1 year ago

图片