解析MWC串口通讯正式版20130407.doc

  1. 1、本文档共18页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
解析MWC串口通讯正式版20130407

解析MWC的串口通讯 一使用的软件 二使用的MWC定义串口协议文件 updated 04 July Multiwii serial protocol was redesigned: ? to be light, as before ? to be generic: it can be used transparenlty by a GUI, OSD, telemetry or home made config tool. ie no more specific OSD code should be coded in multiwii ? to be bit wire efficient: only requested data are transmitted in a binary format ? to be quite secure: data are sent with a checksum, preventing corrupted configuration to be injected. ? to be header sensitive: as it is designed with a specific header, it can be mixed with other frame, like GPS frame ie, it will be possible to connect either a GUI or a GPS on the same serial port without changing the conf ? to be less sensitive to evolutions: ie in case of parameter evolution, the main protocol will remain compatible and the GUI will be much less version dependent. variable data length allows to consider only the beginning of a message, leaving the other octets at the end to extend transparently the message (for instance to add a new PID) I thought first about an implementation of Mavlink, but I think its not what I was looking for. Even with a partial implementation, the predefined structures are not light enough for what I have in mind. Some messages are however inspired from mavlink structure. The main rule remains: Multiwii never sends something on its own. A request must be done in each case to retrieve or set data. Each messages received are acknowledged even if there is no data inside. There are 2 main messages to consider: ?request message to multiwii ?multiwii output message request message to multiwii To request simple data without parameters / send a specific command / inject new parameters in multiwii messages are formated like this: $M[data length][code][data][checksum] 1 octet $ 1 octet M 1 octet 1 octet [data length] 1 octet [code] several octets [data] 1 octet [checksum] [data length] can be 0 in case of no param command multiwii output message messages are format

文档评论(0)

xcs88858 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档