关于BLE_APP_PROFILE示例的问题

⚠️
嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程https://www.dialog-seminile.com/support.。我们将在未来几天修复错误/优化搜索和标记。
12个帖子/ 0新
最后一篇
tsgowtham
离线
最后一次露面:4个月1周前
加入:2020-05-04 12:39
关于BLE_APP_PROFILE示例的问题

你好,

I'm new to Dialog products and my end goal is to use the DA14580 as a external/connectivity chip with my own custom service and characteristics.

  • I was able to modify the ble_app_profile example and add a characteristic to it which responds on a write to the control point characteristic. I would instead like to send the data immediately once the central device i.e. my phone, connects to it and subscribes to notifications. I believe there is a message sent to user_catch_rest_hndl when the phone subsribes to notifications. Previous forum posts have pointed to a RW-BLE-GATT-IS document which contains the BLE messages but I'm unable to find it. Can you please share this document and confirm the existence of a message which is sent when the connected device subscribes to notifications.
  • 我的下一个目的是在SPI使用DA14580作为外部芯片。我看了看Prox_reporter_ext_spi示例,并注意到将消息发送到外部芯片以添加服务。那么这是否意味着在DA14580上运行的固件作为外部芯片时是通用的,并且主服务器需要提供它应该注册的塞子?此外,您能否提供一些步骤/资源,即如何继续制作这个?BLE_APP_PROFILE应该用作基本代码或PROX_REPORTER_EXT_SPI吗?

Thanks

Keywords:
Device:
PM_DIALOG.
离线
最后一次露面:1 day 1 hour ago
职员
加入:2018-02-08 11:03
嗨Tsgowtham,

嗨Tsgowtham,

Thanks for your question. Let me check it and I’ll get back to you.

谢谢,PM_DIALOG.

tsgowtham
离线
最后一次露面:4个月1周前
加入:2020-05-04 12:39
Hi PM_Dialog,

Hi PM_Dialog,

谢谢你的回应。直到你能够回复我的问题的答案,你能否分享RW-BLE-GATE和RW-BLE-HOST - 是或提供给我可以从哪里下载这些文档的链接?还有其他文档也需要读取使用DA14580作为外部芯片吗?

Thanks

PM_DIALOG.
离线
最后一次露面:1 day 1 hour ago
职员
加入:2018-02-08 11:03
嗨Tsgowtham,

嗨Tsgowtham,

The RW-BLE-*** documents are not available on our support website anymore, because typically people do not need those documents for developing their application. You should use the provided easy-to-use APIs in order to start developing your project. In case of notifications, please take a look at the ble_app_peripheral example of the SDK. This example uses the app_easy_timer in order to send notification to peer Central device every APP_PERIPHERAL_CTRL_TIMER_DELAY. Upon timer expiration, the app_adcval1_timer_cb_handler() callback is triggered.

如果我理解正确,您的要求是使用DA14580作为SPI主人。如上所述,请检查引导程序AN-B-001:从串行接口启动DA14580 / 581/583。Additionally, you should look at the prox_reporter_ext_spi project in order to check how to setup the HW as an SPI slave.

同时,它是否会与您的申请的高级描述分享?

如果你开始一个新的设计,我们将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.

Please check out DA14531:

//www.wsdof.com/products/connectivity/bluetooth-low-energy/products/da14531

此外,DA14531 SmartBond Tiny™模块现已发布!按照下面的链接查找模块的数据表,文档和HW抵消:

//www.wsdof.com/products/bluetooth-module-da14531-smartbond-tiny

Moreover, Dialog Serial Port Service (DSPS) and CodeLess are now available for the DA14531!

谢谢,PM_DIALOG.

tsgowtham
离线
最后一次露面:4个月1周前
加入:2020-05-04 12:39
你好,

你好,

由于RW-BLE文件不再可用,因此我可以在哪里找到user_catch_rest_hndl函数中使用的消息ID列表?

