3 Replies Latest reply on Mar 8, 2016 6:35 AM by rohit.kumar

    HID Host and HCI_Status Event

    p.osypiuk_1583536

      Hi,

         

      I'm trying to program PSoC board as HID client. I am sending by UART some messages to PC to know what is goings-on. I have an event HCI Status and code number 4. It is page timeout. What am I doing wrong?

         

      I am using CY8CKIT-042-BLE. PRoC module has program from example HID-Keyboard and I have connection by BLE between those modules. I have this error after trying to connect.

         

      Events I have got in terminal:

         

      CYBLE_EVT_STACK_ON
      CYBLE_EVT_GAPC_SCAN_START
      CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT
      CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT
      CYBLE_EVT_GAPC_SCAN_STOP
      CYBLE_EVT_HCI_STATUS: 4
      CYBLE_EVT_GATT_CONNECT_IND
      CYBLE_EVT_GAP_DEVICE_CONNECTED

         

      Pawel

        • 1. Re: HID Host and HCI_Status Event
          rohit.kumar

          As per the BLE Spec 4.1, 

             

          PAGE TIMEOUT (0x04)
          The Page Timeout error code indicates that a page timed out because of the Page Timeout configuration parameter. This error code may occur only with the Remote_Name_Request and Create_Connection commands.

             

           

             

          From your log, I see that your device does get connected to another device (CYBLE_EVT_GATT_CONNECT_IND). Are you able to discover services?

          • 2. Re: HID Host and HCI_Status Event
            p.osypiuk_1583536

            Hi, I try to discover all services by CyBle_GattcDiscoverAllPrimaryServices, it returns 0 so it's ok. Here is my new log from terminal. My HCI error code is strange and I have one more error.

               

            CYBLE_EVT_STACK_ON
            CYBLE_EVT_GAPC_SCAN_START
            CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT
            CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT
            CYBLE_EVT_GAPC_SCAN_STOP
            CYBLE_EVT_HCI_STATUS
            236
            CYBLE_EVT_GATT_CONNECT_IND
            CYBLE_EVT_GAP_DEVICE_CONNECTED
            CYBLE_EVT_GATTC_READ_BY_GROUP_TYPE_RSP
            CYBLE_EVT_GATTC_READ_BY_GROUP_TYPE_RSP
            CYBLE_EVT_GATTC_ERROR_RSP

            • 3. Re: HID Host and HCI_Status Event
              rohit.kumar

              I would suggest to raise a technical support case at www.cypress.com -> Design Support -> Create a support case, and upload your porject in there.