通过BLE在2个Android手机之间进行通信 [英] Make communication between 2 android phones over BLE

查看:596
本文介绍了通过BLE在2个Android手机之间进行通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两部Android智能手机(Xperia Z和Xperia Z1),并且都具有BLE功能.

I have two android smartphones (Xperia Z and Xperia Z1) and both have BLE capability.

我可以通过BLE作为外围设备连接到其中之一吗?在我的应用程序中,我可以看到并连接BLE作为外围设备(CC2541设备),并且可以看到所有服务和特性. 但是相同的应用程序看不到我的一部手机?

Can I connect to one of them as a peripheral over BLE? In my application I can see and connect a BLE as peripheral (CC2541 device) and I can see all services and characteristics. But same application can not see one of my phones??

有没有办法实现??

推荐答案

Android直到5.0版(最新版本)才支持外围设备模式,因此您无法通过BLE与两部智能手机通信.

Android does not support peripheral mode till version 5.0(latest version) therefore you can not communicate with two smartphone over BLE.

您可以通过BLE与传感器设备和智能手机进行通信,此处智能手机应用程序充当客户端,而传感设备充当服务器.

You can communicate over BLE with sensor device and smart phone here smartphone app works as client and senser device as a server.

如果要在两部智能手机之间进行通信,则必须使用经典的蓝牙.

and if you want to communicate between two smartphone you have to use classic bluetooth.

这篇关于通过BLE在2个Android手机之间进行通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