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

LoRaWAN AS923 Add SUB_REGION AS1..AS4 #15320

Merged
merged 3 commits into from
Aug 25, 2022

Conversation

dgoo2308
Copy link
Contributor

Summary of changes

This Change add sub regions for AS923 according to the https://resources.lora-alliance.org/technical-specifications/rp2-1-0-3-lorawan-regional-parameters

Impact of changes

Able to use LoRaWAN in countries that moved to AS923-AS2, AS3 and AS4, while defaulting to AS1.
Added in connectivity/lorawan/mbed_lib.json a setting that defaults to AS1 sub region and thus defaults to the traditional AS923 Region.

"phy-as923-sub-region" : {
            "help": "AS923 sub region: AS1, AS2, AS3, AS4",
            "value": "AS1"
        }

Migration actions required

none

Documentation

None,

add lora.phy-as923-sub-region in the mbed_app.json setting as per Lorawan mbed_lib.json to define the AS923 sub region.


Pull request type

[] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[x] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[] Covered by existing mbed-os tests (Greentea or Unittest)
[x] Tests / results supplied as part of this PR

Tested connectivity and data with RAK7268 Gateway in AS1/AS2/AS3 and AS4 Sub-region.

AS1:

No changes in parameters for frequency since the AS923-AS1 represents the traditional AS923 as per rp2-1-0-0.

AS2 packet log:

  Time Freq. RSSI SNR TxPwr CRC mod. CR DataRate FCnt AirTime DevAddr FPort Payload Size
Unconfirmed Data Down 15:32:19 922.7 - - 20 CRC LORA '4/5' SF7BW125 7 '46' 020918C3 - 0
Unconfirmed Data Up 15:32:19 922.7 -41 11 - CRC_OK LORA '4/5' SF7BW250 7 '41' 020918C3 15 24
Unconfirmed Data Down 15:32:04 922.7 - - 20 CRC LORA '4/5' SF7BW125 6 '46' 020918C3 - 0
Unconfirmed Data Up 15:32:04 922.7 -41 10 - CRC_OK LORA '4/5' SF7BW250 6 '39' 020918C3 15 24
Unconfirmed Data Down 15:31:29 922.7 - - 20 CRC LORA '4/5' SF7BW125 5 '46' 020918C3 - 0
Unconfirmed Data Up 15:31:29 922.7 -36 11 - CRC_OK LORA '4/5' SF7BW250 4 '39' 020918C3 15 24
Unconfirmed Data Down 15:31:13 922.7 - - 20 CRC LORA '4/5' SF7BW125 4 '46' 020918C3 - 0
Unconfirmed Data Up 15:31:13 922.7 -34 10.3 - CRC_OK LORA '4/5' SF7BW250 3 '41' 020918C3 15 23
Unconfirmed Data Down 15:30:57 922.4 - - 20 CRC LORA '4/5' SF10BW125 3 '371' 020918C3 - 0
Unconfirmed Data Up 15:30:57 922.4 -31 13.3 - CRC_OK LORA '4/5' SF10BW125 2 '494' 020918C3 15 23
Unconfirmed Data Down 15:30:40 921.6 - - 20 CRC LORA '4/5' SF10BW125 2 '371' 020918C3 - 0
Unconfirmed Data Up 15:30:40 921.6 -31 13.5 - CRC_OK LORA '4/5' SF10BW125 1 '494' 020918C3 15 23
Unconfirmed Data Down 15:30:23 921.8 - - 20 CRC LORA '4/5' SF10BW125 1 '330' 020918C3 - 0
Unconfirmed Data Up 15:30:23 921.8 -31 10.3 - CRC_OK LORA '4/5' SF10BW125 0 '453' 020918C3 15 23
Join Accept 15:30:17 921.6 - - 20 CRC LORA '4/5' SF10BW125 - '453' - - -
Join Request 15:30:17 921.6 -32 12.8 - CRC_OK LORA '4/5' SF10BW125 - '371' - - -

AS3 packet log:

  Time Freq. RSSI SNR TxPwr CRC mod. CR DataRate FCnt AirTime DevAddr FPort Payload Size
Unconfirmed Data Down 15:47:08 917.9 - - 20 CRC LORA '4/5' SF7BW125 4 '46' 028CE454 - 0
Unconfirmed Data Up 15:47:08 917.9 -35 11.5 - CRC_OK LORA '4/5' SF7BW250 3 '41' 028CE454 15 23
Unconfirmed Data Down 15:46:52 916.8 - - 20 CRC LORA '4/5' SF10BW125 3 '371' 028CE454 - 0
Unconfirmed Data Up 15:46:52 916.8 -32 13 - CRC_OK LORA '4/5' SF10BW125 2 '494' 028CE454 15 23
Unconfirmed Data Down 15:46:34 917.2 - - 20 CRC LORA '4/5' SF10BW125 2 '371' 028CE454 - 0
Unconfirmed Data Up 15:46:34 917.2 -32 13.3 - CRC_OK LORA '4/5' SF10BW125 1 '494' 028CE454 15 23
Unconfirmed Data Down 15:46:18 916.8 - - 20 CRC LORA '4/5' SF10BW125 1 '330' 028CE454 - 0
Unconfirmed Data Up 15:46:18 916.8 -32 12.8 - CRC_OK LORA '4/5' SF10BW125 0 '453' 028CE454 15 23
Join Accept 15:46:12 916.8 - - 20 CRC LORA '4/5' SF10BW125 - '453' - - -
Join Request 15:46:12 916.8 -34 13.5 - CRC_OK LORA '4/5' SF10BW125 - '371' - - -

