5539 views|2 replies

405

Posts

1

Resources
The OP
 

Android Bluetooth BLE receiving large amounts of data [Copy link]

I'm working on a wearable device recently. The lower computer uses a Bluetooth module and the upper computer uses Android. The lower computer needs to transmit at a rate of 5kB/s. The upper computer always loses connection after receiving a few packets. I used a packet capturer to check that the lower computer has a much faster transmission speed. Each connection interval is 45ms, but it needs to transmit several packets, and there is only about 600us between packets. Android uses a callback function to receive it. It seems that the connection is disconnected because it is too late.
  1. @Override public void onCharacteristicChanged(BluetoothGatt gatt,BluetoothGattCharacteristic characteristic) { byte[] value = characteristic.getValue(); Log.i(TAG, "CharacteristicChanged: " + value.length); }
复制代码
This callback function is called back once for each packet, and then only one packet can be retrieved. I would like to ask if you have done Android Bluetooth data collection and how it is implemented. There are a lot of information on the Internet, but it is not suitable for scenarios with large data volumes. Because the lower computer is a transparent transmission module, its code cannot be changed, and it is not Bluetooth 5.0. Each packet can only send 20 bytes. I don't know how to deal with it.

This post is from Linux and Android

Latest reply

Do you mean that the Bluetooth module transmits too fast, so the Android APP cannot receive data? The transparent transmission mode is similar to the serial port mode. You can set the Bluetooth module to transmit a packet after the app receives a packet. Although the rate will be lower, it will be more reliable.  Details Published on 2018-9-15 23:04

424

Posts

8

Resources
2
 
Do you mean that the Bluetooth module transmits too fast, so the Android APP cannot receive data? The transparent transmission mode is similar to the serial port mode. You can set the Bluetooth module to transmit a packet after the app receives a packet. Although the rate will be lower, it will be more reliable.
This post is from Linux and Android
 
 

405

Posts

1

Resources
3
 
But I just need a high speed. The transparent transmission speed of the modules available on the market can barely meet my needs. There are already problems with the reception on the Android side. I think it is because I don’t know Android. I don’t know how commercial wearable Bluetooth devices solve the problem of high-speed transmission. Are they all using traditional Bluetooth?
This post is from Linux and Android
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list