⚠️
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.
5 posts / 0 new
Last post
DMueller
Offline
Last seen:3年10个月o
加入:2017-04-12 10:04
device address

Dear Dialog Team,

i have start with the Training Advertising contents.
In the code is written: #define CFG_NVDS_TAG_BD_ADDRESS {0x02, 0x00, 0x00, 0xCA, 0xEA, 0x80}
But at the smartphone is written: {0x00, 0x13, 0x43, 0x2A, 0x1F, 0xF3}

In my opinion, the same addrees must be displayed. Can you tell me, where my mistake is?

Kind regards

Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
加入:2015-06-08 11:34
Hi DMueller,

Hi DMueller,

Most probably this is another device and not the one that you are testing, since you are right and the same address that is located to the CFG_NVDS_TAG_BD_ADDRESS should be displayed to the phone application as well. If the dev kit that you are using is a pro kit, then you can check via the power profiler if the device is indeed advertising or not. If its a basic kit you can place a breakpoint to the .app_on_adv_undirect_complete function (which is the completion callback for the advertising operation) and check if the immiatelly triggers via using a breakpoint, if it does, that means that there is something wrong with the advertising string that you are using.

Thanks MT_dialog

DMueller
Offline
Last seen:3年10个月o
加入:2017-04-12 10:04
Hi MT_dialog,

Hi MT_dialog,

i'm sure that it was the correct device, because of the changed name and the company ID. I use the pro kit. How to use the power profiler?

Back to my problem. I use the example code "ble_app_barebone". What can be wrong with the advertising string?

Kind regards.

MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
加入:2015-06-08 11:34
Hi DMueller,

Hi DMueller,

Power profiler is a tool in the Smart Snippets suite, just open SS in UART/SPI mode, open the power profiler, hit the "Initialize" button and then the "Start" button in order for the tool to start measuring the power consumption of the pro board.

What is the device that you are using ? Is it a Panasonic module ?

If its a panasonic module or a Murata module, those devices have the bd address burned in the OTP header and the SDK when the device boots up it obtains the bd address from the OTP header, so whatever your value is at the CFG_NVDS_TAG_BD_ADDRESS the device keeps on advertising with the address burned in the OTP. So can you please verify if the module that you are using is either a Panasonic or a Murata.

Thanks MT_dialog

DMueller
Offline
Last seen:3年10个月o
加入:2017-04-12 10:04
Hi MT_dialog,

Hi MT_dialog,

Thank you for the answer!

I use a panasonic module. OK, now i know, why it don't function. Thank you!

Kind regards.