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
2009-03-12 23:02:11
+1, but maybe a very short example would be nice too
Ali A
2009-03-12 23:12:47
+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
2009-03-13 01:47:42
Update your original question if you have new information instead of posting a new answer. :)
Robert P
2009-03-13 01:52:54