›› 2014, Vol. 27 ›› Issue (2): 99-.

• Articles • Previous Articles     Next Articles

Simple Implementation of Serial Port Continuous Communication Based on MFC

 DENG Qi-Liang, XU Li-Tao, LI Xu-Guang   

  1. (School of Physics Optoelectronic Engineering,Xidian University,Xi'an 710071,China)
  • Online:2014-02-15 Published:2014-01-12

Abstract:

This paper designs a simple method for continuous packets transmission in serial port communication in MFC.This method applies MSComm control provided by Microsoft,models on MODBUS-RTU protocol,takes data whose time interval is less than T as a packet data,and processes the data in the timer.Debugging shows that the faster the CPU of computer,the smaller packets and the simpler data processing function are,and the smaller value of time interval can be set.This means the result of continuous packets transmission in serial port communication will be better.

Key words: MFC;MSComm;serial communication;packets

CLC Number: 

  • TP391