Pages: [1]   Go Down
Author Topic: Baud rate greater than 115200?  (Read 1069 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 25
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
I am trying to run my code at 115200 baud rate but it gives me garbled data.I was running a shorter version of the same code at the same baud rate and it worked perfectly at 115200 but as I added more print commands and a few more lines to the code it just started spitting out random symbols.

I probably think I will have to increase the baud rate to get coherent data on the terminal but  the maximum baud that arduino runs on is 115200.

I'll be extremely grateful for any suggestions regarding this problem.

Thanks

SK
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 206
Posts: 12894
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I am trying to run my code at 115200 baud rate but it gives me garbled data
How far apart are the two devices?

Do they share a ground?

Are there any high EMF devices (motors, fluorescent lights, etcetera) in between?

Is any part of the cable in a tight loop?

Have you tried a different cable?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 25
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So I am transmitting data between my bluetooth device and my laptop.The bluetooth is using a serial port profile.

There are no motors or other EMF devices in between.And since I am doing testing my bluetooth board is pretty much right next to my PC.

Logged

UK
Offline Offline
Faraday Member
**
Karma: 17
Posts: 2884
Gorm deficient
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
but as I added more print commands

At 115200, your 128 byte receiver buffer will overflow in a little over 11 milliseconds.
Are you processing the input fast enough?
Logged

Per Arduino ad Astra

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 75
http://twitter.com/azrobbo
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you running on the real UART ports or a NewSoftSerial port?

I noticed that the NewSoftSerial cpp file states that RX is not supported at 115200 baud.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 25
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am displaying the data on the arduino terminal and as far as I can tell I don't see any latency between the data sent and received.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 25
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Im not using the softserial port.
Logged

Pages: [1]   Go Up
Jump to: