简体   繁体   English

我可以每 5 秒从 Android/iOS 设备广播蓝牙低功耗 20 KB 数据吗?

[英]Can I broadcast bluetooth low energy 20 KB data every 5 seconds from Android/iOS device?

I know there are some simulator apps for android to simulate BLE beacons like iBeacon, eddystone, etc... but, I think these beacon standards can only transfer like 1 kilobyte or so, am I right?我知道有一些适用于 android 的模拟器应用程序可以模拟 iBeacon、eddystone 等 BLE 信标……但是,我认为这些信标标准只能传输 1 KB 左右,对吗?

I want to be able to broadcast 10-20 KiloByte data every 5 seconds from two or more smartphones, and then they must be able to scan each others broadcasts and so read each others data.我希望能够从两个或更多智能手机每 5 秒广播 10-20 KB 数据,然后他们必须能够扫描彼此的广播并读取彼此的数据。

Is there any library or native API or something?是否有任何库或本机 API 之类的?

The length of each packet transmitted by Bluetooth is 20 bytes.蓝牙传输的每个数据包的长度为 20 字节。 According to calculation, the data transmitted in 5s is approximately equal to 5kb, so it is necessary to apply for MTU expansion from Bluetooth But it depends on the maximum expansion supported by the device根据计算,5s内传输的数据大约等于5kb,所以需要向蓝牙申请MTU扩展,但取决于设备支持的最大扩展

mBluetoothGatt.requestMtu(512);

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

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