3

My question is quite simple: can you, somehow, upload Arduino code without closing puTTY's serial console? I hate having to close the program to open it again for reading the incoming information.

asked Jan 4, 2021 at 15:30
1
  • 1
    use Serial Monitor in IDE or a second USB to TTL Serial adapter for output to putty Commented Jan 4, 2021 at 15:34

2 Answers 2

2

You can't. Putty has no way of disconnecting without closing the program (as far as I can tell).

You could try "Tera Term" which apparently (though I don't use Windows so have no experience with it) has a disconnect option (which you would have to use before uploading).

Alternatively, as @Juraj has mentioned, you could use a separate USB to TTL UART adaptor to provide a second debug serial port (either with SoftwareSerial or mirroring the TX pin of the Arduino directly - don't connect RX in this case) which doesn't interfere with software upload.

answered Jan 4, 2021 at 16:33
1
  • `softwareSerial' works well if you've got a spare digital pin or two. I've been using it to send the status information I need to a Raspberry Pi, via a level converter, while the proper USB serial port is used for uploading from a desktop PC, as well as getting a copy of the status info. Commented Jan 5, 2021 at 12:37
6

There is an open source project that will do what you want.

http://com0com.sourceforge.net/

The com0com will create virtual com ports for the programs to connect to.

The hub4com will allow you to route data between the physical port and multiple virtual com ports.

http://com0com.sourceforge.net/hub4com/ReadMe.txt

answered Jan 4, 2021 at 19:07
1
  • I never knew about that. It's a nice solution! Commented Jan 4, 2021 at 20:39

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.