What is the best way to figure out the baud rate, databits, etc. that a device, such as a scanner communicates at? This has to be done without actually knowing which handshake messages are used.

Thanks