Hello, i would like to know if this is possible to send less than 20bytes per packets, by changing the parameters like BLE_GATT_ATT_MTU_DEFAULT or the max data len. My goal would be this thank you so much in advance. Have a great day.
Hello, i would like to know if this is possible to send less than 20bytes per packets, by changing the parameters like BLE_GATT_ATT_MTU_DEFAULT or the max data len. My goal would be this thank you so much in advance. Have a great day.
I cannot suggest anything without knowing what is wrong (to fix the issue we kneed to know what the issue is), so you must debug and let me know of your findings. If that is difficult, perhaps you can enable debug logging as is used in the SDK examples, and share the debug log. That should show if any APP_ERROR_CHECK has been hit. That may not be the case, but it is not unlikely and easy to check.
<info> app_timer: RTC: initialized.
<info> app: Debug logging for UART over RTT started.
<info> app_timer: RTC: initialized.
<info> app: Debug logging for UART over RTT started.
<info> app: Connected
<info> app: Data len is set to 0xF4(244)
<error> app: ERROR 1 [NRF_ERROR_SVC_HANDLER_MISSING] at C:\Users\linam_p1cpp71\Desktop\nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_uart\main.c:603
PC at: 0x0001A647
<error> app: End of error report
I see the error what do you think?
thank you
Hi,
Very good, this is exactly what we need to continue. Now, the next question is what is around line 603 in your main.c. I assume it is an APP_ERROR_CHECK() checking the return value of a function call. Which function call is it? You can also upload the file here so that I can have a look.
Hello again i have news, i took off the case app_uart_communication_error and it is working better i can see better data BUT i still have a problem. The application has the data but they are too long to receive because byte per byte is too long so i'm going to make packets of 20 bytes BUT my problem is that i have to clean the buffer first, do you have ideas of how can i do that? Thank you