7 Replies Latest reply on Nov 20, 2018 8:13 PM by GyanC_36

    How to communicate with Cypress BLE device runnning UART_to_BLE_Central project using iOS Objective-C code?


      Hello -


      I have a device with a Cypress semiconductor that is running the UART_to_BLE_Central project. I am trying to connect to this device using Bluetooth4 BLE protocols.  This one: CY5670 http://www.cypress.com/documentation/development-kitsboards/cy5670-cysmart-usb-dongle


      I am able to successfully connect to the device using Android Java code but not on iOS.  On iOS I am not able to advertise manufacturing data in the way the PSoC code wants it.  I think this is likely the issue. 


      Do you know if it is required to satisfy this condiction in the Central project code in order to connect?


      File: app_Ble.c



                  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...");







      Any insights would be very much appreciated.