摘要
为了解决传统的有线温湿度采集系统布线难、灵活性差等问题,设计了基于嵌入式Linux的无线温湿度采集系统。首先,进行了硬件方案的设计;其次,在此基础上设计了采集系统在嵌入式Linux下面的驱动程序。在该驱动程序中,编写了利用S3C2440的SPI1接口与nRF24L01之间进行标准SPI通信的驱动程序,解决了在模拟SPI时序时,嵌入式Linux的多任务处理特性而导致的延时不准确的问题。最后设计了采用双线程和信号量的Linux应用程序,并验证了该采集系统的准确性和可行性。
To solve the difficulties and poor flexibility in wiring of the traditional acquisition system for temperature and humidity,the wireless temperature and humidity acquisition system based on embedded Linux is designed. Firstly, hardware solution is presented. Secondly,device driver of acquisition system based on the embedded Linux is designed. Among of this, the driver for SPI communication between S3C2440 SPI1 interface and the nRF24L01 is redacted,which has solved the inaccurate delay problem, caused by multi-tasking features of embedded Linux in the simulating SPI timing. Finally, Linux application program, which employs both-threaded and semaphore, was devised. The accuracy and feasibility of the acquisition system was verified.
出处
《电子测量技术》
2012年第12期71-74,共4页
Electronic Measurement Technology