节点文献
串口通信技术在粮情测控系统中的应用
Application of serial port communication technology to the monitor system of grain depot’s states
【摘要】 为实现粮情测控系统中PC机与单片机之间的多机通信,提出了一种在Windows环境下利用VC++6.0的MSComm控件来实现此多机通信的可行方法,并简要介绍了VC++6.0的MSComm控件以及多机通信的原理,给出了进行多机通信的具体实现步骤与通信程序的主要代码.此多机通信的编程方法简化了复杂的通信协议,使串口编程显得比较简洁,且易于用其他的开发软件实现.
【Abstract】 In order to realize multicomputer communication between the PC and SCM in the monitor system of grain depot’s states, an approach to realizing this multicomputer communication is presented with the MSComm control component in VC 6.0. Furthermore, the MSComm control component in VC 6.0 is introduced and the principle of multicomputer communication is discussed. The steps of multicomputer communication and the communication program are also provided. The communication protocol is concise and the serial port program is easy by using the approach. It is easy to realize the approach with other development tools.
【Key words】 multicomputer communication; MSComm control component; assist thread;
- 【文献出处】 应用科技 ,Applied Science and Technology , 编辑部邮箱 ,2004年09期
- 【分类号】TP273
- 【被引频次】1
- 【下载频次】76