After many hours testing all the hardware and trying to debug the python codes, this fix was the answer!meridia wrote:Yes, indeed.
I found the reason why the python script doesn't work.
In the codes as I posted before, the following line should be modified as follows.
-------------------------------------------------------------
ser = serial.Serial(SERIALPORT, BAUDRATE)
ser.open()
-->
ser = serial.Serial(SERIALPORT, BAUDRATE)
#ser.open()
--------------------------------------------------------------
ser.open() makes the access denying error becuse ser = serial.Serial(SERIALPORT, BAUDRATE) already open the port.
My system is a ASUS TUV4x, 1GHz Pentium III with 1.5GB DRAM, Windows XP SP3, NVidia GeForce FX5500.
The feedback on the net and here was very misleading at first.