- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I am using the evaluation kit CYW920719Q40EVB1-01.
I am trying to send an array through BLE but I am facing a problem. so far I am able to create the array and send up to 6 values only but if I increase my array number, the board resets itself.
any suggestions and assistance would be appreciated.
Solved! Go to Solution.
- Tags:
- max number of bytes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are 2 problems in your project:
1. When you claim the thermistor_last_reading[ ], please initiate the size. And you only claim 2 bytes in the thermistor_gatt_db.h for the array.
2. You don't need to sned notification 10 times in the timer callback. You can send all the 20 bytes at once.
I make some changes for your project, it can work fine now. Please find the attachment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you using the notify or indicate? Could you give a snip of your application code?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I'm using the Notify, and started with an example code since I'm still a beginner with this unit and BLE.
where do I attach the snip code?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are 2 problems in your project:
1. When you claim the thermistor_last_reading[ ], please initiate the size. And you only claim 2 bytes in the thermistor_gatt_db.h for the array.
2. You don't need to sned notification 10 times in the timer callback. You can send all the 20 bytes at once.
I make some changes for your project, it can work fine now. Please find the attachment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
excuse me for the late response. Thank your for your help and I will check right now the addressed problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the max number of bytes that I can send at once? I understand that max is 20 bytes, yet I think that it is possible to send multiple times of these 20 byte packets, correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The MTU size of 20719 is 23~512 bytes. But the actural size is negotiated between client and server. Usually the size is 23 by the phone. So the notify size can be 20 bytes. Please refer to the following KBA for details: Maximum Packet Size According to MTU – KBA203312