Study and Development of Protocol Conformance Test System for Modbus Serial Line

Author
JiaWenZuo
Advisor
JiangDaMing
School
Beijing Jiaotong University
Major
Intelligent Transportation Engineering
Classification
TP273.5 Computer control, computer control system
Degree
Master's thesis
Year
2008
Downloads
183
Citations
5

Request the full text

Abstract

In recent years, the field bus known as the field of automation of computer local area network. The variety in the bus today, Modbus technology with its advanced, open, mature widely applicable in a variety of factory automation field, has been accepted and adopted by many manufacturers. However, with the widespread use of the technology, the corresponding problem after another: more and more products from different vendors to support the Modbus protocol, although they have to comply with the Modbus protocol specification, development engineer inconsistent understanding of the protocol specification, these products often appear in the composition of the system can not work together, so the urgent need to develop a supervision the product agreement in line with the extent of the testing system, thus ensuring the validity and reliability of the integrated system. This is the significance of the subject lies. Modbus communication in three ways: a serial link, TCP / IP and Modbus PLUS. The object of this paper is based on the serial link communications equipment. The subject finishing drafting the Modbus serial link protocol conformance test specification (draft), and to develop the appropriate protocol conformance test system, to achieve the consistency of the communication protocol based on the Modbus serial link, product interoperability testing. Thesis work are as follows: First, the Modbus serial link protocol conformance test specification drafting, is the basis for the work of this topic. The specification is on the basis of a detailed analysis of the automation network based on Modbus protocol specification, combined with the experience accumulated over the years several Modbus device manufacturers information and expert finishing than practice, the last written. Then, in strict accordance with the Modbus serial link protocol conformance test specification \test system. The system consists of two parts of the hardware and software environment. The hardware environment is to build a test platform, to build the RS485 transmission technology based on the master / slave type system. Especially on the physical layer and the data link layer testing session, the papers make specific and detailed, which is specific to the serial link. The software environment is a Win32-based application software. This article focuses on the design idea and implementation process of testing software modules, gives a flow chart of the various modules of the software code and run results. Software functionality is perfect. Such as the use of a negative test, that is based on the exception response code to determine the cause of abnormal, allowing for repair of faulty equipment. Finally, the experiment on the platform of the system to build and run test software developed to prove that the system can complete its testing capabilities.

Table of contents

Acknowledgements 5-6 Chinese Abstract 6-7 ABSTRACT 7-10 1 Summary 10-22 1.1 fieldbus technology and protocol testing Technical Overview 10-18 1.1.1 fieldbus technology definition and communication model 10-12 1.1.2 Fieldbus development status and problems encountered 12-16 1.1.3 protocol test fieldbus 16-18 1.1.4 Modbus protocol conformance test at home and abroad status quo 18 1.2 research purpose and significance 18-19 1.3 research main content 19-22 the Modbus communication protocol 22-32 2.1 Modbus communication protocol introduced 22-26 2.1.1 Modbus communication protocol described 22-23 2.1.2 Modbus transmission mode 23-25 2.1.3 Modbus Function Code 25-26 2.2 data link layer 26-29 2.2.1 Modbus master / slave protocol 26-27 2.2.2 Modbus frame format 27-28 2.2.3 Modbus communication process 28-29 2.3 physical layer 29-32 2.3.1 RS232-C standard 29-30 2.3.2 RS485 standard 30-32 3 conformance testing and interoperability testing theoretical basis 32-42 3.1 software testing theory 32-34 3.2 protocol testing basic concepts 34-35 3.3 protocol conformance testing theory 35-39 the 3.3.1 protocol conformance test standardization 35-36 3.3.2 protocol conformance test content and process 36-39 3.4 product interoperability testing theoretical foundation 39-41 3.4.1 Interoperability testing concept 39-40 3.4.2 Interoperability testing framework 40-41 3.5 protocol conformance testing and interoperability testing relationship 41-42 Modbus serial link protocol conformance test specification (draft) formulation 42-48 4.1 Modbus serial link protocol conformance test specification \ 4.2 Modbus serial link protocol conformance test specification formulated the basic ideas 42-47 4.2.1 Physical characteristics 43-44 the 4.2.2 data link layer services 44-45 4.2.3 protocol to achieve consistency Description document to establish and standardize 45-47 4.3 Summary 47-48 5 Modbus serial link protocol to meet test system design 48-56 5.1 functional requirements 48-49 5.2 hardware environment design 49-50 5.3 software design 50-56 5.3.1 software design constitutes 50-51 5.3.2 software modules designed 51-56 The Modbus serial link protocol to meet the test system to achieve 56-88 6.1 hardware environment to achieve 56-57 6.2 software implementations 57-73 the 6.2.1 serial communication module implementation 59-61 6.2.2 Modbus protocol stack module 61-67 6.2.3 test module 67-71 6.2.4 Human-Computer Interaction module implementations 71-73 6.3 Modbus serial link protocol to meet the test of the test system implementation process 73-88 6.3.1 test content 73 6.3.2 test environment 73-76 6.3.3 Test Method 76-81 6.3.4 Test Results 81-88 7 Review and Research Prospects 88-90 7.1 Review 88 7.2 Research Prospects 88-90 the References 90-92 Appendix A 92-110 of resume The 110-114 the Dissertation datasets 114

