Closed ggrilli75 closed 4 years ago
need to add line:
#include <RF24/utility/RPi/bcm2835.h>
Having the same issue on a pi zero :
Traceback (most recent call last):
File "cpass_rpi_hub.py", line 215, in
@flightjumpr Clearly RPI_BPLUS_GPIO_J8_22 is not defined on a Pi Zero, replace the content with relevant and your Pi specific pins.
@ggrilli75 Did TasPats' suggestion help you?
@ggrilli75 i am also trying to run RF24 Network on RPI 3B+. When in try to run the example from pyRF24Network folder it is showing no module named RF24. Can you please share the installation details to run python script on rpi
Yes, I will send it to you. to be able to help you as much as I can
El mar., 7 de may. de 2019 09:58, vamsikrishnaA9 notifications@github.com escribió:
@ggrilli75 https://github.com/ggrilli75 i am also trying to run RF24 Network on RPI 3B+. When in try to run the example from pyRF24Network folder it is showing no module named RF24. Can you please share the installation details to run python script on rpi
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nRF24/RF24Network/issues/113#issuecomment-490068424, or mute the thread https://github.com/notifications/unsubscribe-auth/ADDTD6FFUUUSHB7CGDHREVTPUF4G5ANCNFSM4DLPXJMQ .
Thank you very much for your reply. I am doing project with nrf modules using rpi. But i am unable to run helloworld-tx.py file. I am new to rpi linux environment please help
Whats error you get up?
El mar., 7 de may. de 2019 12:55, vamsikrishnaA9 notifications@github.com escribió:
Thank you very much for your reply. I am doing project with nrf modules using rpi. But i am unable to run helloworld-tx.py file. I am new to rpi linux environment please help
On Tue, 7 May 2019 at 9:22 PM, ggrilli75 notifications@github.com wrote:
Yes, I will send it to you. to be able to help you as much as I can
El mar., 7 de may. de 2019 09:58, vamsikrishnaA9 < notifications@github.com
escribió:
@ggrilli75 https://github.com/ggrilli75 i am also trying to run RF24 Network on RPI 3B+. When in try to run the example from pyRF24Network folder it is showing no module named RF24. Can you please share the installation details to run python script on rpi
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub < https://github.com/nRF24/RF24Network/issues/113#issuecomment-490068424 , or mute the thread <
https://github.com/notifications/unsubscribe-auth/ADDTD6FFUUUSHB7CGDHREVTPUF4G5ANCNFSM4DLPXJMQ
.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/nRF24/RF24Network/issues/113#issuecomment-490138885 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AL7HXTXO27OUOKP4MLTLA23PUGQUFANCNFSM4DLPXJMQ
.
-- With regards
Vamsi Krishna
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nRF24/RF24Network/issues/113#issuecomment-490140184, or mute the thread https://github.com/notifications/unsubscribe-auth/ADDTD6DGRFBGEB6KH6J7UNTPUGRATANCNFSM4DLPXJMQ .
No module named RF24 Not found
Actually i had seen to eliminate the above error we need to install python wrapper class https://tmrh20.github.io/RF24/Python.html see the link. After done steps same error is coming. I think i didn’t installed properly. If that is the only mistake correct me, if not please teach me the way to run python scripts
I made the following instructions for you...
1) Clone the RF24Network repository: git clone https://github.com/TMRh20/RF24Network.git
2) Switch to the RF24Network folder cd RF24Network
3) Clone there in the repository RF24 git clone https://github.com/TMRh20/RF24.git
4) Switch to the RF24 folder and compile the module cd RF24 sudo make install 5) Go back to the folder to the RF24Network folder and compile the module cd .. sudo make install
Now comes the next stage of generating the python packages for RF24Network and RF24
1) Run the python file setup.py in the folder RF24Network / RF24 / pyRF24 sudo python setup.py install 2) Run the python file setup.py in the folder RF24Network / RPi / pyRF24Network sudo python setup.py install
With these steps you all set to start working on python .... I hope you found the information served.
El mar., 7 may. 2019 a las 13:23, vamsikrishnaA9 (notifications@github.com) escribió:
Actually i had seen to eliminate the above error we need to install python wrapper class https://tmrh20.github.io/RF24/Python.html see the link. After done steps same error is coming. I think i didn’t installed properly. If that is the only mistake correct me, if not please teach me the way to run python scripts
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nRF24/RF24Network/issues/113#issuecomment-490150981, or mute the thread https://github.com/notifications/unsubscribe-auth/ADDTD6AWEZKJLDH5TIQAY2TPUGUH7ANCNFSM4DLPXJMQ .
--
hi, i have gone through above instructions you have made Errors are coming at sudo python setup.py install command. It is showing boost/python.hpp: No such file or directory. here is the screen shot which can describe more. please lookinto this and help me thank you [image: 2019-05-09-083142_1600x900_scrot.png] vamsi krishna
On Tue, May 7, 2019 at 9:42 PM ggrilli75 notifications@github.com wrote:
I made the following instructions for you...
1) Clone the RF24Network repository: git clone https://github.com/TMRh20/RF24Network.git
2) Switch to the RF24Network folder cd RF24Network
3) Clone there in the repository RF24 git clone https://github.com/TMRh20/RF24.git
4) Switch to the RF24 folder and compile the module cd RF24 sudo make install 5) Go back to the folder to the RF24Network folder and compile the module cd .. sudo make install
Now comes the next stage of generating the python packages for RF24Network and RF24
1) Run the python file setup.py in the folder RF24Network / RF24 / pyRF24 sudo python setup.py install 2) Run the python file setup.py in the folder RF24Network / RPi / pyRF24Network sudo python setup.py install
With these steps you all set to start working on python .... I hope you found the information served.
El mar., 7 may. 2019 a las 13:23, vamsikrishnaA9 (< notifications@github.com>) escribió:
Actually i had seen to eliminate the above error we need to install python wrapper class https://tmrh20.github.io/RF24/Python.html see the link. After done steps same error is coming. I think i didn’t installed properly. If that is the only mistake correct me, if not please teach me the way to run python scripts
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/nRF24/RF24Network/issues/113#issuecomment-490150981 , or mute the thread < https://github.com/notifications/unsubscribe-auth/ADDTD6AWEZKJLDH5TIQAY2TPUGUH7ANCNFSM4DLPXJMQ
.
--
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nRF24/RF24Network/issues/113#issuecomment-490247577, or mute the thread https://github.com/notifications/unsubscribe-auth/AL7HXTTE65PXRVNPUO5XNHDPUHSTXANCNFSM4DLPXJMQ .
Do you know if boost packet is installed?
El jue., 9 de may. de 2019 04:38, vamsikrishnaA9 notifications@github.com escribió:
hi, i have gone through above instructions you have made Errors are coming at sudo python setup.py install command. It is showing boost/python.hpp: No such file or directory. here is the screen shot which can describe more. please lookinto this and help me thank you [image: 2019-05-09-083142_1600x900_scrot.png] vamsi krishna
On Tue, May 7, 2019 at 9:42 PM ggrilli75 notifications@github.com wrote:
I made the following instructions for you...
1) Clone the RF24Network repository: git clone https://github.com/TMRh20/RF24Network.git
2) Switch to the RF24Network folder cd RF24Network
3) Clone there in the repository RF24 git clone https://github.com/TMRh20/RF24.git
4) Switch to the RF24 folder and compile the module cd RF24 sudo make install 5) Go back to the folder to the RF24Network folder and compile the module cd .. sudo make install
Now comes the next stage of generating the python packages for RF24Network and RF24
1) Run the python file setup.py in the folder RF24Network / RF24 / pyRF24 sudo python setup.py install 2) Run the python file setup.py in the folder RF24Network / RPi / pyRF24Network sudo python setup.py install
With these steps you all set to start working on python .... I hope you found the information served.
El mar., 7 may. 2019 a las 13:23, vamsikrishnaA9 (< notifications@github.com>) escribió:
Actually i had seen to eliminate the above error we need to install python wrapper class https://tmrh20.github.io/RF24/Python.html see the link. After done steps same error is coming. I think i didn’t installed properly. If that is the only mistake correct me, if not please teach me the way to run python scripts
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub < https://github.com/nRF24/RF24Network/issues/113#issuecomment-490150981 , or mute the thread <
https://github.com/notifications/unsubscribe-auth/ADDTD6AWEZKJLDH5TIQAY2TPUGUH7ANCNFSM4DLPXJMQ
.
--
— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/nRF24/RF24Network/issues/113#issuecomment-490247577 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AL7HXTTE65PXRVNPUO5XNHDPUHSTXANCNFSM4DLPXJMQ
.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nRF24/RF24Network/issues/113#issuecomment-490788694, or mute the thread https://github.com/notifications/unsubscribe-auth/ADDTD6CV2Q5XJQMZ2YQ64Y3PUPIGJANCNFSM4DLPXJMQ .
yes, i have installed and successfully run all python setup.py files. but i am unable to run the exact pyhton script files in python idle.( no module named RF24)
by sudo ./helloworld_tx.py i can able to run the program it is executed but pop with sum error. when i run the same program through idle it won't. i want that python scripts to be run idle so that i can write other code and use this network examples as a part in my project. i am much thankful to your patience and listening to problem.
I see that you do not have the same library installed in my raspberry ... If you want I offer to reinstall it remotely.
El mar., 14 de may. de 2019 12:32, vamsikrishnaA9 notifications@github.com escribió:
yes, i have installed and successfully run all python setup.py files. but i am unable to run the exact pyhton script files in python idle.( no module named RF24) [image: 2019-05-13-081644_1600x900_scrot] https://user-images.githubusercontent.com/50232270/57710574-d7d2ed80-768a-11e9-9602-5677057341ab.png [image: 2019-05-10-090214_1600x900_scrot] https://user-images.githubusercontent.com/50232270/57710604-e28d8280-768a-11e9-8a00-e892e162750b.png [image: 2019-05-13-081957_1600x900_scrot] https://user-images.githubusercontent.com/50232270/57710611-e6b9a000-768a-11e9-8ffa-2a7bba30ad20.png
by sudo ./helloworld_tx.py i can able to run the program it is executed but pop with sum error. when i run the same program through idle it won't. i want that python scripts to be run idle so that i can write other code and use this network examples as a part in my project. i am much thankful to your patience and listening to problem.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nRF24/RF24Network/issues/113?email_source=notifications&email_token=ADDTD6BDQRDQKOBXWGDYZM3PVLLPZA5CNFSM4DLPXJM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVL3XBQ#issuecomment-492288902, or mute the thread https://github.com/notifications/unsubscribe-auth/ADDTD6FYNBQ4B32GRTPV7UDPVLLPZANCNFSM4DLPXJMQ .
Thanks my email id - vamsikrishnavuyyuru007@gmail.com
I will do my steps on pi please send me a mail. -- With regards
Vamsi Krishna
Hello, I am facing the same problem as the initial issue by ggrilli75. I get the error: NameError: name 'RPI_V2_GPIO_P1_15' is not defined
I am using rpi 4 B model. Any help?
Hello, I would have to see if there is any variant for raspberry 4, since I have implemented it with rpi 2 and rpi3. Any news I notify you Cheers
El mié., 21 de oct. de 2020 17:55, Younes Sadat-Nejad < notifications@github.com> escribió:
Hello, I am facing the same problem as the initial issue by ggrilli75. I get the error: NameError: name 'RPI_V2_GPIO_P1_15' is not defined
I am using rpi 4 B model. Any help?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nRF24/RF24Network/issues/113#issuecomment-713871941, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADDTD6BZJTGL4O4AFWV7IY3SL5DEJANCNFSM4DLPXJMQ .
Hello, I would have to see if there is any variant for raspberry 4, since I have implemented it with rpi 2 and rpi3. Any news I notify you Cheers El mié., 21 de oct. de 2020 17:55, Younes Sadat-Nejad < notifications@github.com> escribió: … Hello, I am facing the same problem as the initial issue by ggrilli75. I get the error: NameError: name 'RPI_V2_GPIO_P1_15' is not defined I am using rpi 4 B model. Any help? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#113 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADDTD6BZJTGL4O4AFWV7IY3SL5DEJANCNFSM4DLPXJMQ .
Hello, Thank you for getting back to me. Is there any way around it? I tried the following:
import spidev spi = spidev.SpiDev() spi.open(0, 0) spi.max_speed_hz = 8000
radio = RF24(22,0)
The code runs without Error, but I do not receive anything .... I am sure the problem is not from the sender because Arduino to Arduino works fine.
Please let me know? Thank you Best
@Younes-SadatNejad If the adding that code worked for you, then the only line that would seem to do anything is the
import spidev
Where as the rest of the code you posted would be problematic. I'm talking about this:
spi = spidev.SpiDev()
spi.open(0, 0)
spi.max_speed_hz = 8000
because you're essentially creating 2 object to manipulate an SPI bus: 1 with spi = spidev.SpiDev()
and another with radio = RF24(22, 0)
. It wouldn't hurt to find/read the documentation on the python wrapper for SPIDEV because I think spi.open(0, 0)
is more applicable to RPi1 where spi.open(1, 0)
is typical of RPi model B+ or later (going off of memory here so I could be wrong). IIRC, the second argument to spi.open()
is the RPi's CE pin offering (can be 0 or 1).
I'm actually more curious if your code has this:
import RPi.GPIO
as that is the library used for manipulating pins in the python wrapper. HINT: you may need to install the RPi.GPIO python module (via pip3 install RPi.GPIO
). Also, if you're program isn't using python3, you should consider migrating to it as python2 is officially dead.
Beware of copying code from tutorials, especially if using GPIO pins and the tutorial is coded for antiquated device(s)/library(s)
I say this because I'm testing new python examples for the RF24 repo (on RPi4), and all works well using the following code:
import time
import RPi.GPIO as GPIO
from RF24 import RF24, RF24_PA_LOW
########### USER CONFIGURATION ###########
# See https://github.com/TMRh20/RF24/blob/master/pyRF24/readme.md
# Radio CE Pin, CSN Pin, SPI Speed
# CE Pin uses GPIO number with BCM and SPIDEV drivers, other platforms use
# their own pin numbering
# CS Pin addresses the SPI bus number at /dev/spidev<a>.<b>
# ie: RF24 radio(<ce_pin>, <a>*10+<b>); spidev1.0 is 10, spidev1.1 is 11 etc..
# Generic:
radio = RF24(22, 0)
# RPi Alternate, with SPIDEV - Note: Edit RF24/arch/BBB/spi.cpp and
# set 'this->device = "/dev/spidev0.0";;' or as listed in /dev
# initialize the nRF24L01 on the spi bus
radio.begin()
# set the Power Amplifier level to -12 dBm since this test example is
# usually run with nRF24L01 transceivers in close proximity of each other
radio.setPALevel(RF24_PA_LOW) # RF24_PA_MAX is default
Hello I'm trying to run RF24 Network in raspberri Pi 3, in python,
Follow the installation instructions for the RF24 and RF24 Network libraries
But when executing the example codes of the pyRF24Network folder, I deviated the following result:
File "helloworld_tx.py", line 29, in
Radio = RF24 (RPI_V2_GPIO_P1_15, RPI_V2_GPIO_P1_24, BCM2835_SPI_SPEED_8MHZ)
NameError: name 'RPI_V2_GPIO_P1_15' is not defined
Any idea to solve? Thank you