一旦将值写入控制点特性,BLE_APP_PERITELAL项目开始发送。我想改变它,使其开始发送一旦移动应用程序启用特定特征的通知。

我想澄清的一件事是我的要求是将DA14580用作SPI奴隶,而不是掌握。我正在使用另一个微控制器作为主人。

而且我无法理解谁启动了主人和奴隶之间的通信?什么邮件作为第一条消息发送?

此外,如果我想使用cust1配置文件,我是否需要修改prox_reporter_ext_spi的目标应用程序,或者是从spi master加载的服务和配置文件吗?

关于您关于我的申请的问题,我无法透露任何细节,因为客户在受监管的行业中。我正在进行现有的设计,所以我不幸的是无法转移到DA14531。

Thanks

PM_DIALOG.
离线
最后一次露面:1 day 1 hour ago
职员
加入:2018-02-08 11:03
嗨Tsgowtham,

嗨Tsgowtham,

The messages for the custom 1 service can be found in custs1_task.h file. When the control point characteristic is written, the user_svc1_ctrl_wr_ind_handler() will be triggered and if the value is 0x01 then the DA14580 will send the data over notification to the peer device. In app_adcval1_timer_cb_handler() you could how to send notification. So you can, you could use similar implementation as soon as the device is connected (for example). In case of prox_reporter_ext_spi, I assume that you can add the implementation from the ble_app_peripheral.

谢谢,PM_DIALOG.

tsgowtham
离线
最后一次露面:4个月1周前
加入:2020-05-04 12:39
Hi PM_Dialog,

Hi PM_Dialog,

感谢您的回复,我看看了Custs1_task.h文件,我想我现在了解了现在为客户端发送的消息发送给客户。

但我仍然无法找到我上一篇文章中提到的问题的答案。

“而且我无法理解谁启动了主人和奴隶之间的通信?是什么消息作为第一条消息发送?”

Can you please help me with this question too?

Thanks

tsgowtham
离线
最后一次露面:4个月1周前
加入:2020-05-04 12:39
Hi PM_Dialog,

Hi PM_Dialog,

你能帮我帮助我弄清楚谁开始沟通?我的问题是我的最后一篇文章。

此外,是否有关Cust1_Task.h中的所有消息结构的API参考文档?我无法弄清楚如何使用custs1_create_db_req,我在软件平台参考OC中搜索,但找不到任何东西。我试图看看它在BLE_APP_PROFILE榜样中如何实现,但我无法找到它是如何传递给CUSTS1_CREATE_DB_REQ_HANDLLER。

Thanks

PM_DIALOG.
离线
最后一次露面:1 day 1 hour ago
职员
加入:2018-02-08 11:03
嗨Tsgowtham,

嗨Tsgowtham,

My apologies - propably i missed your last question. Let me check it and I'll reply you soon.

谢谢,PM_DIALOG.

PM_DIALOG.
离线
最后一次露面:1 day 1 hour ago
职员
加入:2018-02-08 11:03
嗨Tsgowtham,

嗨Tsgowtham,

请参阅第6.1节DA1458x连接到SPI MasterAN-B-001:从串行接口启动DA14580 / 581/583application note. According to this document, the communication starts with the external SPI master device sending the Preamble bytes (0x70 and 0x50) followed by a zero byte. The Custom 1 profile is already implemented by the SDK. Probably the following documents might help you:

//www.wsdof.com/sites/default/files/training_02_custom_profile_example_v1.2_0_0.pdf

https://www.dialog-seminile.com/sites/default/files/an-b-029_developing_a_bluetooth_smart_custom_profile_v1.0.pdf.

谢谢,PM_DIALOG.

tsgowtham
离线
最后一次露面:4个月1周前
加入:2020-05-04 12:39
Thanks PM_Dialog, these

谢谢pm_dialog,这些文件有助于一点。

PM_DIALOG.
离线
最后一次露面:1 day 1 hour ago
职员
加入:2018-02-08 11:03
嗨Tsgowtham,

嗨Tsgowtham,

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

谢谢,PM_DIALOG.