为什么谷歌附近连接被严重扼杀?

问题描述 投票:0回答:1

我使用的是AndroidGoogle 附近的连接API 但我得到了非常高的延迟和低的吞吐量,即使是在使用 P2P_POINT_TO_POINTP2P_STAR. 我高度怀疑,连接停留在蓝牙上,而不是升级到wifi(两个测试设备连接到同一个wifi路由器) . 我也确保了多播的权限,甚至尝试手动获取多播锁定 (https:/stackoverflow.coma13223018。).

请注意,我有一个奇怪的设置,一个设备是在Android 10 (S10e),另一个仍然在Android 5.1 Lollipop。

在发送字节有效载荷时,我也得到了这样的错误。两台设备都会发生,但在老设备上发生的频率更高。

12-30 08:03:21.582 1670-13656/? E/NearbyConnections: EndpointManager failed to find EndpointChannel over which to write DATA at offset 0 of Payload -8205555548165078102 to endpoint D1cf [CONTEXT service_id=54 ]
12-30 08:03:21.583 1670-13656/? E/NearbyConnections: EndpointManager failed to find EndpointChannel over which to write DATA at offset 0 of Payload -8205555548165078102 to endpoint D1cf [CONTEXT service_id=54 ]
12-30 08:03:21.584 1670-13656/? E/NearbyConnections: EndpointManager failed to find EndpointChannel over which to write DATA at offset 0 of Payload -8205555548165078102 to endpoint D1cf [CONTEXT service_id=54 ]
12-30 08:03:21.585 1670-13656/? E/NearbyConnections: EndpointManager failed to find EndpointChannel over which to write DATA at offset 0 of Payload -8205555548165078102 to endpoint D1cf [CONTEXT service_id=54 ]
12-30 08:03:21.585 1670-12342/? E/NearbyConnections: EndpointManager failed to find EndpointChannel over which to write DATA at offset 0 of Payload -8717525426740116993 to endpoint D1cf [CONTEXT service_id=54 ]
12-30 08:03:21.585 1670-13656/? E/NearbyConnections: EndpointManager failed to find EndpointChannel over which to write DATA at offset 0 of Payload -8205555548165078102 to endpoint D1cf [CONTEXT service_id=54 ]
12-30 08:03:21.586 1670-12342/? E/NearbyConnections: EndpointManager failed to find EndpointChannel over which to write DATA at offset 0 of Payload -8717525426740116993 to endpoint D1cf [CONTEXT service_id=54 ]
12-30 08:03:21.586 1670-13656/? E/NearbyConnections: EndpointManager failed to find EndpointChannel over which to write DATA at offset 0 of Payload -8205555548165078102 to endpoint D1cf [CONTEXT service_id=54 ]

我还能做什么吗,还是我只能咬紧牙关买一台新设备?

android google-nearby
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.