Posts: 15
Joined: Fri Feb 14, 2014 6:52 pm

nRF24L01+ SPI issues

Mon May 04, 2015 10:51 am

Hi all
I'm using the PyRF24 library to try and use an nRF24L01+ radio module with my Pi.
When I run this code:

Code: Select all

from pyRF24 import pyRF24
radio = pyRF24("/dev/spidev0.0", 8000000, 18, retries = (15, 15), channel = 76, dynamicPayloads = True, autoAck = True)
I get the following error:

Code: Select all

can't send spi message: Invalid argument

Code: Select all

Module                  Size  Used by
i2c_dev                 6709  0
i2c_bcm2708             6200  0
snd_bcm2835            21342  0
snd_pcm                93100  1 snd_bcm2835
snd_seq                61097  0
snd_seq_device          7209  1 snd_seq
snd_timer              23007  2 snd_pcm,snd_seq
snd                    67211  5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
spi_bcm2708             6018  0
uio_pdrv_genirq         3666  0
uio                     9897  1 uio_pdrv_genirq
Any help much appreciated.
Thanks :)

Posts: 3382
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: nRF24L01+ SPI issues

Mon May 04, 2015 11:42 am

The python code should have return an error with a line number and the culprit file?

So which is the line?

Also Which library are you using? Where did you get it?

I'm doing some RF24 stuff also but I use a different approach.



Posts: 15
Joined: Fri Feb 14, 2014 6:52 pm

Re: nRF24L01+ SPI issues

Mon May 04, 2015 12:26 pm

Thanks for your reply.
There is no error from Python, the only output I get is that SPI invalid argument error.
I'm using this library, which uses Cython to essentially allow use of the Arduino RF24 library.
Cheers, your approach might likely be the way I end up going, but I'd like to see if there's any way to resolve my current method first :)

Posts: 5
Joined: Sat Aug 09, 2014 11:52 am

Re: nRF24L01+ SPI issues

Sun May 10, 2015 6:05 pm

I'm getting this problem too, any help?

Return to “Troubleshooting”