[CYBT-343026-01] Tx_power +12dBm on MBT

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
YoJa_3107936
Level 5
Level 5
Distributor - Macnica (Japan)
100 sign-ins 50 sign-ins First like given

Hi

Customer is requesting that the output of Tx_Power on MBT is +12dBm.

Currently the Tx_Power is +3dBm.

I think that changing the +3dBm->+12dBm on the MBT source code,

this will satisfy the customer's needs, is it correct?

MBT Source Code files: WICED-Studio-6.1\wiced_tools\mbt

Yang

0 Likes
1 Solution

Please program the device with application whose TX power setting to 12dBm. Also set the HCI UART baudrate to 115200 and turn off trace log in the application code. Then do the RF test with MBT tool without recovery mode.

View solution in original post

0 Likes
14 Replies
TaGo_2353976
Level 4
Level 4
5 likes given First like received First like given

Hi Jiang,

Please add exact part of the source code that we should modify.

0 Likes
YoJa_3107936
Level 5
Level 5
Distributor - Macnica (Japan)
100 sign-ins 50 sign-ins First like given

Add information

mbt.cpp

printf part
line 459: printf ("tx_power = (-25 - + 3) transmit power in dbm \ n");
line 551: printf ("tx_power = (-25 - +3) transmit power in dbm \ n");

If part
line 1134: if ((tx_power> = -25) && (tx_power <= 3))
line 1200: if ((tx_power> = -25) && (tx_power <= 3))

0 Likes

Do you mean you need Cypress comment whether the customer modify only following part to change Tx power to 12dBm from 3dBm?

Is that right?

<Original Code>

mbt.cpp

printf part
line 459: printf ("tx_power = (-25 - + 3) transmit power in dbm \ n");
line 551: printf ("tx_power = (-25 - +3) transmit power in dbm \ n");

If part
line 1134: if ((tx_power> = -25) && (tx_power <= 3))
line 1200: if ((tx_power> = -25) && (tx_power <= 3))

<Modified plan>

mbt.cpp

printf part
line 459: printf ("tx_power = (-25 - + 12) transmit power in dbm \ n");
line 551: printf ("tx_power = (-25 - +12) transmit power in dbm \ n");

If part
line 1134: if ((tx_power> = -25) && (tx_power <= 12))
line 1200: if ((tx_power> = -25) && (tx_power <= 12))

0 Likes
YoJa_3107936
Level 5
Level 5
Distributor - Macnica (Japan)
100 sign-ins 50 sign-ins First like given

Yes.

Thank you add info.

0 Likes

Please do not change anything on the MBT cpp code although it's given. Instead refer to the below on how

to set up the device to transmit at maximum power.

Configuring Transmit (Tx) power on the CYW20706

0 Likes

Hi,

The customer woukd like to do RF test by changing channel and Tx power frequently

You suggestion shows about API to change Tx power so the customer needs to build and program test app each test condition.

I feel it‘s not useful.

It seems to me that’s why Cypress ready MBT tools.

Could you provide good way for RF testing with Tx power 12dBm?

thank you

—TAK

0 Likes

Please program the device with application whose TX power setting to 12dBm. Also set the HCI UART baudrate to 115200 and turn off trace log in the application code. Then do the RF test with MBT tool without recovery mode.

0 Likes
YoJa_3107936
Level 5
Level 5
Distributor - Macnica (Japan)
100 sign-ins 50 sign-ins First like given

>Please program the device with application whose TX power setting to 12dBm.

I checked wiced_bt_cfg_settings_t structure,

and if [.max_pwr_db_val  = 12], it will satisfy

the device with application whose TX power setting to +12dBm.

Is this understanding correct?

If not, could you please tell me the check point?

Thanks

0 Likes

As response#6, you need to use the API wiced_bt_dev_set_adv_tx_power and wiced_bt_dev_set_tx_power to set the tx power.

YoJa_3107936
Level 5
Level 5
Distributor - Macnica (Japan)
100 sign-ins 50 sign-ins First like given

Thank you for your cooperation.

I will use hello_sensor as sample application.
If there is something wrong, please correct me.

1.Set Tx power by adding the below code at hello_sensor_management_cback in “hello_sensor.c.”

    case BTM_ENABLED_EVT:
        hello_sensor_application_init();
        wiced_bt_dev_set_tx_power(p_event_data->user_confirmation_request.bd_addr, 12); // Add code
        wiced_bt_dev_set_adv_tx_power(12); // Add code
        break;

2.Turn off trace log, which method is better? If you have the better method, Please tell me
a, Comment out the WICED_BT_TRACE(...) function in the below files.
  hello_sensor.c,
b, Change the below information.
    wiced_bt_trace.h -> #define WICED_BT_TRACE(format, ...)

3.Build and load program CYBT-343026-Eval

4.Run cmd.exe and change directory to mbt.exe

5.Configure MBT environment by send following command
MBT_TRANSPORT=BTWUSB-0
MBT_TRANSPORT=COMxx
DOWNLOAD_BAUDRATE=115200
APPLICATION_BAUDRATE=115200

6. Continuous Transmit Test by sending following command.
mbt set_tx_frequency_arm <carrier on/off> <tx_frequency> <tx_mode> <tx_modulation_type> <tx_power>

In this case, which value should I set in “<tx power>?
I think value of <tx_powe> in this command should be ignored because we need to use tx_power that we set in application code.

Thanks

Yang

0 Likes

About turn off the trace log, you just need to comment the following code in APPLICATION_START()

//   wiced_set_debug_uart( WICED_ROUTE_DEBUG_TO_PUART );

And uncomment the following code:

wiced_set_debug_uart(WICED_ROUTE_DEBUG_NONE);

0 Likes
YoJa_3107936
Level 5
Level 5
Distributor - Macnica (Japan)
100 sign-ins 50 sign-ins First like given

Thanks for your update.

1.What about <tx_power> in mbt command @ #6 in my procedure?
2.Is other procedure inluding mbt command and setting correct?

0 Likes

Please also set the tx power to 12dBm.

The API wiced_bt_dev_set_tx_power(p_event_data->user_confirmation_request.bd_addr, 12);  should be called after the connection. I think the TX power for connection doesn't need to set because the transmit test doesn't need connection.