GATT connection timeout in DA1469x_Custom_ble_service_sample_code

⚠️
Hi there.. thanks for coming to the forums.激动人心的消息!we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website.All posts and accounts have been migrated.We’re now accepting traffic on the new forum only - please POST any new threads athttps://www.dialog-spoomendonductor.com/support。我们将在未来几天修复错误 /优化搜索和标记。
20帖子 / 0新
最后一篇文章
prasanna
离线
最后一次露面:5个月3周前
加入:2020-09-29 11:56
GATT connection timeout in DA1469x_Custom_ble_service_sample_code

Hello Dialog,

I am able to run the Custom_ble_service example. But, when I am trying to read or write data through the nrf connect app, I am getting the GATT connection time out error with in some milliseconds of time which makes me to reset the USB board again to make the connection. Could you suugest me where can I adjust the time?

Also, If I wanted to test this application with two USB DA14695 boards, 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?

提前致谢。

问候,

Prasanna

设备:
PM_Dialog
离线
最后一次露面:5 days 1 hour ago
职员
加入:2018-02-08 11:03
嗨,Prasanna,

嗨,Prasanna,

Can you please indicate which characteristic are you trying to read/write? Would it be possible to share a sniffer log so that I can understand what is happening over the air?

>>如何在ble_peripheral和ble_central示例中修改特性的属性,以通过UART读写和写入?

Can you please clarify this statement? So, do you need to read data from the UART and send them over BLE to a peer device?

Thanks, PM_Dialog

prasanna
离线
最后一次露面:5个月3周前
加入:2020-09-29 11:56
Hello Dialog,

Hello Dialog,

Please find the log file attached below.

I am testing the sample example "DA1469x_custom_ble_service_sample_code" example.

1.您可以看到形式的日志文件有几次连续的连接错误,并且仅在重置USB时几乎无法连接。我在日志文件中突出显示了错误以及何时可以发送数据。几乎在您可以看到的文件末尾,我可以将“ Hello”消息发送到UART印刷的外围。但是,然后立即看到连接丢失。您能建议我如何以及在代码的哪些部分可以调整延迟?

2. Is there any specific intervel where the peripheral makes a connection with the requested central device so that the connection is lost when the time out happens?

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

4.在此特定示例中创建了两个未知服务。第二个服务具有三个仅可读的特征。但是,在代码中,在第二个特征和第三个特征中禁用了读数的参数。即使我们可以从屏幕截图中看到,我也分享了我们可以阅读数据。这怎么可能?您可以在上述示例程序的“ ble_peripheral_task.c”文件中的第二个未知服务的第二和第三个特征函数调用中查看char_read_prop_dis。

5. Now, with this example, I can read, write data to the peripheral from the smart phone. But, I wanted to read and write data between two DA1469x USB boards. To achieve this, I need some suggestions what are the two best example demos from the sdk I can use to modify the permissions?

提前致谢。

问候,

Prasanna

附件:
MHv_Dialog
离线
最后一次露面:3 weeks 20 hours ago
职员
加入:2013-12-06 15:10
嗨,Prasanna,

嗨,Prasanna,

Please use the Android app BLE Scanner instead (it is the one used in the readme file). It works well using this app.

  1. 可能是您的手机,可能是NRF应用程序。我正在使用BLE扫描仪和灯光以及我的PC上的Chrome浏览器进行测试(键入)chrome://bluetooth-internals/#devices在镀铬或新边缘浏览器的地址字段中)
  2. Peripheral devices do not initiate connections. This is the task of a central device. A peripheral will often start advertising when the connection is dropped, but that is a design choice. Centrals can try to reconnect, but again that is a design choice. The sample code in question will start advertising if a connection is dropped
  3. The services and characteristics are unknown to the app because they are custom services and characteristics. How would the generic app know about them? you can define a user descriptor, a text string, to make it easier for a human to discover the database. 亚博国际官网平台网址Applications will typically be implemented to recognize the custom 128bit UUID
  4. There is likely an issue here. I'll dig further into that and let you know
  5. You will need the central example, this custom service example and likely the UART example.

/MHV

prasanna
离线
最后一次露面:5个月3周前
加入:2020-09-29 11:56
嗨,mhv_dialog,

嗨,mhv_dialog,

我在哪里可以在SDK中找到UART示例。同样,当我测试ble_central和自定义服务示例时,中央设备可以弄清在自定义服务示例中创建的服务。我无法弄清楚为什么会发生这种情况?您可以测试一次,让我知道您是否能够发现服务。

提前致谢。

问候,

Prasanna

MHv_Dialog
离线
最后一次露面:3 weeks 20 hours ago
职员
加入:2013-12-06 15:10
可以找到UART示例

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

I tested all of the central 亚博国际官网平台网址applications in my previous response, and none of them have any issues - did you try any of those?

prasanna
离线
最后一次露面:5个月3周前
加入:2020-09-29 11:56
你好mhv_dialog,

你好mhv_dialog,

