How do I write to the serial port in Vista from Python? The termios package only seem to support posix.
pyserial does the trick, you'll need python extensions for windows for it to work in windows.
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()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With