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

DB discovery problem

Hello Nordic!

I'm developing with nrf52840, s340, sdk 15.3.0, gcc-arm-none-eabi-7-2018-q2 in my customboard.

Recently, I am making ble central module.

I can scan and connect a lot of sensors.

However, If I call 'ble_db_discovery_start' multiple times at the same time, sometimes I can not find all services in one sensor for a long time.

Of course, I am using 'BLE_DB_DISCOVERY_ARRAY_DEF'.

I don't know how to solve this problem. 

Parents
  • I can not find all services in one sensor for a long time.

     What do you mean about "long time" here? Are you sometimes able to discover the services, and sometimes not? Could it be that the services you can't find are already found by the central when you call ble_db_discovery_start? Please check out the Database discovery documentation if you haven't already, to see how it should be implemented and used.

    Best regards,

    Simon

  • I register speed and cadence, heart, and power service from ble_db_discovery_evt_register.

    If I try to connect two sensors and start db discovery almost simultaneously , first has speed and cadence services, second has power and speed and cadence.

    So I can get BLE_DB_DISCOVERY_COMPLETE  of first sensor of service(speed and cadence).

    However, I can sometimes get BLE_DB_DISCOVERY_COMPLETE  of second sensor of one service(speed and cadence or power)

    I always want to get all services.

Reply
  • I register speed and cadence, heart, and power service from ble_db_discovery_evt_register.

    If I try to connect two sensors and start db discovery almost simultaneously , first has speed and cadence services, second has power and speed and cadence.

    So I can get BLE_DB_DISCOVERY_COMPLETE  of first sensor of service(speed and cadence).

    However, I can sometimes get BLE_DB_DISCOVERY_COMPLETE  of second sensor of one service(speed and cadence or power)

    I always want to get all services.

Children
No Data
Related