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?
提前致谢。
问候,
普拉斯坦娜
设备:


Hi 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_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. 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.在此特定示例中创建了两个未知的服务。第二个服务有三种特征,只能读取。但是,在代码中,在第二个和第三个特征中禁用读取参数。即使我们可以从屏幕拍摄中看到,我分享了我们可以阅读数据。这怎么可能?您可以在上述示例程序的“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?
提前致谢。
问候,
普拉斯坦娜
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.
嗨mhv_dialog,
我在哪里可以在SDK中找到UART示例。此外,当我测试BLE_Central和自定义服务示例时,中央设备就会发现在自定义服务示例中创建的服务。我无法弄清楚为什么会发生这种情况吗?你能测试一次吗?让我知道您是否能够发现服务。
提前致谢。
问候,
普拉斯坦娜
可以找到UART示例on the support site: DA1469x UART adapter example
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示例发现服务。
问候,
普拉斯坦娜
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,
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.
关于我的问题,
为了在BLE-Central演示中手动更改上述地址,我必须检查随机地址,只要中央无法检测到外围设备就会通过智能手机应用程序生成外围设备。所以,而不是这是有什么方法可以使用随机地址检测到外围设备?
谢谢,普拉斯纳
Hi Prasanna,
要更改BD地址,建议在custom_config_qspi.h文件中添加以下宏定义,而不是修改SDK文件。例如 :
#define defaultBLE_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.
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