example sketch upload error

hi guys need help here. what does it means?

avrdude: ser_open(): can't open device "\.\COM16": The semaphore timeout period has expired.

processing.app.debug.RunnerException
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:129)
at processing.app.Sketch.upload(Sketch.java:1692)
at processing.app.Sketch.exportApplet(Sketch.java:1605)
at processing.app.Sketch.exportApplet(Sketch.java:1577)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2397)
at java.lang.Thread.run(Thread.java:619)
Caused by: processing.app.debug.RunnerException: Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:113)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:127)
... 5 more

What were you trying to upload? To what?

avrdude: ser_open(): can't open device "\.\COM16": The semaphore timeout period has expired.

If you have numbers that high for the com port, you have something (probably some bluetooth crap) tying up serial ports (and probably shanghai others that other apps open). Get rid of it.

PaulS:
What were you trying to upload? To what?

avrdude: ser_open(): can't open device "\.\COM16": The semaphore timeout period has expired.

If you have numbers that high for the com port, you have something (probably some bluetooth crap) tying up serial ports (and probably shanghai others that other apps open). Get rid of it.

One of Windows' "features" (at least on Win 7), is the retention of COM port numbers. Every time you plug in anything to the USB that enumerates as a COM port, it takes the first available number. You may forget that you once plugged in an FTDI adapter to run your Jelly-Jam Toaster Printer, but Windows didn't, and it still remembers that it was assigned COM 27, so now your poor Arduino gets COM port 28 the first time it is plugged in. And if you then plug it in to a different USB port, it will get COM 29, and so on.

If you really prefer it to be a low number, all you need to do is to Go to Control Panel > Computer (right click) >Properties > Device Manager. Within Device Manager, click on Ports. Doublle-Click on the Arduino in question, Select Port Setting > Advanced. Use the COM Port Number dropdown, and select a low number you KNOW is not in use.

But then, why bother? It will work just fine if your Arduino is on COM 16.

kmliaw:
avrdude: ser_open(): can't open device "\.\COM16": The semaphore timeout period has expired.

In the IDE, click on Tools->Port, and ensure that you have a COM16 listed there. If not, look to see if you have another one that isn't assigned to anything else. That will likely be your Arduino's port number.

In my last post, I also showed how to find the ports in Device Manager. Check in there. There should be one labeled "Arduino...".

but Windows didn't

Until it's rebooted, which, because it's Windows, is generally twice a day.

But then, why bother? It will work just fine if your Arduino is on COM 16.

As long as nothing else is interfering. Which, in my experience, is not the case, when there get to be multi-digit port numbers.

PaulS:

but Windows didn't

Until it's rebooted, which, because it's Windows, is generally twice a day.

If you are still running XP, That may be true (I don't run it any more). If you are running Win 7, a reboot does not reclaim the COM port numbers. I have rebooted many times (hundreds of times), since I bought my current machine, and it has been collecting COM port numbers across those reboots.

But then, why bother? It will work just fine if your Arduino is on COM 16.

As long as nothing else is interfering. Which, in my experience, is not the case, when there get to be multi-digit port numbers.

If you are using Windows 7, I think there must either be something wrong with your system or you need one of more updates.
You can use COM ports all the way up to 256, and a COM port will not be assigned to any number that has been assigned to another device, regardledd of whether or not that device is still attached. So, there will be no conflicts, unless your OS is broken.

Check out the attached pics. I have only 3 devices connected that use COM ports, and they are COM9, COM 13, and COM18

Ports.jpg

PortsUsed.jpg

I am trying to upload sketch into my arduino breadboard using FTDI serial to usb