Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[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 :)
 

horace1

Advanced Member level 5
Joined
Nov 18, 2008
Messages
2,123
Helped
596
Reputation
1,188
Reaction score
573
Trophy points
1,393
Location
Norwich, UK
Activity points
13,069
if each axis value is 2 bytes could they be followed by a newline (which could be carriage return and line feed characters)
 

Gorgon

Full Member level 6
Joined
Nov 10, 2005
Messages
345
Helped
75
Reputation
150
Reaction score
67
Trophy points
1,308
Location
Norway
Activity points
3,667
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?
 
  • Like
Reactions: embpic

    embpic

    Points: 2
    Helpful Answer Positive Rating

memarian

Full Member level 5
Joined
Aug 11, 2004
Messages
257
Helped
57
Reputation
114
Reaction score
34
Trophy points
1,308
Activity points
2,005
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 :)

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top