Go Down

Topic: Transmit power (Read 339 times) previous topic - next topic

thebakker

I see in the MKRWAN.h file there is a function for setting the power, but I can't find any documentation on the arduino reference page.
Can someone explain the argument of this function?
Code: [Select]
bool power(_rf_mode mode, uint8_t index)
Is index the dB?

mjunior-fitec

Is index the dB?
Hello, I'm no expert but maybe I can help.
Unfortunately, those commands aren't well documnented in my opinion. I recently experimented some troubles myself...
Checking the code, we can see that the first parameter - mode - defines whether to set the PABOOST mode and index is a value in the [0 -5] range, setting the power, 0 is the max power.

The LoRa commands are at the file you mentioned (MKRWAN.h), and you can see the implementation at the Murata side here and here.

thebakker

index is a value in the [0 -5] range, setting the power, 0 is the max power.
I this something you found by testing, or did you find it in a datasheet?

mjunior-fitec

I this something you found by testing, or did you find it in a datasheet?

I found it, reading the code I mentioned to you. As I told you before I don't believe there exists a good documentation of it.

thebakker

I haven't tried to see the distance between every setting, but the power consumption is equal between all the settings. So there is almost no incentive to change the value to some lower transmit power

Go Up