linux - Monitor already used serial port using python -


how monitor serial port used or not? using pyserial application , isopen() not working script when run in ubuntu.

if (ser.isopen()): ser.write(data_string) else: print("port in use")

i never got "port in use" . trying execute script parallel in 2 different terminals still no else part execution there.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -