DSPS not working with some tablets

⚠️
你好。。谢谢你来参加论坛。令人兴奋的消息!我们现在正在移动到我们的新论坛平台,将提供更好的功能,并包含在主对话网站的过程。所有帖子和账号都已迁移。我们现在只接受新论坛上的流量-请在//www.xmece.com/support. 我们将在未来几天内修复bug/优化搜索和标记。
16 posts / 0 new
最后一篇文章
拉兹普
离线
最后一次见到:1 year 5 months ago
已加入:2017-02-08 09:20
DSPS not working with some tablets

嗨,对话,

I am developing a device and an app and using DSPS for communication.

All is working relatively well but our device do not connect to some Android Tablet, We do not have many tablets to check, but "Lenovo TAB 4 10" (TB X704L) fail to connect to our device. most tablets and phones are working well.

试着调试它,我正在使用你的DSP应用程序。
我看到连接建立并立即断开。
when using the android's Bluetooth setting, trying to connect the device result with the error popup: "Couldn't pair with BLE because of an incorrect PIN or passkey" - My device configuration is "just work" no authentication, no passkey, no security so this message is puzzling....

I did some research: adding authentication to the device did not change the behavior and no other configuration change i tried made any change.

有一次,与平板电脑成功连接,DSPS应用程序瞬间工作正常。我无法复制它。

我的问题是:
Have you ever encounter such issue?
it seems like the initial "handshake" between the device and the tablet fail some ware. any suggestion where should I look?

Thanks,
拉兹

Device:
tru对话框
离线
最后一次见到:2 months 2 days ago
工作人员
已加入:2014-06-30 23:52
您好!拉兹普:

您好!拉兹普:

是否可以清除平板电脑上外围设备的任何现有条目,然后重试。

否则,我们将需要一个蓝牙嗅探器日志。

Thanks,

tru对话框

拉兹普
离线
最后一次见到:1 year 5 months ago
已加入:2017-02-08 09:20
嗨,TR。

嗨,TR。

Please elaborate.
1. What is "clear any existing entry for your peripheral on the tablet"
2如何获取蓝牙嗅探器日志?

拉兹

tru对话框
离线
最后一次见到:2 months 2 days ago
工作人员
已加入:2014-06-30 23:52
您好!拉兹普:

您好!拉兹普:

1. What is "clear any existing entry for your peripheral on the tablet"
[TR_DIALOG] This should be somewhere under Bluetooth settings of your tablet. I don't have an Android device with me, so don't have information about specific Android settings.

2如何获取蓝牙嗅探器日志?
[tru DIALOG]使用商业蓝牙嗅探器,例如来自前线或其他供应商的嗅探器。

Thanks,
tru对话框

拉兹普
离线
最后一次见到:1 year 5 months ago
已加入:2017-02-08 09:20
嗨,TR,

嗨,TR,

谢谢你的帮助。
在这个平板电脑或任何其他Android平板电脑/手机中都没有这样的设置,但我做了一个“网络设置重置”。这并没有改变连接行为。
不幸的是,我们没有一个“商业蓝牙嗅探器”。
Can I log the communication from within the Dialog SDK?

Kind regards,
拉兹

MHv\U对话框
离线
最后一次见到:1 month 1 week ago
工作人员
已加入:2013-12-06 15:10
If there is a chance that

如果有机会,你的平板电脑是成对with the device from previous use, go to Settings/Connections/Bluetooth and clear the pairings (a gear icon should be displayed to the right of each paired device. Clear the pairing/bonding by clicking "Unpair")

/MHv

拉兹普
离线
最后一次见到:1 year 5 months ago
已加入:2017-02-08 09:20
It never successfully

It never successfully connected to the device.

我正在尝试调试设备端的问题。从事件序列来看,这就是我看到的。

Good

t:14 m:1 GAPC连接要求
设备已连接
t:13 m: 0 GAPM_CMP_EVT
t:54 m:3 SPS\U服务器\U创建\U数据库\U CFM
t:54 m:3 SPS\U服务器\U创建\U数据库\U CFM
Profile Enabled
t:14M:0GAPC\U CMP\U EVT
t:12米:0 GATTC\U CMP\U EVT
t:12米:0 GATTC\U CMP\U EVT
t:14 m:17 GAPC_PARAM_UPDATED_IND
t:14 m:17 GAPC_PARAM_UPDATED_IND
t:14 m:23 GAPC_ENCRYPT_REQ_IND
t:14 m:23 GAPC_ENCRYPT_REQ_IND

不好的

t:14 m:1 GAPC连接要求
设备已连接
t:13 m: 0 GAPM_CMP_EVT
t:54 m:3 SPS\U服务器\U创建\U数据库\U CFM
t:54 m:3 SPS\U服务器\U创建\U数据库\U CFM
Profile Enabled
t:14 m: 3 GAPC_DISCONNECT_IND
Device disconnected
t:14M:0GAPC\U CMP\U EVT

