5

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

2 Answers 2

9

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

0
7

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()
2
  • Update your original question if you have new information instead of posting a new answer. :)
    – Robert P
    Mar 13, 2009 at 1:52
  • 3
    @Robert P: I disagree, this is more appropriate as an answer
    – Toni Ruža
    Mar 13, 2009 at 9:16

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.