Using Serial on Python / Win7

后端 未结 3 1115
遇见更好的自我
遇见更好的自我 2020-12-22 04:54

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 con

3条回答
  •  Happy的楠姐
    2020-12-22 05:35

    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

提交回复
热议问题