Hi,

Have you tried 115200? Is it more stable or not?

I assume that when you get this "Error 31", its during the gateway
initialization, right?
If your COM4 is a *real* comm port (not a usb), you could also try
once with RxTx and see if that's more stable.

On Sep 9, 10:03 pm, Ivy Wang <[email protected]> wrote:
> Hi Thanasis,
>
> Thanks for the reply.
>
> Please excuse my lack of hardware background. What are considered
> "standard"? I took 230400 only because it's the biggest number in the
> drop down list of my modem properties window. I did some more search
> in the manual just now, trying to find the standard rates. I found it
> saying " Baud rate: 1.2 bps ... 460 kbps ". So does this mean it
> supports 12 - 460000?? Very confused. What should I use??
>
> I then did some more search on the net and found this website (http://
> digital.ni.com/public.nsf/allkb/D37754FFA24F7C3F86256706005B9BE7)
> Tried a few more baud rate in the first set, e.g. 115200, 14400, 300.
>
> On Sep 9, 1:05 am, Thanasis <[email protected]> wrote:
>
>
>
> > Hi,
>
> > A quick observation is that the baud rate you are using is non-
> > standard. Switch to the closest standard rate and check if this solves
> > your issues.
>
> > On Sep 9, 3:18 am, Ivy Wang <[email protected]> wrote:
>
> > > Hi there,
>
> > > I've been using the SMSLib for my development. Recently I've been
> > > getting this error inconsistently. Sometimes I can send messages with
> > > no problem and sometimes I get this error.
>
> > > 16:47:43,307 INFO  [Thread-27                     ] smslib
> > >               - GTW: default.samba75.modem: Opening: COM4 @230400
> > > Error 31 SetCommConfig
> > > Error 31 SetCommConfig
> > > org.smslib.GatewayException: Comm library exception:
> > > java.lang.RuntimeException:
> > >  javax.comm.UnsupportedCommOperationException: Win32 Comm Driver:
> > > Error 31
> > >         at org.smslib.modem.SerialModemDriver.connectPort
> > > (SerialModemDriver.java
> > > :97)
> > >         at org.smslib.modem.AModemDriver.connect(AModemDriver.java:
> > > 110)
> > >         at org.smslib.modem.ModemGateway.startGateway
> > > (ModemGateway.java:158)
> > >         at org.smslib.Service$1Starter.run(Service.java:252)
>
> > > I looked it up on the net and seemed like a driver problem. Does
> > > anybody know how to fix it please??  Thanks in advanced!
>
> > > =============================================================
> > > I'm developing on an OSGi platform. This post (http://code.google.com/
> > > p/smslib/issues/detail?id=138) has been extremely helpful for me. I
> > > just want to thank those who've contributed.
>
> > > And here's a list of what I've used:
> > > SMSLib- v.3.4.2. (downloaded 
> > > fromhttp://smslib.org/download/osgi/smslib-3.4.2.jar,
> > > which doesn't seem to be there anymore...)
> > > JavaComm - v 2.0.1 
> > > (fromhttp://www.knopflerfish.org/releases/current/docs/jars/comm-win32/com...)
>
> > > OS: Windows Vista
> > > OSGi Framework: Apache Felix - v.1.8.0
> > > ==============================================================
>
> > > Cheers,
> > > Ivy
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to