BLE notify cannot send data

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
TeCh_3034126
Level 3
Level 3
First like received First like given

Hi,

I am using CYBLE-014008-EVAL for my development.

I have created a custom BLE service (Fields: 9x4 bytes == 36 bytes, Properties: Notify).

After linked with CySmart 1.2 and 'Enable All Notifications', I cannot get the notified data.

However, if I set the size of the 'Fields' data from 36 bytes to 12 bytes, I can get the notified data.

Is there any limitation on the data size of the notification?

Thanks!

Terry

0 Likes
1 Solution
Anonymous
Not applicable

Hello Terry,

Increase the MTU size to 39 and try again. Make sure that the MTU size is exchanged.

Please see Bluetooth 4.0 specification Vol 3 Part F 3.4.7.1. (Attribute Value size for notifications should be between 0 and MTU - 3)

Regards,

View solution in original post

4 Replies
Anonymous
Not applicable

Hello Terry,

Increase the MTU size to 39 and try again. Make sure that the MTU size is exchanged.

Please see Bluetooth 4.0 specification Vol 3 Part F 3.4.7.1. (Attribute Value size for notifications should be between 0 and MTU - 3)

Regards,

Hi cfmm,

Just want to confirm that is it ok for just to change the MTU in 'GAP settings'?

Do I need to change the 'L2CAP MTU' also?

Thanks,

Terry

0 Likes
Anonymous
Not applicable

Hello Terry,

Yes in the GAP Settings tab.

0 Likes
Anonymous
Not applicable