Hi,

Your phone does not response correctly to the CREG command.
You can try and remark the "waitForNetworkRegistration();" call found
in AModemDriver.java and see if it can start up correctly.

A better solution, though, is to try with another phone.

On Jun 1, 7:35 am, Bruno Gomes <[email protected]> wrote:
> Thanasis,
>
> When i tryed type the second and third commands on hyperterminal, an ERROR
> message below is popping up.
>
> The complet Log:
>
> Example: Send message from a serial gsm modem.
> 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
> Version: 3.4.1
> 01/06/2009 01:31:44 org.slf4j.impl.JCLLoggerAdapter info
> INFO: 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
> 01/06/2009 01:31:44 org.slf4j.impl.JCLLoggerAdapter info
> INFO: Version: 3.4.1
> 01/06/2009 01:31:44 org.slf4j.impl.JCLLoggerAdapter info
> INFO: JRE Version: 1.6.0_13
> 01/06/2009 01:31:44 org.slf4j.impl.JCLLoggerAdapter info
> INFO: JRE Impl Version: 11.3-b02
> 01/06/2009 01:31:44 org.slf4j.impl.JCLLoggerAdapter info
> INFO: O/S: Windows XP / x86 / 5.1
> 01/06/2009 01:31:44 org.slf4j.impl.JCLLoggerAdapter info
> INFO: GTW: modem.com1: Starting gateway, using Generic AT Handler.
> 01/06/2009 01:31:44 org.slf4j.impl.JCLLoggerAdapter info
> INFO: GTW: modem.com1: Opening: COM3 @57600
> 01/06/2009 01:31:48 org.slf4j.impl.JCLLoggerAdapter warn
> WARNING: GTW: modem.com1: Erroneous CPIN response, proceeding with defaults.
> 01/06/2009 01:31:51 org.slf4j.impl.JCLLoggerAdapter info
> INFO: GTW: modem.com1: GSM: Invalid CREG response.
> org.smslib.GatewayException: GSM: Invalid CREG response.
>     at
> org.smslib.modem.AModemDriver.waitForNetworkRegistration(AModemDriver.java: 
> 436)
>     at org.smslib.modem.AModemDriver.connect(AModemDriver.java:167)
>     at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:158)
>     at org.smslib.Service$1Starter.run(Service.java:239)
> 01/06/2009 01:31:59 org.slf4j.impl.JCLLoggerAdapter warn
> WARNING: WatchDog: Gateway: modem.com1 restarting.
> 01/06/2009 01:31:59 org.slf4j.impl.JCLLoggerAdapter info
> INFO: GTW: modem.com1: Stopping gateway...
> 01/06/2009 01:31:59 org.slf4j.impl.JCLLoggerAdapter info
> INFO: GTW: modem.com1: Closing: COM3 @57600
> 01/06/2009 01:31:59 org.slf4j.impl.JCLLoggerAdapter info
> INFO: GTW: modem.com1: Gateway stopped.
> 01/06/2009 01:31:59 org.slf4j.impl.JCLLoggerAdapter info
> INFO: GTW: modem.com1: Starting gateway, using Generic AT Handler.
> 01/06/2009 01:31:59 org.slf4j.impl.JCLLoggerAdapter info
> INFO: GTW: modem.com1: Opening: COM3 @57600
> 01/06/2009 01:32:04 org.slf4j.impl.JCLLoggerAdapter warn
> WARNING: GTW: modem.com1: Erroneous CPIN response, proceeding with defaults.
> 01/06/2009 01:32:06 org.slf4j.impl.JCLLoggerAdapter info
> INFO: GTW: modem.com1: GSM: Invalid CREG response.
> 01/06/2009 01:32:06 org.slf4j.impl.JCLLoggerAdapter error
> SEVERE: WatchDog: error while starting Gateway: modem.com1
> org.smslib.GatewayException: GSM: Invalid CREG response.
>     at
> org.smslib.modem.AModemDriver.waitForNetworkRegistration(AModemDriver.java: 
> 436)
>     at org.smslib.modem.AModemDriver.connect(AModemDriver.java:167)
>     at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:158)
>     at org.smslib.Service$WatchDog.process(Service.java:1395)
>     at org.smslib.scheduler.ASchedulerTask.run(ASchedulerTask.java:80)
>     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
>     at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
>     at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
>     at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access 
> $101(Unknown
> Source)
>     at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPer 
> iodic(Unknown
> Source)
>     at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Un 
> known
> Source)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> Source)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>     at java.lang.Thread.run(Unknown Source)
>
> 2009/5/25 Thanasis <[email protected]>
>
>
>
>
>
>
>
> > Hello,
>
> > Can you please enable the maximum level logging? I need to see the
> > exact response that you are getting from your phone.
> > Alternatively, just connect with hyperterminal and type in these three
> > commands:
>
> > ATE1 <enter>
> > AT+CREG? <enter>
> > AT+CREG=? <enter>
>
> > On May 25, 3:21 pm, Bruno Gomes <[email protected]> wrote:
> > > Hi,
>
> > > I'm new here, and i'm trying use smslib to send sms through Modem
> > > Sony-Ericsson md300, but, the error message below is popping up.
>
> > > Example: Send message from a serial gsm modem.
> > > 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
> > > Version: 3.4.1
> > > 25/05/2009 09:13:14 org.slf4j.impl.JCLLoggerAdapter info
> > > INFO: 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
> > > 25/05/2009 09:13:14 org.slf4j.impl.JCLLoggerAdapter info
> > > INFO: Version: 3.4.1
> > > 25/05/2009 09:13:14 org.slf4j.impl.JCLLoggerAdapter info
> > > INFO: JRE Version: 1.6.0_13
> > > 25/05/2009 09:13:14 org.slf4j.impl.JCLLoggerAdapter info
> > > INFO: JRE Impl Version: 11.3-b02
> > > 25/05/2009 09:13:14 org.slf4j.impl.JCLLoggerAdapter info
> > > INFO: O/S: Windows XP / x86 / 5.1
> > > 25/05/2009 09:13:14 org.slf4j.impl.JCLLoggerAdapter info
> > > INFO: GTW: modem.com1: Starting gateway, using Generic AT Handler.
> > > 25/05/2009 09:13:14 org.slf4j.impl.JCLLoggerAdapter info
> > > INFO: GTW: modem.com1: Opening: COM4 @57600
> > > 25/05/2009 09:13:21 org.slf4j.impl.JCLLoggerAdapter info
> > > INFO: GTW: modem.com1: GSM: Invalid CREG response.
> > > *org.smslib.GatewayException: GSM: Invalid CREG response.
> > >     at
>
> > org.smslib.modem.AModemDriver.waitForNetworkRegistration(AModemDriver.java:
> > 436)
> > >     at org.smslib.modem.AModemDriver.connect(AModemDriver.java:167)
> > >     at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:158)
> > >     at org.smslib.Service$1Starter.run(Service.java:239)*
>
> > > I used this configuration:
> > > SerialModemGateway gateway = new SerialModemGateway("modem.com1", "COM4",
> > > 57600, "Sony Ericsson", "MD300");
>
> > > --
> > > Bruno Gomes
>
> --
> Bruno Gomes
> E-mail: [email protected]
> MSN: [email protected]
> Mobile: +55 (84) 8876 3871
> Currículo Lattes:http://lattes.cnpq.br/5173495516982528
--~--~---------~--~----~------------~-------~--~----~
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