Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
09.02.2010 at 20:03:42
News: Server upgrade went fine, you are now at the new system


Pages: 1
Arduino-0009 interface very slow on XP (Read 2915 times)
dickda
YaBB Newbies
*
Offline

Arduino rocks

Posts: 4
San Francisco
Gender: male
Arduino-0009 interface very slow on XP
17.08.2007 at 06:38:43
 
I am running the user interface to a USB Diecimila board from my XP laptop.  Interface comes up about 5 minutes after I execute the run.bat.  Menu buttons "File", "Edit", "Sketch" and "Help" generate pulldowns.  "Tools" hangs - unable to access the submenu to change the baud rate.  Have installed the FTDI USB Drivers.  I can compile a sketch, but cannot download to the board (response stk500_getsync(): not in sync: resp=0x00).

The board appears to be running normally with about a 7 second delay for the boot loader.  I have a green activity light.

I have the same very slow interface (Arduino-0008) problem with Arduino board using a serial connection.  Insanely slow interface also shows up on a Win2000 machine I have.

I have an iMac running 10.4 or could boot up under Linux on my laptop, but I want to get at least one of these boards talking to my laptop.

I carefully read the notes about the other XP user with similar woes in Troubleshooting.

Can't seem to get off the ground.  Any ideas appreciated.

-thingy
Back to top
 
 
View Profile   IP Logged
mellis
YaBB Administrator
*****
Offline



Posts: 3006
Cambridge, MA
Re: Arduino-0009 interface very slow on XP
Reply #1 - 17.08.2007 at 13:58:53
 
My guess would be that the slowness occurs when the Arduino software (using the RXTX serial library) attempts to get a list of all the serial ports (e.g. COM1) on your computer.  This happens when you start the program and when you try to open the Tools menu.  It might be because you have a COM port that does something strange when the software tries to check if it exists.

Can you take a look in the Device Manager and see what COM ports you have?  I'm not sure which categories they will be in, but I think they should be labeled with the name of their port (e.g. COM5).  If you can, post the full list here.  Also, note which port your Arduino board is on (it will be called a USB-to-serial device).  

Once you know the COM port of your Arduino, open the Arduino preferences file (in Documents and Settings\<USERNAME>\Application Data\Arduino\preferences.txt)  and set the value of serial.port accordingly.  That is, you want to edit the line to look something like this:

serial.port=COM4

(make sure you edit this file when the Arduino software is not running).  If there's an ATmega8 on your board, you'll also need to search for atmega168 and change it to atmega8.

After modifying these settings, run Arduino and try to upload.
Back to top
 
 
View Profile | WWW   IP Logged
dickda
YaBB Newbies
*
Offline

Arduino rocks

Posts: 4
San Francisco
Gender: male
Re: Arduino-0009 interface very slow on XP
Reply #2 - 17.08.2007 at 21:39:53
 
I used the device manager to get a list of the Ports, determined that COM22 was the one Arduino was using by watching the list as I plugged in the USB connection.  I went to the preference.txt file and edited it to say serial.port=COM22.  Here the long list that I have from the device manager:
Bluetooth Serial Port (COM10)
Bluetooth Serial Port (COM11)
Bluetooth Serial Port (COM12)
Bluetooth Serial Port (COM13)
Bluetooth Serial Port (COM14)
Bluetooth Serial Port (COM15)
Bluetooth Serial Port (COM5)
Bluetooth Serial Port (COM6)
Bluetooth Serial Port (COM7)
Bluetooth Serial Port (COM8)
Bluetooth Serial Port (COM9)
Communications Port (COM1)
Communications Port (COM21)
Communications Port (COM23)
Compact Flash OX16CF950 (COM19)
USB Serial Port (COM22)

Ran run.bat and the interface was still very slow (~5 minutes) to launch.  Tools menu button causes the app to hang.

I disabled all the Bluetooth ports and the Arduino interface came up promptly.  The Tools submenu was now accessible!!!

The serial Tools->Serial Port selection showed:
COM1
COM3
COM22

COM22 was selected (and confirmed by removing and attaching my USB connection to the board).

I compiled Blink sketchbook, pressed reset on the board and selected upload.  The interface replied:
avrdude: ser_open(): can't open device "COM22": The system cannot find the file specied.

I have not installed the AVRISP mkII LibUSB Drivers.

Thanks a lot for the advice!
Back to top
 
 
View Profile   IP Logged
mellis
YaBB Administrator
*****
Offline



Posts: 3006
Cambridge, MA
Re: Arduino-0009 interface very slow on XP
Reply #3 - 17.08.2007 at 22:10:15
 
Two things I would try:
- disabling the compact flash device / com port
- reassigning your Arduino (USB serial device) to a lower com port

Then edit your preferences.txt file again, and try uploading.
Back to top
 
 
View Profile | WWW   IP Logged
dickda
YaBB Newbies
*
Offline

Arduino rocks

Posts: 4
San Francisco
Gender: male
Re: Arduino-0009 interface very slow on XP
Reply #4 - 17.08.2007 at 22:52:02
 
Smiley

When I disabled the Bluetooth ports, the interface came up promptly and Tools submenu was accessible.

I compiled Blink sketchbook, pressed reset on the board and selected upload.  The interface replied:
avrdude: ser_open(): can't open device "COM22": The system cannot find the file specied.

I took your advice and disabled the Flash port.  I reassigned the USB port from 22 to 2.  I tried to upload Blink and it worked fine.

I compiled Digital Loop, it upload fine and worked.

Ah, truly you are a magician!  If you are ever in San Francisco, I need to buy you lunch!!!!

Back to top
 
 
View Profile   IP Logged
mellis
YaBB Administrator
*****
Offline



Posts: 3006
Cambridge, MA
Re: Arduino-0009 interface very slow on XP
Reply #5 - 17.08.2007 at 23:15:57
 
Awesome.  Glad you got things working and thanks for reporting back with the solution.  I've added it to the troubleshooting guide: http://www.arduino.cc/en/Guide/Troubleshooting#toc9
Back to top
 
 
View Profile | WWW   IP Logged
Pages: 1