摘要
在智能家居系统设计中,串行通信是实现上位机与下端模块通信的最主要的手段。为了提高上位机与下端模块的通信效率,在上位机设计时通过使用Windows的MSComm控件和自编制的串口接收发送动态控件的比较,发现利用MSComm控件虽然可以方便快捷地编制出上位机程序,但其通信效率偏低,误帧和失帧率较高,只适用于单模块测试。对于多模块实时通信系统,采用其他控件或自编制收发程序更为有效。
Serial communication is the most important communication method between upper computer control and lower model(MCU) in the design of intelligent home system. By comparison between MSComm control of Windows and self-written serial transcieving dynamic control during the design of the uppereomputer to improve the communication efficiency of the upper computer control and the model at lower end, it is found that the communication efficiency of the upper computer program written by MSComm control is low, and the rate of error-frame and lost-frame is high though the program can be written out quickly with MSComm control. Two different ways to test the serial port communication abbility and find the follow facts: MSComm control can only use in single model can't use in a multi-model system.
出处
《现代电子技术》
2010年第13期133-136,共4页
Modern Electronics Technique
关键词
上位机
单片机
智能家居系统
协议
串行通信
MSCOMM控件
upper computer control
MCU
intelligent home system
protocols
serial communication
MSComm control