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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
