简体   繁体   中英

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?

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.

Is there any library or native API or something?

The length of each packet transmitted by Bluetooth is 20 bytes. 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

mBluetoothGatt.requestMtu(512);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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