{"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.