Auto Baud Rate Detection

Camm29 Camm29 at tesco.net
Tue Jul 11 12:56:10 EDT 2006


Thanks  , i will try

----- Original Message -----
From: "Ben Rubinstein" <benr_mc at cogapp.com>
To: "How to use Revolution" <use-revolution at lists.runrev.com>
Sent: Tuesday, July 11, 2006 5:46 PM
Subject: Re: Auto Baud Rate Detection


> On 11/7/06 17:22, Camm29 wrote:
> > Need to automatically detect and set one of two Baud Rates for Com
Ports.
> > 9600 or 2400.
> >
> > The device will respond to "Hello" with "Okay" if the Baud is correct.
>
> Have your code open the port with one baud rate, test it, if it doesn't
get
> "Okay" in reponse to "Hello", then close the port and reopen with the
other
> baud rate.
>
> I have a similar case - it knows what the baud rate is, and what a
response
> looks like, but not which port the device might be on - my app effectively
> does the same thing, except that instead of changing the baud rate on each
> test it changes the port.  That works fine, I would expect this would work
in
> your case too.
>
>    Ben Rubinstein               |  Email: benr_mc at cogapp.com
>    Cognitive Applications Ltd   |  Phone: +44 (0)1273-821600
>    http://www.cogapp.com        |  Fax  : +44 (0)1273-728866
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.0.394 / Virus Database: 268.9.10/384 - Release Date: 10/07/2006
>
>




More information about the use-livecode mailing list