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

error in discovery_start()API,

slave information :blue tooth core 4.1
host information:blue tooth core 5.0
host examples is nRF5_SDK_15.3.0_59ac345\examples\ble_central\ble_app_uart_c,in this ecample,i modify the uuid same as slave.
problem:
in Service discovery ,when the code run  after  err_code = sd_ble_gattc_primary_services_discover(conn_handle, SRV_DISC_START_HANDLE, &(p_srv_being_discovered->srv_uuid));
it  return errcode(17),it means busy,then disconnectted, i do not no why,can you give me some advice. thank you.
Parents
  • Hi.

    I will need some more information about what the issue is to help you with this.

    What SDK version and HW are you working with?
    What are you trying to acheive and what are you having trouble with?

    Br,
    Joakim

  • my sdk version is SDK17.0,HW is nrf52832.

    I want to link with a Bluetooth Printer, this printer is a dual mode Bluetooth.

    I use the blue central example of  examples\ble_central\ble_app_uart_c,i have modified the uuid, now ,I can link to the device,but after running the Service discovery function(discovery_start()),it returns a errcode(0x11),it means  busy.

    it is running log under:

    00> <info> app: Connecting to target 8B0F945B0200
    00> 
    00> <info> app:  primary_phy 1
    00> 
    00> <info> app:  tx_power 127
    00> 
    00> <info> app:  rssi -54
    00> 
    00> <info> app:  data len: 20
    00> 
    00> <debug> nrf_ble_gatt: Requesting to update ATT MTU to 247 bytes on connection 0x0.
    00> 
    00> <debug> nrf_ble_gatt: Updating data length to 251 on connection 0x0.
    00> 
    00> <info> ble_db_disc: ble_db_discovery_on_ble_evt:16
    00> 
    00> <info> app: scan_evt_handler:6
    00> 
    00> <info> app: Connecting to target 8B0F945B0200
    00> 
    00> <info> app: ble_evt_handler:16
    00> 
    00> <debug> nrf_ble_gq: Purging request queue with id: 0
    00> 
    00> <debug> nrf_ble_gq: Registering connection handle: 0x0000
    00> 
    00> <debug> ble_db_disc: Starting discovery of service with UUID 0xFEE7 on connection handle 0x0.
    00> 
    00> <debug> nrf_ble_gq: Adding item to the request queue
    00> 
    00> <debug> nrf_ble_gq: GATTC Primary Services Discovery Request
    00> 
    00> <debug> nrf_ble_gq: SD is currently busy. The GATT request procedure will be attempted                       again later.
    00> 
    00> <debug> nrf_ble_gq: Processing the request queue...
    00> 
    00> <debug> nrf_ble_gq: GATTC Primary Service Discovery Request
    00> 
    00> <debug> nrf_ble_gq: SD is currently busy. The GATT request procedure will be attempted                           again later.
    00> 
    00> <info> app: Connection BLE_GAP_EVT_CONNECTED...
    00> 
    00> <info> ble_db_disc: ble_db_discovery_on_ble_evt:17
    00> 
    00> <info> app: Disconnected.
    0

    I do not know why.

    it is the slave info I got by nrf connect tools.

     

Reply
  • my sdk version is SDK17.0,HW is nrf52832.

    I want to link with a Bluetooth Printer, this printer is a dual mode Bluetooth.

    I use the blue central example of  examples\ble_central\ble_app_uart_c,i have modified the uuid, now ,I can link to the device,but after running the Service discovery function(discovery_start()),it returns a errcode(0x11),it means  busy.

    it is running log under:

    00> <info> app: Connecting to target 8B0F945B0200
    00> 
    00> <info> app:  primary_phy 1
    00> 
    00> <info> app:  tx_power 127
    00> 
    00> <info> app:  rssi -54
    00> 
    00> <info> app:  data len: 20
    00> 
    00> <debug> nrf_ble_gatt: Requesting to update ATT MTU to 247 bytes on connection 0x0.
    00> 
    00> <debug> nrf_ble_gatt: Updating data length to 251 on connection 0x0.
    00> 
    00> <info> ble_db_disc: ble_db_discovery_on_ble_evt:16
    00> 
    00> <info> app: scan_evt_handler:6
    00> 
    00> <info> app: Connecting to target 8B0F945B0200
    00> 
    00> <info> app: ble_evt_handler:16
    00> 
    00> <debug> nrf_ble_gq: Purging request queue with id: 0
    00> 
    00> <debug> nrf_ble_gq: Registering connection handle: 0x0000
    00> 
    00> <debug> ble_db_disc: Starting discovery of service with UUID 0xFEE7 on connection handle 0x0.
    00> 
    00> <debug> nrf_ble_gq: Adding item to the request queue
    00> 
    00> <debug> nrf_ble_gq: GATTC Primary Services Discovery Request
    00> 
    00> <debug> nrf_ble_gq: SD is currently busy. The GATT request procedure will be attempted                       again later.
    00> 
    00> <debug> nrf_ble_gq: Processing the request queue...
    00> 
    00> <debug> nrf_ble_gq: GATTC Primary Service Discovery Request
    00> 
    00> <debug> nrf_ble_gq: SD is currently busy. The GATT request procedure will be attempted                           again later.
    00> 
    00> <info> app: Connection BLE_GAP_EVT_CONNECTED...
    00> 
    00> <info> ble_db_disc: ble_db_discovery_on_ble_evt:17
    00> 
    00> <info> app: Disconnected.
    0

    I do not know why.

    it is the slave info I got by nrf connect tools.

     

Children
Related