Related dissertations

  1. Research and Design of Intelligent Medical Infusion Monitoring System
  2. Research on Distributed Control System of Batch Dyeing
    FanJinLong ·Zhejiang Sci-Tech University ·2014 ·Master's thesis
  3. Research and Implementation of DCS System Based on Wireless Communication
  4. Research and Implementation of PKCS#11Test Platform
    TangWeiZhong ·Beijing Jiaotong University ·2014 ·Master's thesis
  5. Based on the NIOSII Soft Nuclear Research and Design of the Multifunctional Intelligent Watt-hour Meter
    ChenJia ·West China University ·2013 ·Master's thesis
  6. Researching and Designing of the Brushless Dc Motoe Controller Based on Adative Algorithm
    ZhouWenJun ·Donghua University ·2014 ·Master's thesis
  7. Designing and Realizition of Central Monitor Platform of Infant Incubators
    YangYiXue ·Shandong University ·2013 ·Master's thesis
  8. Design and Development of Central Air-conditioning Energy-saving Control System
    LiXiaoYu ·Zhejiang University of Technology ·2013 ·Master's thesis
  9. Design and Implementation of On-line Yarn Defects Detecting System
  10. The design and Realization of FPS2800B12C4 multi parameter detection system based on oil
  11. Power and Environment Monitoring System in the Communications Front-end Design and Application
  12. Design and Application of SCADA System for Water-source Heat Pump Systems
    HuHongBo ·Xiangtan University ·2012 ·Master's thesis
  13. Monitoring and Alarm System of Coal Mine Gas Based on Ethernet
    ChenKunHua ·Donghua University ·2013 ·Master's thesis
  14. The Development of Embedded Remote Data Acquisition System for Internet of Things
    WangGuangWei ·Zhejiang Normal University ·2012 ·Master's thesis
  15. The Design and Research on a Timing Card Applied to Satellite Monitoring
    YueXuJun ·North China University of Technology ·2012 ·Master's thesis
  16. Research on High Reliable Communication between Safety Control Systems
    LiYiShi ·Beijing Jiaotong University ·2012 ·Master's thesis
  17. United Device Control System Design in Isoprene Rubber Production Process
  18. The Design Based on the Atmega128Smart Home Controller
    GanWen ·Guangxi University ·2010 ·Master's thesis
  19. Research and Implementation of Smart Home Protocol Stack Based on Composite Means of Communication
    ChenHanShen ·Zhejiang University of Technology ·2012 ·Master's thesis
  20. Fault Related Formal Test Method of the Software in Train Control System
    ZhangYan ·Beijing Jiaotong University ·2012 ·Doctoral dissertation