Skip to main content
NP_it
Associate II
January 11, 2021
Question

How to increase transmit gain in STM32WB ?

  • January 11, 2021
  • 2 replies
  • 642 views

I want to increase the gain of my Thread device. I am trying a simple loop as follows inside a sequenced task but it never exits. The seq have the lowest prio of all.

int pwr = 0;

   while(pwr != 4)

   {

   otPlatRadioSetTransmitPower(NULL, 4);

   otPlatRadioGetTransmitPower(NULL, pwr);

   HAL_Delay(1)

}

This topic has been closed for replies.

2 replies

Remi QUINTIN
ST Technical Moderator
January 20, 2021

​1 point you may have to clean before getting any result:  pwr is expected to be a int8_t *.

So it should be otPlatRadioGetTransmitPower(NULL, &pwr); the second parameter should be a pointeron a int8-t type.

NP_it
NP_itAuthor
Associate II
May 18, 2022

Thanks a lot for your response. It worked.