Hi all,
I can't obtain my Teensy in the usb list of connected device to my MacBook Air. The java rxtx library is used in my project.
When my mobile is plugged, it's appear in the list. In doubt, I've unload Teensy uploader program but nothing change.
The Teensy module appears in the device list under "System Info"
Anyone can help me ? If you advise me that I will need to change rxtx lib by another, it's not a problem ;-)
The test source is here:
Thank you. Bruno.
I can't obtain my Teensy in the usb list of connected device to my MacBook Air. The java rxtx library is used in my project.
When my mobile is plugged, it's appear in the list. In doubt, I've unload Teensy uploader program but nothing change.
The Teensy module appears in the device list under "System Info"
Anyone can help me ? If you advise me that I will need to change rxtx lib by another, it's not a problem ;-)
The test source is here:
Code:
package teensy;
import gnu.io.CommPortIdentifier;
import java.util.Enumeration;
// don’t forget -Djava.library.path= for the jni access path
/**
* Et merde !!!
* Je cherche mon teensy …
**/
public class Usbsearch {
private Enumeration ports = null;
//search for all the serial ports
public void searchForPorts(){
ports = CommPortIdentifier.getPortIdentifiers();
while (ports.hasMoreElements()){
CommPortIdentifier curPort = (CommPortIdentifier)ports.nextElement();
//get only serial ports
if (curPort.getPortType() == CommPortIdentifier.PORT_SERIAL){
System.out.println( curPort.getName() );
}
}
}
public static void main(String[] args){
Usbsearch us = new Usbsearch();
us.searchForPorts();
}
}
Thank you. Bruno.