i am a newbie developing a J2ME software that has to send AT commands to a modem using the cell phone line. In order to do it I developed a J2SE application that was able to do that using javax.comm and conneting to COM3 (that is the port where my modem device was installed). Now i am tryng the following:
String ports = System.getProperty("microedition.commports");
CommConnection cc = (CommConnection)Connector.open("comm:com0;baudrate=19200;blocking=off");
int baudrate = cc.getBaudRate();
InputStream is = cc.openInputStream();
OutputStream os = cc.openOutputStream();
String strAtCommand = new String("ATDP9029/r");
I don´t know if this is the right way. Could someone help me ??