Hi,
I'm trying to transfer data from a small arduino-like board to a cellphone over bluetooth, but not matter what I do the speed is rather unsatisfactory. I'm not particularly experienced and this is my first such project, so I might easily be doing something wrong ...
The board I'm using is Bluno Beetle (I needed something small with integrated bluetooth), I've attached an accelerometer to it and I'm sending messages (perhaps 20-40B each) with data from the accelerometer. But no matter what I do I only get to send ~10 messages per second, so 200-400B/s. That seems rather unsatisfactory, and it's perhaps 1/10 of what I'd need.
The rate is set to 115200 on both sides, so that's not it.
The code is really simple - essentially
void loop() {
... read data from accelerometer ...
Serial.print(ax + " " + ay + " " + az);
Serial.read();
}
And that's it. Without the read() it's obviously faster, but I then get corrupted messages - I presume because of limited buffer for the serial link. So this way the other side confirms it received the whole message, before the next one is sent.
Is this an expected behavior of bluetooth on arduino, or is it just what this particular board does? Or am I doing something fundamentally wrong? I don't mind trying another board, but the Beetle BLE seemed quite nice.