hello there Iam using python 2.5.4 pyserial 2.4 pywin32-214
on windows 7 i hav a small test script written to query a serial device (arduino) and get back reply appropriately ////file: test.py import serial print 'hi' ser=serial.Serial(port='\\.\COM2', baudrate=9600) ser.close() ser.open() ser.write('1') ser.readline() ser.readline() ser.close() the device waits for '1' through its serial interface and print two lines if it gets '1' "Some Data found" and "Header received" the script works on IDLE well when given one line at a time but when given in command line as python test.py it prints hi and wait forever can anyone help? thanks in advance -- http://mail.python.org/mailman/listinfo/python-list