- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
PAGE
PAGE 16
解析MWC的串口通讯
一使用的软件
二使用的MWC定义串口协议文件
updated 04 JulyMultiwii 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 frameie, 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 messagerequest message to multiwiiTo request simple data without parameters / send a specific command / inject new parameters in multiwiimessages are formated like this:$M[data length][code][data][checksum]1 octet $1 octet M1 octet 1 octet [data length]1 octet [code]several octets [data]1 octet [checksum][data length] can be 0 in case of no param commandmultiwii output messagemess
您可能关注的文档
最近下载
- 复旦大学介绍-PPT简介(经典版).pptx VIP
- 安徽省马鞍山市2020-2021学年九年级上学期期中物理试卷(word版 含答案).docx VIP
- 2025年儿科三基三严考试题库.doc VIP
- 品管圈PDCA参赛作品-血透中心提升维持性血液透析患者钙磷甲状旁腺激素合格率医院品质管理案例(1).pptx
- 2025耐碳青霉烯类革兰氏阴性杆菌感染的诊治和防控指南推荐意见(全文).pdf VIP
- 二零二三年 优质公开课10的认识.ppt VIP
- 基于统计方法的我国上市公司信用风险评估模型研究.pdf VIP
- 沙场转让合同协议书.docx VIP
- 数字医学专业介绍.pptx VIP
- 中国共产党纪律处分条例.pptx VIP
文档评论(0)