-
Notifications
You must be signed in to change notification settings - Fork 0
Semtech SX1262 compatibility completion port #1
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
Open
bdesterBE
wants to merge
9
commits into
main
Choose a base branch
from
bdd/sx1262_port
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
36debb2
Replace deprecated register_component() call with idf_component_regis…
bdesterBE 879966d
Add configuration files to allow for user configurable SPI parameters
bdesterBE bb0757a
Initialize SPI, and Busy and Reset GPIOs in BoardInitPeriph
bdesterBE 4dc87c1
Implement SX126x functions for LoRaMac stack
bdesterBE 468cdbf
Implement SX126x RTC functions for LoRaMac stack
bdesterBE 5f15846
Replace LoRaMac-node submodule with forked version - contains aes_enc…
bdesterBE 8d6cf6b
Cmake source files for LoRaMac-node library's US 915MHz band support.…
bdesterBE d4b7ed5
Add some description to README.md
bdesterBE 3da8136
DO NOT PUSH TO MAIN - Update to use master commit for LoRaMac-node BE…
bdesterBE File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| [submodule "src/LoRaMac-node"] | ||
| path = src/LoRaMac-node | ||
| url = https://github.com/Lora-net/LoRaMac-node.git | ||
| url = https://github.com/boston-engineering/LoRaMac-node.git | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| menu "SX126x Configuration" | ||
|
|
||
| config SX126X_SPI_MISO_GPIO | ||
| int "SX126x SPI MISO GPIO" | ||
| help | ||
| Set the GPIO number used for SPI MISO. | ||
|
|
||
| config SX126X_SPI_MOSI_GPIO | ||
| int "SX126x SPI MOSI GPIO" | ||
| help | ||
| Set the GPIO number used for SPI MOSI. | ||
|
|
||
| config SX126X_SPI_SCLK_GPIO | ||
| int "SX126x SPI SCLK GPIO" | ||
| help | ||
| Set the GPIO number used for SPI SCLK. | ||
|
|
||
| config SX126X_SPI_CS_GPIO | ||
| int "SX126x SPI CS GPIO" | ||
| help | ||
| Set the GPIO number used for SPI CS. | ||
|
|
||
| config SX126X_RESET_GPIO | ||
| int "SX126x RESET GPIO" | ||
| help | ||
| Set the GPIO number used for RESET. | ||
|
|
||
| config SX126X_IRQ_DIO1_GPIO | ||
| int "SX126x IRQ (DIO1) GPIO" | ||
| help | ||
| Set the GPIO number used for IRQ (DIO1). | ||
|
|
||
| config SX126X_BUSY_GPIO | ||
| int "SX126x BUSY GPIO" | ||
| help | ||
| Set the GPIO number used for BUSY. | ||
|
|
||
| config SX126X_SPI_HOST | ||
| int "SX126x SPI HOST" | ||
| default 1 | ||
| help | ||
| The SPI peripheral used to communicate with the SX1262. | ||
| 0 = SPI1_HOST | ||
| 1 = SPI2_HOST | ||
| 2 = SPI3_HOST | ||
|
|
||
| endmenu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,15 @@ | ||
| # LoRaMac-node-esp32 | ||
| ESP32 port of LoRaMac-node | ||
| #### ESP32 port of LoRaMac-node | ||
| Creates a Semtech SX126x compatible ESP32 component that pulls in all LoRaMac-node sources, allowing for a custom ESP32 board definition to be used. | ||
|
|
||
| This is work in progress - not usable yet | ||
| ## Compatibility | ||
| This library is written for and is currently only compatible with Semtech SX126x LoRaWAN chips. | ||
|
|
||
| ## Configuration | ||
| - Running menuconfig with LoRaMac-node-esp32 added as a component will allow for configuration of SPI pins and the host to be used. | ||
| - Region(s) of operation must be selected by pulling in one of the pre-processor definitions used by LoRaMac-node, e.g. `REGION_US915`. | ||
| - Regions are listed in `src/LoRaMac-node/src/mac/region/Region.h` | ||
|
|
||
| ## Notes | ||
| - `SX126xWaitOnBusy()` indefinitely blocks with a busy wait, waiting for a low BUSY signal | ||
| - This is work in progress - not usable yet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| description: Creates an ESP32 component to allow ESP32 board compatibility with the LoRaMac-node stack. | ||
| dependencies: | ||
| idf: | ||
| version: ">=5.0" |
Submodule LoRaMac-node
updated
13 files
| +4 −13 | README.md | |
| +11 −5 | src/apps/LoRaMac/common/LmHandler/LmHandler.c | |
| +2 −2 | src/boards/mcu/utilities.c | |
| +5 −0 | src/boards/utilities.h | |
| +17 −3 | src/mac/LoRaMac.c | |
| +44 −24 | src/mac/LoRaMacClassB.c | |
| +2 −2 | src/peripherals/soft-se/aes.c | |
| +1 −1 | src/peripherals/soft-se/aes.h | |
| +4 −4 | src/peripherals/soft-se/cmac.c | |
| +6 −0 | src/peripherals/soft-se/se-identity.h | |
| +1 −1 | src/peripherals/soft-se/soft-se.c | |
| +1 −1 | src/radio/sx126x/radio.c | |
| +3 −3 | src/radio/sx126x/sx126x.c |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in your fork here can you include output of the linking issue in the git commit log body? have you opened a PR against the upstream repo? we really want to avoid having to use a forked loramac-node if we can avoid it by getting your PR in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done