3 Replies Latest reply on Jan 3, 2017 12:39 PM by user_1748457

    CyBle_GapcSetHostChannelClassification

    forqzy_1626536

      In order to reduce the interference, I try to control the channel mapping.

         

      Once the device is connected, try to execute the following. 

         

      But sometime it will failed report HCI 0x28 instant change.

         

       

         

      So how to improve this? 

         

       

         

       

         

        case CYBLE_EVT_GAP_DEVICE_CONNECTED:
           DBG_PRINTF("CYBLE_EVT_GAP_DEVICE_CONNECTED: %x \r\n", cyBle_connHandle.bdHandle);
           //CyBle_GapAddDeviceToWhiteList(&peerAddr[deviceN]);
                  
           if(channelMap==0){
                uint8 b[]={0xffu,0xffu,0x0u,0x0u,0x10u};  
                CyBle_GapcSetHostChannelClassification(b);               
           }else{
                uint8 b[]={0x1u,0x0u,0xffu,0xffu,0x10u};  
                 CyBle_GapcSetHostChannelClassification(b);               
           }