lib_nrf24 icon indicating copy to clipboard operation
lib_nrf24 copied to clipboard

Is this library still working?

Open achapela opened this issue 7 years ago • 11 comments

I cannot make this library work anymore. On the receiving end, the "available" function always returns true, even if no signal is being received.

Is this library still working? Or is there another one that I could try out? Please help.

achapela avatar Nov 14 '17 08:11 achapela

Hello @achapela , Did you find a way to use this library? I'm trying to use it to send/receive data on my Raspberry 2B but I have the same issue: the available function always return True =/ Thank you for your help

Chiendesenfers avatar Jan 28 '18 18:01 Chiendesenfers

Yes. It´s working, I'm using in Raspberry PI 3 with Raspbian Jessy.

Abi1506 avatar Feb 03 '18 20:02 Abi1506

@Abi1506 Thank you for your answer :) I finally find another library to make it works.

Chiendesenfers avatar Feb 03 '18 23:02 Chiendesenfers

@Gabedu2000 I use this one on my repo. I just finished to create a readme file to explain steps to install it (with Python). Don't hesitate to let me a comment if there are some mistake into my readme.

Chiendesenfers avatar Feb 04 '18 22:02 Chiendesenfers

@achapela No, actually doesn't work. Something changed in the Raspberry after an update.

Read this thread: https://raspberrypi.stackexchange.com/questions/71730/possible-spi-issues-around-nrf24-operations-post-rpi-system-update

It´s necessary to add self.spidev.max_speed_hz = 100000 in lib_nrf24.py

In the post say 4.000.000 but in my case I had to lower to 100.000 to make it works.

gcenjor avatar May 18 '18 06:05 gcenjor

Thank you all for the help. I didn't make it work so I moved to another library. Cheers

achapela avatar May 18 '18 18:05 achapela

@gcenjor Your fix worked thanks!

But your link no longer works here is the working link: https://raspberrypi.stackexchange.com/questions/71730/possible-spi-issues-around-nrf24-operations-post-rpi-system-update

Also for future referance you need to change in lib_nrf24.py in function:

def begin(self, csn_pin ... after self.spidev.open add:

self.spidev.max_speed_hz = 100000

fcanozkan avatar Jun 02 '18 22:06 fcanozkan

@achapela thank you for opening this thread! I had exactly the same issue after an update to Raspbian Stretch and five minutes ago I finally managed to find this thread by the help of the "big G" @fcanozkan and @gcenjor thank you for describing the solution - it works for me too. You made my day!

raspbuino avatar Dec 30 '18 18:12 raspbuino

This library no longer works on Buster and RPi 4. I've tried every possible combination of CE, CSN attachments and did the "self.spidev.max_speed_hz = " hack in lib_nrf24.py using various values. Can't seem to get it to talk to the radio. Also tried several different radios. Also - I have to radios humming away on two different arduinos sitting next to it so I know there is valid data being transmitted. Any additional help is very welcome!

markandkymward avatar Nov 25 '19 02:11 markandkymward

using the hack self.spidev.max_speed_hz = 100000

I can confirm that it worked in a raspberry pi zero w

somehow I needed to do a reboot after multiple tries and it works

Soneca-ii avatar Jan 18 '20 22:01 Soneca-ii

I confirm what @markandkymward mentioned:

Despite numerous attempt I can not make it work on a raspberryPi4. The Pi refuse to send data. Also down same test with 2 Arduino and the rf24 transmitter/receiver are working fine.

Will check if other library make it work but for the moment I am stuck. Any help you may have would be appreciated

This library no longer works on Buster and RPi 4. I've tried every possible combination of CE, CSN attachments and did the "self.spidev.max_speed_hz = " hack in lib_nrf24.py using various values. Can't seem to get it to talk to the radio. Also tried several different radios. Also - I have to radios humming away on two different arduinos sitting next to it so I know there is valid data being transmitted. Any additional help is very welcome!

zetoune2 avatar May 10 '20 11:05 zetoune2