This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to get the advertisement channel before advertising

Hi,

in S110 v 8.0.0, we can select the advertisement channels by setting the advertising parameters for sd_ble_gap_adv_start(..).

But what I want to do is to change the advertisement channels manually every time before advertising, so I list two questions as below:

  • Can I change the advertisement channels manually before each advertising?
  • Can I get the advertisement channel before each advertising?

Add more information here...

I want to set different TX power at different advertisement channel, is it possible to do this?

Set the measured TX power when getting the advertisement channel before advertising, and maybe this method can improve the performance. However, I have no idea that if it is possible.

Thanks for your help.

Parents
  • Hi.

    If you have any test device that can test the TX power,

    how about trying the DTM (Direct Test Mode) example?

    You can check more details by looking at "Bluetooth Specification V4.0", Volume 6, Part F

    After, downloading the example, connect your board's UART pin with your PC.

    Then run your nRFgo studio.

    DTM

    As described in the picture, you can change channels as you want and test the TX powers.

    Hope this is the thing you are looking for.

    -Regards, Mango922

  • Thanks for your answer. I assume that the advertising performance is different on different channels. If I've already got a channel which performance is the worst one, than set the different TX power to this channel.

    For example:

    Ch37(TX Power: 0) Ch38 (TX Power: 0) Ch39 (TX Power: 0)
    --> get the worst one is "Ch38 (TX Power: 0)"

    Change to --> Ch37(TX Power: 0) Ch38 (TX Power: 4) Ch39 (TX Power: 0)

Reply
  • Thanks for your answer. I assume that the advertising performance is different on different channels. If I've already got a channel which performance is the worst one, than set the different TX power to this channel.

    For example:

    Ch37(TX Power: 0) Ch38 (TX Power: 0) Ch39 (TX Power: 0)
    --> get the worst one is "Ch38 (TX Power: 0)"

    Change to --> Ch37(TX Power: 0) Ch38 (TX Power: 4) Ch39 (TX Power: 0)

Children
No Data
Related