⚠️
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.
4 posts / 0 new
Last post
alan.a
Offline
Last seen:2 years 4 months ago
Joined:2018-10-31 07:50
BLE Scanning

Hii.....
I have DA14580 Basic kit. I want to make this kit as a scanner .
can you guide me which example i follow(documentation or anything)?

Keywords:
Device:
PM_Dialog
Offline
Last seen:6 hours 59 min ago
Staff
Joined:2018-02-08 11:03
Hi alan.a,

Hi alan.a,

The DSPS host application code implements how to configure the DA14580 as a scanner. Please, check the user_scan_start() of the sps_host project. Also, I would highly recommend you have a look in the following forum post :

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/configure-ble-peripheral-central

For your convenience, you could find attached some code snippets and if you follow the steps below, you will be able to configure the DA14580 as a scanner. Also, be aware that I implemented the steps below into the ble_app_barebone example of the SDK5.0.4.

  1. Add the user_scan_start() and user_app_on_scanning_completed() functions into the user_barebone.c file and make a reference of both of them into the user_barebone.h header file. You can find both of the functions into the attached file.
  2. 添加到user_con scan_configuration结构fig.h header file
  3. Change the .role item of gapm_configuration into GAP_CENTRAL_MST. The structure is placed into user_config.h header file
  4. In the user_callback_config.h header file, please do the following modifications
    • .default_operation_adv = user_scan_start,
    • .app_on_scanning_completed = user_app_on_scanning_completed,

Thanks, PM_Dialog

Attachment:
alan.a
Offline
Last seen:2 years 4 months ago
Joined:2018-10-31 07:50
Hii....

Hii....
Thanks for your support i do as per above and set adv report handler to take adv data's it works fine.
is it any software document for BLE scanning?
one more doubt if i want to connect a BLE peripheral what changes i did in this?

PM_Dialog
Offline
Last seen:6 hours 59 min ago
Staff
Joined:2018-02-08 11:03
Hi alan.a,

Hi alan.a,

You could find more information about the scanning procedure into the Dialog Serial Port Service (DSPS) reference design application code. So, I would suggest you to have a look at the DSPS host source code and then read the UM-B-038 user manual. You are able to download all the available documentation and source code of DSPS from the “Reference designs” of DA14580 SoC from our support portal. For your convenience, you can also follow the link below:

https://support.dialog-semiconductor.com/connectivity/product/da14580?qt-product_restricted_=5#qt-product_restricted_

Do you want to configure one other DA14580 as a peripheral and connect to the DA14580 that acts a scanner? Please, read the UM-B-038 document and get back to me if you want any guidelines.

Thanks, PM_Dialog