KW36 cannot find all the service handle of the BLE peripheral device.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

KW36 cannot find all the service handle of the BLE peripheral device.

1,357 次查看
sihanchen
Contributor III

( Development environment list : )
     Board = KW36 development board.
     SDK = frdmkw36_wireless_examples_bluetooth_w_uart_freertos.
     Use case = KW36 is configured as Central, and BLE device is configured as Peripheral.


( Description : )
     I use BleServDisc_FindService() function to find all the attribute handle of the BLE peripheral device by UUID (Primary service), but only one attribute can't be found in the characteristics. The Primary service should contain 3 characteristics, the list of all attributes is as follows:

FFC0 (Primary service)
     => FFC1 (service)
               => UUID (0229), Handle (0x0015)
               => UUID (0129), Handle (0x0016)
     => FFC2 (service)
                => UUID (0029), Handle (0x0019)
                => UUID (0129), Handle (0x0016)
     => FFC5 (service) 
               => UUID (0029), Handle (0x001D) <--- Can't be found
               => UUID (0129), Handle (0x001E) <---- Can't be found

         As shown above, BleServDisc_FindService() can find all the handles of FFC1 and FFC2, but the handle of FFC5 is missing. The strange thing is that you can see 3 characteristics to show in Debug LOG, but KW36 cannot find all the contents and attributes handle of FFC5.

 

1.PNG

0 项奖励
回复
2 回复数

1,346 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi,

Could you please try to increase the #define gMaxCharDescriptorsCount_d to 6 in this case?

Regards,

Mario

1,342 次查看
sihanchen
Contributor III

Dear Mario, 

      As you mentioned, the issue has been solved by modifying this parameter to "6",

      Thank you very much.