Hi Yogesh,

I've experienced similar problems to this, and I found a solution that
works in some cases.  In org.smslib.modem.SerialModemDriver, try
removing the following lines:

getSerialPort().notifyOnOutputEmpty(true);
getSerialPort().notifyOnBreakInterrupt(true);
getSerialPort().notifyOnFramingError(true);
getSerialPort().notifyOnOverrunError(true);
getSerialPort().notifyOnParityError(true);

They should be located around line 70-80.

This should not have a significant effect, as there is no handling of
these events beyond logging them.  No doubt Thanasis can correct me if
I'm wrong!

Hope this helps - let us know.

Alex


On Mar 9, 9:07 pm, Thanasis <[email protected]> wrote:
> Hi,
>
> This has come up before in the list and I really don't know what's the
> fix...
>
> You could try both JavaComm and RxTx and see if one of those behave
> better.
> You can also experiment with the "SERIAL_RTSCTS_OUT" setting 
> (seehttp://smslib.org/doc/smslib/parameters/) and see if it makes any
> difference.
>
> On Mar 9, 4:06 pm, Yogesh Mangrulkar <[email protected]>
> wrote:
>
>
>
> > Hi,
>
> > I'm trying to use SMSlib for reading and writing messages.
> > I'm using a Sony Ericsson K530i phone. The phone works well when I
> > connect it through Hyper terminal and I'm able to read the basic phone
> > info and messages present in the phone.
>
> > When trying to use SmsLib to do the same, my PC shuts down abruptly
> > and restarts as soon as any command is written out to the phone using
> > getModemDriver().write() command.
> > I figured this out when trying to debug the cause.
>
> > The drivers used are updated. Here is a log printed just before the
> > system reboots.
>
> > 09 Mar 2010 13:12:33,078 - INFO sms.readwrite - SMSLib: A Java API
> > library for sending and receiving SMS via a GSM modem or other
> > supported gateways.
> > This software is distributed under the terms of the Apache v2.0
> > License.
> > Web Site:http://smslib.org
> > 09 Mar 2010 13:12:33,109 - INFO sms.readwrite - Version: 3.4.5
> > 09 Mar 2010 13:12:33,109 - INFO sms.readwrite - JRE Version: 1.6.0_07
> > 09 Mar 2010 13:12:33,109 - INFO sms.readwrite - JRE Impl Version: 10.0-
> > b23
> > 09 Mar 2010 13:12:33,109 - INFO sms.readwrite - O/S: Windows XP /
> > x86 / 5.1
> > 09 Mar 2010 13:12:33,250 - DEBUG sms.readwrite - Initialized.
> > 09 Mar 2010 13:12:33,250 - DEBUG sms.readwrite - Running...
> > 09 Mar 2010 13:12:33,250 - DEBUG sms.readwrite - DelayQueueManager
> > running...
> > 09 Mar 2010 13:12:33,281 - DEBUG sms.readwrite - Initialized.
> > 09 Mar 2010 13:12:33,296 - DEBUG sms.readwrite - Running...
> > 09 Mar 2010 13:12:33,296 - DEBUG sms.readwrite - NotifyQueueManager
> > running...
> > 09 Mar 2010 13:12:33,562 - DEBUG sms.readwrite - Initialized.
> > 09 Mar 2010 13:12:33,562 - DEBUG sms.readwrite - Running...
> > 09 Mar 2010 13:12:33,609 - INFO sms.readwrite - GTW: modem.com10:
> > Starting gateway, using Generic AT Handler.
> > 09 Mar 2010 13:12:33,609 - INFO sms.readwrite - GTW: modem.com10:
> > Opening: COM10 @9600
> > 09 Mar 2010 13:12:48,562 - DEBUG sms.readwrite - Running...
> > 09 Mar 2010 13:12:55,453 - DEBUG sms.readwrite - Initialized.
> > 09 Mar 2010 13:12:55,453 - DEBUG sms.readwrite - Running...
> > 09 Mar 2010 13:12:56,406 - DEBUG sms.readwrite - Initialized.
> > 09 Mar 2010 13:12:56,406 - DEBUG sms.readwrite - ** disabled **
> > 09 Mar 2010 13:12:57,281 - DEBUG sms.readwrite - GTW: modem.com10:
> > ModemReader thread started.
> > 09 Mar 2010 13:12:58,093 - DEBUG sms.readwrite - GTW: modem.com10:
> > AsyncNotifier thread started.
> > 09 Mar 2010 13:12:58,890 - DEBUG sms.readwrite - GTW: modem.com10:
> > AsyncMessageProcessor thread started.
> > 09 Mar 2010 13:12:59,718 - DEBUG sms.readwrite - GTW: modem.com10:
> > clearBuffer() called.
>
> > Please advice if any specific settings are required for this phone.
>
> > I have used the same setup using a Nokia N86 phone and it works well.
> > The only reason I'm trying to use this phone is that Nokia N86 does
> > not allow me to read messages. The writing module is working great
> > with it.
>
> > Thanks and Regards,
> > Yogesh

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib 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