Massive data transmission

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
6 posts / 0 new
Last post
tjuzzjj080412
Offline
Last seen:1 year 4 weeks ago
加入:2020-02-03 05:40
Massive data transmission

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:
PM_Dialog
Offline
Last seen:2 days 7 hours ago
工作人员
加入:2018-02-08 11:03
Hi tjuzzjj080412,

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

tjuzzjj080412
Offline
Last seen:1 year 4 weeks ago
加入:2020-02-03 05:40
Hi 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

PM_Dialog
Offline
Last seen:2 days 7 hours ago
工作人员
加入:2018-02-08 11:03
Hi tjuzzjj080412,

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

tjuzzjj080412
Offline
Last seen:1 year 4 weeks ago
加入:2020-02-03 05:40
Hi 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

PM_Dialog
Offline
Last seen:2 days 7 hours ago
工作人员
加入:2018-02-08 11:03
Hi tjuzzjj080412,

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