Error inside Serial.<init>() driving me crazy!
in
Integration and Hardware
•
3 years ago
I am trying to connect to Lego NXT via Bluetooth using the Serial library.
After one succesful connection, all I get now is this error message: "Error inside Serial.<init>() gnu.io.PortInUseException: Unknown Application".
Having trawled the internet for every possible solution to this problem and still getting this #€!§ error, I am finally declaring myself checkmate... *sigh*
QUESTIONS
- Does the version of RXTX (2.1-7) that ships with the current release of Processing use lock files?
- Does the version of RXTX (2.2pre2) available at http://jlog.org/rxtx-mac.html use lock files? According to this section in the RXTX wiki, releases above 2.1-7 use I/O Kit instead of lock files. If this is true, why do I need to run the supplied fixperm-217-leo.sh script to fix permissions, append group memberships and create lock directories?
- Using Terminal to check my group memberships, I am not a member of the "uucp" group after running fixperm-217-leo.sh. Even as an admin using all "sudo"s in the world, I am not able to become a member of the "uucp" group. How does this affect my use of the RXTX library? Any ideas of why I am not able to join this group?
- Using the Serial library to connect to my Arduino is succesful. Could it be that the errors are linked to my Bluetooth setup rather than RXTX?
SETUP
Mac Os X Version 10.5.8
2.2 GHz Intel Core 2 Duo
Processing 1.2.1 (clean install)
RXTX 2.1-7 (the ones that ship with Processing 1.2.1)
No other RXTX files present anywhere in my system
JAVA
J2SE 5.0 (32 bit) version 1.5.0_26-b03
Java SE 6 (64 bit) version 1.6.0_22-b04-307
J2SE 5.0 (64 bit) version 1.5.0_26-b03
J2SE 1.4.2 (32 bit) version 1.4.2_22 (disabled)
CODE
Serial port;
void setup() {
size(400, 400);
println(Serial.list());
port = new Serial(this, Serial.list()[0], 9600);
}
ERROR
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
[0] "/dev/tty.NXT"
[1] "/dev/cu.NXT"
[2] "/dev/tty.Bluetooth-Modem"
[3] "/dev/cu.Bluetooth-Modem"
[4] "/dev/tty.Bluetooth-PDA-Sync"
[5] "/dev/cu.Bluetooth-PDA-Sync"
(BTW: I moved my question from http://forum.processing.org/#Topic/25080000000066289 to new seperate thread instead of a comment to an already answered question... still getting acquainted to the modus operadi of the new forum, sorry.)
After one succesful connection, all I get now is this error message: "Error inside Serial.<init>() gnu.io.PortInUseException: Unknown Application".
Having trawled the internet for every possible solution to this problem and still getting this #€!§ error, I am finally declaring myself checkmate... *sigh*
QUESTIONS
- Does the version of RXTX (2.1-7) that ships with the current release of Processing use lock files?
- Does the version of RXTX (2.2pre2) available at http://jlog.org/rxtx-mac.html use lock files? According to this section in the RXTX wiki, releases above 2.1-7 use I/O Kit instead of lock files. If this is true, why do I need to run the supplied fixperm-217-leo.sh script to fix permissions, append group memberships and create lock directories?
- Using Terminal to check my group memberships, I am not a member of the "uucp" group after running fixperm-217-leo.sh. Even as an admin using all "sudo"s in the world, I am not able to become a member of the "uucp" group. How does this affect my use of the RXTX library? Any ideas of why I am not able to join this group?
- Using the Serial library to connect to my Arduino is succesful. Could it be that the errors are linked to my Bluetooth setup rather than RXTX?
SETUP
Mac Os X Version 10.5.8
2.2 GHz Intel Core 2 Duo
Processing 1.2.1 (clean install)
RXTX 2.1-7 (the ones that ship with Processing 1.2.1)
No other RXTX files present anywhere in my system
JAVA
J2SE 5.0 (32 bit) version 1.5.0_26-b03
Java SE 6 (64 bit) version 1.6.0_22-b04-307
J2SE 5.0 (64 bit) version 1.5.0_26-b03
J2SE 1.4.2 (32 bit) version 1.4.2_22 (disabled)
CODE
Serial port;
void setup() {
size(400, 400);
println(Serial.list());
port = new Serial(this, Serial.list()[0], 9600);
}
ERROR
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
[0] "/dev/tty.NXT"
[1] "/dev/cu.NXT"
[2] "/dev/tty.Bluetooth-Modem"
[3] "/dev/cu.Bluetooth-Modem"
[4] "/dev/tty.Bluetooth-PDA-Sync"
[5] "/dev/cu.Bluetooth-PDA-Sync"
(BTW: I moved my question from http://forum.processing.org/#Topic/25080000000066289 to new seperate thread instead of a comment to an already answered question... still getting acquainted to the modus operadi of the new forum, sorry.)
3