The design and implementation of serial port communication of data collection system
DOI:
CSTR:
Author:
Affiliation:

1.Qingdao Ocean Shipping Mariners College, Center of library and information, Qingdao 266071,China; 2.Qingdao University, Automation engineering college, Qingdao 266071,China

Clc Number:

TP31

Fund Project:

  • Article
  • |
  • Figures
  • |
  • Metrics
  • |
  • Reference
  • |
  • Related
  • |
  • Cited by
  • |
  • Materials
  • |
  • Comments
    Abstract:

    As a simple, reliable and highly standard way of communication, serial port communication is widely used in industrial automation and electrical equipment controller. The paper presents the way to implement serial port communication of a data collection system. Take Visual C++ programming as example, the key code for MSComm control is presented to implement serial port communications between computer and lower computer. It presents how to create and set up the MSComm control properties. Detailed key code design is discussed from sending perspective and receiving perspective. The communication transfer protocol is designed in details with figure illustration and code examples. The communication handshake protocol is designed in details with process presented to show how the handshake does between computer and lower compute. At the end, the running result for the system is shown. The paper also extends its strategy to long distance communications between computer and lower computer. Two designs are mentioned.

    Reference
    Related
    Cited by
Get Citation
Share
Article Metrics
  • Abstract:
  • PDF:
  • HTML:
  • Cited by:
History
  • Received:
  • Revised:
  • Adopted:
  • Online: June 05,2015
  • Published:
Article QR Code