Hi Dialog,
I noticed that CFG_MAX_TX_PACKET_LENGTH and CFG_MAX_RX_PACKET_LENGTH macros are defined in da1458x_config_advanced.h.
How could I transmint a large number of data from DA14531, or could you recommend any SDK example?
Thanks
Device:
Hi tjuzzjj080412,
Could you please be more specific regarding your requirement? According to Bluetooth LE specifications the packet length of a BLE device is in 27 bytes, additional headers from higher layer protocols are also added. To do so, the maximum packets length is about 20 bytes with the default MTU size or 27 bytes in larger MTU sizes. However, Bluetooth LE v4.2 version, the Data Packet Length Extension (DLE) feature can be used. This allows you to send packets from 27 bytes up to 251 bytes maximum payload. The DA14531 and latest SDK6 support DLE feature by defining the maximum payload allowed on your connection in the da1458x_config_advanced.h file CFG_MAX_TX_PACKET_LENGTH and CFG_MAX_RX_PACKET_LENGTH. By defining those macros, SDK will take care of the memory allocation for your buffers and in the user_gapm_config structure you should set the .max_txoctets and .max_txtime.
Thanks, PM_Dialog
Hi Dialog,
Thank you for your reply.
To tell the truth, I am a newcomer in DA14531 development.
Previously, I used Cypress Semiconductor SOC-- CYW20719. There is an API wiced_transport_send_buffer() for massive data transmit,
and I didn't find any similar API in DA14531 SDK.
Would you please give me some advice and information?
Thanks a lot
Hi tjuzzjj080412,
Since you are newbie with DA14531 and our BLE solution, I would strongly suggestion first checking the following tutorial.
Regarding your question, you should use the DLE feature as mentioned in my previous comment.
Thanks, PM_Dialog
Hi Dialog,
I have read these tutorial several times already, but still could not understand found data transmiting and receiving methods.
Would you please give me some advice and information?
Thanks
Hi tjuzzjj080412,
Please check section 4.1.9. LE Data Packet Length ExtensionUM-B-119: DA14585-DA14531 SW Platform Reference. The app_easy_gap_set_data_packet_length() API function may be called to set the maximum data packet length – the maximum length being supported is 251 octets (see also CFG_MAX_TX_PACKET_LENGTH in the da1458x_config_advanced.h file of any of our BLE example applications).
Thanks, PM_Dialog