8 Replies Latest reply on Mar 25, 2018 10:47 PM by axel.lin_1746341

    SDK-5.1: ble scan stop working if large bufer max-used count becomes 1

    axel.lin_1746341

      I use below API to scan forever:

      wiced_bt_ble_observe(WICED_TRUE, 0, my_scan_results_cb);

       

      In normal case, the buffer usage is:

      07:12:30.059568 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊

      07:12:30.001032 Pool(size,type)   Available   In-use    Total   Max-used␍␍␊

      07:12:30.008032 --------------------------------------------------------␍␍␊

      07:12:30.014032 00(  64, A):          16,       0,      16,       5␍␍␊

      07:12:30.020032 01( 360, A):          16,       0,      16,       3␍␍␊

      07:12:30.027032 02( 360, A):           6,       0,       6,       0␍␍␊

       

      However, sometimes the scan stop working.

      The buffer usage becomes:

      07:15:31.027000 --- Bluetooth(Pool type: A-App, I-Internal) Buffer summary ---␍␍␊

      07:15:31.034000 Pool(size,type)   Available   In-use    Total   Max-used␍␍␊

      07:15:31.041000 --------------------------------------------------------␍␍␊

      07:15:31.047000 00(  64, A):          16,       0,      16,       5␍␍␊

      07:15:31.054000 01( 360, A):          16,       0,      16,       3␍␍␊

      07:15:31.058000 02( 360, A):           6,       0,       6,       1␍

       

      Every time the Max-used count for large buffer becomes 1, the scan stop working.

      It does not report any error but just silently get no scan result.

       

      Note, I had reported this before but don't any fix.

      Just check the status in sdk-5.1, it still has such issue.

       

      dhak