我正在测试da1469x_custom_service_example和ble_central示例。中央无法发现custom_service_example中定义的服务。仅在用BLE_Peripheral示例进行测试时才能发现这些服务。即使是custom_service也具有ble_peripheral任务,在该任务中声明了一些服务,我也没有得到为什么ble_central无法通过custom_service示例发现服务。

问候,

Prasanna

PM_Dialog
离线
最后一次露面:5 days 1 hour ago
职员
加入:2018-02-08 11:03
嗨,Prasanna,

嗨,Prasanna,

Sorry for jumping in and happy new year.We have escalated this internally and we are working on this.我们会尽快给您回复。

Thanks, PM_Dialog

prasanna
离线
最后一次露面:5个月3周前
加入:2020-09-29 11:56
Hello PM_dialog,

Hello PM_dialog,

我弄清楚了为什么我找不到服务。由于该设备无法发现外围设备,因此我更改了ble_conig.h中的地址。但是,每当外围设备宣传一些随机地址时,我如何通过使用智能手机应用程序来避免手动提供地址。

也祝你新年快乐 :)

提前致谢。

PM_Dialog
离线
最后一次露面:5 days 1 hour ago
职员
加入:2018-02-08 11:03
嗨,Prasanna,

嗨,Prasanna,

Could you let us know how you figured this out?

Please also clarify your follow-up question.

Thanks, PM_Dialog

prasanna
离线
最后一次露面:5个月3周前
加入:2020-09-29 11:56
你好pm_dialog,

你好pm_dialog,

我已经在ble_central示例的ble_config.h中手动更改了地址“ defaultble_static_address”,以发现ble-外围,连接并删除其属性。

关于我的问题,

为了在BLE中心演示中手动更改上述地址,我必须检查外围设备的随机地址,每当Central无法检测到外围设备时,外围都会通过智能手机应用程序生成。因此,中央可以通过随机地址检测到外围的任何方法吗?

谢谢,普拉萨娜

PM_Dialog
离线
最后一次露面:5 days 1 hour ago
职员
加入:2018-02-08 11:03
嗨,Prasanna,

嗨,Prasanna,

要更改BD地址,建议在custom_config_qspi.h文件中添加以下宏定义,而不是修改SDK文件。例如 :

#define defaultBLE_STATIC_ADDRESS { 0x11, 0x22, 0x33, 0xCA, 0xEA, 0x80 }

外围,是手机吗?通常,手机使用随机的BD地址,因此它们每次都在更改。没有办法检测周围新生成的随机地址。您可以使用静态BD地址将另一个DA1469X配置为间隙外围。

Thanks, PM_Dialog

prasanna
离线
最后一次露面:5个月3周前
加入:2020-09-29 11:56
Hello Dialog,

Hello Dialog,

I am bit confused. Could you clarify me what is the value of the address "#define defaultBLE_STATIC_ADDRESS" defined in the ble_central/ble-config.h file. is it the central address or the peripherals address which it has to connect to?

我使用两个对话框USB棒作为ble_peripheral和ble_central。我已经看到了两倍的外围地址发生了变化,我通过使用BLE扫描仪应用程序检查了这一点。一个是地址C5:80:C1:42:3E:8F,第二次我发现它已更改为06:06:06:01:01:01:01。这就是为什么我感到困惑的是如何发生?

PM_Dialog
离线
最后一次露面:5 days 1 hour ago
职员
加入:2018-02-08 11:03
H Prasanna,

H Prasanna,

We are working on this tutorial and will release an updated version hopefully by the end of this week. I’ll let you know once the new version is available for download.

Thanks, PM_Dialog

PM_Dialog
离线
最后一次露面:5 days 1 hour ago
职员
加入:2018-02-08 11:03
嗨,Prasanna,

嗨,Prasanna,

The Custom BLE Services Example SW example is now updated.请检查一下 :DA1469x Custom bluetooth service

Thanks, PM_Dialog

prasanna
离线
最后一次露面:5个月3周前
加入:2020-09-29 11:56
你好pm_dialog,

你好pm_dialog,

因此,您是说此特定示例的更新版本尚未准备好?

问候,

Prasanna

PM_Dialog
离线
最后一次露面:5 days 1 hour ago
职员
加入:2018-02-08 11:03
嗨,Prasanna,

嗨,Prasanna,

Apologies - it was a typo. I meant "is now updated". I've just corrected it.

Thanks, PM_Dialog

prasanna
离线
最后一次露面:5个月3周前
加入:2020-09-29 11:56
嗨,pm_dialog,

嗨,pm_dialog,

感谢您的回复。Can you provide me the download link for the source code?

问候,

Prasanna

PM_Dialog
离线
最后一次露面:5 days 1 hour ago
职员
加入:2018-02-08 11:03
嗨,Prasanna,

嗨,Prasanna,

请检查此链接:DA1469x Custom bluetooth service

In Section 1. Example description, you will find a download link.

Thanks, PM_Dialog

prasanna
离线
最后一次露面:5个月3周前
加入:2020-09-29 11:56
你好pm_dialog,

你好pm_dialog,

感谢您的回复。

问候,

Prasanna