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

Ble long range demo for nrf9160dk

Hello all,

nordic and zephyr newbie here.

I am looking for some help with getting ble with coded phy working on 9160dk using nrfConnect SDK.

I have a 9160dk as central and 52833dk acting as peripheral. 

I have a semi-custom firmware running on 52833dk which is based of off hr coded phy peripheral example.

I can connect to it using another 52833dk running modified firmware based of off central coded phy example.

In developed my 9160dk code looking at central coded phy example, but when I try to start scanning

bt_scan_start(BT_SCAN_TYPE_SCAN_ACTIVE);

I get this error

Scanning failed to start with err -5

Some of the config settings I have

CONFIG_BT=y
CONFIG_BT_H4=y
CONFIG_BT_WAIT_NOP=y
CONFIG_BT_CENTRAL=y
CONFIG_BT_GATT_CLIENT=y
CONFIG_BT_GATT_DM=y
CONFIG_BT_SCAN=y
CONFIG_BT_SCAN_FILTER_ENABLE=y
CONFIG_BT_SCAN_UUID_CNT=1
CONFIG_BT_CTLR_PHY_CODED=y
CONFIG_BT_EXT_ADV=y
CONFIG_BT_USER_PHY_UPDATE=y

My question is if there is something obvious that I am missing or what is something you experts can think of that I should look for?

Parents Reply
  • I will give this a quick shot to see if this works for me. However, along with this not solving everything as you say, my belief is that I need to have CONFIG_BT_EXT_ADV=y to have long range advertisement? 

    Having CONFIG_BT_EXT_ADV=y worked well when I was connecting between two nrf52833dks especially using the coded phy HR examples, so does it seem specific to 9160-52840 kind of design? I am also having trouble with other BLE activities like saving bond information on 9160dk, may be all these are related.

Children
Related