BBB with nRF24L01+: Cannot send/receive data

223 views
Skip to first unread message

Hồng Quân Nguyễn

unread,
May 14, 2016, 12:02:00 AM5/14/16
to BeagleBoard
Hi guys,

I have difficulty controlling nRF24L01+ on BeagleBone Black using Python.

I use this library https://github.com/jpbarraca/pynrf24
Here is my code: http://pastie.org/10836500

Here is output of printDetails:

STATUS          = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1    = 0xe7e7e7e7e7 0xc2c2c2c2c2
RX_ADDR_P2-5    = 0xc3 0xc4 0xc5 0xc6
TX_ADDR         = 0xe7e7e7e7e7
RX_PW_P0-6      = 0x08 0x08 0x00 0x00 0x00 0x00
EN_AA           = 0x3f
EN_RXADDR       = 0x02
RF_CH           = 0x60
RF_SETUP        = 0x06
SETUP_AW        = 0x03
OBSERVE_TX      = 0x00
CONFIG          = 0x0c
FIFO_STATUS     = 0x11
DYNPD           = 0x00
FEATURE         = 0x00
Data Rate       = 1MBPS
Model           = nRF24l01+
CRC Length      = 16 bits
PA Power        = PA_MAX

For the other side, we use Arduino.

The problem is that:

- BeagleBone side cannot send to Arduino side, with error MAX_RT

- BeagleBone side can receive data from Arduino side, but now cannot receive.

Do you have any notice for me to make it work?

I connect nRF24L01+ to SPI0 port of BeagleBone, so it should not have conflict with HDMI.

juan...@gmail.com

unread,
Nov 4, 2017, 5:14:53 PM11/4/17
to BeagleBoard
I get this error, any idea? thanks.

root@beaglebone:~# python send.py
Traceback (most recent call last):
  File "send.py", line 9, in <module>
    from nrf24 import NRF24
ImportError: No module named nrf24

Graham

unread,
Nov 4, 2017, 7:24:11 PM11/4/17
to BeagleBoard
It means that python is looking for a code module named nrf24.py, and it can not find it.
So, either you don't have it, or you put it in the wrong place.

--- Graham

==

Dennis Lee Bieber

unread,
Nov 4, 2017, 7:32:26 PM11/4/17
to beagl...@googlegroups.com
On Fri, 3 Nov 2017 21:34:57 -0700 (PDT),
juan...@gmail.com declaimed the following:
Have you installed the relevant library? (I think it may be:
https://github.com/jpbarraca/pynrf24 )
--
Wulfraed Dennis Lee Bieber AF6VN
wlf...@ix.netcom.com HTTP://wlfraed.home.netcom.com/

Reply all
Reply to author
Forward
0 new messages