OK, I think I got it to work. I gathered from the comm exception that there was somthing wrong with properties of the serialport and uncommented the line: serialPort.setFlowControlMode(SERIALPORT.FLOWCONTROL_RTSCTS_IN). After that it worked perfectly. Iguess that mean that I am running without flowcontrol. Will that work in the long run?
On Jan 14, 11:21 pm, Bo Visfeldt <[email protected]> wrote: > Yes. First I created the file gnu.io.rxtx.properties in jre/lib/rxt > with the following line in it: > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 > (Also placed it in the executing directory, which is in the classpath > just to be sure) > Did not work. > > then I created a symbolic link from /dev/ttyUSB0 to /dev/ttyS20 as > surgested, but still did not work. > > ... But i do not think that the port is the problem as the CommTest > says: > Found port: /dev/ttyUSB0 > Trying at 9600... no device found > Trying at 19200... no device found > Trying at 38400... no device found > Trying at 57600... no device found > Trying at 115200... no device found > > It seems that the port is detected but the reply does not somehow get > through. > Any other ideas? > > On Jan 14, 8:10 am, Thanasis <[email protected]> wrote: > > > Have you read > > this:http://smslib.org/doc/smslib/troubleshooting/#Linux_and_undetectable_... > > ? > > > On Jan 13, 9:14 pm, Bo Visfeldt <[email protected]> wrote: > > > > I am having huge trouble getting the CommTest to work. > > > The device is a Sony Ericsson k300i, should be supported and is > > > connected to /dev/ttyUSB0. > > > It works perfectly if i use a terminal to access it. > > > > When I try with RxTx i get: > > > Found port: /dev/ttyUSB0 > > > Trying at 1200... no device found > > > Trying at 2400... no device found > > > Trying at 4800... no device found > > > Trying at 9600... no device found > > > Trying at 19200... no device found > > > Trying at 38400... no device found > > > Trying at 57600... no device found > > > Trying at 115200... no device found > > > > I tried switching RxTx with Java Comm v3. ... and it works - > > > SOMETIMES. > > > More specifically: It works at all the above baudrates IF the comm > > > library has tried and failed on ttyS0 first. > > > If It does not - it fails. > > > > if using the comm library AND i manage to get it to work,i get errors > > > anyway: > > > Trying at 4800...java.io.IOException: Not all params are > > > supported by kernel > > > at com.sun.comm.LinuxSerial.nativeSetSerialPortParams(Native > > > Method) > > > at com.sun.comm.LinuxSerial.setFlowControlMode > > > (LinuxSerial.java:374) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > Method) > > > at sun.reflect.NativeMethodAccessorImpl.invoke > > > (NativeMethodAccessorImpl.java:57) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke > > > (DelegatingMethodAccessorImpl.java:43) > > > at java.lang.reflect.Method.invoke(Method.java: > > > 616) > > > at org.smslib.helper.SerialPort.setFlowControlMode > > > (SerialPort.java:580) > > > at misc.CommTest.main(CommTest.java:53) > > > Getting Info... Found: AT+CGMMAAB-1021071- > > > BV > > > > Am really not sure what to do. > > > would prefer rxtx if I could get it to work, but it does appearently > > > not detect the modem. the comm library is quite odd and does not seem > > > stable. > > > > what to do?
-- You received this message because you are subscribed to the Google Groups "SMSLib for Java User Group" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/smslib?hl=en.
