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

Error run multi NUS

Hi all, I encountered a problem , when I connect 1 board central to 2 board peripheral via NUS . It connected and discovery success . But at

static void db_disc_handler(ble_db_discovery_evt_t * p_evt)

{

ble_nus_c_on_db_disc_evt(&m_ble_nus_c[p_evt->conn_handle], p_evt);

printf("db_disc_handler [0x%x]\r\n",p_evt->conn_handle);

}

my central board run this funtion several times before run correct . As picture : image description

If you also encountered this problem . Pls send me advice . Thank !!

Parents
  • Hi Mr.Hung Bui, I get event_type and it display as :

    db_disc_handler [0x0]- event:BLE_DB_DISCOVERY_ERROR

    db_disc_handler [0x0]- event:BLE_DB_DISCOVERY_ERROR

    db_disc_handler [0x0]- event:BLE_DB_DISCOVERY_ERROR

    dScanning...

    Connected

    Scanning...

    db_disc_handler [0x0]- event:BLE_DB_DISCOVERY_ERROR

    db_disc_handler [0x0]- event:BLE_DB_DISCOVERY_ERROR

    db_disc_handler [0x0]- event:BLE_DB_DISCOVERY_ERROR

    Connected

    Full connect

    db_disc_handler [0x0]- event:BLE_DB_DISCOVERY_COMPLETE

    db_disc_handler [0x1]- event:BLE_DB_DISCOVERY_COMPLETE

    But I don't know why it error , can you give me advice

Reply
  • Hi Mr.Hung Bui, I get event_type and it display as :

    db_disc_handler [0x0]- event:BLE_DB_DISCOVERY_ERROR

    db_disc_handler [0x0]- event:BLE_DB_DISCOVERY_ERROR

    db_disc_handler [0x0]- event:BLE_DB_DISCOVERY_ERROR

    dScanning...

    Connected

    Scanning...

    db_disc_handler [0x0]- event:BLE_DB_DISCOVERY_ERROR

    db_disc_handler [0x0]- event:BLE_DB_DISCOVERY_ERROR

    db_disc_handler [0x0]- event:BLE_DB_DISCOVERY_ERROR

    Connected

    Full connect

    db_disc_handler [0x0]- event:BLE_DB_DISCOVERY_COMPLETE

    db_disc_handler [0x1]- event:BLE_DB_DISCOVERY_COMPLETE

    But I don't know why it error , can you give me advice

Children
No Data
Related