BLE Notify Data Packet Size

Learn MoreFAQsTutorials

2 posts / 0 new
Last post
Subramanyan
Offline
Last seen:6 days 10 hours ago
加入:2020-07-15 12:43
BLE Notify Data Packet Size

Hi,

这是相关的评论https://support.dialog-semiconductor.com/comment/30628#comment-30628

Can I send notify information more than 20 bytes per packet? I think this is the limit for BLE4.2.

Can I set the BLE to 5.0 so that I can send more bytes in each packet?

Thanks and Regards,

Subbu

Device:
PM_Dialog
Offline
Last seen:48 min 8 sec ago
Staff
加入:2018-02-08 11:03
Hi Subramanyan,

Hi Subramanyan,

In order to receive/send more than 20 bytes as you have mentioned, you should use the ble_gap_mtu_size_set() API, and set the appropriate mtu_size. Please note that this API function should be called prior to creating the attribute database of the device. This is because the device configuration is going to be modified, which will result in clearing the current attribute database (if it exists). Also, in the ble_config.h header file define the data length:

#define dg_configBLE_DATA_LENGTH_RX_MAX(251)

#define dg_configBLE_DATA_LENGTH_TX_MAX(251)

请take a look atDA1469x Power Consumption PeripheralSW example.

Thanks, PM_Dialog