joberec / unojoy

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

UnoJoyProcessingVisualizer bad com port discovery #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
On my computer COM3 is occupied by "Dell Wireless 5530 HSPA Mini-Card Device 
Management".

When starting UnoJoyProcessingVisualizer.exe nothing seem to happen. No window 
opens. But there is a java process visible in the Task Manager.

Starting UnoJoyProcessingVisualizer from the command line gives the following 
output:

>"C:\Program Files (x86)\Java\jdk1.6.0_20\bin\java" -classpath 
lib\core.jar;lib\RXTXcomm.jar;lib\serial.jar;lib\UnoJoyProcessingVisualizer.jar 
UnoJoyProcessingVisualizer
WARNING:  RXTX Version mismatch
        Jar version = RXTX-2.2pre1
        native lib Version = RXTX-2.2pre2
COM3
Error 0x5 at ..\src\termios.c(892): Zugriff verweigert

gnu.io.PortInUseException: Unknown Application
        at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:467)
        at processing.serial.Serial.<init>(Unknown Source)
        at processing.serial.Serial.<init>(Unknown Source)
        at UnoJoyProcessingVisualizer.setup(UnoJoyProcessingVisualizer.java:104)
        at processing.core.PApplet.handleDraw(Unknown Source)
        at processing.core.PApplet.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)
Exception in thread "Animation Thread" java.lang.RuntimeException: Error inside 
Serial.<init>()
        at processing.serial.Serial.errorMessage(Unknown Source)
        at processing.serial.Serial.<init>(Unknown Source)
        at processing.serial.Serial.<init>(Unknown Source)
        at UnoJoyProcessingVisualizer.setup(UnoJoyProcessingVisualizer.java:104)
        at processing.core.PApplet.handleDraw(Unknown Source)
        at processing.core.PApplet.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)

Disabling the devices which occupy COM3 and COM4 ports and restarting the 
computer will make UnoJoyProcessingVisualizer pick COM4. But my Arduino is on 
COM7. Manually reassigning Arduino to COM4 finally will lead to success. But 
usually COM4 is already used by a driver in my system which com port assignment 
I cannot change.

> What is the expected output?

A window should show the exception instead of just doing nothing.

I don't know if it is possible to fix com port discovery. But in every case 
it'd be a good step to allow the user to select the com port.

Original issue reported on code.google.com by wirch.ed...@gmail.com on 9 Jan 2013 at 7:46

GoogleCodeExporter commented 8 years ago
I've updated the repo to include the new version - it now has a little dropdown 
that lets you select a serial port.  Having an issue where it's not working 
with an Arduino Mega, but need to test it more.

Original comment by alan.chatham@gmail.com on 20 Jan 2013 at 8:28