Questions regarding ble_app_profile example

学到更多FAQsTutorials

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

Hi,

我是新的对话框产品,我的最终目标是使亚博电竞菠菜用我自己的自定义服务和特征使用DA14580作为外部/连接芯片。

  • 我能够修改BLE_APP_PROFILE示例并向其添加一个特征,该特性响应写入控制点特性。我将立即发送数据一旦中央设备即,我的手机连接,连接到它并订阅通知。我相信当电话子里通知时,有一条消息发送到user_catch_rest_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:7分钟58秒前
Staff
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

谢谢你的问题。让我检查一下,我会回复你。

谢谢, PM_Dialog

Tsgowtham.
Offline
Last seen:1 month 5 days ago
加入:2020-05-04 12:39
嗨pm_dialog,

嗨pm_dialog,

谢谢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:7分钟58秒前
Staff
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

RW-BLE - ***文档在我们的支持网站上不再可用,因为通常人们不需要这些文件来开发其申请。您应该使用提供的易于使用的API来开始开发项目。在通知的情况下,请查看SDK的BLE_APP_PERITELAL示例。此示例使用app_easy_timer,以便将通知发送到对等中心设备的通知每个app_peripheral_ctrl_timer_delay。在计时器到期时,触发App_AdcVal1_Timer_CB_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_reporter_ext_spi项目,以检查如何将HW设置为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:

https://www.dialog-seminile.com/produ亚博电竞菠菜cts/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:

https://www.dialog-seminile.com/produ亚博电竞菠菜cts/bluetooth-module-da14531-smartbond-tiny.

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

谢谢, PM_Dialog

Tsgowtham.
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:7分钟58秒前
Staff
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

可以在Custs1_task.h文件中找到自定义1服务的消息。当写入控制点特性时,将触发user_svc1_ctrl_wr_ind_handler(),如果该值为0x01,则DA14580将通过通知向对等设备发送数据。在app_adcval1_timer_cb_handler()中,您可以如何发送通知。所以你可以,只要设备连接(例如)即可使用类似的实现。在prox_reporter_ext_spi的情况下,我假设您可以从ble_app_peripheral添加实现。

谢谢, PM_Dialog

Tsgowtham.
Offline
Last seen:1 month 5 days ago
加入:2020-05-04 12:39
嗨pm_dialog,

嗨pm_dialog,

谢谢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?"

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

谢谢

Tsgowtham.
Offline
Last seen:1 month 5 days ago
加入:2020-05-04 12:39
嗨pm_dialog,

嗨pm_dialog,

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:7分钟58秒前
Staff
加入:2018-02-08 11:03
Hi tsgowtham,

Hi tsgowtham,

我的道歉 - 我可以错过你的最后一个问题。让我检查一下,我很快就会回复你。

谢谢, PM_Dialog

PM_Dialog
Online
Last seen:7分钟58秒前
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实现。可能以下文件可能会帮助您:

https://www.dialog-seminile.com/sites/default/files/training_02_custom_profile_example_v1.2_0_0.pdf.

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

谢谢, PM_Dialog

Tsgowtham.
Offline
Last seen:1 month 5 days ago
加入:2020-05-04 12:39
谢谢pm_dialog,这些

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

PM_Dialog
Online
Last seen:7分钟58秒前
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