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

Use LORA_DIO1 as RadioLib GPIO for SX127x chips #2290

Merged
merged 6 commits into from
Feb 20, 2023

Conversation

GUVWAF
Copy link
Member

@GUVWAF GUVWAF commented Feb 19, 2023

This will set the LORA_DIO1 pin as the GPIO for RadioLib when using the RF95Interface, which we also use for boards with pure SX127x chip. The function startChannelScan relies on it, so otherwise channel activity detection doesn’t work. I confirmed it to be working after this with two T-Beams (using a long preamble) when trying to send at the same time by looking at the waterfall with an SDR.

For boards with real RF95, this pin is not connected. Unfortunately I also found that for some TTGO LoRa32 boards this pin has to be wired manually.

Please check the new pin configurations. Since the only devices with a SX127x I have are T-Beams, I didn’t test other hardware. For the Heltec v1 I set the LORA_DIO1 as RADIOLIB_NC as otherwise it would overlap with GPS_TX_PIN.

This should really increase the reliability of messaging. Unfortunately it looks like channel activity detection also doesn’t work with SX126x. This might be related to startReceive (as opposed to startReceiveDutyCycleAuto) not working either.

@github-actions
Copy link
Contributor

🤖 Pull request artifacts

file commit
pr2290-firmware-2.0.21.4a7dc21.zip 4a7dc21

thebentern added a commit to meshtastic/artifacts that referenced this pull request Feb 20, 2023
@thebentern thebentern merged commit 95bbcd2 into meshtastic:master Feb 20, 2023
caveman99 pushed a commit that referenced this pull request Feb 22, 2023
* When channel is active, first try receiving that packet
Afterwards we'll try transmitting again

* Remove setStandby in startSend
Already done in isChannelActive()

* Set LORA_DIO1 as RadioLib GPIO for SX127x

* LORA_DIO1 for Heltec v1, overlaps with GPS_TX
Set to RADIOLIB_NC for now

* If receive was not successful, startReceive doesn't trigger the interrupt
So we have to go back to transmitting anyway

---------

Co-authored-by: Ben Meadors <[email protected]>
@GUVWAF GUVWAF deleted the fixCAD branch March 5, 2023 15:10
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

Successfully merging this pull request may close these issues.

2 participants