研究论文

基于C/S模式的成像测井仪调试台架通信接口设计

  • 杨喜峰;鞠晓东;吴文河
展开
  • 1. 中国石油大学(北京)油气资源与探测国家重点实验室,北京 102249;2. 中国石油大学(华东)理学院,山东青岛 266580

收稿日期: 2012-10-08

  修回日期: 2012-10-25

  网络出版日期: 2012-12-18

Design of the Communication Software for Logging Tool Test-bench Based on C/S Model

  • YANG Xifeng;JU Xiaodong;WU Wenhe
Expand
  • 1. State Key Laboratory of Petroleum Resources and Prospecting, China University of Petroleum, Beijing 102249, China;2. College of Science, China University of Petroleum, Qingdao 266580, Shandong Province, China

Received date: 2012-10-08

  Revised date: 2012-10-25

  Online published: 2012-12-18

摘要

根据微电阻率扫描测井仪调试台架功能需求,给出一种基于C/S模式的调试台架通信接口程序设计方案.通过对B/S、C/S通信模式、流式和数据报式套接字的特点对比,确定基于流式套接字C/S模式的接口通信方式.为解决简单流式套接字的阻塞问题,前端机引入多线程技术实现通信过程独立.为提高接口的扩展性和可移植性,上位机程序采用Winsock控件实现通信功能.接口的测试证明其具有很好的稳定性和时效性,并且该接口设计结构简单、性能优秀、可移植性好,可以直接应用于同类调试台架和类似结构的测试系统.

本文引用格式

杨喜峰;鞠晓东;吴文河 . 基于C/S模式的成像测井仪调试台架通信接口设计[J]. 科技导报, 2012 , 30(36) : 38 -41 . DOI: 10.3981/j.issn.1000-7857.2012.36.005

Abstract

According to the demand of the micro-resistivity scanning tool test-bench, this paper proposes a design scheme of the test-bench communication interface program based on the C/S mode. From a comparison of the characteristics between the B/S and C/S communication modes and the flow and data report type sockets, the paper chooses the flow socket C/S mode as the mode of the communication interface. In order to solve the blocking problem of simple flow sockets, in the front-end computer, the multithreading technology is introduced to realize the independent communication process. In order to improve the interface scalability and portability, in the PC program, the Winsock control is used to realize the communication function. It is shown by performance tests that the communication interface has a good stability and speed. The interface enjoys features of simple structure, excellent performance and good portability, and can be directly applied in the test-bench and the testing system of similar structures.
文章导航

/