Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spi.open FileNotFoundError #10

Open
mgh2010 opened this issue Feb 18, 2023 · 2 comments
Open

spi.open FileNotFoundError #10

mgh2010 opened this issue Feb 18, 2023 · 2 comments

Comments

@mgh2010
Copy link

mgh2010 commented Feb 18, 2023

hi, I installed latest version of LoRaRF with pip on raspberry pi Zero 2 w and i have Lora Ai-Thinker Ra-02 with SX1278.
I did enabled the SPI as well. but keep getting this error. what is Wrong?

image

and using this example code:

https://github.com/chandrawi/LoRaRF-Python/blob/main/examples/SX127x/transmitter.py

@mgh2010 mgh2010 changed the title spi.open FileNotDoundError spi.open FileNotFoundError Feb 18, 2023
@chandrawi
Copy link
Owner

If you sure you have enabled SPI, FileNotFound error happen because the problem in Linux kernel, or you used wrong SPI bus you already enabled. Please note that if SPI is enabled and no issue in Linux kernel, this error is not going to happen even the SPI pin does not connect to the LoRa module. So, it is not caused by wrong wiring connection.

I guess the error happen because you enable SPI bus 0 and you did not change the SPI bus id in the example from 1 to 0. Also make sure you connect CS pin correctly.

@chandrawi
Copy link
Owner

chandrawi commented May 14, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants