DA1469x\u Custom\u ble\u service\u sample\u code中GATT连接超时

Learn More常见问题教程

14 posts / 0 new
最后一篇文章
普拉桑纳
离线
最后一次见到:1 day 20 hours ago
已加入:2020-09-29 11:56
DA1469x\u Custom\u ble\u service\u sample\u code中GATT连接超时

你好Dialog,

我可以运行自定义\u ble\u服务示例。但是,当我试图通过nrf connect应用程序读取或写入数据时,我在几毫秒的时间内收到GATT连接超时错误,这使我再次重置USB板以进行连接。你能告诉我在哪里可以调整时间吗?

另外,如果我想用两块usbda14695板测试这个应用程序,我如何修改ble\u外围设备和ble\u中心示例中的特性属性,以便通过UART在它们之间读写?

提前谢谢。

Regards,

Prasanna

Device:
PM\U对话框
离线
最后一次见到:1 day 1 hour ago
工作人员
已加入: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读取数据并通过BLE发送到对等设备?

谢谢,下午好

普拉桑纳
离线
最后一次见到:1 day 20 hours ago
已加入:2020-09-29 11:56
你好Dialog,

你好Dialog,

请查看下面所附的日志文件。

我正在测试示例“DA1469x\u custom\u ble\u service\u sample\u 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外设与请求的中央设备建立连接时,是否存在任何特定的中断,以便在发生超时时丢失连接?

三。发现的服务和特征在中央设备中显示为“未知”。在代码的哪些部分我可以更改服务和特性的名称?

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.

5现在,通过这个例子,我可以从智能手机向外围设备读写数据。但是,我想在两块da1469xusb板之间读写数据。为了实现这一点,我需要一些建议从sdk中我可以用来修改权限的两个最好的示例演示是什么?

提前谢谢。

Regards,

Prasanna

附件:
MHv\U对话框
离线
最后一次见到:4天17小时前
工作人员
已加入:2013-12-06 15:10
你好,普拉桑纳,

你好,普拉桑纳,

请改用Android app BLE Scanner(这是自述文件中使用的)。使用这个应用程序效果很好。

  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://bluetooth internals/#设备in the address field of a Chrome or new Edge Browser)
  2. 外围设备不会启动连接。这是中央设备的任务。当连接断开时,外围设备通常会启动广告,但这是一种设计选择。Central可以尝试重新连接,但这也是一种设计选择。如果连接被断开,所讨论的示例代码将开始播发
  3. 应用程序不知道这些服务和特征,因为它们是自定义服务和特征。通用应用程序如何知道它们?您可以定义一个用户描述符,一个文本字符串,使人们更容易发现数据库。应用程序通常实现为识别定制的128位UUID雷竞技安卓下载
  4. 这里可能有个问题。我会深入调查的,让你知道
  5. 您将需要中心示例、这个定制服务示例以及可能的UART示例。

/MHv

普拉桑纳
离线
最后一次见到:1 day 20 hours ago
已加入: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.

提前谢谢。

Regards,

Prasanna

MHv\U对话框
离线
最后一次见到:4天17小时前
工作人员
已加入:2013-12-06 15:10
The UART example can be found

UART示例可以在支持站点上找到:da1469xuart适配器示例

我在以前的回复中测试了所有的中央应用程序,没有一个有任何雷竞技安卓下载问题-你试过这些吗?

普拉桑纳
离线
最后一次见到:1 day 20 hours ago
已加入: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\U对话框
离线
最后一次见到:1 day 1 hour ago
工作人员
已加入:2018-02-08 11:03
你好,普拉桑纳,

你好,普拉桑纳,

抱歉插嘴,新年快乐。我们已经在内部升级了,我们正在努力。我们会回复你的。

谢谢,下午好

普拉桑纳
离线
最后一次见到:1 day 20 hours ago
已加入:2020-09-29 11:56
你好,PM\U对话,

你好,PM\U对话,

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 :)

提前谢谢。

PM\U对话框
离线
最后一次见到:1 day 1 hour ago
工作人员
已加入:2018-02-08 11:03
你好,普拉桑纳,

你好,普拉桑纳,

你能告诉我们你是怎么想出来的吗?

请澄清你的后续问题。

谢谢,下午好

普拉桑纳
离线
最后一次见到:1 day 20 hours ago
已加入:2020-09-29 11:56
Hello PM_Dialog,

Hello PM_Dialog,

我已经手动更改了ble\u central示例的ble\u config.h中的地址“defaultBLE\u STATIC\u address”,以发现ble外设、连接并切换其属性。

Regardimg我的问题,

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\U对话框
离线
最后一次见到:1 day 1 hour ago
工作人员
已加入: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 :

#定义defaultBLE\u静态地址{0x11、0x22、0x33、0xCA、0xEA、0x80}

外设,是手机吗?通常手机使用的是随机的BD地址,所以每次都在变化。没有办法检测新生成的外设随机地址。您可以使用静态BD地址将另一个DA1469x配置为GAP外围设备。

谢谢,下午好

普拉桑纳
离线
最后一次见到:1 day 20 hours ago
已加入:2020-09-29 11:56
你好Dialog,

你好Dialog,

我有点困惑。你能告诉我ble\u central/ble config.h文件中定义的地址“#define defaultBLE\u STATIC\u 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\U对话框
离线
最后一次见到:1 day 1 hour ago
工作人员
已加入:2018-02-08 11:03
普拉桑纳,

普拉桑纳,

我们正在编写这个教程,希望在本周末发布一个更新版本。我会让你知道一旦新版本可供下载。

谢谢,下午好