计算机应用 ›› 2010, Vol. 30 ›› Issue (12): 3413-3415.

• 典型应用 • 上一篇    下一篇

基于TE2440-II的嵌入式温度采集驱动实现

胡成1,杨林楠2,郜鲁涛1   

  1. 1. 云南省高校农业信息技术重点实验室
    2. 云南农业大学基础与信息工程学院,云南省高校农业信息技术重点实验室
  • 收稿日期:2010-05-13 修回日期:2010-07-13 发布日期:2010-12-22 出版日期:2010-12-01
  • 通讯作者: 杨林楠
  • 基金资助:
    “十一五”国家科技支撑计划——农村生态环境保护信息化技术研究

Implementation of driver for embedded temperature collection system based on TE2440-II

  • Received:2010-05-13 Revised:2010-07-13 Online:2010-12-22 Published:2010-12-01
  • Contact: YANG Lin-Nan

摘要: 针对Linux最新版本内核下对数字温度传感器DS18B20提供驱动支持研究较少的问题,完成了DS18B20在Linux 2.6.28内核下驱动的开发。利用Linux字符设备驱动编写的基本方法,结合DS18B20的基本工作原理,在TE2440-II开发平台上进行了驱动和应用程序的设计。实验结果表明,方案切实可行,降低了传统单片机加PC机温度采集模式的运行成本,并已成功应用于温室大棚智能温度监测系统中。

关键词: TE2440-II, DS18B20, 驱动设计, 温度监测

Abstract: DS18B20, a digital temperature sensor with high commonality, has been widely used in various temperature acquisition systems. But it can not be driven in the latest kernel of Linux version. The authors analyzed and designed a driver for the DS18B20 in Linux 2.6.28 based on the hardware platform TE2440-II. This new device driver was accomplished by making use of driving writing method of Linux character device and operating principles of DS18B20. The application of the new driver for DS18B20 indicates that this new driver reduces total operation cost compared with the traditional temperature collection modes by single chip computer and PC-compatible. And this new driver was used successfully on intelligent temperature monitoring system in greenhouses.

Key words: TE2440-II, DS18B20, driver design, temperature detection