[python-win32] Problem with Pyserial

Dan Ackerman ackermad at carleton.edu
Mon Jun 14 16:52:56 CEST 2010


Hello,
I am trying to send some information out of my computer's serial port. I found the code posted below online, and the person who posted it said it worked for them. However, when I tried the code, nothing was sent through the serial port but I didn't receive any error messages. Does anyone know what the problem could be?

import serial
ser=serial.Serial(0)
ser.baudrate=9600
ser.port=0
ser.open()
ser.write("hello\n")
ser.close()

Thanks,
Dan


More information about the python-win32 mailing list