Pages: 1 [2] 3   Go Down
Author Topic: Serial port 'COM19' already in use  (Read 8237 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 24
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all,

Would appreciate if anyone can share how to solve the problem of com port in use when trying to upload sketches.  I realized that I can only upload new sketches to the board by rebooting with the serial port disabled and enabling it after the system restarted.  All this is done with the board plugged in (to force the assignment of port to the board? doesn't seem right either...). It didn't work when I reboot without disabling the serial port.

Strange strange strange.

Anyone has any solution or has encountered this problem?

Regards,
Wongster

Logged

0
Offline Offline
Sr. Member
****
Karma: 0
Posts: 375
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Your workaround continues to point to other software on your computer that is blocking the serial port.  It could be anti-virus, blue-tooth, or a range of other programs that are causing the conflict.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 24
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Anyway to find out which program or device is also using the same com port?  Can't find the information in Device Manager.

The strange thing is, regardless of what com port I changed to, the same problem occurred, giving me the impression that Arduino is preventing itself from using the com port (different threads of same program using the com port and blocking the other?).

I tried disabling norton AV, bluetooth, and other programs visible to me without avail.

Any suggestion to test?
Logged

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

How about using a different OS ?
Windoze for gaming, something useful for the rest.

Can't comment on Vista. It's on my laptop, but only for purpose of reselling it sometime. Never used it, too many colors, ugly explorer.

I know this doesn't help much, but I've long given up thinking about the other OS, expect for running games. XP had become a decent flavour of windoze with SP2, Vista doesn't really exist, the W7 may be better, maybe not.
« Last Edit: February 06, 2009, 09:37:21 pm by madworm » Logged

• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

0
Offline Offline
Newbie
*
Karma: 0
Posts: 24
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've posted it in another thread but realized that the problem I encountered is different from the thread starter.  Pardon me transferring it here.  Hope someone can help.

I realised one thing while trying to figure out the port already in use problem.  After getting it to work following the cumbersome way of disabling, rebooting and enabling the serial port, I realised that it may be the ide refusing to release it hold on the port (pardon me if I am technically incorrect with terms and jargons here).

When I quite the IDE and started it again, the uploading works ok.  Once I plugged out the USB cable and plug it back again, the problem starts.  This occurs regardless of whether I unplug the usb cable with IDE running or after I shutdown the IDE.

So it seems to me that the device still hanging on to the serial port is the IDE than any other program.

Anyone has any solution or things I can try with?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 24
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Anyone? Please.....  smiley-sad
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you solve the problem? I had exactly the same problem on Vista Home Premium. I started to suspect a problem with Vista because I have the same error when trying to synchromize a Palm pilot using bluetooth over a USB connection. Then I loaded the program on an XP machine and worked at the first try.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 24
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nope.  Unfortunately.  I don't have a XP machine right now.  Not enough space to do a dual boot.  I'm trying to repair my good old P3 which has some popped caps on its MB and graphic card.  If it can be revived, I can do a test.

If anyone has a solution with Vista, please share with me.... thanks.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 24
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Finally managed to salvage my dead-for-a-long-time P3 box after replacing mainboard and DVD/CDROM.  Quite a bit of trouble as parts are not easily available locally.

Installed the IDE and tried some codes with removal of the USB cable in between each upload.  The problem of com port in use didn't occur anymorel  smiley-wink

How I wish the problem can be solved on my notebook running Vista so that I can move around with it.  Dual boot is out as I am already running low on disk space on my notebook.  Too bad...

If anyone has any solution or idea with the use of Vista, do share.

Thanks for all the comments, suggestions, and attemps to help.

Regards,
Wongster
Logged

Chile
Offline Offline
Edison Member
*
Karma: 35
Posts: 1251
Arduino rocks?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Check your port activity with

http://technet.microsoft.com/en-us/sysinternals/bb896644.aspx

If you have bluetooth you can try replacing the RXTX Serial Communication Library used by Arduino IDE with my patched one:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1237179908/0

Good luck
Logged

My website: http://ried.cl

0
Offline Offline
Newbie
*
Karma: 0
Posts: 24
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the links.

Portmon also said that the port is in use and cannot connect to it.  Replaced the 2 files didn't solve the problem.  I got a feeling that the port wasn't "released" by arduino after I removed the USB cable and was still "marked" as being held till I disabled it and do a reboot.
Logged

Chile
Offline Offline
Edison Member
*
Karma: 35
Posts: 1251
Arduino rocks?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you change the port number on the Device manager, Ports ? the ftdi driver has a bunch of options to play with
Logged

My website: http://ried.cl

0
Offline Offline
Newbie
*
Karma: 0
Posts: 24
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I changed port number via device manager. Didn't help.

How do I explore the options available with the ftdi driver?
Logged

Chile
Offline Offline
Edison Member
*
Karma: 35
Posts: 1251
Arduino rocks?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

With properties, over that com port, in advanced.

Its very strange your problem, maybe with portmon you can see what thing is capturing your port. First disconnect the arduino, then disable the ftdi driver, then enable it and change the com port number, then connect arduino, checking portmon for misterius port activity
Logged

My website: http://ried.cl

0
Offline Offline
Newbie
*
Karma: 0
Posts: 24
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for your patience with this problem my mine.

I'm not able to disable the com port with arduino disconnected despite  unhidden it from view using "show hidden devices".  I can only disable it with the arduino connected.

One thing I realized is that the work-around didn't work anymore with the 2 files replaced - with the same sequence of disable and unabling the port with a reboot, com port still show as being in use.

Portmon also couldn't monitor the port.
Logged

Pages: 1 [2] 3   Go Up
Jump to: