3 Replies Latest reply on Mar 4, 2017 12:59 AM by Madhu Lakshmipathy

    CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT event is not generated

    javiersenas_1605611

      Hello colleagues,

         

      Event CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT is never generated. CYBLE_EVT_STACK_ON, CYBLE_EVT_GAPP_ADVERTISEMENT_START_STOP, CYBLE_EVT_GAP_DEVICE_CONNECTED and CYBLE_EVT_GAP_DEVICE_DISCONNECTED are generated correctly but not CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT.  From the BLE Datasheet, I learned that probably I need to invoke the function CyBle_GapcStartScan(ScanType) but that is not recognized by PSoC Creator. What can I do to solve the issue?

         

      Below is a piece of my code with all the events:

         

             case CYBLE_EVT_STACK_ON:
                  CyBle_GappStartAdvertisement(CYBLE_ADVERTISING_FAST);
                  UART_PutString("Enter in Stack ON\r\n");
                  break;
                
              case CYBLE_EVT_GAPP_ADVERTISEMENT_START_STOP:
                  UART_PutString("Enter in Start Stop\r\n");
                  break;
                  
              case  CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT:
                 UART_PutString("Enter in Scan Progress\r\n");
                 break;
              
              case CYBLE_EVT_GAP_DEVICE_CONNECTED:
                 UART_PutString("Enter in Device Connected\r\n");
                 break;
          
              case CYBLE_EVT_GAP_DEVICE_DISCONNECTED:
                  UART_PutString("Enter in Device Disconnected\r\n");

         

      If I set ScanInfo->scanType=0x01 (being CYBLE_GAPC_DISC_INFO_T *ScanInfo;) in the main, then the Stack is not started and CYBLE_EVT_STACK_ON event is not generated,

         

      Peter