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?
另外,如果我想测试这个应用程序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?
提前致谢。
Regards,
普拉斯坦娜
设备:

Hi Prasanna,
你能说明你想读/写的哪个特征?是否有可能分享嗅探器日志,以便我能够理解空中发生的事情?
>>如何修改BLE_PERITELAL和BLE_CONTRAL示例中的特征的属性,以通过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
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?
提前致谢。
Regards,
普拉斯坦娜
Hi Prasanna,
Please use the Android app BLE Scanner instead (it is the one used in the readme file). It works well using this app.
/ mhv.
Hi MHv_Dialog,
我在哪里可以在SDK中找到UART示例。此外,当我测试BLE_Central和自定义服务示例时,中央设备就会发现在自定义服务示例中创建的服务。我无法弄清楚为什么会发生这种情况吗?你能测试一次吗?让我知道您是否能够发现服务。
提前致谢。
Regards,
普拉斯坦娜
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?
你好mhv_dialog,
我正在测试da1469x_custom_service_example和ble_cental example。中央无法发现custom_service_example中定义的服务。仅在使用BLE_PERITIVELAL示例测试时发现服务。即使是custom_service也有ble_peripheral任务,它声明了一些服务,我没有得到为什么BLE_Central无法使用Custom_Service示例发现服务。
Regards,
普拉斯坦娜
Hi Prasanna,
Sorry for jumping in and happy new year. We have escalated this internally and we are working on this. We’ll get back to you.
Thanks, PM_Dialog
Hello PM_dialog,
我弄清楚为什么我无法发现服务。由于,设备无法发现外设,我在ble_conig.h中更改了地址。但是,每次外围通知某些随机地址,我如何通过用智能手机应用程序避免手动给出地址。
也祝你新年快乐 :)
提前致谢。
Hi Prasanna,
Could you let us know how you figured this out?
Please also clarify your follow-up question.
Thanks, PM_Dialog
你好pm_dialog,
我在ble_config.h中手动更改了BLE_CONFIG示例的BLE_CONFIG.H中,以发现BLE-WILICALE,CONNECT和DICOVER其属性。
关于我的问题,
为了在BLE-Central演示中手动更改上述地址,我必须检查随机地址,只要中央无法检测到外围设备就会通过智能手机应用程序生成外围设备。所以,而不是这是有什么方法可以使用随机地址检测到外围设备?
Thanks, Prasanna
Hi Prasanna,
要更改BD地址,建议在custom_config_qspi.h文件中添加以下宏定义,而不是修改SDK文件。例如 :
#define defaultBLE_STATIC_ADDRESS { 0x11, 0x22, 0x33, 0xCA, 0xEA, 0x80 }
外围设备,是手机吗?通常,移动电话正在使用随机的BD地址,因此它们每次都在变化。没有方法可以检测到外围设备的新生成的随机地址。您可以使用静态BD地址将另一个DA1469X配置为间隙外设。
Thanks, PM_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?
我正在使用两个对话框粘贴作为ble_peripheral和ble_central。我已经看过两倍的外围地址已经改变了我通过检查BLE扫描仪应用程序来辨认出来的。一个是地址C5:80:C1:42:3E:8F和第二次发现它已变为06:06:06:01:01:01。这就是为什么我很困惑这会发生这种情况?
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
Hi Prasanna,
The Custom BLE Services Example SW example is now updated. Please check it out :DA1469x Custom bluetooth service.
Thanks, PM_Dialog
你好pm_dialog,
那么,你说这个具体榜样的更新版本尚未准备好吗?
Regards,
普拉斯坦娜
Hi Prasanna,
Apologies - it was a typo. I meant "is now updated". I've just corrected it.
Thanks, PM_Dialog
嗨pm_dialog,
Thanks for the response. Can you provide me the download link for the source code?
Regards,
普拉斯坦娜
Hi Prasanna,
请查看此链接:DA1469x Custom bluetooth service
In Section 1. Example description, you will find a download link.
Thanks, PM_Dialog
你好pm_dialog,
Thanks for the response.
Regards,
普拉斯坦娜