BLE 512 Bytes Read and Write

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

cross mob
Anonymous
Not applicable

For my current project am using CYBLE-00120011-00 module

   

I have to transfer 512 Bytes of data from windows application to my custom design board.

   

For same purpose i am using BLE-UART example project.

   

but from windows application only receiving 20 bytes of data.

   

and from my board can send up to 176 bytes of data.

   

can anyone please help,

   

Regards,

   

sagar

0 Likes
1 Solution
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi Sagar,

   

Did you tested with our CySmart PC?

   

I didn't find any issue on testing with CySmart PC.

   

Are you using a custom windows application and you got this issue? IF then, after setting the MTU as 512 , did you send a MTU exchange request from your client application? By default the MTU size is 23. If you want to use MTU size more than 23, client have to send MTU exchnage request. In the case of CySmart PC, it is doing automatically. Make sure you windows application is doing the same.

   

Thanks,
Anjan

View solution in original post

0 Likes
8 Replies
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi Sagar,

   

Did you changed the MTU size to 512?

   

Also please make sure your characteristic characteristic length in BLE component 'profile' tab setting from 20 to 512.

   

Thanks,
Anjana

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi @Anjana

   

Thanks for reply,

   

I updated as you suggested PFA,

   

but if i change characteristic length to 512 it will through RAM full error so i have came to in between values but still i am getting 20 Bytes only

   

please go through the attachments suggest if i am doing something incorrect  

   

Regards,

   

sagar

0 Likes
Anonymous
Not applicable

Iirc, the actual data transmissions break the data up into 20-byte chunks for RF transmission; Have you tried seeing if more data comes through on the next BT packet? With sending 80 bytes for example, I would expect 4 packets of data relating to that "array".

0 Likes
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi Sagar,

   

Please share your project as well as steps to reproduce.

   

So that we can look into it.

   

Thanks,
Anjana

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi @Anjana

   

Thanks for reply,

   

I am attaching my project here.

   

aim of the project

   

3. Implement low power modes but till now could not achieve.

   

1."windows application(C++) to CYBLE to UART" send and receive minimum 512 bytes

   

2.How i have done:-

   

"UART to CYBLE to windows application(C++)" using NOTIFICATION (can receive data in interval,no data corruption over the air ) .

   

"windows application to CYBLE to UART" using WRITE WITHOUT RESPONSE (even if send 40 bytes or more only receive 20 bytes always).

   

I have used BLE-UART-PERIPHERAL from 100 days 100 project github link.

   

Thanks,

   

SAGAR

0 Likes
Anonymous
Not applicable

Hi All,

   

Can i get some help out here?

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

You need to set the MTU size for both sides of the connection to be 512. Looking at your project you uploaded, you didn't change this.

0 Likes
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi Sagar,

   

Did you tested with our CySmart PC?

   

I didn't find any issue on testing with CySmart PC.

   

Are you using a custom windows application and you got this issue? IF then, after setting the MTU as 512 , did you send a MTU exchange request from your client application? By default the MTU size is 23. If you want to use MTU size more than 23, client have to send MTU exchnage request. In the case of CySmart PC, it is doing automatically. Make sure you windows application is doing the same.

   

Thanks,
Anjan

0 Likes