-
Notifications
You must be signed in to change notification settings - Fork 30
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
txPower and DataRate settings #12
Comments
The way I understand it is that in the LoRaWAN protocol, these are set by
the gateway in downlink messages to the end node. But from the board
variant source files:
int LoRaWANClass::setTxPower(float power)
{
unsigned int txPower;
MibRequestConfirm_t mibReq;
if (!_Band) {
return 0;
}
if (_tx_busy) {
return 0;
}
if (_Band->Region == LORAWAN_REGION_US915) {
txPower = (floorf(30.0f - power) + 1) / 2;
} else {
txPower = (floorf(LoRaMacParams.MaxEirp - power) + 1) / 2;
}
etc.
int setTxPower(float power); // 2dm to 20dbm
data rate looks right.
Is there some documenttion of this Thomas?
…On Thu, Jan 17, 2019 at 7:19 AM Ed Verhamme ***@***.***> wrote:
I'd like to modify seteDataRate and setTxPower. Could you document valid
range of values in // Configure LoRaWAN connection? I tried hunting down
the forks and its not clear.. Here's what I found
Valid DataRate
- LoRaWAN US or AU:
-
- 0: SF = 10, BW = 125 kHz, BitRate = 980 bps
- 1: SF = 9, BW = 125 kHz, BitRate = 1760 bps
- 2: SF = 8, BW = 125 kHz, BitRate = 3125 bps
- 3: SF = 7, BW = 125 kHz, BitRate = 5470 bps
Valid TxPower
I believe its expressed in dB
0 to 20 (eu) ... maybe 0 to 14 (us)
Let me know!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#12>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGY1qi_fZCb8MGdZGCh_XLVdhLT3PAv7ks5vEJSegaJpZM4aFz_3>
.
|
A bit of googling and I found this:
https://blog.dbrgn.ch/2017/6/23/lorawan-data-rates/
On Thu, Jan 17, 2019 at 10:40 AM Tlera Corporation <[email protected]>
wrote:
… The way I understand it is that in the LoRaWAN protocol, these are set by
the gateway in downlink messages to the end node. But from the board
variant source files:
int LoRaWANClass::setTxPower(float power)
{
unsigned int txPower;
MibRequestConfirm_t mibReq;
if (!_Band) {
return 0;
}
if (_tx_busy) {
return 0;
}
if (_Band->Region == LORAWAN_REGION_US915) {
txPower = (floorf(30.0f - power) + 1) / 2;
} else {
txPower = (floorf(LoRaMacParams.MaxEirp - power) + 1) / 2;
}
etc.
int setTxPower(float power); // 2dm to 20dbm
data rate looks right.
Is there some documenttion of this Thomas?
On Thu, Jan 17, 2019 at 7:19 AM Ed Verhamme ***@***.***>
wrote:
> I'd like to modify seteDataRate and setTxPower. Could you document valid
> range of values in // Configure LoRaWAN connection? I tried hunting down
> the forks and its not clear.. Here's what I found
>
> Valid DataRate
>
> - LoRaWAN US or AU:
> -
> - 0: SF = 10, BW = 125 kHz, BitRate = 980 bps
> - 1: SF = 9, BW = 125 kHz, BitRate = 1760 bps
> - 2: SF = 8, BW = 125 kHz, BitRate = 3125 bps
> - 3: SF = 7, BW = 125 kHz, BitRate = 5470 bps
>
> Valid TxPower
>
> I believe its expressed in dB
> 0 to 20 (eu) ... maybe 0 to 14 (us)
>
> Let me know!
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#12>, or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AGY1qi_fZCb8MGdZGCh_XLVdhLT3PAv7ks5vEJSegaJpZM4aFz_3>
> .
>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd like to modify setDataRate and setTxPower. Could you document valid range of values in // Configure LoRaWAN connection? I tried hunting down the forks and its not clear.. Here's what I found
Valid DataRate
Valid TxPower
I believe its expressed in dB
0 to 20 (eu) ... maybe 0 to 14 (us)
Let me know!
The text was updated successfully, but these errors were encountered: