Error while opening port in Python using TI Chronos

前端 未结 6 1300
野趣味
野趣味 2021-01-05 17:46

I\'m trying to get accelerometer data from TI Chronos. I get the following error message when I run the code:

Traceback (most recent call last):
  File \"C:\         


        
6条回答
  •  一个人的身影
    2021-01-05 18:26

    The most common source of such errors is the port being already opened by some other application, or frequently by a previous (executed, but forgotten to kill) instance of your code.

    To test this hypothesis, the easiest way is to run some other program that opens the same port (for example, HyperTerminal) when you're getting the error. If it fails also, try to find who's holding the port.

    Also, Portmon is a useful tool in debugging similar problems with the serial port.

提交回复
热议问题