avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] Flow control with Butterfly


From: Hugo González Monteverde
Subject: Re: [avr-chat] Flow control with Butterfly
Date: Fri, 18 Mar 2005 10:06:31 -0600
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

See that python has less than second sleep. Why not try:

>     for c in "command\r":
>         ser.write(c)
          time.sleep(0.01)

and thus sleep 10 ms. It is implemented internally with select() and you won't have to change your design in the butterfly (much harder)

Hugo




    ser.write("command\r")

loses characters, but

    for c in "command\r":
        ser.write(c)
        ser.read()

works fine.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]