RSSI can be affected by other ble signals in the area and using an Arduino board is not the best device to determine power level of the transmitter. I would use a spectrum analyzer for true readings.
The board in use is a CY5674 PRoC BLE SMA board. The issue is that when I set the power level with BLE configuration under Connection TX power level from 0dB to -18dB I see a change on the android device from -38dB to -60dB. When I make the same change in code by calling CyBle_SetTxPowerLevel() function there is no change on the Android device. I am not worried about exact power levels. My issue is that the CyBle_SetTxPowerLevel() function isn't working.
Did you ever get a satisfactory answer to your question. We are having exactly the same problem.
We use the API call CyBle_SetTxPowerLevel() and then check it using CyBle_GetTxPowerLevel() and it reports the level has been changed. But clearly it's not according to our measurements, as making power level changes from -18dB to +3dB causes no noticeable difference in the RSSI. I know this method is not full proof, but using exactly the same measurement setup and the Cypress app to change the power level via the radio connection results in RSSI changes of 30 dB
What are we doing wrong is there some other API call that must take place after CyBle_SetTxPowerLevel()? Do we have to reinitialize the stack? I'm at wits end here!!
Forgot to say the target device is a EZ-BLE PRoC Module CYBLE-222005-00
Please can anyone help
I never did get this working. I ended up just going with a static setting in the configure BLE GAP Settings. I would recommend you open a cypress support case. I have had a lot of success using there support group.
Thanks for the quick reply. I've now raised a case and I'll let you know if I get a resolution.
Our problem looks solved. Technically the API call is working. We got pretty confused due to a bug in our code where we were calling CyBle_SetTxPowerLevel with an out of range enum. The API call does not return an error, but has some strange effect where the power level gets changed on both advertising and connection channels
1 of 1 people found this helpful
Great news. Its good to know that you got it worked out. If I end up needing it in the future I will know it does work.