Questions regarding ble_app_profile example

了解更多FAQsTutorials

12 posts / 0 new
Last post
茨戈特姆
Offline
Last seen:1 month 5 days ago
加入:2020-05-04 12:39
Questions regarding ble_app_profile example

Hi,

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

  • 我能够修改ble\u app\u profile示例,并向其添加一个特性,该特性在写入控制点特性时作出响应。相反,我希望在中央设备(即我的手机)连接到它并订阅通知后立即发送数据。我相信当手机订阅通知时,会向用户\u catch\u rest\u hndl发送一条消息。以前的论坛帖子已经指向一个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
Online
Last seen:49 sec ago
Staff
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

谢谢你的问题。让我查一下,然后再给你回电。

谢谢, PM_Dialog

茨戈特姆
Offline
Last seen:1 month 5 days ago
加入:2020-05-04 12:39
嗨,PM\U对话,

嗨,PM\U对话,

谢谢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
Online
Last seen:49 sec ago
Staff
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

RW-BLE-***文档在我们的支持网站上不再可用,因为通常人们在开发应用程序时不需要这些文档。您应该使用提供的易于使用的api来开始开发您的项目。如果有通知,请看SDK的ble\u app\u外设示例。本例使用app\u easy\u timer,以便在每个app\u PERIPHERAL\u CTRL\u timer\u延迟时向对等中央设备发送通知。计时器过期时,将触发app\u adcval1\u timer\u cb\u handler()回调。

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\u reporter\u ext\u spi项目,以检查如何将硬件设置为spi从属。

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

If you are starting a new design, we would strongly recommend to start with DA14531 or DA14585/586 products and our latest SDK6.0.14, as it is much more improved. We have a lot of code examples and improved documentation, and there is also software roadmap support. There is not any software roadmap support for DA14580 product family and 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-tiny

此外,对话框串行端口服务(DSP)和无代码现在可用于DA14531!

谢谢, PM_Dialog

茨戈特姆
Offline
Last seen:1 month 5 days 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
Online
Last seen:49 sec ago
Staff
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

自定义1服务的消息可以在custs1\u task.h文件中找到。写入控制点特征时,将触发用户\u svc1 \u ctrl \u wr \u ind \u handler(),如果值为0x01,则DA14580将通过通知向对等设备发送数据。在app\u adcval1\u timer\u cb\u handler()中,您可以了解如何发送通知。因此,您可以在设备连接后立即使用类似的实现(例如)。对于prox\u reporter\u ext\u spi,我假设您可以从ble\u app\u外围设备添加实现。

谢谢, PM_Dialog

茨戈特姆
Offline
Last seen:1 month 5 days ago
加入:2020-05-04 12:39
嗨,PM\U对话,

嗨,PM\U对话,

谢谢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:1 month 5 days ago
加入:2020-05-04 12:39
嗨,PM\U对话,

嗨,PM\U对话,

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
Online
Last seen:49 sec ago
Staff
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

很抱歉-很可能我错过了你的最后一个问题。让我查一下,我很快给你答复。

谢谢, PM_Dialog

PM_Dialog
Online
Last seen:49 sec ago
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\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:1 month 5 days ago
加入:2020-05-04 12:39
谢谢你,这些

谢谢你,这些documents helped out quite a bit.

PM_Dialog
Online
Last seen:49 sec ago
Staff
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

谢谢for accepting my answer. If you have any other question, please feel free to create a new forum thread.

谢谢, PM_Dialog