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.