温室环境信息采集系统的USB接口设计

    USB interface design for greenhouse environment data acquisition system

    • 摘要: 通用串行总线USB(Universal Serial Bus)具有支持热插拔、传输速度快、可靠性高、可扩展性强等优点,作为一种通信接口规范,它被广泛地应用于PC机和外围设备的通信系统中。设计了以AT89C52为MCU,基于USB芯片PDIUSBD12的温室环境信息采集系统,实现了对温室环境的温度、湿度、光照和二氧化碳浓度等各项参数的测定,并设计开发了该接口芯片的固件程序,操作系统驱动程序和主机应用程序。驱动程序采用WDM驱动程序模型,实现了USB设备的热插拔和访问操作。应用程序采用VC++ 6.0为开发环境,把USB设备当作文件来操作,实现了数据的批量传输,大大提高了传输速度。

       

      Abstract: Universal Serial Bus(USB), as a communication interface specification, is widely applied to communication system between the personal computer and external device. The advantages of USB are of hot inserting and pulling operation, high-speed data transfer, high reliability and high expansibility. A greenhouse environment data acquisition system, which applied the MCU (Micro Control Unit) AT89C52 and the specialized USB interface chip PDIUSBD12 was expatiated in this paper. The designs of hardware, driver software and application software were also introduced. The driver software accepted Windows Driver Model (WDM), which achieved the USB device hot inserting and pulling operation. The Visual C++ 6.0 was used to design application software. In that procedure the USB device was handled as files and the high speed bulk transfer of data could be realized.

       

    /

    返回文章
    返回