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

Fix LoRaWAN PHY settings for SX126x driver #1064

Merged
merged 1 commit into from
Nov 21, 2022

Conversation

jbeaurivage
Copy link
Contributor

While working on #1023 / #1041, I noticed that the lorawan_device::PhyTxRx implementation does not conform to the LoRaWAN standard, and therefore devices using this driver could never communicate with a gateway. This PR backports the changes I've made to fix the offending parameters, and I can confirm that the driver now works with LoRaWAN networks.

  • Set preamble length to 8 symbols
  • Set polarity to inverted for received messages

* Set preamble length to 8 symbols
* Set polarity to inverted for received messages
Copy link
Member

@lulf lulf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking the time to look into and fix it 🚀

bors r+

bors bot added a commit that referenced this pull request Nov 21, 2022
1064: Fix LoRaWAN PHY settings for SX126x driver r=lulf a=jbeaurivage

While working on #1023 / #1041, I noticed that the `lorawan_device::PhyTxRx` implementation does not conform to the LoRaWAN standard, and therefore devices using this driver could never communicate with a gateway. This PR backports the changes I've made to fix the offending parameters, and I can confirm that the driver now works with LoRaWAN networks.

* Set preamble length to 8 symbols
* Set polarity to inverted for received messages

Co-authored-by: Justin Beaurivage <justin@wearableavionics.com>
@bors
Copy link
Contributor

bors bot commented Nov 21, 2022

Build failed:

@Dirbaio
Copy link
Member

Dirbaio commented Nov 21, 2022

bors r+

bors bot added a commit that referenced this pull request Nov 21, 2022
1060: feat: embassy-usb-logger and example for rpi pico r=Dirbaio a=lulf

* Add embassy-usb-logger which allows logging over USB for any device implementing embassy-usb
* Add example using logger for rpi pico

1064: Fix LoRaWAN PHY settings for SX126x driver r=Dirbaio a=jbeaurivage

While working on #1023 / #1041, I noticed that the `lorawan_device::PhyTxRx` implementation does not conform to the LoRaWAN standard, and therefore devices using this driver could never communicate with a gateway. This PR backports the changes I've made to fix the offending parameters, and I can confirm that the driver now works with LoRaWAN networks.

* Set preamble length to 8 symbols
* Set polarity to inverted for received messages

Co-authored-by: Ulf Lilleengen <lulf@redhat.com>
Co-authored-by: Justin Beaurivage <justin@wearableavionics.com>
@bors
Copy link
Contributor

bors bot commented Nov 21, 2022

Build failed (retrying...):

@bors
Copy link
Contributor

bors bot commented Nov 21, 2022

Build succeeded:

@bors bors bot merged commit bbfb786 into embassy-rs:master Nov 21, 2022
@jbeaurivage jbeaurivage deleted the lora-sx126x-phytxrx branch November 22, 2022 00:56
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.

3 participants