Attempting to transmit out of 2 SX1262s #1282
-
Hello everyone, I'm working on a project where I need to connect two or more SX1262 radios to a single SPI peripheral on a Raspberry Pi 4. My goal is to configure and transmit from multiple radios within the same code using the RadioLib library. I tried to achieve this by initializing 2 radios, and then using the NSS pin to determine which radio should transmit. Using this same script, I could get the individual radios to work by commenting off the other radios, and have not touched the wiring since. Also, I found that only the last initialized radio will transmit successfully, while the other radio would have its pins be busy. Would be grateful if anyone could give some advice; I am new to this scene. Thanks! Problem: Single Radio Success: Multiple Radios Issue: Testing Individual Radios: How can I properly control and transmit from two or more SX1262 radios connected to a single SPI peripheral on a Raspberry Pi 4 using RadioLib? Is there a way to manage the NSS pins or SPI transactions to prevent conflicts between the radios? I'm relatively new to SPI communication and RadioLib, so any detailed explanations or guidance would be greatly appreciated. Thank you.
The logs:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
There is a topic two down from yours about wiring up two radios, probably best you read that and try some suggestions there first. |
Beta Was this translation helpful? Give feedback.
-
Couple of points:
|
Beta Was this translation helpful? Give feedback.
Couple of points:
Error writing value to pin 12: GPIO busy
- that is not from RadioLib, most likely from the HAL.