Open everhamme opened 5 years ago
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 notifications@github.com 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 https://github.com/kriswiner/CMWX1ZZABZ/issues/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 tleracorp@gmail.com 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 notifications@github.com 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 https://github.com/kriswiner/CMWX1ZZABZ/issues/12, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qi_fZCb8MGdZGCh_XLVdhLT3PAv7ks5vEJSegaJpZM4aFz_3 .
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!