关于日志
t:任务号m:消息号
消息名称是我基于代码的解释。

这些日志对我来说还没有意义,也许对你会有意义。

I am not yet convinced if this is a device issue, a tablet issue or maybe, a different interpretation of the BLE protocol.

希望你能帮忙
拉兹

MHv\U对话框
离线
最后一次见到:1 month 1 week ago
工作人员
已加入:2013-12-06 15:10
The Tablet apparently decides

平板电脑显然出于某种原因决定断开连接。DSP将尝试协商更多可选的连接参数,平板电脑可能会因此而窒息。我建议我们后退一步,让您构建并将空的\u模板加载到目标上。这个项目是100%硬件不可知,可以运行在任何硬件具有DA14580。请使用通用蓝牙应用程序(BlueLoupe或BLE扫描仪),并验证平板电脑是否与目标连接并保持连接。

另外,请在平板电脑上提供Andriod版本。

/MHv

拉兹普
离线
最后一次见到:1 year 5 months ago
已加入:2017-02-08 09:20
嗨,MHv,

嗨,MHv,

很好的通话,平板电脑连接并与目标保持连接。

平板电脑上的Android版本是7.1.1

What should my next step be?
I am trying to pinpoint the issue looking at the communications RX/TX on the device. where would it be a good place in the code to place loggers for the RX and TX communications?

Kind regards,
拉兹

MHv\U对话框
离线
最后一次见到:1 month 1 week ago
工作人员
已加入:2013-12-06 15:10
让我们从移除

让我们从删除启动连接时发生的MTU交换开始。在dsp的user\u on\u connection()回调函数中,尝试注释对user\u gattc\u exc\u mtu\u cmd()的函数调用。如果这“解决”了问题,我们将有一个很好的迹象表明下一步该去哪里寻找。

/MHv

拉兹普
离线
最后一次见到:1 year 5 months ago
已加入:2017-02-08 09:20
Thank you MHv

Thank you MHv

I did as suggested and the result are inconclusive: A successful connection was made, but not every time.
为了获得一个成功的连接,我需要多次尝试(点击列表中的项目),大多数时候我会得到“连接失败”的错误,偶尔我会有一次成功。此外,似乎我需要在成功之间重置设备。

在android的蓝牙设置中,我不再出现错误弹出窗口:“由于PIN或密钥不正确,无法与BLE配对”

Kind regards,
拉兹

MHv\U对话框
离线
最后一次见到:1 month 1 week ago
工作人员
已加入:2013-12-06 15:10
That is still good data. Next

这仍然是很好的数据。下一步,还要尝试对app\u easy\u gap\u param\u update\u start()的调用进行注释-相同的函数。这应该允许平板电脑在没有任何协商的情况下完全指定连接参数。这也将极大地限制throghput,但它将告诉我们在哪里调整连接参数。

/MHv

拉兹普
离线
最后一次见到:1 year 5 months ago
已加入:2017-02-08 09:20
With this change there is no

With this change there is no problem to connect the device to the tablet and transfer data.

拉兹

MHv\U对话框
离线
最后一次见到:1 month 1 week ago
工作人员
已加入:2013-12-06 15:10
We are definitely getting

我们肯定会有进展的。。。

I suggest that we (well you ;o) do the following:

  • 再次尝试允许MTU交换,以查看连接参数协商是否是罪魁祸首。
  • After the above test. Start tweaking the connection parameters in the update request sent from the device. The connection interval is a potential issue. Some, maybe most, Android devices appear to accept 7.5ms intervals. A default connection (where the peripheral device doesn't request updates), is typically established at 30ms, and you could try to slowly decrease this in the update request
  • You may also try to use an app_easy_timer to delay the update request by a second or two. During the connection initiation, there is quite a lot going on, and the tablet may struggle with all these activities when the update request is received. Delaying the request, may resolve the issue. Try with the original parameters after the delay has been implemented.

/MHv

拉兹普
离线
最后一次见到:1 year 5 months ago
已加入:2017-02-08 09:20
嗨,MHv,

嗨,MHv,

Thank you for your patient.

第三点起作用了。我把对用户的调用推迟了10毫秒,似乎平板电脑一切正常。

你建议延迟1-2秒。10毫秒太短了吗?
Any idea how will this change affect the majority of android / iOS devices that are working fine with the original implementation?

Kind regards,
拉兹

MHv\U对话框
离线
最后一次见到:1 month 1 week ago
工作人员
已加入:2013-12-06 15:10
这是个好消息。我不

这是个好消息。我认为延迟的时间并不那么重要。平板电脑似乎无法处理之前的活动时间安排,任何事件分离都会有所帮助。

Both Android and iOS works in mysterious ways ;o), but it is safe to save that your code changes have made DSPS more inclusive and will work with more devices than the original code. I will suggest to our applications team that they look at your fix as something they should potentially roll in to any future DSPS updates.

/MHv