PHY Coded transmission issue

Hi there!

I face issue with setting the connection using PHY Coded.

I've:

- set the #define NRF_BLE_SCAN_SCAN_PHY 4 (it's Coded one) on Central side.

- forced PHY Coded to be set on GAP Update in "ble_evt_handler" function on both Central and Peripheral side: 

case BLE_GAP_EVT_PHY_UPDATE_REQUEST:
{
ble_gap_phys_t const phys =
{
.rx_phys = BLE_GAP_PHY_CODED,
.tx_phys = BLE_GAP_PHY_CODED,
};

- extended #define NRF_BLE_SCAN_BUFFER 255 on Central side (according to some other DevZone topic)

- let everything else like in PHY 1M project.

But I see it's not PHY Coded, because range didn't extend. What else am I supposed to do?

Parents
  • Hi

    Are you sure the peripheral device you connect to is advertising on Coded PHY? Are you testing using two nRF52840 DKs or some other devices? Below I have added a modified version of the ble_app_uart and ble_app_uart_c example projects that both advertise and scan using the Coded PHY, and can connect to one another and transmit UART data over the Nordic UART service.

    Please note that the achieved range will be dependent on the environment you're conducting your tests in.

    Best regards,

    Simon

    7723.Long_range_15.2.zip

Reply
  • Hi

    Are you sure the peripheral device you connect to is advertising on Coded PHY? Are you testing using two nRF52840 DKs or some other devices? Below I have added a modified version of the ble_app_uart and ble_app_uart_c example projects that both advertise and scan using the Coded PHY, and can connect to one another and transmit UART data over the Nordic UART service.

    Please note that the achieved range will be dependent on the environment you're conducting your tests in.

    Best regards,

    Simon

    7723.Long_range_15.2.zip

Children
  • Thank you so much for your projects!

    I tried to modify mine (seems I forgot of a few things). I'm not gonna list all the changes I made, because after some time I got suspicious about problems other than firmware. Then I've built your projects and run them on my DKs and... they don't connect - one of them blinks LED for advertising, other for scanning. And that's it. My applications don't coonect to each other anymore too.

    Is this possible that your projects contain some error (maybe it's not newest version or somethhing)?

    Or maybe rather it's an  hardware problem - I have one DK 2.0.1, and one PDK 0.9.1. Maybe here is the issue.

Related