You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the bluetooth COM port gets listed correctly in the console, Processing throws a gnu.io.PortInUseException, while no other software is accessing the port. After that initial run, the port is no longer listed by Processing. The port is working properly with the Teraterm software.
I searched the repository and the related issue reports did not offer any conclusive solution.
SETUP:
-Processing 2.0b8
-Windows 7 32-bit
-Bluetooth adapter connected to PIC microprocessor (for sending some data)
-COM14 port virtual serial
Windows reports COM14 as working properly from the properties of the device in the bluetooth device list.
Teraterm can see the device and receive data correctly.
PROCESSING:
Using the readStringUntil() example from Processing website by Tom Igoe, the bluetooth device gets listed by Serial.list(), the first time around. After showing the list, Processing gets stuck in this line:
myPort = new Serial(this, Serial.list()[4], 9600);
and throws an error:
gnu.io.PortInUseException: Unknown Application
at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:354)
at processing.serial.Serial.(Serial.java:178)
at processing.serial.Serial.(Serial.java:116)
at Serial_Test.setup(Serial_Test.java:31)
at processing.core.PApplet.handleDraw(PApplet.java:2241)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
at processing.core.PApplet.run(PApplet.java:2140)
at java.lang.Thread.run(Thread.java:662)
Exception in thread "Animation Thread" java.lang.RuntimeException: Error inside Serial.()
at processing.serial.Serial.errorMessage(Serial.java:666)
at processing.serial.Serial.(Serial.java:190)
at processing.serial.Serial.(Serial.java:116)
at Serial_Test.setup(Serial_Test.java:31)
at processing.core.PApplet.handleDraw(PApplet.java:2241)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
at processing.core.PApplet.run(PApplet.java:2140)
at java.lang.Thread.run(Thread.java:662)
But I do not have any other software using the port.
After that, running the code again will NOT list the COM14 port anymore.
Opening Teraterm again is no problem and reads data properly.
Now if I have Teraterm open and reading the port, then it shows up again in Processing, but that's about it.
Seeing that the data gets properly read in Teraterm without doing anything special, and that I am not using an Arduino board, I am inclined to say that there is a problem with Processing.
The text was updated successfully, but these errors were encountered:
Win7 32bit, PDE 2.0b8 ISSUE:
After the bluetooth COM port gets listed correctly in the console, Processing throws a gnu.io.PortInUseException, while no other software is accessing the port. After that initial run, the port is no longer listed by Processing. The port is working properly with the Teraterm software.
I searched the repository and the related issue reports did not offer any conclusive solution.
SETUP:
-Processing 2.0b8
-Windows 7 32-bit
-Bluetooth adapter connected to PIC microprocessor (for sending some data)
-COM14 port virtual serial
Windows reports COM14 as working properly from the properties of the device in the bluetooth device list.
Teraterm can see the device and receive data correctly.
PROCESSING:
Using the readStringUntil() example from Processing website by Tom Igoe, the bluetooth device gets listed by Serial.list(), the first time around. After showing the list, Processing gets stuck in this line:
myPort = new Serial(this, Serial.list()[4], 9600);
and throws an error:
gnu.io.PortInUseException: Unknown Application
at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:354)
at processing.serial.Serial.(Serial.java:178)
at processing.serial.Serial.(Serial.java:116)
at Serial_Test.setup(Serial_Test.java:31)
at processing.core.PApplet.handleDraw(PApplet.java:2241)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
at processing.core.PApplet.run(PApplet.java:2140)
at java.lang.Thread.run(Thread.java:662)
Exception in thread "Animation Thread" java.lang.RuntimeException: Error inside Serial.()
at processing.serial.Serial.errorMessage(Serial.java:666)
at processing.serial.Serial.(Serial.java:190)
at processing.serial.Serial.(Serial.java:116)
at Serial_Test.setup(Serial_Test.java:31)
at processing.core.PApplet.handleDraw(PApplet.java:2241)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
at processing.core.PApplet.run(PApplet.java:2140)
at java.lang.Thread.run(Thread.java:662)
But I do not have any other software using the port.
After that, running the code again will NOT list the COM14 port anymore.
Opening Teraterm again is no problem and reads data properly.
Now if I have Teraterm open and reading the port, then it shows up again in Processing, but that's about it.
Seeing that the data gets properly read in Teraterm without doing anything special, and that I am not using an Arduino board, I am inclined to say that there is a problem with Processing.
The text was updated successfully, but these errors were encountered: