/*private static String port = "/dev/ttyS20"; //Modem Port.
private static int bitRate = 115200; //this is also optional. leave as
it is.
private static String modemName = "ZTE"; //this is optional.
private static String modemPin = "0000"; //Pin code if any have
assigned to the modem.
*/
$lsusb
Bus 001 Device 005: ID 12d1:1446 Huawei Technologies Co., Ltd. E1552 (HSPA
modem)
$ ls /sys/bus/usb-serial/devices/ -ltrah
total 0
drwxr-xr-x 4 root root 0 2012-10-09 19:33 ..
drwxr-xr-x 2 root root 0 2012-10-09 19:41 .
lrwxrwxrwx 1 root root 0 2012-10-09 19:41 ttyUSB2 ->
../../../devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.4/ttyUSB2
lrwxrwxrwx 1 root root 0 2012-10-09 19:41 ttyUSB1 ->
../../../devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.3/ttyUSB1
lrwxrwxrwx 1 root root 0 2012-10-09 19:41 ttyUSB0 ->
../../../devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0/ttyUSB0
I am using above code in my project. i am using airtel 3g stick on ubuntu
11.04 os. after execution of my project i am error as shown below....
This software is distributed under the terms of the Apache v2.0 License.
Web Site: http://smslib.org
Version: 3.5.1
javax.faces.FacesException: #{noticeBean.send}:
org.smslib.GatewayException: Comm library exception:
java.lang.RuntimeException: javax.comm.NoSuchPortException
at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:90)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
--
You received this message because you are subscribed to the Google Groups
"SMSLib Discussion Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
To view this discussion on the web visit
https://groups.google.com/d/msg/smslib/-/kjxZ0S2S5zQJ.
For more options, visit https://groups.google.com/groups/opt_out.