2 Replies Latest reply on Mar 1, 2018 1:49 AM by yssu

    How to disconnect when my link role is peripheral?

    clark.wu

      Hello Cypress team,

       

      My firmware is based on WiCED SDK-3.5.2 upon BCM43340. My question is how to disconnect a BLE link when my role is a peripheral (link_role equals 1)? I've tried wiced_bt_gatt_disconnect(uint16_t conn_id), but this API only works when my role is a central (link_role equals 0). If I call wiced_bt_gatt_disconnect in the peripheral case, the WiCED BT driver will get stuck and keep dumping run out of buffer messages. The error messages are shown below. Can anybody tell me how to correctly disconnect the link?

       

      00122426 GKI_exception(): Task State Table

      00122430 GKI_exception 65524 getbuf: out of buffers

      00122426 GKI_exception(): Task State Table

      00122439 GKI_exception 65524 getbuf: out of buffers

      00124444 GKI_exception(): Task State Table

      00124448 GKI_exception 65524 getbuf: out of buffers

      00124444 GKI_exception(): Task State Table

      00124456 GKI_exception 65524 getbuf: out of buffers

      00126461 GKI_exception(): Task State Table

      00126465 GKI_exception 65524 getbuf: out of buffers

      00126461 GKI_exception(): Task State Table

      00126474 GKI_exception 65524 getbuf: out of buffers

      00128478 GKI_exception(): Task State Table

      ...... (continuously output the above error message)

       

      BR,

      Clark