tags:

views:

319

answers:

2

How do I write to the serial port in Vista from Python? The termios package only seem to support posix.

+7  A: 

pyserial does the trick, you'll need python extensions for windows for it to work in windows.

Toni Ruža
+1, but maybe a very short example would be nice too
Ali A
+2  A: 

Seems like it wasn't any harder than this using pyserial:

import serial

ser = serial.Serial(0)  # open first serial port with 9600,8,N,1
print ser.portstr       # check which port was really used
ser.write('hello')
ser.close()
Fylke
Update your original question if you have new information instead of posting a new answer. :)
Robert P
+1: for small example
J.F. Sebastian
@Robert P: I disagree, this is more appropriate as an answer
Toni Ruža