Page 1 of 1

cannot upload - com4 already in use

Posted: Fri Feb 10, 2012 3:16 pm
by rossbryant1956
I have been quite frustrated for the last several days and hope someone sees what I am doing wrong. All was seeming to be working fine until I tried to upload the code that I got from the board for random wavemaking. Now when I go to upload from Arduino I get:

-----------------------------------------------------------
Binary sketch size: 31488 bytes (of a 32256 byte maximum)
processing.app.SerialException: Serial port 'COM4' already in use. Try quiting any programs that may be using it.
at processing.app.Serial.<init>(Serial.java:144)
at processing.app.Serial.<init>(Serial.java:76)
at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:75)
at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:93)
at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:56)
at processing.app.Sketch.upload(Sketch.java:1603)
at processing.app.Sketch.exportApplet(Sketch.java:1568)
at processing.app.Sketch.exportApplet(Sketch.java:1524)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2293)
at java.lang.Thread.run(Thread.java:619)
processing.app.debug.RunnerException: Serial port 'COM4' already in use. Try quiting any programs that may be using it.
at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:99)
at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:93)
at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:56)
at processing.app.Sketch.upload(Sketch.java:1603)
at processing.app.Sketch.exportApplet(Sketch.java:1568)
at processing.app.Sketch.exportApplet(Sketch.java:1524)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2293)
at java.lang.Thread.run(Thread.java:619)
--------------------------------------------------------------

I noticed it first when trying to hook up my X10 interfaces but after de-installing all their software, and even re-installing the Reef Angel stuff I still get the error. I thought for a minute it had to do with the client software but I did a fresh boot asnd tried to upload prior to running the client.

Still didn't work...

In device manager there is a driver, a FT232R UART USB sitting on Com4 that I suppose belongs to RA but would like verification.

I wrote the other day about potentially changing that address thinking I could get around this problem but no other ports are offered me in either Arduino, Client SW or even installer.

Thinking the FT232R UART chip belonged to someone else, I de-installed all drivers, plugged them in one at a time and sure enough it was the RA cable that caused Windows to install this driver.

I would really appreciate the help...I am kinda stuck and not sure how to proceed. Thx in advance.

Ross

Re: cannot upload - com4 already in use

Posted: Fri Feb 10, 2012 4:34 pm
by rimai
I think it is the client.
Open the Client and go to Settings->Modify and choose General tab.
Click the button Launch Service Dash.
Make sure that you have the Listener service stopped before uploading any code.

Re: cannot upload - com4 already in use

Posted: Fri Feb 10, 2012 5:00 pm
by rossbryant1956
That did it. Thx

Ross

Re: cannot upload - com4 already in use

Posted: Sun May 20, 2012 12:33 am
by mraaa1988
Hi guys

I am having the same problem as Ross
---------------------------------------------------------------------------------------

Binary sketch size: 1026 bytes (of a 32256 byte maximum)
processing.app.SerialException: Serial port 'COM7' already in use. Try quiting any programs that may be using it.
at processing.app.Serial.<init>(Serial.java:144)
at processing.app.Serial.<init>(Serial.java:76)
at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:75)
at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:88)
at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:66)
at processing.app.Sketch.upload(Sketch.java:1664)
at processing.app.Sketch.exportApplet(Sketch.java:1624)
at processing.app.Sketch.exportApplet(Sketch.java:1578)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2314)
at java.lang.Thread.run(Thread.java:619)
processing.app.debug.RunnerException: Serial port 'COM7' already in use. Try quiting any programs that may be using it.
at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:99)
at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:88)
at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:66)
at processing.app.Sketch.upload(Sketch.java:1664)
at processing.app.Sketch.exportApplet(Sketch.java:1624)
at processing.app.Sketch.exportApplet(Sketch.java:1578)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2314)
at java.lang.Thread.run(Thread.java:619)
-----------------------------------------------------------------------

What do u mean by opening the Client
Where is the Client and how I can access it

By the way I am using Windows 7 pro 64 bits
I was doing some testings with my Xbee shields and this error came so making me very frustrating

Any help would be highly appreciate
Thanks
Tony

Re: cannot upload - com4 already in use

Posted: Sun May 20, 2012 1:36 am
by Sebyte
The reference is to the Reef Angel Client software.

Open the Client and go to Settings->Modify and choose General tab.
Click the button Launch Service Dash.
RA client screen.JPG
Make sure that you have the Listener service stopped before uploading any code.

Re: cannot upload - com4 already in use

Posted: Sun May 20, 2012 6:59 am
by rimai
Are you sure COM7 is the port that the USB cable is using?
The easiest way to find out is:
Make sure that USB-TTL cable is plugged in.
Tools->Boards
Write down all ports showing.
Remove the USB-TTL cable.
Tools->Boards
Whichever port is missing is the one you need to use to communicate with RA.

Re: cannot upload - com4 already in use

Posted: Sun May 20, 2012 4:35 pm
by mraaa1988
Yes

That is definitely COMP7

I did try even with my friend's laptop

The error was exactly the same except I got "COMP3" instead of "COMP7"

Never experience with Reef Angel Client software before, so gonna take a while for me to understand it

Any way I ll let u guys know how I go as soon as possible

Thanks for all the help
Tony

Re: cannot upload - com4 already in use

Posted: Mon May 21, 2012 1:17 am
by mraaa1988
Hi guys
Somehow I can not Launch Service Dash

Keep getting this error every time I click on Launch Service Dash from Reef Angel Client v2.2/Settings/Modify/General window

-----------------------------------------------------
ReefAngelManager has stopped working
Windows is checking for a solution to a problem...
----------------------------------------------------

then nothing happened

The listener status: Stopped / Retrying to connect in 00:45
The logger status: Running

I am using USB cable
still getting "Serial port 'COM7' already in use" when uploading a code to my Arduino using ReefAngel Controller

want to upload a picture but the file is too big so cant show u guys
What did I do wrong???
Please help
btw can u also show me how to upload a picture to a forum?

Tony