iBeacon sample app sending beacons twice

⚠️
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.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
8 posts / 0 new
Last post
helaman
Offline
Last seen:6 months 5 days ago
加入:2020-08-08十八25
iBeacon sample app sending beacons twice

Hi,

I built and ran the sample iBeacon app. As I sniff the packets, I see that the iBeacon packets are being sent twice every 100ms. This causes twice the power draw that I expecting based on the spreadsheet for power consumption.

What would be causing this to happen.

Attached I have added a screen shot of my BLE capture in wireshark.

Device:
PM_Dialog
Offline
Last seen:2 hours 33 min ago
工作人员
加入:2018-02-08 11:03
Hi helaman,

Hi helaman,

Can you please indicate the BLE Device that you are using? Is it the DA14583, as tagged in your initial post? If yes, can you please indicate the project?

Thanks, PM_Dialog

helaman
Offline
Last seen:6 months 5 days ago
加入:2020-08-08十八25
Yes, as previously stated the

Yes, as previously stated the DA14531. Attached is the source code unmodified from your website.

Attachment:
PM_Dialog
Offline
Last seen:2 hours 33 min ago
工作人员
加入:2018-02-08 11:03
Hi helaman,

Hi helaman,

Since the DA14531 is used, I’ll change the device selection in your initial post. Where did you see that the beacon packets are sent twice?

Thanks, PM_Dialog

helaman
Offline
Last seen:6 months 5 days ago
加入:2020-08-08十八25
Please see the wireshark

Please see the wireshark sniff of the packets. Have a look at Packet number 1405 - 1478 at the top of the image, and notice that the source address is for the device running the sample code and does not changes. Also, this code only sends iBeacons. All of the packets are essentially the same. Notice the times of the packets. 2 packets sent at 8.0 seconds, 2 packets sent at 8.1 seconds, 4 packets sent at 8.2 seconds, 3 packets sent at 8.3 seconds etc.

PM_Dialog
Offline
Last seen:2 hours 33 min ago
工作人员
加入:2018-02-08 11:03
Hi helaman,

Hi helaman,

Just to understand what is the problem : do you mean that the BD Address is not changing? Why do you expect that the BD Address should be changed?

请上海are the sniffer log file to open it in my side?

Thanks, PM_Dialog

helaman
Offline
Last seen:6 months 5 days ago
加入:2020-08-08十八25
Not at all, the BD address is

Not at all, the BD address is not expected to change. I saw showing you that there are more than one transmissions for the device within the iBeacon transmission rate of 100ms.

Attached you will find the wireshark trace file.

Attachment:
PM_Dialog
Offline
Last seen:2 hours 33 min ago
工作人员
加入:2018-02-08 11:03
Hi helaman,

Hi helaman,

Can you please try to change the type of the BD Address? A Static BD address is used by default, so please try to use a Public BD Address.

The USER_CFG_ADDRESS_MODE macro definition should be set to APP_CFG_ADDR_PUB in the user_config.h header file.

PS: changing the device selection to DA14531.

Thanks, PM_Dialog