Problems with startService() in SMSLib

Closed
shortwaves Posts 73 Registration date Sunday May 11, 2008 Status Member Last seen April 6, 2011 - May 23, 2008 at 03:48 AM
 Ruchi - Sep 7, 2009 at 04:03 AM
hello every body,

I'm working on a project "SMS Server", and I'm using the library SMSLib. I found some troubles with the function startService(). I used the smssvr core functions for my project, but when I'm going to add the modem specified (with correct parameters). the service could not start and I cannot read any messages. this is a part of the error displayed :

Starting Service
0 [main] WARN org.smslib - Callback indications were *not* set succesfully!
org.smslib.ProtocolNotSupportedException
at org.smslib.gateway.ModemDriver.connect(ModemDriver.java:130)
at org.smslib.gateway.ModemGateway.startGateway(ModemGateway.java:93)
at org.smslib.Service.startService(Service.java:119)
at modem.ReadMessages.doIt(ReadMessages.java:79)
at modem.ReadMessages.main(ReadMessages.java:167)
WriteFile returns error 6

this error is displayed from the example "ReadMessages".

and this is haw I defined my gateway (nokia 6020 on port COM4) :

ModemGateway gateway = new ModemGateway("modem.com4", "COM4", 9600, "Nokia", "Nokia 6020", srv.getLogger());

please help me, this project is my ending study project ...

3 responses

shortwaves Posts 73 Registration date Sunday May 11, 2008 Status Member Last seen April 6, 2011
May 23, 2008 at 04:05 AM
up

I'm sorry for the double post, but it's so important... please!
0
shortwaves Posts 73 Registration date Sunday May 11, 2008 Status Member Last seen April 6, 2011
May 23, 2008 at 05:35 AM
up
0
I think your phone does not support the protocol. What is the protocol that you used? Is it TEXT or PDU?

Just try these two protocols.

This is the way how you can change the protocol in your code.

gateway.setProtocol(Protocols.PDU);

OR

gateway.setProtocol(Protocols.TEXT);
0