Frustration debugging serial code
Grant Edwards
invalid at invalid.invalid
Fri May 7 15:40:22 EDT 2010
William R. Wing (Bill Wing) wrote:
> Hello World -
> I'm new to both Python and this list, but here's hoping someone can spot
> my problem.
>
> System: Mac OS-X, 10.6.3 (Intel dual quad processor)
> Using Python 2.6.1, and pyserial-2.5_rc2-py2.6
>
> The following snippet of code is designed to open a port via a KeySpan
> USB-to-serial converter and communicate with an X10 power line signaling
> system. Before you look at the code, let me mention that my frustration
> is the it executes perfectly if i enter it line by line at the Python
> prompt, and executes perfectly if I run it under the Wing IDE. It fails
> silently (no errors) if I run it as a standalone script. Clearly, I'm
> missing something.
Well, the timing is vastly different in the two cases you cite. Have
you tried adding some delays in your code?
--
Grant Edwards grant.b.edwards Yow! Don't SANFORIZE me!!
at
gmail.com
More information about the Python-list
mailing list