Skip to main content

HOW TO CHANGE Broadcast Flags data 02-01-06

2 weeks ago

HOW TO CHANGE Broadcast Flags data 02-01-06

Posted bykoson35 points 3 replies
0 upvotes

I RUN SDK,I find Broadcast data1型always 02 01 06

like:

020106
11079ECADC240EE5A9E093F3A3B50100406E
0B094D435F4B4F42455F3038

i read code and comment:

app_easy_gap_undirected_advertise_start_create_msg(void)

ASSERT_ERROR(USER_ADVERTISE_DATA_LEN <= (ADV_DATA_LEN - 3));/ /标记的数据类型re added by the ROM

so I cannot change the 3 data ???

HOW can i change Broadcast Flags data 02-01-06 to

02 01 03

thanks

2 weeks ago

PM_Dialog

Hi koson,

Thanks for your question on our forums but sorry it is unclear what you are trying to accomplish. Can you please clarify your requirement? Which flags you want to change?

I would recommend first checking our advertising tutorial – find the link below :

http://lpccs-docs.dialog-semiconductor.com/DA145xx_Advertising_Tutorial/index.html

You can change the advertising data from the USER_ADVERTISE_DATA macro in user_config.h file.

Thanks, PM_Dialog

2 weeks ago

koson 35 points

3Q renewed my question how to change ADV_TYPE_FLAGS

1 week ago

PM_Dialog

Hi koson,

Thanks for the clarification. As mentioned in the app_easy_gap_undirected_advertise_start_create_msg() API, the ROM appends 3 bytes for flags (length+type+flags = 3 bytes) in the advertising data and so you can use the remaining 28bytes. You can not change that flags for the undirected connectable advertising.

Thanks, PM_Dialog