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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,035 Views
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 Kudos
2 Replies

1,024 Views
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,020 Views
sihanchen
Contributor III

Dear Mario, 

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

      Thank you very much.