登录
首页 » c » nrf2401一对一代码

nrf2401一对一代码

于 2023-07-20 发布 文件大小:6.35 MB
0 184
下载积分: 2 下载次数: 1

代码说明:

要弄懂NRF的多对一通信,我们先要清楚NRF的一对一通信的地址设置,为了解说通俗我们将NRF24L01之间的通信比作两个人写信交流:首先寄信方将信件寄给收信方,收信方收到信件之后回信给寄信方确认收到信件。(以上为NRF24L01一次通信的过程,即发送端T发送信息给接收端R的流程)要完成双方的信件互通,那么双方都要知道对方的地址。这对应着NRF24L01作为发送端T时要设置1、发送地址:TX_ADDR。2、应答信号地址:RX_ADDR_P0(通道0用来接收接收端R的应达信号)。而接收端R要设置接收地址:RX_ADDR_Px(x取值为0到5,一个NRF24L01有6个通道,每一个通道都能设置作为接收信号的通道)  以上三个地址都要设置为相同的值。因为A发送信息给B,B把A的发送地址作为目标地址发回一个应答信号ACK,所以发送地址=应答信号地址=接收地址。注意:只有发送端的通道0才能接收应答信号。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • chuankouhuaqux
    说明:  串口画实时曲线,基于com控件的温湿度采集系统设计(Serial real-time curve of paintings, based on the com acquisition of temperature and humidity control system design)
    2008-10-18 15:07:36下载
    积分:1
  • studentSnopt
    matlab snopt 学生版,求解大规模非线性规划问题(matlab snopt Student Edition, for solving large-scale nonlinear programming problem)
    2014-09-13 22:13:46下载
    积分:1
  • mpu9250_zupt
    基于零速更新算法的步态检测,在STM32单片机上实现,效果很好,可以计算出位移,角度等。(Based on the zero-speed update algorithm gait detection, STM32 microcontroller to achieve, the effect is very good, you can calculate the displacement, angle and so on.)
    2017-03-13 14:36:42下载
    积分:1
  • CAN2.0规范
    网上很多都是英语的,现在把CAN2.0规范中文版的分享出来,有需要的朋友可以下载下来学习了。(Chinese version of the CAN2.0 specification,)
    2017-08-04 10:56:59下载
    积分:1
  • 图像处理的题目
    图像处理的题目,DDAG和NB的结合,决策导向有环图和朴素贝叶斯分类器的结合
    2022-03-11 01:13:44下载
    积分:1
  • dac
    简易函数发生器,能产生正弦波,三角波,梯形波,方波,并且可调频率和幅度值。(Simple function generator can produce sine, triangle wave, trapezoidal wave, square wave, and the adjustable frequency and amplitude values.)
    2011-08-28 14:11:37下载
    积分:1
  • Iocomp
    说明:  C#美观的工业控件,适用于工业上位计算机软件见开发(C # Beautiful Industrial Controls)
    2020-12-30 14:58:59下载
    积分:1
  • 场景仿真
    一个场景仿真模型This sample illustrates the use of IR Scene Generator (vpIRSceneGen).  It defines the class myApp, which is derived from vpApp, and overrides the vpApp::onKeyInput() method to allow for additional keyboard input.  The town.acf loads town.flt and allows the user to fly around the database using a UFO motion model.  The tank.acf loads m1_tank.flt and allows the user to fly around the model using the spin motion model.  Both simulate a basic 3-5 micron FLIR setup.  The tank_2chan_flir_nvg.acf shows a comparison of FLIR and NVG sensors.  Notice that changing the part temperatures for the tank has a greater effect on the FLIR image than on NVG until the tank is literally “glowing” hot.  This highlights the difference in the reflectance and emittance portions of the radiometric solution and demonstrates the wavebands in which the sensors are sensitive.
    2022-01-25 20:34:59下载
    积分:1
  • 8051 flash 程序编写源码
    ifdef __FLASH_ISP__  /* typedef unsigned int FLADDR;  void FLASH_ByteWrite (FLADDR addr, char byte); unsigned char FLASH_ByteRead (FLADDR addr); void FLASH_PageErase (FLADDR addr);   void FLASH_Write (FLADDR dest, char *src, unsigned numbytes); char * FLASH_Read (char *dest, FLADDR src, unsigned numbytes);  */    void FLASH_ByteWrite (FLADDR addr, char byte)  {      bit EA_SAVE = EA;                   // preserve EA      char xdata * data pwrite;           // FLASH write pointer        EA = 0;                             // disable interrupts        #ifdef __NULL_VDM0
    2022-03-06 19:00:52下载
    积分:1
  • DSP1
    TMS320C6455的技术文档,包含DSP TMS320C6455的各种模块详细资料及一些学习DSP的资料,主要的是片伤支持函数API(TMS320C6455 technical documentation, including DSP TMS320C6455 details of the various modules and some DSP-learning materials, the main function is to support the API)
    2010-08-01 23:14:20下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载