I have tried setting the baud rate with no success. Also I'm using port #2 because I"m using a usb to serial cable. <br><br><div class="gmail_quote">On Fri, Oct 23, 2009 at 7:51 PM, Chris Rebert <span dir="ltr"><<a href="mailto:clp2@rebertia.com">clp2@rebertia.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">On Thu, Oct 22, 2009 at 4:43 PM, Ronn Ross <<a href="mailto:ronn.ross@gmail.com">ronn.ross@gmail.com</a>> wrote:<br>

> I'm using pySerial to connect to a serial port (rs232) on a windows xp<br>
> machine. I'm using python interactive interpretor to interact with the<br>
> device. I type the following:<br>
> import serial<br>
> ser = serial.Serial(2)<br>
> ser.write("command")<br>
><br>
> But this does nothing to the control. I have been able to connect via puTTY<br>
> to verify that the command and the device are working. Next I tried to open<br>
> the port before<br>
> writing. It looks like this:<br>
> import serial<br>
> ser = serial.Serial(2)<br>
> ser.open()<br>
><br>
> It returns that an error. It states that I do not have permissions? I don't<br>
> know how to resolve either issue. Any help would be greatly appreciated.<br>
<br>
</div></div>Have you tried setting the baud rate? (the `baudrate` param to<br>
Serial's constructor)<br>
Why are you using port #2 and not #0?<br>
<br>
Cheers,<br>
Chris<br>
<font color="#888888">--<br>
<a href="http://blog.rebertia.com" target="_blank">http://blog.rebertia.com</a><br>
</font></blockquote></div><br>