regarding the advertisement to have 255 bytes payload

⚠️
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.
9 posts / 0 new
Last post
liuluan002
Offline
Last seen:6 months 1 week ago
Joined:2015-11-27 14:24
regarding the advertisement to have 255 bytes payload

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:
PM_Dialog
Offline
Last seen:1 day 5 hours ago
Staff
Joined:2018-02-08 11:03
Hi liuluan002,

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

liuluan002
Offline
Last seen:6 months 1 week ago
Joined:2015-11-27 14:24
in here, I want to set the

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);

liuluan002
Offline
Last seen:6 months 1 week ago
Joined:2015-11-27 14:24
是ble_gap_mtu_size_set

是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.

PM_Dialog
Offline
Last seen:1 day 5 hours ago
Staff
Joined:2018-02-08 11:03
Hi liuluan002,

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

liuluan002
Offline
Last seen:6 months 1 week ago
Joined:2015-11-27 14:24
I try to make my sensor data

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?

PM_Dialog
Offline
Last seen:1 day 5 hours ago
Staff
Joined:2018-02-08 11:03
Hi liuluan002,

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

liuluan002
Offline
Last seen:6 months 1 week ago
Joined:2015-11-27 14:24
thank you. do you have any

thank you. do you have any BLE platform which supports the 255bytes of advertisement package?

PM_Dialog
Offline
Last seen:1 day 5 hours ago
Staff
Joined:2018-02-08 11:03
Hi liuluan002,

Hi liuluan002,

We will continue the support directly and offline from the forum. However, thanks for posting online.

Thanks, PM_Dialog