Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth device: COM port problem #1743

Closed
TheDreamMaster opened this issue Apr 26, 2013 · 2 comments
Closed

Bluetooth device: COM port problem #1743

TheDreamMaster opened this issue Apr 26, 2013 · 2 comments

Comments

@TheDreamMaster
Copy link

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.

@benfry
Copy link
Contributor

benfry commented Apr 26, 2013

Duplicate of #1374.

@benfry benfry closed this as completed Apr 26, 2013
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants