Hi Dialog,
I am trying to check how to make the advertisement package payload as 255 bytes instead of only 26 bytes for the dynamic data. do you have any guides for that?
I have read your tutorial for the Advertising Concept Tutorialhttp://lpccs-docs.dialog-semiconductor.com/da1469x_advertising_concept/i...
Device:
Hi liuluan002,
The ble_gap_mtu_size_set() API should be used in order to set the Maximum Protocol Unit size that will be used in exchange MTU transactions with peers.
支持的最大MTU size is 512 octets. The minimum supported MTU size, as defined by Bluetooth SIG, is 65 octets when LE secure connections are used, 23 otherwise. The MTU size change should take place prior to creating the BLE attribute database. Otherwise, any already defined attribute database will be deleted.
Please take a look atDA1469x Power Consumption PeripheralSW example.
Thanks, PM_Dialog
in here, I want to set the undirectional broadcasting data to be 255bytes, is it possible? and how to do that? since from the bluetooth 5.0 should support the 255 bytes package load
// Set advertising data
ble_gap_adv_data_set(sizeof(adv_data), adv_data, 0, NULL);
是ble_gap_mtu_size_setfor the maxnium the broadcasting package size or not? I am try to load the data from my broadcast package instead.
Hi liuluan002,
Could you please clarify your requirement? Would you like to place 225bytes into the advertising string? Did I understand correctly?
Thanks, PM_Dialog
I try to make my sensor data load into the advertising string. also I need to update them each 0.5 s for exmple, any way to do that?
Hi liuluan002,
Since you would like to use the advertising string in order to store your custom data, please take a look at the ble_gap_adv_data_set(). This API call is used to modify the advertising data and scan response Data used. It can be used while an advertising operation is in progress. This means that you can set up a Timer and update the advertising or scan response data. The maximum Advertising Data length for undirected connectable advertising is BLE_ADV_DATA_LEN_MAX bytes (31 minus 3 that are reserved to set the Advertising Data type flags - which shall not be set in Advertising Data using this function). The equivalent max length for non-connectable advertising is BLE_NON_CONN_ADV_DATA_LEN_MAX bytes/
Can you please indicate if it is a connectable or non-connectable application?
Thanks, PM_Dialog
thank you. do you have any BLE platform which supports the 255bytes of advertisement package?
Hi liuluan002,
We will continue the support directly and offline from the forum. However, thanks for posting online.
Thanks, PM_Dialog