Comments (7)
Hello, I'm having this issue but there is nothing else talking to the arduino, and pyserial and the serialmonitor seem to communicate with it just fine. Any idea how I could solve it? Thanks in advance.
(I'm under linux mint and with python 3.8)
from arduino-serial.
I think you have kept your Arduino IDE open where the UART port already communicating with your system. So it is showing the resources as busy. First try to stop the Arduino IDE and try the code. It should work.
Let me know your findings.
from arduino-serial.
Could you solve your problem. Please update. It helps a lot for me to become confirmed on it.
from arduino-serial.
from arduino-serial.
Getting the same error...
from arduino-serial.
me too. can't connect to serial port.
Important to say that I'm trying to connect to a virtual serial port created by a USB 4G modem.
Minicom, pyserial, echo works ok.
from arduino-serial.
Please note that the Serial port will be opened only in one place. i.e Arduino IDE, Putty, Minicom, etc., or any other serial terminals you might have.
If the serial port is open() ed by any of the serial terminals you will not get access to it unless you properly close the serial
connection.
Case 1:
In case you are using Minicom or any other Unix terminal-based serial monitor then there might be chances that you have not closed the terminal properly. You might have pressed the Ctrl + C or Ctrl + X or Ctrl + Z etc which doesn't close the serial terminal application properly. Instead, use the proper method to close the terminal. For Example: For Minicom use Ctrl + A, then press X to close the terminal.
Case 2:
You are using pyserial in python or any other serial library based on your choice of programming language. Most probably you have not closed the port properly and trying to open it again. I can comment on this if you could share your code. I can review C, C++, Python, and Rust. But the concept lies the same for all languages. FYI: close() function be used when you open a port.
Bottomline: Use only one application to use the port. Either it is your custom application or a Serial Monitor.
from arduino-serial.
Related Issues (2)
- please add a __init__ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-serial.