摘要
针对Linux最新版本内核下对数字温度传感器DS18B20提供驱动支持研究较少的问题,完成了DS18B20在Linux 2.6.28内核下驱动的开发。利用Linux字符设备驱动编写的基本方法,结合DS18B20的基本工作原理,在TE2440-II开发平台上进行了驱动和应用程序的设计。实验结果表明,方案切实可行,降低了传统单片机加PC机温度采集模式的运行成本,并已成功应用于温室大棚智能温度监测系统中。
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-Ⅱ.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.
出处
《计算机应用》
CSCD
北大核心
2010年第A12期3413-3415,共3页
journal of Computer Applications
基金
"十一五"国家科技支撑计划项目(2006BAD10A14)