简体   繁体   English

可以同时连接2个设备以在Android中连接蓝牙吗?

[英]is it ok to connect 2 devices concurrently to connect Bluetooth in Android?

Iam connecting 3G phone for my Android device for internet connection and another Socket(SPP) for CAN signal receiving.Whenever I manually connect to the Bluetooth tethering via 3G phone, i can browse internet perfectly and speed is good.Whenever programmatically connect to the 3G connection, i couldn't browse internet.i checked in shell and observing that in my mobile 'device is connected' message displayed and E symbol appears.No problem for me to connect Socket.But I got problem to use 3G phone.For this iam using APN/DUN mode.I checked both but no use.Is there any performance issue here or anything wrong to connect different devices by using Bluetooth API in android.Why this happends while connecting Mobile programmatically.Please give me guidance. Iam将3G手机连接到我的Android设备以进行互联网连接,并连接另一个Socket(SPP)以接收CAN信号。每当我通过3G手机手动连接到蓝牙网络共享时,我就可以完美浏览互联网并且速度很好。连接,我无法浏览Internet。我检查外壳并观察到移动``设备已连接''消息中显示并显示E符号。对我而言,连接Socket没问题。但是使用3G手机时出现问题。我使用APN / DUN模式。我检查了两者但没有使用。这里是否存在性能问题或通过使用android中的Bluetooth API连接其他设备有任何错误。为什么在以编程方式连接Mobile时会发生这种情况。请给我指导。

Regards, Rajendar 此致Rajendar

L2CAP定义LT_ADDR的方式允许最多连接7个设备。您的连接问题还有其他问题。

Yes, you can have several open connections at a time. 是的,您一次可以打开多个连接。

In fact, I've used my hands-free bluetooth on my phone, as it is connected to my ELM327 SPP device streaming at full speed. 实际上,我已经在手机上使用了免提蓝牙,因为它已全速连接到我的ELM327 SPP设备。 I didn't notice any hiccups. 我没有发现任何打ic。

As for losing connectivity when you are connected to multiple devices, it's most likely an issue with the DUN provider you're using. 至于在连接到多个设备时失去连接性,则很可能是所使用的DUN提供程序存在问题。

Also it's worth stating that, on Verizon/3g phones, when you use the phone as a phone, it suspends all 3g data services until the call is terminated. 还值得说明的是,在Verizon / 3g电话上,当您将电话用作电话时,它将暂停所有3g数据服务,直到呼叫终止。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM