nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ble_app_multilink_central and ble_app_blinky coded phy

Hi All!

I am using ble_app_multilink_central and ble_app_blinky examples for concurrent connections of 4 devices ( (1)nrf52833 as central and other (4) as peripherals(nrf52833 + nrf52840).

Example programs are working fine when I use their default settings ( BLE_GAP_PHY_1MBPS ).

Now the issue is when I set it for long-range (coded PHY ).

For  ble_app_multilink_central  i set in sdk_config.h 

NRF_BLE_SCAN_SCAN_PHY 4

                       &

 NRF_BLE_SCAN_BUFFER 255

For ble_app_blinky

adv_params.primary_phy & Secondary_phy  = BLE_GAP_PHY_CODED 

adv_params.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED 

advdata.flags              = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE

But it's not working with that configuration! 

2)I am able to work ble_app_uart and ble_app_uart_c to communicate on coded_phy with forum help. Is there any issue related to the NUS or LBS

Can you please help me in this regard ?

Thanks In advance!

Parents
  • Hello,

    or  ble_app_multilink_central  i set in sdk_config.h 

    NRF_BLE_SCAN_SCAN_PHY 4

                           &

     NRF_BLE_SCAN_BUFFER 255

    You also need to make sure you are passing the correct scan paramaters to the scan module, please see the 'diff' I posted here:

    https://devzone.nordicsemi.com/f/nordic-q-a/75549/coded-phy-for-blinky-peripheral-and-central

    For ble_app_blinky

    adv_params.primary_phy & Secondary_phy  = BLE_GAP_PHY_CODED 

    adv_params.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED 

    advdata.flags              = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE

    But it's not working with that configuration! 

    This configuration looks to be correct. Does the program crash if you try to run it?

    Best regards,

    Vidar

  • Hi @Vidar!

    I tried with ble_app_blinky but the same issue :(, then I tried another combination (ble_multilink_uart_c_app and ble_app_uart_peri) and make changes according to your instructions and it worked for coded phy. 

    Thank you for the help and time 

    Regards,

    Muhammad Usman

Reply
  • Hi @Vidar!

    I tried with ble_app_blinky but the same issue :(, then I tried another combination (ble_multilink_uart_c_app and ble_app_uart_peri) and make changes according to your instructions and it worked for coded phy. 

    Thank you for the help and time 

    Regards,

    Muhammad Usman

Children
No Data
Related