Go Down

Topic: Serial Port already in use AND Serial Port greyed out. (Read 5695 times) previous topic - next topic

Carthaginian

I have an Arduino UNO that was working fine on Ubuntu several weeks ago.  I was only on basic tutorials, but the sketches all uploaded fine.  Since my Ubuntu crashed, I've been trying to get Arduino going on Windows 7.

I've been trying to upload the "blink" example sketch, but I keep getting "Serial port COM3 is already in use..." as an error.  I've been trying everything I could find on these forums.  Typically, I keep reading some combination of the following:
- uninstall/re-install arduino software
- uninstall/re-install drivers
- restart computer
- press and hold down reset button in some special fashion

I've tried all of these things (except re-installing the Arduino software).  Nothing has worked!  Also, whenever I press the reset button on my UNO, the "Serial Port" menu gets greyed out.

Is there any other special advice I should follow?  Is there a more elaborate way to reset the Arduino that I'm not following (involving the battery and the ground)?

Thank you.

Carthaginian

And as a quick addition:

During most of the things I've tried, I've kept the Arduino plugged into the computer...so when restarting the computer, uninstalling/re-installing, etc. I've kept it plugged in.

runaway_pancake

When you plug & unplug the Arduino does the COM port appear & disappear in the Device Manager list?
Is something else already using COM3 (Device Manager)?

Unplug the Uno when you're installing/un-installing.
"Who is like unto the beast? who is able to make war with him?"
When all else fails, check your wiring!

cmiyc


Also, whenever I press the reset button on my UNO, the "Serial Port" menu gets greyed out.

This is a red flag since pressing reset has nothing to do with the ATmega8u2 chip acting as the serial to usb converter.


Is there a more elaborate way to reset the Arduino that I'm not following (involving the battery and the ground)?

Wait, Battery?

You said you were using an Uno.  Where does a battery come into play?
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Carthaginian


When you plug & unplug the Arduino does the COM port appear & disappear in the Device Manager list?
Is something else already using COM3 (Device Manager)?


When the Arduino is unplugged, the COM port does disappear from the Device Manager list.  Does that imply nothing else could be using the port?

Quote

Unplug the Uno when you're installing/un-installing.


...when un-installing/re-installing what in particular?

Carthaginian


Wait, Battery?

You said you were using an Uno.  Where does a battery come into play?


I meant to say "using a battery", but really, I was referring to something like this: http://forum.arduino.cc/index.php?topic=92148.0 .

Carthaginian

#6
Aug 12, 2013, 07:11 am Last Edit: Aug 12, 2013, 07:13 am by Carthaginian Reason: 1


Also, whenever I press the reset button on my UNO, the "Serial Port" menu gets greyed out.

This is a red flag since pressing reset has nothing to do with the ATmega8u2 chip acting as the serial to usb converter.


On closer examination, this isn't happening.  Rather, it "greys out" whenever I unplug and re-plug the Arduino.  The problem happens as follows:

1. I start the IDE / Arduino plugged in => Serial Port is greyed out
2. I uninstall COM3 driver / still plugged in (if I wasn't plugged in wouldn't be visible and I wouldn't be able to uninstall the driver)
3. I restart computer / still plugged in
4. Windows automatically installs same COM3 driver over again / still plugged in
5. I start IDE / still plugged in => Serial Port is now visible
6. I unplug Arduino => Serial Port is greyed out again
7. I stop/restart IDE, unplug/re-plug Arduino, etc. => Serial Port remains greyed out

At this point, Serial Port remains greyed out until I uninstall COM3 again.

runaway_pancake



http://www.hobbytronics.co.uk/arduino-installation
"Who is like unto the beast? who is able to make war with him?"
When all else fails, check your wiring!

Carthaginian




http://www.hobbytronics.co.uk/arduino-installation


What specifically haven't I done yet?  (also, these instructions are old)

To repeat myself, the only thing that appears in my Device Manager's Port listing is the Arduino Com port.  When the Arduino is not plugged in, the Device Manager doesn't even have a Port list.

cmiyc

Is there anything connected to the Arduino?  Are you connecting through a hub?
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Carthaginian


Is there anything connected to the Arduino?  Are you connecting through a hub?


Uno.  USB.  My laptop.

runaway_pancake

On XP --

  • I plugged in a Uno and waited for it to "fail"

  • I got into Control Panel, got into device manager and right clicked on the Arduino Uno (it was Question Marked) a selected Update Driver

  • In the Wizard I clicked the radio button for Browse my computer and waded down the folder tree (the Arduino root) till I got to the Drivers folder (you won't see arduino uno.inf in a list*)

  • I went with 'OK' and/or 'Next' when prompted from there and on



I'm sorry that this has been such a pain for you.

The device the Uno has in place of the FTDI used previously is a programmable device.
But it cannot be casually reprogrammed

* You can find it by Searching for it or by opening the folders till you find it.
"Who is like unto the beast? who is able to make war with him?"
When all else fails, check your wiring!

craigcurtin




Also, whenever I press the reset button on my UNO, the "Serial Port" menu gets greyed out.

This is a red flag since pressing reset has nothing to do with the ATmega8u2 chip acting as the serial to usb converter.


On closer examination, this isn't happening.  Rather, it "greys out" whenever I unplug and re-plug the Arduino.  The problem happens as follows:

1. I start the IDE / Arduino plugged in => Serial Port is greyed out
2. I uninstall COM3 driver / still plugged in (if I wasn't plugged in wouldn't be visible and I wouldn't be able to uninstall the driver)
3. I restart computer / still plugged in
4. Windows automatically installs same COM3 driver over again / still plugged in
5. I start IDE / still plugged in => Serial Port is now visible
6. I unplug Arduino => Serial Port is greyed out again
7. I stop/restart IDE, unplug/re-plug Arduino, etc. => Serial Port remains greyed out

At this point, Serial Port remains greyed out until I uninstall COM3 again.


Go into Device manager on the PC and in the comms port list right click on the serial port and disable it. It will give you a warning about needing to restart - ignore it.

Make sure you do not have the serial monitor or IDE running.

Then in device manager - re-enable the device.

You probably have Phantom devices on the machine that are giving you grief.

Report back if this resolves it and i will show you how to delete hidden devices

Craig

Carthaginian

Some good news today.  I tried out the board and cable on a friend's Mac, and it worked fine (and as I mentioned earlier, it worked fine when I had Linux).  I'm now confident that it really is Window's fault.

As for Sysinternal, I've gone to this page http://technet.microsoft.com/en-us/sysinternals/bb963902 .  However, it now seems to me that "Sysinternals" names a whole collection of software, not just what I need.  What more specific software should I be using?

And as a final note, I tried the "disable/re-enable" strategy with no luck.  Thanks though for the suggestion.

craigcurtin


Some good news today.  I tried out the board and cable on a friend's Mac, and it worked fine (and as I mentioned earlier, it worked fine when I had Linux).  I'm now confident that it really is Window's fault.

As for Sysinternal, I've gone to this page http://technet.microsoft.com/en-us/sysinternals/bb963902 .  However, it now seems to me that "Sysinternals" names a whole collection of software, not just what I need.  What more specific software should I be using?

And as a final note, I tried the "disable/re-enable" strategy with no luck.  Thanks though for the suggestion.


A combination of these two should give you plenty of info

http://technet.microsoft.com/en-us/sysinternals/bb896653

http://technet.microsoft.com/en-us/sysinternals/bb896645

regards

Craig

Go Up