Kill process that raises Device or resource busy: '/dev/ttyUSB0'?

前端 未结 3 797
时光说笑
时光说笑 2021-02-18 22:42

I connect to my Arduino board with the following Python code.

device=glob.glob(\"/dev/ttyUSB*\")[0]
time.sleep(1)
arduino = serial.Serial(device, 115200, timeout         


        
3条回答
  •  北海茫月
    2021-02-18 23:32

    Run:

    $ ps ax

    You will see what process is using serial port. Kill that process. This solved it for me.

提交回复
热议问题