AS4 packet log:

  Time Freq. RSSI SNR TxPwr CRC mod. CR DataRate FCnt AirTime DevAddr FPort Payload Size
Unconfirmed Data Down 15:52:46 918.6 - - 20 CRC LORA '4/5' SF7BW125 4 '46' 020025B6 - 0
Unconfirmed Data Up 15:52:46 918.6 -35 12.5 - CRC_OK LORA '4/5' SF7BW250 3 '41' 020025B6 15 23
Unconfirmed Data Down 15:52:30 918.7 - - 20 CRC LORA '4/5' SF10BW125 3 '371' 020025B6 - 0
Unconfirmed Data Up 15:52:30 918.7 -32 12.8 - CRC_OK LORA '4/5' SF10BW125 2 '494' 020025B6 15 23
Unconfirmed Data Down 15:52:14 918.3 - - 20 CRC LORA '4/5' SF10BW125 2 '371' 020025B6 - 0
Unconfirmed Data Up 15:52:12 918.3 -34 13.5 - CRC_OK LORA '4/5' SF10BW125 1 '494' 020025B6 15 23
Unconfirmed Data Down 15:51:56 917.5 - - 20 CRC LORA '4/5' SF10BW125 1 '330' 020025B6 - 0
Unconfirmed Data Up 15:51:56 917.5 -33 13.5 - CRC_OK LORA '4/5' SF10BW125 0 '453' 020025B6 15 23
Unconfirmed Data Up 15:51:56 917.9 -94 -15.3 - CRC_OK LORA '4/5' SF10BW125 0 '453' 020025B6 15 23
Join Accept 15:51:50 917.3 - - 20 CRC LORA '4/5' SF10BW125 - '453' - - -
Join Request 15:51:50 917.3 -34 13.8 - CRC_OK LORA '4/5' SF10BW125 - '371' - - -

Reviewers


@ciarmcom
Copy link
Member

@dgoo2308, thank you for your changes.
@ARMmbed/mbed-os-maintainers please review.

0xc0170
0xc0170 previously approved these changes Aug 11, 2022
@0xc0170
Copy link
Contributor

0xc0170 commented Aug 11, 2022

CI started

@mbed-ci
Copy link

mbed-ci commented Aug 11, 2022

Jenkins CI Test : ✔️ SUCCESS

Build Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & Artifacts

CLICK for Detailed Summary

jobs Status
jenkins-ci/mbed-os-ci_build-cloud-example-ARM ✔️
jenkins-ci/mbed-os-ci_build-cloud-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_unittests ✔️
jenkins-ci/mbed-os-ci_build-greentea-ARM ✔️
jenkins-ci/mbed-os-ci_build-greentea-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-example-ARM ✔️
jenkins-ci/mbed-os-ci_greentea-test ✔️

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 11, 2022

I've missed basic check - style failing - please review, run astyle and commit.

@mergify mergify bot dismissed 0xc0170’s stale review August 11, 2022 15:09

Pull request has been modified.

@ciarmcom ciarmcom requested a review from a team August 11, 2022 15:30
@ciarmcom
Copy link
Member

@dgoo2308, thank you for your changes.
@ARMmbed/mbed-os-maintainers please review.

0xc0170
0xc0170 previously approved these changes Aug 17, 2022
@mergify mergify bot dismissed 0xc0170’s stale review August 18, 2022 04:26

Pull request has been modified.

@0xc0170 0xc0170 self-requested a review August 18, 2022 10:17
@0xc0170
Copy link
Contributor

0xc0170 commented Aug 25, 2022

CI started

@mbed-ci
Copy link

mbed-ci commented Aug 25, 2022

Jenkins CI Test : ✔️ SUCCESS

Build Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & Artifacts

CLICK for Detailed Summary

jobs Status
jenkins-ci/mbed-os-ci_build-cloud-example-ARM ✔️
jenkins-ci/mbed-os-ci_build-cloud-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_unittests ✔️
jenkins-ci/mbed-os-ci_build-greentea-ARM ✔️
jenkins-ci/mbed-os-ci_build-greentea-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-example-ARM ✔️
jenkins-ci/mbed-os-ci_build-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_greentea-test ✔️

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants