Solved

Unknown parameters for serial device

Posted on 2006-07-12
5
339 Views
Last Modified: 2010-04-17
Is there any program that will detect what the baud rate etc is for a device that is connected to a serial port or do you always have to be told by the maker of the device what to set. What do people do when the parameters of the device such as baud rate are not known and a serial port program data collected is asking for the parameters to be able to view the data.
0
Comment
Question by:kempvet
5 Comments
 
LVL 15

Accepted Solution

by:
bpmurray earned 84 total points
ID: 17089610
I'd probably do the following:
If I know who the manufacturerer is, I'll see if I can find information about the device froem the manufacturer's web site.
If I can't, I'll search the web to see if I can dig up the information.
Next I'll try to phone the manufacturer.
Finally, I'll experiment: see if you can get anything through. If you get rubbish coming in, it's probably the correct speed - then start experimenting with parity and start/stop bits.
0
 
LVL 1

Assisted Solution

by:SashaP
SashaP earned 83 total points
ID: 17089758
Only if you have a hardware debugger, you can scan all of the baud rates, and find an appropriate one. Otherwise, you should guess it (or ask device manufacturer).

0
 
LVL 18

Assisted Solution

by:JoseParrot
JoseParrot earned 83 total points
ID: 17095052
Hi,

n81p are the default in almost 100% of the cases, that is, not only the baud rate is important to setup correctly. n=no parity(can be y), 8=8 bits each character (can be 7, not good...), 1 stop bit. Also if it is synchronous or asynchronous.

Assuming that the settings are correct regard the source, you can develop a function to walk around the rates, waiting for the successful rate.

An impressive complete code for Borland Builder C++ is available at
http://www.control.com/1026170362/index_html
If you use other compiler, I think it is not very difficult to port the code.

If in Unix, an interesting approach:
http://www.accu.org/acornsig/public/caugers/volume2/issue2/serialport.html

If in C#, a great tutorial on this subject is the famous Noah's:
http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=320

Jose
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
A short article about problems I had with the new location API and permissions in Marshmallow
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now