Questions regarding ble_app_profile example

⚠️
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.
12 posts / 0 new
Last post
茨戈特汉姆
Offline
Last seen:3 months 1 day ago
加入:2020-05-04 12:39
Questions regarding ble_app_profile example

Hi,

我是Dialog产品的新手,我的最终亚博电竞菠菜目标是使用DA14580作为一个具有我自己定制服务和特点的外部/连接芯片。

  • 我可以修改ble应用程序配置文件示例,并向其添加一个特性,该特性在写入控制点特性时做出响应。我想在中央设备即我的手机连接到它并订阅通知后立即发送数据。我相信当手机订阅通知时,有一条消息发送给用户。以前的论坛文章指出了一个RW-BLE-GATT-IS文件,其中包含BLE消息,但我找不到。请您共享此文档并确认连接设备订阅通知时发送的消息是否存在。
  • My next aim is to use DA14580 as an external chip over SPI. I took a look at the prox_reporter_ext_spi example and noticed that a message is sent to the external chip to add the service. So does this mean that the firmware running on the DA14580 when it is acting as an external chip is a generic one and the master needs to provide it with what serives it should register? Also, can you give some steps/resources as to how I can proceed with making this? Should ble_app_profile be used as a base code or the prox_reporter_ext_spi?

谢谢

Gowtham

关键词:
设备:
PM_Dialog
Offline
Last seen:53分钟前11小时
Staff
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

谢谢你的问题。我查一下,我会给你回电的。

谢谢, PM_Dialog

茨戈特汉姆
Offline
Last seen:3 months 1 day ago
加入:2020-05-04 12:39
嗨,下午对话,

嗨,下午对话,

谢谢for responding. Till you are able to get back with the answers to my question, can you please share RW-BLE-GATT-IS and RW-BLE-HOST-IS or provide a link to where I can download these docs from? Are there any other docs too which would be required to be read for using the DA14580 as an external chip?

谢谢

PM_Dialog
Offline
Last seen:53分钟前11小时
Staff
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

RW-BLE-***文档不再在我们的支持网站上提供,因为通常人们不需要这些文档来开发他们的应用程序。您应该使用提供的易于使用的API来开始开发项目。如果有通知,请查看SDK的ble_UApp_U外围示例。本示例使用应用程序“easy_UTimer”向对等中心设备发送通知,每个应用程序外围设备都会被CTRL\u计时器延迟。计时器过期后,将触发应用程序adcval1\u timer\u cb uhandler()回调。

If I understood correctly, your requirement is to use the DA14580 as an SPI master. Please check the booting procedure as described in theAN-B-001 : DA14580/581/583 Booting from serial interfaces. 此外,您应该查看prox_uReporter\u ext_uSPI项目,以检查如何将HW设置为spi从属程序。

In the meanwhile, would it be share a high level description of your application?

如果您开始新的设计,我们强烈建议您从DA14531或DA14585/586产品和我们最新的SDK6.0.14开始,因为它的改进程度要大得多。我们有很多代码示例和改进的文档,并且还提供了软件路线图支持亚博电竞菠菜。DA14580产品系列和SDK5没有任何软件路线图支持。

请查看DA14531:

//www.xmece.com/亚博电竞菠菜products/connectivity/bluetooth-low-energy/products/da14531

Additionally the DA14531 SmartBond TINY™ Module is now released! Follow the link below to find datasheet, documentation and HW collaterals for the module:

//www.xmece.com/亚博电竞菠菜products/bluetooth-module-da14531-smartbond-miny

此外,DA14531现在还提供了Dialog串行端口服务(DSP)和无代码!

谢谢, PM_Dialog

茨戈特汉姆
Offline
Last seen:3 months 1 day ago
加入:2020-05-04 12:39
Hi,

Hi,

Since the RW-BLE files are not available anymore, where can I find the list of message IDs used in the user_catch_rest_hndl function?

The ble_app_peripheral project starts transmiting once a value is written to the control point characteristic. I would like to change it such that it starts transmitting once a mobile app enables the notification for a specific characteristic.

One thing I would like to clarify is that my requirement is to use the DA14580 as a SPI slave, NOT master. I am using another microcontroller as the master.

我不能理解他initiates the communication between the master and the slave? What message is sent as the first message?

Also, if I would like to use the cust1 profile, do I need to modify the target app of prox_reporter_ext_spi or are the services and profile loaded from the SPI master?

About your question regarding my application, I cannot reveal any details as the client is in a regulated industry. I'm working on an existing design, so I'm unfortunately unable to shift to a DA14531.

谢谢

PM_Dialog
Offline
Last seen:53分钟前11小时
Staff
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

自定义1服务的消息可以在custs1\u task.h文件中找到。写入控制点特性时,将触发用户\usvc1\u ctrl\u wr_ind_uhandler(),如果值为0x01,则DA14580将向对等设备发送数据over通知。在app_adcval1_utimer\u cb_handler()中,您可以如何发送通知。因此,您可以在设备连接时使用类似的实现(例如)。对于prox_UReporter_uExt_uuSPI,我假设您可以从ble应用程序_uu外围设备添加实现。

谢谢, PM_Dialog

茨戈特汉姆
Offline
Last seen:3 months 1 day ago
加入:2020-05-04 12:39
嗨,下午对话,

嗨,下午对话,

谢谢for your reply, I took a look at the custs1_task.h file and I think I understand the messages being sent a for custome profile bit better now.

But I still am not able to find the answer to the question I had mentioned in my last post.

"And I'm unable to understand who initiates the communication between the master and the slave? What message is sent as the first message?"

你能帮我解决这个问题吗?

谢谢

茨戈特汉姆
Offline
Last seen:3 months 1 day ago
加入:2020-05-04 12:39
嗨,下午对话,

嗨,下午对话,

Can you please help me with figuring out who starts the communication? My question is in my last post.

Also, is there any API reference doc for all the message structures in cust1_task.h? I'm unable to figure out how to use custs1_create_db_req and I searched in the Software Platform Reference oc but couldn't find anything. I tried to take a look at how it's being implemented in the ble_app_profile example but I couldn't find how it's being passed to custs1_create_db_req_handler.

谢谢

PM_Dialog
Offline
Last seen:53分钟前11小时
Staff
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

我道歉-很明显我错过了你最后一个问题。我查一下,我很快就会答复你的。

谢谢, PM_Dialog

PM_Dialog
Offline
Last seen:53分钟前11小时
Staff
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

Please refer to section 6.1 DA1458x connected to SPI Master in theAN-B-001 : DA14580/581/583 Booting from serial interfaces申请说明。根据本文档,通信从外部SPI主机设备开始发送前导字节(0x70和0x50),然后是零字节。自定义1配置文件已由SDK实现。以下文档可能会帮助您:

//www.xmece.com/sites/default/files/training\u 02\u custom\u profile\u example\u v1.2\u 0.pdf

//www.xmece.com/sites/default/files/an-b-029_developing_a_bluetooth_smart_custom_profile_v1.0.pdf

谢谢, PM_Dialog

茨戈特汉姆
Offline
Last seen:3 months 1 day ago
加入:2020-05-04 12:39
谢谢PM对话,这些

谢谢PM对话,这些documents helped out quite a bit.

PM_Dialog
Offline
Last seen:53分钟前11小时
Staff
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

谢谢你接受我的回答。如果您还有其他问题,请随时创建一个新的论坛线程。

谢谢, PM_Dialog