Comments (3)
The "index out of bounds: the len is 9 but the index is 9" is an indication that the first SPI read operation attempted failed. It is unclear to me why the enable_public_network setting should have an effect on that.
Are you running one of the Embassy examples, and what combination of MCU/LoRa board are you running? The first thing to look at is the setup for SPI.
from lora-phy.
I found it, SPI frequency is way to high, 64MHz instead of the max 16 Mhz.
64 Mhz is used for the LCD which is also sharing the SPI bus.
Yes, I am using the embassy examples but I combined two of them to have LCD and LORA.
But sharing SPI bus is not so easy, It works I think but it is really ugly because LORA lib don´t accept SpiDevice.
So I had to write a wrapper around SpiBus to make it work.
This is the hardware I use.
Baseboard: https://www.waveshare.com/rp2040-lcd-0.96.htm (Modified: Moved LCD reset line to GP13)
Loraboard: https://www.waveshare.com/wiki/Pico-LoRa-SX1262
from lora-phy.
This is excellent information. lora-phy assumes ownership of the SPI bus because there is at least one MCU/LoRa chip combo that makes doing anything else problematic, if I remember correctly. I am glad to know there is an identified need for lora-phy to share the bus in some cases and have opened an issue for future consideration - unfortunately, I will be unavailable to work on that until the end of October.
Feel free to provide additional guidance in the issue I have opened.
from lora-phy.
Related Issues (11)
- Considering Serial Modules HOT 5
- Allow for different TCXO control voltages for 126X HOT 4
- Join failure on The Things Network using stm32wl HOT 1
- Consider upgrading for embedded-hal-async HOT 1
- Tips for inclusion in README
- Evaluate read status handling for IRQ events HOT 1
- Allow custom LoRa boards HOT 2
- Implement deep sleep for maximum power savings HOT 1
- LoRa Receive Soft Lock HOT 12
- Allow the LoRa chip to share the SPI bus HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lora-phy.