摘要
在开发一卡通系统的通信模块时由于通信请求的随机性和突发性使得反应不及时从而易造成通信错误及不可靠。文章介绍了使用多线程、串口等技术开发一卡通系统中的通信模块,并将其封装在控件中,较好地解决了对突发性请求的及时响应问题,并给出了程序的测试结果。
In development of the communication module for the sink-card system, the randomness and burst of the communication request could result in the delay of the response, thus leading to the inaccuracy and unreliability of communication. In this paper, a new method is proposed, which uses the multiple thread and serial port to develop the communication module encapsulated in the controls for the sink-card system. The problem of the timely response to the sudden request is properly solved. And the test results of the programs are also given in this paper.
出处
《通信技术》
2009年第2期326-327,共2页
Communications Technology
关键词
多线程
串口通信
一卡通
multiple thread
series communication
one-card