The Study on Simulation System of Serial Bus Port
- Author
- LiYuMing
- Advisor
- WangDaoShun
- School
- Dalian Jiaotong University
- Major
- Mechanical and Electronic Engineering
- Classification
- TP391.9 Computer simulation
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 248
- Citations
- 4
Abstract
With the development of the PC and serial communication technology, many companies are using the RS232 serial port of a PC with a variety of external devices connected, the PC functions and equipment for data communications, monitoring or control operation. In actual production, in order not to affect the progress of the work, and often before the equipment purchase need to be developed with new equipment or devices, the connected devices, the communication connection if there is no support of the hardware it is difficult to implement debugging process then requires a serial communication simulation system to simulate the simulation of new equipment or devices, communications, simulation systems can simulate the communication status of new equipment or devices need to develop devices to connect and debug; There is another situation in two equipment or devices, serial communication failed, unable to determine where the error out, to debug simulation systems can communicate with each device or devices to identify the problem lie and solve the problem, so the serial communication simulation system for The connection between the communication device or devices and debugging of great significance. The main content of this article has two parts: a MODBUS protocol communication via RS485 serial communication software simulation system design in the the WINDOWS system with VISUAL BASIC 6.0, and two universal distribution, the focus of the software serial MODBUS protocol The design of the communication rules. Software sub-host and from the two parts of the machine, such simulation software communication equipment that can host can also be a slave, to meet the needs of the actual communication. Host's task is to send data and receive a response sent from the machine and make judgments about right and wrong; slave task data is sent by the receiving host, make judgments about right and wrong, and then the data sent is determined based on the data received and sends it back host. The software design is mainly used for communication between the test equipment. An SPI serial interface simulation system design, some of the major hardware-based, according to the characteristics of the serial interface, take full advantage of the characteristics of each pin, four pin analog SPI communication lines of communication connecting AD DA converter with SPI serial interface hardware. 10-bit AD converter TLC1549 and TLC2543 12-bit AD converter, for example, described in detail the design of the hardware and its TLC1549 software developed with VB. The design of the hardware and the main idea for communication between devices testing, by example can learn by analogy, teaching and so has a certain significance. RS485 serial communication test software design, RS232-485 converter module supports MODBUS serial communication protocol agreement with a certain Instruments Factory, a temperature control instrumentation, communications test, test results software can smoothly complete the communication, to meet the communication requirements.
Table of contents
Abstract 5-6
ABSTRACT 6-9
first chapter 9-13
1.1 Serial Bus 9-10
the necessity and significance of the research 1.2 10-11
1.3 In this paper, the main research work 11-12
Chapter Summary 12-13
serial communication interface 13-18
2.1 serial communication related concept 13-15
the 2.1.1 serial communication mode 13-14
2.1.2 asynchronous communication 14-15
2.2 RS-232-C communication standard 15-17
2.2.1 serial interface pin 15-16
2.2.2 Electrical Characteristics 16-17
Chapter Summary 17-18
the
RS485 serial communication software emulation system design 18-46
3.1 Software Description 18-21
3.1.1 VISUAL BASIC 6.0 software introduces 18-19
3.1.2 the serial control MSCOMM 19-21
3.2 software overall design 21-24
the MODBUS protocol 3.3 software communication systems design 24-33
3.3.1 MODBUS protocol introduced 24-25
3.3.2 data sent with the response 25-26
3.3.3 MODBUS function code 26-30
3.3.4 software RTU mode communication design 30-32
3.3.5 software ASCII mode communication design 32-33
the
universal means of communication in the 3.4 software design 33-35
3.5 data transfer details design 35-45
3.5.1 communication parameters, select 35-36
3.5.2 Function code selection and format changes 36
3.5.3 parity and parity detection 36-40
3.5.4 automatically send function and send count function 40
3.5.5 to send data processing 40-41
3.5.6 to receive data decomposition 41-43
3.5.7 from the machine to automatically send data analysis 43-44
3.5.8 Set the help file 44-45
Chapter Summary 45-46
Chapter SPI serial communication hardware emulation system design 46-63
4.1 Serial Bus SPI 46-48
4.1.1 SPI communication principle 46-47
4.1.2 SPI bus four clock way 47-48
4.2 hardware emulation design thinking 48-50
the
design 4.2.1 SPI clock mode select method 48-49
4.2.2 SPI hardware simulation system design method 49-50
4.3 SPI serial bus communication simulation design examples 50-62
4.3.1 TLC1549 circuit diagram design 50-54
4.3.2 TLC2543 circuit diagram design 54-57
4.3.3 TLC1549 hardware schematic design software 57-62
Chapter Summary 62-63
Chapter bit machine testing of a R5485 serial communication simulation system 63-69
5.1 One of the functions of the function code 03H: read the meter site control status and real-time temperature 63-64
5.2 Function code 03H function: read the internal instrument settings temperature control parameters 64-65
5.3 function code 06H: host instrument output control contact force operation 65-66
5.4 function code 10H: set internal instrument temperature control parameters 66-67
5.5 function code 11H: host readout meter model 67-68
Chapter Summary 68-69
concluded 69-71
the
References 71-73
Appendix Part A software program 73-74
the
studying for a master's degree during the academic 74-75
Acknowledgements 75-76
Related dissertations
- Urea Injecting Pump Monitor System Applied in Exhaust-treatment of Diesel Vehicle
- The Design of Protocol Conversion System
- Design and Implementation of Monitoring System for Industrial Rice Breeding
- Research on Distributed Industrial Signal Modularized Data Acquisition System Based on ARM
- Research of System Integration and Application Based on Proflbus-DP and Modbus
- Research on the Digital Controller and PID Parameter Tuning of the Proportional Valve
- Design of I~2C/SPI Bus for Digital Output Sensor
- Design of Meter Reading Systems
- Design and Implementation of the SPI-based Technology Windows Firewall
- A Electrical Capacitance Tomography System Based on FPGA and AD5933
- Research and Realization of FPGA-Based Serial Bus
- Design and Implementation of a Multi-channel Stereo Audio Encoding System
- Design of digital audio information monitoring system based on Embedded System
- Design of Three Phase Energy Meter Based on Modbus
- Design and Implementation of Substation Remote Terminal Unit
- Researching and Designing of the Brushless Dc Motoe Controller Based on Adative Algorithm
- Design of Digital MCA Base on FPGA and STM32Technology
- Vehicle Air Conditioner Controller in the Loop Simulation Research
- Real-time Auto Electronics Research on Key Technology and Implementation of the Secondary Braking Control System
- The Reasearch of the Car Speed System