⚠️
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
takeuchi0304
Offline
Last seen:1 year 11 months ago
加入:2019-02-26 02:37
Central sample app

Hello,

Is there any sample apps (or codes) that behave as central mode, connect to peripheral device(s), write without response and receive message through notification?

I don't want to spent time developing code but I could only found BLE Central Security Demo Project below. These are almost peripheral.
//www.xmece.com/products/connectivity/bluetooth-low...

Thank you in advance.

Keywords:
Device:
PM_Dialog
Offline
Last seen:1 day 7 hours ago
工作人员
加入:2018-02-08 11:03
Hi takeuchi0304,

Hi takeuchi0304,

TheSW Example: BLE Central Security Demo Projectconfigures the DA14585 both as a peripheral and as a central device. Please check the role item of user_gapm_conf structure which is located into the user_config.h header file. Its values is GAP_ROLE_ALL which means that the device can act ether as a peripheral or as a central (not at the same time). For your case, I would recommend you to have a look at theSW Example: Active Scannersoftware example which is more simple. This example is by default configured as GAP_ROLE_OBSERVER, so you will have to change the role item in user_gapm_conf to GAP_ROLE_CENTRAL. The most critical functions for central configuration are the user_scan_start() and user_on_scan_complete().

Thanks, PM_Dialog

Wilson
Offline
Last seen:1 year 10 months ago
加入:2017-12-30 05:31
Dear Dialog Colleagues,

Dear Dialog Colleagues,

I just met the same issue, and I also checked ble central security demo project, but I still have no idea how to get the service and charactertics of peripherial connected, what's my aim is to write data without response to the peripherial, do you have some demo on such point?

Thanks!

Wilson

PM_Dialog
Offline
Last seen:1 day 7 hours ago
工作人员
加入:2018-02-08 11:03
Hi Wilson,

Hi Wilson,

Let me check it and I will get back to you as soon as possible.

Thanks, PM_Dialog