CommConnection to usb4 (EHS6)? | Telit Cinterion IoT Developer Community
March 30, 2015 - 4:13pm, 4013 views
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:
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?
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.
Please also use upper case for port names.