DSP不使用一些平板电脑

⚠️
Hi there.. thanks for coming to the forums. Exciting news! 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 at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
16个帖子/ 0新
Last post
razp
Offline
Last seen:1年5个月前
加入:2017-02-08 09:20
DSP不使用一些平板电脑

Hi Dialog,

我正在开发一种设备和应用程序,并使用DSP进行通信。

一切都在工作相对良好,但我们的设备不连接到一些Android平板电脑,我们没有多个平板电脑检查,但“联想标签4 10”(TB X704L)无法连接到我们的设备。大多数平板电脑和手机都很好。

Trying to debug it I am using your DSPS app.
I see the connection established and disconnect immediately.
使用Android的蓝牙设置时,尝试将设备连接到错误弹出窗口:“由于PIN或密码不正确,无法与BLE配对” - 我的设备配置是“只是工作”,没有身份验证,没有密码,没有安全性所以这条消息是令人费解的....

我做了一些研究:向设备添加身份验证没有改变行为,也没有其他配置更改我尝试过任何更改。

At one instance, there was successful connection with the tablet, and the DSPS app was momentary working fine. I couldn't reproduce it.

my question:
你有没有遇到这样的问题?
它似乎是设备和平板电脑之间的初始“握手”失败了一些洁具。我应该在哪里看任何建议?

谢谢,
Raz

设备:
TR_Dialog
Offline
Last seen:2个月3周前
工作人员
加入:2014-06-30 23:52
嗨razp:

Hirazp:

Can you clear any existing entry for your peripheral on the tablet, and try again.

Otherwise, we will need a Bluetooth sniffer log.

谢谢,

TR_DIALOG

razp
Offline
Last seen:1年5个月前
加入:2017-02-08 09:20
Hi TR.

Hi TR.

请详细说明。
1.什么是“清除平板电脑上的任何现有条目”
2. how do I get Bluetooth sniffer log?

Raz

TR_Dialog
Offline
Last seen:2个月3周前
工作人员
加入:2014-06-30 23:52
嗨razp:

嗨razp:

1.什么是“清除平板电脑上的任何现有条目”
[tr_dialog]这应该是平板电脑的蓝牙设置下的某个位置。我没有和我有一个Android设备,因此没有关于特定的Android设置的信息。

2. how do I get Bluetooth sniffer log?
(TR_DIALOG)强g a commercial Bluetooth sniffer such as one from Frontline or other vendors.

谢谢,
TR_DIALOG

razp
Offline
Last seen:1年5个月前
加入:2017-02-08 09:20
Hi TR,

Hi TR,

Thank you fro your help.
There is no such setting in this tablet or any other Android tablet / phone, but i did a "Network Setting Reset". This did not change the connection behavior.
Unfortunately we do not have a "commercial Bluetooth sniffer".
我可以从对话框SDK中记录通信吗?

亲切的问候,
Raz

MHv_Dialog
Offline
Last seen:2个月2天前
工作人员
加入:2013-12-06 15:10
如果有机会

如果您的平板电脑与设备与设备与设备配对有机会,请转到设置/连接/蓝牙并清除配对(齿轮图标应显示在每个配对设备的右侧。通过单击清除配对/绑定“unipair”)

/ mhv.

razp
Offline
Last seen:1年5个月前
加入:2017-02-08 09:20
它永远不会成功

它从未成功连接到设备。

I am trying to debug the issue in the device end. Looking at the event sequence this is what I see.

好的

t:14 m: 1 GAPC_CONNECTION_REQ_IND
设备连接
T:13 M:0 GAPM_CMP_EVT
t:54 m: 3 SPS_SERVER_CREATE_DB_CFM
t:54 m: 3 SPS_SERVER_CREATE_DB_CFM
简介已启用
t:14 m: 0 GAPC_CMP_EVT
t:12 m: 0 GATTC_CMP_EVT
t:12 m: 0 GATTC_CMP_EVT
T:14 M:17 Gapc_param_updated_ind
T:14 M:17 Gapc_param_updated_ind
T:14米:23 Gapc_encrypt_req_ind
T:14米:23 Gapc_encrypt_req_ind

Not good

t:14 m: 1 GAPC_CONNECTION_REQ_IND
设备连接
T:13 M:0 GAPM_CMP_EVT
t:54 m: 3 SPS_SERVER_CREATE_DB_CFM
t:54 m: 3 SPS_SERVER_CREATE_DB_CFM
简介已启用
T:14 M:3 Gapc_disconnect_ind
设备断开连接
t:14 m: 0 GAPC_CMP_EVT

about the logs
t:task_num m:message num
The messages names are my interpretation based on the code.

These logs do not make sense to me yet, maybe it will to you.

