Software Design of Protocol Conversion between Instruments Based on Test-Driven Development

Fei Li, G. Zhang, Ge Lei, Xi Wang
{"title":"Software Design of Protocol Conversion between Instruments Based on Test-Driven Development","authors":"Fei Li, G. Zhang, Ge Lei, Xi Wang","doi":"10.1109/ICMSP55950.2022.9859046","DOIUrl":null,"url":null,"abstract":"Aiming at the differences in the data frame format, transmission rate and medium access mechanism of the bus protocol used in the interaction between the Rotary Steering System (RSS) tool and the Measurement While Drilling (MWD) tool in the downhole petroleum instrument, as well as many challenges faced by traditional embedded software development question. In this paper, the test-driven development method is used to develop the inter-instrument communication protocol conversion software, which improves the robustness and stability of the code, and effectively solves the problems faced by the traditional embedded development mode. The software is based on TI's cross compiler CCS as a development tool. Firstly, through analyzing the overall scheme of the system design, the software functions during software development are analyzed in detail. The software is divided into three modules: command receiving, conversion, and transmission module. Secondly, according to the test-driven development mode, write a list of test cases and design test cases for each functional module in sequence. Then write the product code to make the test case pass. After the test is passed, refactor the code to eliminate duplication. After confirming the correctness of the product code and optimizing the code, write the following test case and the corresponding function code in the list until the code design of the entire module is completed.","PeriodicalId":114259,"journal":{"name":"2022 4th International Conference on Intelligent Control, Measurement and Signal Processing (ICMSP)","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-07-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 4th International Conference on Intelligent Control, Measurement and Signal Processing (ICMSP)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICMSP55950.2022.9859046","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Aiming at the differences in the data frame format, transmission rate and medium access mechanism of the bus protocol used in the interaction between the Rotary Steering System (RSS) tool and the Measurement While Drilling (MWD) tool in the downhole petroleum instrument, as well as many challenges faced by traditional embedded software development question. In this paper, the test-driven development method is used to develop the inter-instrument communication protocol conversion software, which improves the robustness and stability of the code, and effectively solves the problems faced by the traditional embedded development mode. The software is based on TI's cross compiler CCS as a development tool. Firstly, through analyzing the overall scheme of the system design, the software functions during software development are analyzed in detail. The software is divided into three modules: command receiving, conversion, and transmission module. Secondly, according to the test-driven development mode, write a list of test cases and design test cases for each functional module in sequence. Then write the product code to make the test case pass. After the test is passed, refactor the code to eliminate duplication. After confirming the correctness of the product code and optimizing the code, write the following test case and the corresponding function code in the list until the code design of the entire module is completed.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
基于测试驱动开发的仪器间协议转换软件设计
针对井下石油仪器中旋转导向系统(RSS)工具与随钻测量(MWD)工具交互使用的总线协议在数据帧格式、传输速率和介质访问机制等方面存在的差异,以及传统嵌入式软件开发面临的诸多难题。本文采用测试驱动开发方法开发仪器间通信协议转换软件,提高了代码的鲁棒性和稳定性,有效地解决了传统嵌入式开发模式所面临的问题。该软件是基于TI的交叉编译器CCS作为开发工具。首先,通过分析系统设计的总体方案,对软件开发过程中的软件功能进行了详细的分析。软件分为三个模块:命令接收、转换和发送模块。其次,根据测试驱动的开发模式,编写测试用例列表,依次为各个功能模块设计测试用例。然后编写产品代码,使测试用例通过。测试通过后,重构代码以消除重复。在确认产品代码的正确性并对代码进行优化后,在列表中编写以下测试用例和相应的功能代码,直到完成整个模块的代码设计。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Research and Circuit Design of Dynamic Path Accumulation CMOS Image Sensor An Improved Slap Swarm Algorithm Incorporating Tent Chaotic Mapping and Decay Factor Monitoring method for abrasive jet cutting depth of casing pipes Numerical Simulation Research on Dual-frequency Processing of Oil-based Mud Electrical Imaging Logging Development of an environmentally friendly electricity monitoring platform
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1