Thanks Pietro, surprisingly the port is now recognised. I run # dmesg again today, and the port was seen.
Here is the new error. ---------------------------------------------------------------------------------------------------- java.lang.RuntimeException: Error opening "/dev/ttyUSB0" permission denied at com.sun.comm.LinuxDriver.getCommPort(LinuxDriver.java:66) ---------------------------------------------------------------------------------------------------- What should I do to have the port accessible? I wonder why am denied permission. Regards, Simon On Oct 28, 2:01 pm, Pietro <[email protected]> wrote: > Is weird dmesg do not report the port, check for errors. One way I > think is execute the command: > > ls -l /dev/*|less > > before connection and after connection, linux kernel create the port > on the fly after phone connection. You must locate what entry has been > added (a hard work). The other thing is to send the output of two > commands to a file and check differences with the diff comand. > > HTH > > On Oct 28, 3:12 pm, Simon <[email protected]> wrote: > > > > > Thanks for this. The error has now changed.The selected port doesn't > > exist. My port was dev/ttyUSB0 . On running # dmesg, no port is shown. > > > How do I get the exact ports to fill in for serpath0 > > = ...................... > > > Simon. > > > On Oct 27, 8:52 pm, Elias <[email protected]> wrote: > > > > I have the following configuration (using the Sun library). I have > > > moved to openSuSe 11.1, but if I remember well, the configuration was > > > the same in 10.3: > > > > libLinuxSerialParallel.so is located in /usr/lib/jvm/java/jre/lib/ > > > i386 > > > comm.jar is in /usr/lib/jvm/java/jre/lib/ext > > > > I am using a bluetooth phone, so I have the following in /usr/lib/jvm/ > > > java/jre/lib/javax.comm.properties > > > You should adjust for your usb port. > > > > serpath0 = /dev/rfcomm0 > > > #serpath1 = /dev/ttyS1 > > > > On Oct 27, 12:13 pm, Pietro <[email protected]> wrote: > > > > > I think the sun library (LinuxSerialParallel) must to be in /usr/lib > > > > directory, that is the problem, if the problem persist, put it in /lib > > > > directory. > > > > > HTH > > > > > On Oct 28, 2:51 am, Simon <[email protected]> wrote: > > > > > > Am using a usb modem. Could it be missing device drivers? > > > > > > Cheers, > > > > > Simon. > > > > > On Oct 26, 11:20 pm, Thanasis <[email protected]> wrote: > > > > > > > You must be using JavaComm v3, right? This library works on some > > > > > > distros and doesn't work on others, god knows why... > > > > > > Have you tried with RxTx? > > > > > > > On Oct 26, 5:59 pm, Simon <[email protected]> wrote: > > > > > > > > Hi, am using openSUSE 10.3 with smslib. I have followed the > > > > > > > installation steps closely, but don't know what I have left out. > > > > > > > Here is the error. > > > > > > > ================================================================ > > > > > > > > Error loading LinuxSerialParallel: > > > > > > > java.lang.UnsatisfiedLinkError: no > > > > > > > LinuxSerialParallel in java.library.path > > > > > > > Exception in thread "Thread-8" java.lang.UnsatisfiedLinkError: > > > > > > > com.sun.comm.Unix.isDevLink(Ljava/lang/String;)Z > > > > > > > at com.sun.comm.Unix.isDevLink(Native Method) > > > > > > > at com.sun.comm.PathBundle.add(PathBundle.java:108) > > > > > > > at > > > > > > > com.sun.comm.PlatformPortBundle.<init>(PlatformPortBundle.java:44) > > > > > > > at > > > > > > > javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java: > > > > > > > 138) > > > > > > > at org.smslib.modem.SerialModemDriver.connectPort > > > > > > > (SerialModemDriver.java:63) > > > > > > > at > > > > > > > org.smslib.modem.AModemDriver.connect(AModemDriver.java:89) > > > > > > > at > > > > > > > org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:84) > > > > > > > at org.smslib.Service.startService(Service.java:181) > > > > > > > at > > > > > > > org.fcitmuk.communication.sms.SMSServer.run(SMSServer.java:307) > > > > > > > at java.lang.Thread.run(Thread.java:619) > > > > > > > > ======================================================= > > > > > > > > Will be glad to get help. > > > > > > > Simon.- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
