⚠️
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.
4 posts / 0 new
Last post
gert186
Offline
Last seen:1 year 2 months ago
加入:2016-04-21 12:59
DSPS HOST and DEVICE

Hi,

The Question could be simple but, I'm not able to to it :-)

可能只有一个主机连接吗to one specific device?

When yes how? Because I have 2 Devices running and I want, that the host connects only to one specific!

Thanks a lot

Device:
PM_Dialog
Offline
Last seen:2 days 8 hours ago
Staff
加入:2018-02-08 11:03
Hi gert186,

Hi gert186,

According to the BLE specification you can advertise and be scanned by a specific device (if you are aware of the bd address of the scanner) if you use directed advertising. So you should use direct advertising instead of undirect advertising and fill with the proper central BD address the .peer_addr_type item of the user_adv_config structure in the user_config.h file.

Thanks, PM_Dialog

gert186
Offline
Last seen:1 year 2 months ago
加入:2016-04-21 12:59
sounds easy but it is not

sounds easy but it is not very easy for me :-)

So in General there are an option to do but how can I change it in DSPS?

If think there is also a memcmp() function who compares the [3] of something to something :-)

I searched for a long time to change it but I struggle in some major finding problems :-)

Is there a way to give the dsps device (not the host) a specific fix bd Address?

I can't find the declaration of it.

May some explanation would be great.

PM_Dialog
Offline
Last seen:2 days 8 hours ago
Staff
加入:2018-02-08 11:03
Hi gert186,

Hi gert186,

I think that you have already created a similar thread on the forum. If you are using the DSPS, the concept is either to use a specific UUID or in general a specific magic number that the central will check when receiving the advertising event. I have answered you in your previous thread. Please check it:

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bl...

Thanks, PM_Dialog