Coder Social home page Coder Social logo

Comments (7)

LinyeNinja avatar LinyeNinja commented on August 15, 2024 1

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.

ashrafulkhn avatar ashrafulkhn commented on August 15, 2024

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.

ashrafulkhn avatar ashrafulkhn commented on August 15, 2024

Could you solve your problem. Please update. It helps a lot for me to become confirmed on it.

from arduino-serial.

VinceLewis avatar VinceLewis commented on August 15, 2024

from arduino-serial.

sdrabb avatar sdrabb commented on August 15, 2024

Getting the same error...

from arduino-serial.

Medeirox avatar Medeirox commented on August 15, 2024

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.

ashrafulkhn avatar ashrafulkhn commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.