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

Reduction of the maximum current when using a smaller button cell #943

Open
devicplan opened this issue Jul 9, 2023 · 1 comment
Open
Assignees
Labels

Comments

@devicplan
Copy link

How could I reduce the transmit power (maximum current when transmitting) so that a rather weak CR2032 in my LoraWAN temperature sensor ( https://icplan.de/seite45/ ) can be used longer. I run a LoRa gateway myself and the transmit power does not need to be particularly high with it.
I am using an ATMEGA328P with RFM95 and LMIC software version 4.1.1.
Thanks for any help and support

@slavendam
Copy link

Use function call LMIC_setDrTxpow(data_rate, tx_power); to set data rate (SF) and transmit power.
data_rate should be values 0 to 5. If you don't want to change manually SF, just set LMIC.datarate to stay the same.
tx_power should be values of power. Default is 14. Maximum is 20, minimum -4

So e.g.
LMIC_setDrTxpow(LMIC.datarate, 2); // this will leave SF the same, but will reduce power to 2
LMIC_setDrTxpow(0, 8); // this will set SF12 for EU, or SF10 (highest) for US, and power will be 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants