3 posts / 0 new
Last post
Tzvika
Offline
Last seen:5 years 4 months ago
Joined:2015-01-13 09:43
Advertisment PDU Header

Hi,

How I can set the Adv PDU Header ==> Type 2 ,TxAdd =1 = How to set the PDU Header to be 0x42

Tzvika
Offline
Last seen:5 years 4 months ago
Joined:2015-01-13 09:43
ok I found it , need to set

ok I found it , need to set
cmd->info.host.scan_rsp_data_len = 0;

TR_Dialog
Offline
Last seen:1 month 3 weeks ago
Staff
Joined:2014-06-30 23:52
Hi,

Hi,

In app_adv_function you configure both advertising data and scan response data.

The contents of the above two messages are controlled by following defines located in app_proxr_proj.h;

#define APP_ADV_DATA "\x07\x03\x03\x18\x02\x18\x04\x18"
#define APP_ADV_DATA_LEN (8)

#define APP_SCNRSP_DATA "\x09\xFF\x00\x60\x52\x57\x2D\x42\x4C\x45"
#define APP_SCNRSP_DATA_LENGTH (10)

You can customize them anyway you wish.

app_adv_func routine also allows you to customize other properties of the advertisement message such as type of bd address etc.

Hope it helps.

thanks,

TR_DIALOG