CommConnection to usb4 (EHS6)? | Thales IoT Developer Community
March 30, 2015 - 4:13pm, 4306 views
Hi....
I'm trying to set up a read only CommConnection to usb4. I'm already using this for Stdout and I want to implement a command line console in my midlet. When I execute the following:
String connectionProfile="comm:usb4;baudrate=115200;blocking=on;autocts=off;autorts=off";
CommConnection con = (CommConnection) Connector.open(connectionProfile);
...I get back the following exception:
javax.microedition.io.ConnectionNotFoundException: usb4 port not found!
Am I supposed to address usb4 in a different way?
L
Not all USB ports are available in JAVA. Please use System.getProperty("microedition.commports") to find out which USB ports you can use.
thank you. I will try that.
Hello,
Please also use upper case for port names.
Regards,
Bartłomiej