In order to meet the demands of wireless data transmission, as well as to resolve the lack of nRF24L01 driver based on Linux, the driver of nRF24L01 is designed based on Linux.nRF24L01 exchanges data with external controller through SPI interface. Firstly,we drive nRF24L01 by using GPIO to simulate the SPI timing to achieve the SPI read and write operation. Secondly, the design of the system is provided, and the hardware interface and software process is disserted and carry on the detailed elaboration to the key functions. Lastly it achieves nRF24L01's wireless transmisson and test to verify the correctness of the driver based on the embedded microprocessor S3C6410.%针对无线音频数据传输的需要,以及基于ARM11处理器的nRF24L01驱动程序的缺乏,设计了在Linux系统下基于ARM11处理器的nRF24L01模块驱动程序。nRF24L01模块通过SPI接口和外部控制器进行数据交换。首先,结合nRF24L01模块的性能特点和Linux系统下字符设备驱动开发的流程,通过GPIO接口软件模拟SPI时序实现SPI读写操作,从而驱动nRF24L01模块。其次,给出了系统的整体方案,论述了系统硬件接口和软件流程,并对部分关键函数进行详细阐述。最后,在嵌入式处理器S3C6410平台上实现nRF24L01的无线收发,通过测试以验证驱动程序的正确性。
展开▼