-
Notifications
You must be signed in to change notification settings - Fork 17
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
Question: SPI settings Raspberry Pi 3 B+ Lora HAT #7
Comments
ahh yes this is a classic embedded adventure, sorry that i haven't documented the generics better (if you fancy a PR later we could add some better docs and instructions for this shield).
there isn't super common nomenclature but yep, all talking about the SPI chip select pin
yep
yeah, the radio has a set of configurable
As in you can interact with the device and send radio messages and things with It's is however possible you have a different version of the IC and that this needs updating to add the different version number. It's also possible you haven't got the right reset pin mapped, because the driver will attempt to reboot the radio on connect / you shouldn't need to restart the pi.
So long as you've enabled the SPI / are using the right spidev you shouldn't need to worry about MOSI/MISO (this is defined by the SPI device, and works on my rpi), should be just |
EDIT: Solved The config is:
The table I linked must have referred to another raspi-version. I'll do some experimenting and then I try to do a PR improving documentation. |
I am new to embedded, I hope it is ok to ask here, I have so much information and I can't figure out how it all relates. I am hoping to get some pointer that helps me to connect the information. I am trying to find out how the settings:
translate to the information from the Lora HAT [1] From their sample code that works and runs with WiringPI [2] I get these pin numbers:
I learned that nss, ss, ssPin, ce (chip enable) and cs (chip select) is the same thing. So it got one pin number, but I don·'t know if the numbering is the same.
I assume that RST is reset
This leaves dio0 to be busy??
The names the lora HAT uses in documentation is
The biggest problem is, every subsystem numbers the pins different. See image:
Does the kernel translate the pin numbers too? I mean we access SPI via kernel device.
I converted the numbers in many way from most reasonable to some strange ways. What ever I do there are two outcomes
I also read about SPI and naming conventions didn't completely match neither rust-radio-sx127x nor one used in the Lora HAT.
[1] http://wiki.dragino.com/index.php?title=Lora/GPS_HAT
[2] http://wiringpi.com/
The text was updated successfully, but these errors were encountered: