Using Serial On Python / Win7
I am trying to interface with a serial WWAN modem (for diagnostics /signal strength measurement purposes). This is via the onboard COM1 (115200-8-n-1) on my desktop, the connection
Solution 1:
You don't need to call open
. The constructor already does that, and on Windows whoever opens a COM port has exclusive access to it until they close it.
As to the second problem, take a look at How can I fix "[Error 6] The handle is invalid." with PySerial
Solution 2:
Here is what I do to eliminate Access Denied Error
:
Press Ctrl + Alt + Del
Select
pythonw.exe
and press End ProcessRe-Run your application in IDLE
It should be run without any access denied error.
Solution 3:
You need to be running python.exe
in elevated mode. Right click and click Run as administrator
Post a Comment for "Using Serial On Python / Win7"