在da1469x_custom_ble_service_sample_code中的gatt连接超时

⚠️
嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程https://www.dialog-seminile.com/support.。我们将在未来几天修复错误/优化搜索和标记。
20个新帖子/ 0
最后一篇
普拉斯坦娜
离线
最后一次露面:2个月1周前
加入:2020-09-29 11:56
在da1469x_custom_ble_service_sample_code中的gatt连接超时

你好对话框,

我能够运行custom_ble_service示例。但是,当我尝试通过NRF Connect应用程序读取或写数据时,在某些毫秒的时间内,我会获得GATT连接超时错误,这让我再次重置USB板以进行连接。你能唤醒我在哪里可以在哪里调整时间?

此外,如果我想用两个USB DA14695板测试这个应用程序,我如何修改BLE_PERITELAL和BLE_CONTRAL示例中的特征的属性,以通过UART读取和写入它们?

Thanks in advance.

Regards,

Prasanna

Device:
PM_DIALOG.
Online
最后一次露面:3分32秒前
职员
加入:2018-02-08 11:03
嗨普拉斯坦尼亚,

嗨普拉斯坦尼亚,

你能说明你想读/写的哪个特征?是否有可能分享嗅探器日志,以便我能够理解空中发生的事情?

>>How can I modify the properties of the characteristics in the ble_peripheral and the ble_central examples to read and write between them through UART?

你能澄清这句话吗?所以,您是否需要从UART读取数据并将其发送到对等设备?

谢谢,PM_DIALOG.

普拉斯坦娜
离线
最后一次露面:2个月1周前
加入:2020-09-29 11:56
你好对话框,

你好对话框,

请找到下面附带的日志文件。

我正在测试样本示例“da1469x_custom_ble_service_sample_code”示例。

1. You can see form the log file there is a continuous connection error several times and I could hardly connect only when I reset the USB. I have highlighted in the log file the errors and also when I could send the data. Almost at the end of the file you can see, I can send "hello" message to the peripheral which is printed in the UART. But, then immediately you can see the connection is lost. COuld you suggest me how can and in which parts of the code, I can adjust the delay?

2.是否有任何特定的间隙,其中外设与所请求的中央设备连接,以便在发生超时时连接丢失?

3. The services and the characteristics that are discovered are displayed as "Unknown" in the central device. In which parts of the code I can change the names of services and characteristics?

4. There are two unknown services created in this specific example. The second service has three characteristics which are only readable. But, in the code, the parameter for reading is disabled in the second and the third characteristics. Even though we can see from the screen shot I shared that we can read the data. How is it possible? You can see the CHAR_READ_PROP_DIS in the second and third characteristic function calls of the second unknown service in "ble_peripheral_task.c" file of the above mentioned example program.

现在,在此示例中,我可以从智能手机读取,将数据写入外围设备。但是,我想在两个DA1469x USB板之间读写数据。为实现这一目标,我需要一些建议,我可以用来修改权限的SDK中的两个最佳示例演示是什么?

Thanks in advance.

Regards,

Prasanna

mhv_dialog.
离线
最后一次露面:2 months 2 days ago
职员
加入:2013-12-06 15:10
嗨普拉斯坦尼亚,

嗨普拉斯坦尼亚,

请使用Android应用程序BLE扫描仪(它是README文件中使用的)。它使用此应用程序良好。

  1. Could be your phone, could be the nRF app. I am testing it without issues using BLE Scanner and Lightblue as well as the Chrome browser on my PC (typeChrome://蓝牙内部/#设备in the address field of a Chrome or new Edge Browser)
  2. 外围设备不会启动连接。这是中央设备的任务。当连接丢弃时,外围设备通常会开始广告,但这是一个设计选择。中心可以尝试重新连接,但再次是一个设计选择。如果删除连接,则讨论的示例代码将启动广告
  3. 该应用程序的服务和特性是未知的,因为它们是自定义服务和特征。通用应用程序如何了解它们?您可以定义用户描述符,文本字符串,使人类更容易发现数据库。雷竞技安卓下载通常会实现应用程序以识别自定义128bit uuid
  4. 这里可能有一个问题。我会进一步挖掘,让你知道
  5. 您需要中央示例,此自定义服务示例和可能是UART示例。

/MHv

普拉斯坦娜
离线
最后一次露面:2个月1周前
加入:2020-09-29 11:56
Hi MHv_Dialog,

Hi MHv_Dialog,

Where can I find the UART example in the SDK. Also when I am testing the ble_central and the custom service example, the central device is unablr to discover the services created in the custom service example. I am unable to figure it out why this happens? Can you test this once and let me know whether you are able to discover the services.

Thanks in advance.

Regards,

Prasanna

mhv_dialog.
离线
最后一次露面:2 months 2 days ago
职员
加入:2013-12-06 15:10
The UART example can be found

UART的例子可以发现在支持网站:da1469x.UART adapter example

我在我以前的响应中测试了所有中央应用程序,其中没有任何问雷竞技安卓下载题 - 您是否尝试过任何问题?

普拉斯坦娜
离线
最后一次露面:2个月1周前
加入:2020-09-29 11:56
Hello MHv_Dialog,

Hello MHv_Dialog,

I am testing the DA1469x_custom_service_example and the BLE_central example. The central is unable to discover the services defined in the custom_service_example. The services are being discovered only when tested with ble_peripheral example. Even the custom_service has ble_peripheral task where it declares some services, I am not getting why the ble_central cannot discover the services with the custom_service example.

Regards,

Prasanna

PM_DIALOG.
Online
最后一次露面:3分32秒前
职员
加入:2018-02-08 11:03
嗨普拉斯坦尼亚,

嗨普拉斯坦尼亚,

抱歉跳上进入新年快乐。我们在内部升级了这个,我们正在努力。我们将尽快给您回复。

谢谢,PM_DIALOG.

普拉斯坦娜
离线
最后一次露面:2个月1周前
加入:2020-09-29 11:56
你好pm_dialog,

你好pm_dialog,

I figured it out why I cannot discover the services. Since, the device unable to discover the peripheral and I changed the address in ble_conig.h. But, every time the peripheral advertises with some random address, how can I avoid giving the address manually by checking with the smart phone app.

Happy New Year to you too :)

