Android Question Sending more data using RN4020

Nabil Miri

New Member
I am using RN4020 to send data from arduino to an android tablet.

I have created a private service and the app reads it and subscribed to its notifications or changee.

I was able to send 185 messages from the RN4020 to the tablet in 1 sec.

How can I increase the number of data received?
The arduino communicate with the Bluetooth module using UART (115200 baud rate). The connection interval changes to 30 ms when connecting to the tablet but when I changed it to 7.5ms nothing has changed.

Any help?
 

MicroDrie

Well-Known Member
Licensed User
Longtime User
The throughput of a chain is determined by the slowest device in that chain. When using a UART, with a set maximum speed of 115200 baud rate, the real speed can be slower than for a variety of reasons. Maximum is 115200 bits divided by the sum of a start bit 8 bits (a byte) + stop bit gives a maximum of 11520 bytes per second. Theoretically you would have consumed 622 bytes per message. A series of bits is then also used to synchronize bevided devices. You do not specify the message length of a message. Especially if the messages are small, the overhead will be really large. Then it can be interesting to collect the small messages in a buffer and only send the contents of the buffer when the buffer is full or after a certain time to flush the buffer.
 
Upvote 0
Top