如果这是一个设备问题,平板电脑问题,或者也许,可以说,我尚未相信,对BLE协议的不同解释。

hope you can help
Raz

MHv_Dialog
Offline
Last seen:2个月2天前
工作人员
加入:2013-12-06 15:10
平板电脑显然决定了

平板电脑显然决定了to disconnect for some reason. DSPS will try to negotitate more optional connection parameters, and it is possible that the tablet chokes on this. I suggest that we take a step back and have you build and load empty_peripheral_template onto your target. This project is 100% hardware agnostic and can run on any hardware featuring the DA14580. Please use a generic Bluetooth app (BlueLoupe or BLE Scanner) and verify that the tablet connects and stays connected with target.

Also, please provide the Andriod version on the tablet.

/ mhv.

razp
Offline
Last seen:1年5个月前
加入:2017-02-08 09:20
Hi MHv,

Hi MHv,

good call, the tablet connects and stays connected with target.

Android version on the tablet is 7.1.1

我的下一步应该是什么?
我正在尝试确定在设备上查看通信Rx / Tx的问题。在代码中为RX和TX通信放置Loggers的良好位置将在哪里?

亲切的问候,
Raz

MHv_Dialog
Offline
Last seen:2个月2天前
工作人员
加入:2013-12-06 15:10
Let's start by removing the

Let's start by removing the MTU exchange that takes place when the connection is initiated. Try to out-comment the function call to user_gattc_exc_mtu_cmd() in the user_on_connection() callback function of DSPS. If this "fixes" the problem, we would have a good indication of where to look next.

/ mhv.

razp
Offline
Last seen:1年5个月前
加入:2017-02-08 09:20
谢谢mhv.

谢谢mhv.

我如此建议,结果不确定:制定了成功的联系,但不是每次。
to get a successful connection I need to do multiple tries (click on the item in the list) most of the times I get "Connection failed" error and once in a while I have a success. moreover, it seems I need to reset the device between successes.

In the android's Bluetooth setting, I no longer get the error popup: "Couldn't pair with BLE because of an incorrect PIN or passkey"

亲切的问候,
Raz

MHv_Dialog
Offline
Last seen:2个月2天前
工作人员
加入:2013-12-06 15:10
这仍然是良好的数据。下一个

这仍然是良好的数据。下一个, try to also outcomment the call to app_easy_gap_param_update_start() - same function. This should allow the tablet to completely dictate the connection parameters without any negotiation. This will also limit the throghput dramatically, but it will show us where to tweak the connection parameters.

/ mhv.

razp
Offline
Last seen:1年5个月前
加入:2017-02-08 09:20
有了这个改变,没有

通过此更改,将设备连接到平板电脑和传输数据没有问题。

Raz

MHv_Dialog
Offline
Last seen:2个月2天前
工作人员
加入:2013-12-06 15:10
我们肯定会得到

我们肯定会得到somewhere here...

我建议我们(嗯; o)执行以下操作:

  • Try to allow the MTU exchange again to see if the connection parameter negotiation is the culprit.
  • 在上述测试之后。开始在从设备发送的更新请求中调整连接参数。连接间隔是一个潜在问题。有些,也许大多数,Android设备似乎接受了7.5ms的间隔。默认连接(其中外围设备未请求更新),通常在30ms以30ms建立,并且您可以尝试在更新请求中慢慢减少此操作
  • 您也可以尝试使用app_easy_timer延迟更新请求的第二个或两个。在连接启动期间,有很多发生了很多,当接收到更新请求时,平板电脑可能会与所有这些活动斗争。延迟请求,可以解决问题。在实现延迟后尝试原始参数。

/ mhv.

razp
Offline
Last seen:1年5个月前
加入:2017-02-08 09:20
Hi MHv,

Hi MHv,

谢谢你的病人。

The 3rd point is working. I delayed the call to user_gattc_exc_mtu_cmd() and app_easy_gap_param_update_start() by 10ms and it seems everything is working fine with the tablet.

You suggested 1-2 seconds delay. is 10ms too short?
任何想法如何如何发生与原始实施方式正常工作的大多数Android / IOS设备?

亲切的问候,
Raz

MHv_Dialog
Offline
Last seen:2个月2天前
工作人员
加入:2013-12-06 15:10
That is great news. I don't

That is great news. I don't think the duration of the delay is all that important. The tablet appears to not be able to handle the previous timing of activities and any separation of events would help.

Android和iOS都以神秘的方式工作; o),但保存您的代码更改使DSP更加安全,并且将与原始代码的更多设备一起使用。我将向我们的应用团队建议他们将您的修复视为他亚博国际官网平台网址们应该滚动到任何未来的DSP更新。

/ mhv.