- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jiang,
Please add exact part of the source code that we should modify.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes.
Thank you add info.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Adding the applications team AnjanaM_61 GauravS_31 GyanC_36 PriyaM_16 RaktimR_11 SheetalJ_96WinstonF_61
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
>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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.