journal6 ›› 2011, Vol. 32 ›› Issue (4): 68-70.

• 物理与电子 • 上一篇    下一篇

多串口多线程交通信号灯数据采集软件系统设计

  

  1. (娄底职业技术学院,湖南 娄底 417000)
  • 出版日期:2011-07-25 发布日期:2012-04-07
  • 作者简介:张艳霞(1984-),女,湖南常德人,娄底职业技术学院教师,硕士,主要从事计算机应用研究.

Data Collecting Software Design for Traffic Lights’ Signal Based on Multi-Serial Port and Multithreading

  1. (Loudi Vocational & Technical College,Loudi 417000,Hunan China)
  • Online:2011-07-25 Published:2012-04-07

摘要:提出了一种交通信号灯数据采集方法,采用多串口多线程技术实时采集多个路口的红绿灯信息,利用同步技术解决了各路数据的干扰.通信双方采用自定义的通信协议,从而提高了通信的可靠性和可维护性.中心端PC机实时接收各路信息,同时发送各种控制命令给路口,大大减弱了各个路口信号灯管理人员的劳动强度.

关键词: 数据采集, 多线程, 多串口, 红绿灯信息, 通信协议

Abstract: An improved data collecting method for traffic lights’ signal is presented,which uses multi-threading and multi-serial port technology to collect the traffic lights information from separate road junctions at the same time and uses synchronous technology to solve the interference from separate road junctions’ data information.A custom communication protocol is put forward for the both communicating sides to improve communication reliability and maintainability.The center-side PC can receive all the real-time information from separate road junctions and at the same time can send various control commands to the road junctions,which can greatly reduce the labor intensity of the management staff of separate road junctions.

Key words: data collection;multi-threading;multi-serial port;the traffic lights&rsquo, signal;communication protocol

公众号 电子书橱 超星期刊 手机浏览 在线QQ