On my new Dell XPS laptop, I've just started loading all of my goodies on -- and I'm embarrassed to say that I can't get pyserial to work properly in Python 2.7. I ask it to do the following:
import serial
s = serial.Serial(0)
s.write("Hello world!")
s.close()
...and the darn thing gives me the following (code simplified to the real problem so you don't have to scrub through forests of my poorly written Python):
SerialException: could not open port COM1:
[Error 2] The system cannot find the file specified.
I've tried asking for a port explicitly (s = serial.Serial(port="COM1", baudrate=9600
) but to no avail. I've also tried COM2, COM3, COM4, etc... But I'm not sure how high it's really worth going if they all return the same SerialException, ya dig?
The reason I mention my laptop model is because I've heard rumors that Dell is slowly killing off its serial connectivity, but quite frankly, I don't know nearly enough about serial-ness to even pretend to know what I'm talking about here. So I hereby bequeath this mission upon you experts.
Thanks for any help you can give!