Bluno General Arduino

Bluno nano transfer rate

userHead d.brandonk 2017-03-14 14:12:03 2034 Views4 Replies
Does anyone happen to know the max rate at which the bluno nano can transfer bytes through bluetooth because I am running this code

void setup() {

Serial.begin(115200);
}

void loop()
{

for(i = 0; i < 10000; i++)
{
Serial.println(i);
Serial.flush();

}

while(1){}

}

and I am losing a lot of bytes the other end. Or if there is something wrong with my code or if there something that I can be doing better please let me know.

Thanks for the help in advanced,

Brandon
2017-03-18 13:06:44 Okay, thank you. I was not sure if I was doing something incorrectly. But yes, that is about the data rate that I am finding and I implemented similar code to what you suggested to ensure I was not losing data. However, this is a smaller throughput than I would like. I was wondering if you knew whether the size of the throughput is a symptom of the TI CC2540 chip or does if have to do with the clock speed of the bluno nano or anything like that? Because it is just a little confusing when the buad rate is 115200 but is not capable of actually achieving that rate in practice or so it seems. I am just trying to understand the cause of this and any information you have on the subject would be helpful.

Thanks again,
Brandon
userHeadPic d.brandonk
2017-03-15 23:17:39 Hi

The baud rate of 115200 would be fine. And maybe we can try to add a "delay(100);" to see how its going.
userHeadPic Wendy.Hu
2017-03-15 07:29:21 I am trying to max out the throughput of the bluno nano as a slave. Do you recommend a specific buad rate for the ble chip to be set at or a delay between serial port uses or anything like that?

Thanks,
Brandon
userHeadPic d.brandonk
2017-03-15 02:05:48 Hi

Since the speed from master machine to slave is 4kb/s, and slave to master is 2kb/s. Once the the data is large, which is possible to get the data lost. I would like to suggest you can try to exchange master and slave machine to see what happened. :)
userHeadPic Wendy.Hu