3 Replies Latest reply on Nov 29, 2018 8:42 PM by GyanC_36

    Can the sample UART_to_BLE_central code connect to Peripheral without Cypress Manufacturing data?

    rotu_3236376

      Hello-

       

      I have an existing project where the Peripheral is not setting the manufacturing data to companyid 305 which is Cypress according to Bluetooth Specifications:

      https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers

       

      I am using a Central BLE app that is running the Cypress 100 Projects in 100 days (Day 20) UART to BLE Central project:

      https://github.com/cypresssemiconductorco/PSoC-4-BLE/blob/master/100_Projects_in_100_Days/Day020_BLE_UART/UART_to_BLE_central/UART_to_BLE_central.cydsn/app_Ble.c

       

      My question is it possible to connect to the peripheral without having this manufacturing data?  I see code that is looking for this but I am not sure whether it is required or not.

       

      File: app_Ble.c

      case CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT:

               

                  advReport = (CYBLE_GAPC_ADV_REPORT_T *) eventParam;

               

                  /* check if report has manfacturing data corresponding to the intended matching peer */

                  if((advReport->eventType == CYBLE_GAPC_SCAN_RSP) && (advReport->dataLen == 0x06) \

                          && (advReport->data[1] == 0xff) && (advReport->data[2] == 0x31)  \

                          && (advReport->data[3] == 0x01) && (advReport->data[4] == 0x3b) \

                          && (advReport->data[5] == 0x04))

                  {

                      peerDeviceFound = true;

                   

                      memcpy(peerAddr.bdAddr, advReport->peerBdAddr, sizeof(peerAddr.bdAddr));

                      peerAddr.type = advReport->peerAddrType;

                   

                      #ifdef PRINT_MESSAGE_LOG

                          UART_UartPutString("\n\r\n\rServer with matching custom service discovered...");

                      #endif

                  }        

               

                  break; 

       

       

      Thanks,

      Rohan