Hello,
I followed the step to step information about how to make an arduino work with my java eclipse IDE. I downloaded the RXTX for my Windows X64 Computer. Copied the files to java lib and ext as instructed. Connected the Arduino, but it keeps telling me:
"Could not find COM port"
Now I know my Port is COM13 but it wont respond. I noticed that the portEnum below does not contain elements because the program does not access the loop at all...
Enumeration portEnum = CommPortIdentifier.getPortIdentifiers();
//First, Find an instance of serial port as set in PORT_NAMES.
while (portEnum.hasMoreElements()) {
CommPortIdentifier currPortId = (CommPortIdentifier) portEnum.nextElement();
for (String portName : PORT_NAMES) {
System.out.println(portName);
if (currPortId.getName().equals(portName)) {
portId = currPortId;
break;
}
}
}
The portEnum indicates it does not contain any elements thus, it is not entering the loop. Can Someone tell me what I am doing wrong?
I need the arduino to trigger events and deliver data.