[General] Baud Rate Calculation

Status
Not open for further replies.

TingYi Yong

Newbie level 1
Joined
May 3, 2014
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
10
I have this 3-axis dongle serial accelerometer connected using RS-232 cable. I am putting the baud rate as 9600 and im getting 80 XXXX-YYYY-ZZZZ raw data readout per second. I am trying to justify why does it shows 80 readings in a second, and here is my calculation,

2 Bytes of data x (1 Start bit + 1 Stop bit + 8 bits) = 20 bits
20 bits x 3 axis x 80 readouts = 4800 bits

While im getting 4800 bits instead of 9600 bits, so i am wondering did i miss out anything in justifying the 80 readouts?

Thanks guys
 

if each axis value is 2 bytes could they be followed by a newline (which could be carriage return and line feed characters)
 

What is the specified measurement repetition rate for the dongle? Does it transmit at the same time it measure? Have you looked at the datastream to see if there are any gaps between each dataset?
 
Reactions: embpic

    embpic

    Points: 2
    Helpful Answer Positive Rating

Hi,

i worked with 2 different accelerometer dongles (1 serial, 1 usb with virtual serial port driver) and both of them have some sort of configuration software (or configuration command) and i could change output rate (calculation rate) with that.it means that your output rate could be 1 output per second without any change in interface baud rate(9600bps).

I think you should take a closer look to datasheet of your dongle or manufacturer site.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…