This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Changing the Radio Transmit Power in Bluetopia Bluetooth Stack

Hi,

I've been looking through the API documentation for a way to increase/decrease the PAN1315 radio transmit power.  I have only found a function that allows me to change the inquiry transmit power.

Is there a way to increase/decrease the transmit power in general?

Thanks,

Eric

  • Eric,

         Yes, please look at the sdk_set_max_output_power(). This is covered in page 67 of the Developer's Guide

    Regards,

    ~Miguel

  • Miguel,

    This developers guide is for the Mindtree Bluetooth stack, not the Bluetopia stack.  Is this the guide you meant to link me?  I am not using the Mindtree stack.  Also, I'm using a TI Steallaris LM3S5B91.

    Thanks,

    Eric

  • Hello Eric,

     

    The function that you want to use is documented in BTVSAPI.h

    The one that you want to use is:

       /* The following function prototype represents the vendor specific   */

       /* function which is used to change the output power for the Local   */

       /* Bluetooth Device specified by the Bluetooth Protocol Stack that   */

       /* is specified by the Bluetooth Protocol Stack ID. The second       */

       /* parameter is the max output power to set. This function returns   */

       /* zero if successful or a negative return error code if there was   */

       /* an error.                                                         */

       /* * NOTE * The maximum output power is specified from 0 to 12 and   */

       /*          it specifies 4 dBm steps.                                */

    BTPSAPI_DECLARATION int BTPSAPI VS_Set_Max_Output_Power(unsigned int BluetoothStackID, Byte_t MaxPower);

     

    Hope this helps,

     

    Stonestreet One.

  • Hi there,

    does anyone know the default tx power?

  • I have tried using this function (VS_Set_Max_Output_Power) to reduce the output power of the SPPDemo sample application, but have not had success.  The function returns zero, indicating no error, and I am passing a value of 6 - which is the midpoint of the 0-12 range of input values allowed.  I have measured the BT signal strength, but it is identical with a measurement taken prior to adding this call.  I am calling it just prior to starting the scheduler at the end of main.

    Does this value ever get modified/ignored/overwritten?  For example, when you open a connection between two devices, does it alter this setting?  What is the default value if you don't call the function?

    Thanks in advance for any help you can provide...