jung6717 / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

Serial port enumeration takes 30 secs or more in presence of a bluetooth dongle #200

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Connect some bluetooth dongles
2.Open Arduino IDE, you will experience a startup delay
3.Open Tools menu, you will experience a startup delay also

What is the expected output? What do you see instead?
The same behaviour of a system without a bluetooth dongle

What version of the Arduino software are you using? On what operating
system?  Which Arduino board are you using?
All affected <=0018

Please provide any additional information below.
It is a faulty RXTX library for Windows. It waits until each port answer 
to enumerate ports, not asking the system.

Solution is to replace the dll file with a patched one (does not work in 
Windows 9x) or to find another way to enumerate ports:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1237179908

Original issue reported on code.google.com by erwinr...@gmail.com on 7 Feb 2010 at 7:41

GoogleCodeExporter commented 8 years ago
There's a similar bug in version 0.18 or greater for GNU/Linux. I have tried it 
with the stock RXTX library as well as Debian's (2.2-pre2-3) and both seem to 
have the same results.

Steps to reproduce:
1. Have laptop's Bluetooth turned on (which is connected via USB internally).
2. Open Arduino IDE, experience startup delay.
3. Open Serial Window, experience startup delay.

.. 
1. Turn off Bluetooth through software.
2. Open Arduino IDE and there is no delay.
3. Open serial window and there is no delay.

System information:
Debian GNU/Linux squeeze/sid
Linux 2.6.34-1-amd64

Arduino versions affected: 0018-0021

Original comment by g1adrift on 1 Nov 2010 at 10:03

GoogleCodeExporter commented 8 years ago
This bug is exclusively produced by the windows dll, I have fixed the problem 
with my modifications.

Original comment by sinstan...@gmail.com on 1 Nov 2010 at 10:14

GoogleCodeExporter commented 8 years ago
Fixed library download:
http://servicios.ried.cl/arduino/temp/rxtxSerial-2.2_fixed_2009-03-17.rar

For any Windows NT based OS x86/x64

Original comment by erwinr...@gmail.com on 4 Feb 2011 at 1:05

GoogleCodeExporter commented 8 years ago
Can you attach the changes you made to the source as well?

Original comment by dmel...@gmail.com on 4 Feb 2011 at 1:16

GoogleCodeExporter commented 8 years ago
Attached.

I mailed the solution to some rxtx lib developer, but it seems they don't care 
about this delay.

Original comment by erwinr...@gmail.com on 4 Feb 2011 at 10:03

Attachments:

GoogleCodeExporter commented 8 years ago
Issue 548 has been merged into this issue.

Original comment by c.mag...@bug.st on 15 Dec 2012 at 11:13

GoogleCodeExporter commented 8 years ago
An outstanding fix was implemented here:

http://arduino.cc/forum/index.php/topic,141797.0.html

if someone could check this out, it helps us to push forward the fix into 1.0.4

Original comment by c.mag...@bug.st on 16 Jan 2013 at 6:10

GoogleCodeExporter commented 8 years ago
Issue 143 has been merged into this issue.

Original comment by c.mag...@bug.st on 16 Jan 2013 at 6:11

GoogleCodeExporter commented 8 years ago
I've tried Federico's fix, using Win7 and Uno R3.  It seems to work fine for 
me.  Arduino IDE starts up quickly, and Tools menu has no discernible delay.

The only other observation I've had is that opening the serial monitor no 
longer restarts the ATmega.  I consider that a feature.  ;)

Original comment by jtec...@gmail.com on 24 Apr 2013 at 6:17

GoogleCodeExporter commented 8 years ago
Please continue conversation here https://github.com/arduino/Arduino/issues/200

Original comment by federico...@gmail.com on 22 Oct 2013 at 10:18

GoogleCodeExporter commented 8 years ago
This should be fixed by moving from RXTX to JSSC on latest IDE 1.5.6.

Original comment by c.mag...@arduino.cc on 21 Feb 2014 at 10:17