Thanks in advance.

PM_DIALOG.
Online
最后一次露面:3分32秒前
职员
加入:2018-02-08 11:03
嗨普拉斯坦尼亚,

嗨普拉斯坦尼亚,

你能告诉我们你如何识别出来吗?

还请澄清您的后续问题。

谢谢,PM_DIALOG.

普拉斯坦娜
离线
最后一次露面:2个月1周前
加入:2020-09-29 11:56
Hello PM_Dialog,

Hello PM_Dialog,

I have changed manually the address "defaultBLE_STATIC_ADDRESS" in ble_config.h of the ble_central example to discover the BLE-peripheral, connect and dicover its attributes.

Regardimg my question,

For changing the above mentioned address manually in the BLE-central demo, I have to check for the random address the peripheral is generating through a smart phone application whenever the central cannot detect a peripheral. So, instead of this is there any way that a central can detect the peripheral with a random address?

Thanks, Prasanna

PM_DIALOG.
Online
最后一次露面:3分32秒前
职员
加入:2018-02-08 11:03
嗨普拉斯坦尼亚,

嗨普拉斯坦尼亚,

To change the BD Address, it is recommended to add the following macro definition in the custom_config_qspi.h file instead of modifying the SDK files. For example :

#define defoulble_static_address {0x11,0x22,0x33,0xca,0xea,0x80}

The peripheral, is a mobile phone? Usually the mobile phone are using random BD address, so they are changing every time. There is not way to detect the newly generated random address of the peripheral. You could configure another DA1469x as a GAP Peripheral using a static BD address.

谢谢,PM_DIALOG.

普拉斯坦娜
离线
最后一次露面:2个月1周前
加入:2020-09-29 11:56
你好对话框,

你好对话框,

我有点困惑。您是否可以澄清我在ble_central / ble-config.h文件中定义的地址“#define defaulble_static_address”的值是什么。它是中心地址还是它必须连接的外围地址?

I am using two dialog usb sticks as the ble_peripheral and the ble_central. I have seen twice the address of the peripheral has changed which I figured out by checking with the ble scanner app. One is the address c5:80:c1:42:3e:8f and the second time I found it has changed to 06:06:06:01:01:01. This is why I am confused how this happens?

PM_DIALOG.
Online
最后一次露面:3分32秒前
职员
加入:2018-02-08 11:03
普拉斯纳,

普拉斯纳,

我们正在研究本教程,并将在本周末发布更新的版本。一旦新版本可供下载,我会通知您。

谢谢,PM_DIALOG.

PM_DIALOG.
Online
最后一次露面:3分32秒前
职员
加入:2018-02-08 11:03
嗨普拉斯坦尼亚,

嗨普拉斯坦尼亚,

现在更新自定义BLE服务示例SW示例。请检查一下 :DA1469X自定义蓝牙服务

谢谢,PM_DIALOG.

普拉斯坦娜
离线
最后一次露面:2个月1周前
加入:2020-09-29 11:56
Hello PM_Dialog,

Hello PM_Dialog,

So, you are saying that the updated version of this specific example is not ready yet?

Regards,

Prasanna

PM_DIALOG.
Online
最后一次露面:3分32秒前
职员
加入:2018-02-08 11:03
嗨普拉斯坦尼亚,

嗨普拉斯坦尼亚,

道歉 - 这是一个错字。我的意思是“现在更新了”。我刚刚纠正了它。

谢谢,PM_DIALOG.

普拉斯坦娜
离线
最后一次露面:2个月1周前
加入:2020-09-29 11:56
Hi PM_Dialog,

Hi PM_Dialog,

谢谢你的回应。您可以为我提供源代码的下载链接吗?

Regards,

Prasanna

PM_DIALOG.
Online
最后一次露面:3分32秒前
职员
加入:2018-02-08 11:03
嗨普拉斯坦尼亚,

嗨普拉斯坦尼亚,

Please check this link :DA1469X自定义蓝牙服务

在第1.示例描述中,您将找到一个下载链接。

谢谢,PM_DIALOG.

普拉斯坦娜
离线
最后一次露面:2个月1周前
加入:2020-09-29 11:56
Hello PM_Dialog,

Hello PM_Dialog,

谢谢你的回应。

Regards,

Prasanna