Device or resource busy
-
Hello everyone, I hope you are well. I am having the following problem:
I am wanting to make a serial port connection with my ESP32 using Arduino IDE. Issue that does not let me open the port and returns "Device or resource busy". I have searched a lot but I can't find the solution and for this reason, I am making this post. My operating system is Ubuntu. I have done these things in Windows and nothing similar has ever happened to me, I hope you can help me, thank you very much in advance!
P.S: I'm using google translate
-
@ademmler Thanks for the quick reply. I estimate that it must have access since I can open the port from QT but when I connect the ESP32 and I want to load the program it won't let me, so I close the port from QT and load the program there. But then I can't connect from QT to that same port.
-
@ademmler Maybe I'm expressing myself wrong. The problem is that I can't link the same serial port from my ESP32 board and my QT app. It tells me that the serial port is full.
This line of code is what returns the following image.
QMessageBox::information(this, "Serial PORT", "NO SE PUDO ABRIR EL PUERTO (" + QSerialPort1->errorString() + ")");
-
-
@fedito said in Device or resource busy:
I ran Qt as root and problem solved
You should rather change access rights to the device file (allow your normal user access to it) instead of running whole application as root. Usually it is enough to add your user to a group which has access to the device file.