No I don't have any other modem...

This is a Wavecom chipset modem, which I suppose is considered one of best
in the industry !!
It supports GSM 07.05 AT command specifications

On Thu, Nov 26, 2009 at 3:04 AM, Thanasis <[email protected]> wrote:

> Hi,
>
> Its not logical to switch to TEXT mode in order to overcome this
> problem...
> Do you have any other modems to test with? Maybe this one is too
> weird!
>
> On Nov 24, 7:21 pm, Atul Kumar <[email protected]> wrote:
> > I have been finally able to overcome this issue.
> >
> > 1. I changed the protocol to TEXT
> > 2. I had to comment the following section from ATHandler.java otherwise I
> > was not able to set the TEXT protocol
> > -------------------------------------------------
> > if (getModemDriver().isOk())
> >   {
> >    getModemDriver().write("AT+CSCS=\"8859-1\"\r");
> >    getModemDriver().getResponse();
> >    return (getModemDriver().isOk());
> >   }
> >   return false;
> > -----------------------------------------------------
> > By making these changes, I am able to get the inbound notification for
> the
> > incoming messages.I suspect the handling of AT+CMGL or AT+CMGR command is
> > different for this modem.
> >
> > However, now a small issue is faced. When the application is running, and
> > first message is sent, I can see the modem restarting by itself. As a
> > result, the gateway is also restarted after that and after some 1 minute
> of
> > time, the application reads that message through the InboundNotification
> and
> > the message is found twice in the inbox.
> >
> > After this all new messages are read successfully without any errors.
> > Following is the log of the application for the first message. As can be
> > seen in the log, the same message is read twice
> >
> >
> ---------------------------------------------------------------------------­--------------------
> > Example: Read messages from a serial gsm modem.
> > SMSLib: A Java API library for sending and receiving SMS via a GSM modem
> or
> > othe
> > r supported gateways.
> > This software is distributed under the terms of the Apache v2.0 License.
> > Web Site:http://smslib.org
> > Version: 3.4.4
> > Nov 24, 2009 10:43:15 PM org.smslib.helper.Logger logInfo
> > INFO: SMSLib: A Java API library for sending and receiving SMS via a GSM
> > modem o
> > r other supported gateways.
> > This software is distributed under the terms of the Apache v2.0 License.
> > Web Site:http://smslib.org
> > Nov 24, 2009 10:43:15 PM org.smslib.helper.Logger logInfo
> > INFO: Version: 3.4.4
> > Nov 24, 2009 10:43:15 PM org.smslib.helper.Logger logInfo
> > INFO: JRE Version: 1.6.0_13
> > Nov 24, 2009 10:43:15 PM org.smslib.helper.Logger logInfo
> > INFO: JRE Impl Version: 11.3-b02
> > Nov 24, 2009 10:43:15 PM org.smslib.helper.Logger logInfo
> > INFO: O/S: Windows XP / x86 / 5.1
> > Nov 24, 2009 10:43:15 PM org.smslib.helper.Logger logInfo
> > INFO: GTW: modem.com1: Starting gateway, using Wavecom (Generic) AT
> Handler.
> > Nov 24, 2009 10:43:15 PM org.smslib.helper.Logger logInfo
> > INFO: GTW: modem.com1: Opening: COM1 @115200
> > Nov 24, 2009 10:43:33 PM org.smslib.helper.Logger logInfo
> > INFO: GTW: modem.com1: GSM: Registered to home network.>>> Gateway Status
> change for modem.com1, OLD: STOPPED -> NEW: STARTING
> >
> > Nov 24, 2009 10:43:33 PM org.smslib.helper.Logger logInfo
> > INFO: GTW: modem.com1: Gateway started.>>> Gateway Status change for
> modem.com1, OLD: STARTING -> NEW: STARTED
> >
> > Modem Information:
> >   Manufacturer:  WAVECOM WIRELESS CPU
> >   Model:  MULTIBAND  900E  1800
> >   Serial No: 352238020010757
> >   SIM IMSI: ** MASKED **
> >   Signal Level: 100%
> >   Battery Level: 0%
> >
> > Now Sleeping - Hit <enter> to stop service.>>> Gateway Status change for
> modem.com1, OLD: STARTED -> NEW: RESTART
> >
> > Nov 24, 2009 10:44:30 PM org.smslib.helper.Logger logWarn
> > WARNING: Gateway: modem.com1 restarting.
> > Nov 24, 2009 10:44:30 PM org.smslib.helper.Logger logInfo
> > INFO: GTW: modem.com1: Stopping gateway...>>> Gateway Status change for
> modem.com1, OLD: RESTART -> NEW: STOPPING
> >
> > Nov 24, 2009 10:44:30 PM org.smslib.helper.Logger logInfo
> > INFO: GTW: modem.com1: Closing: COM1 @115200
> > Nov 24, 2009 10:44:30 PM org.smslib.helper.Logger logInfo
> > INFO: GTW: modem.com1: Gateway stopped.
> > Nov 24, 2009 10:44:30 PM org.smslib.helper.Logger logInfo
> > INFO: GTW: modem.com1: Starting gateway, using Wavecom (Generic) AT
> Handler.
> > Nov 24, 2009 10:44:30 PM org.smslib.helper.Logger logInfo
> > INFO: GTW: modem.com1: Opening: COM1 @115200>>> Gateway Status change for
> modem.com1, OLD: STOPPING -> NEW: STOPPED
> > >>> Gateway Status change for modem.com1, OLD: STOPPED -> NEW: RESTART
> >
> > Nov 24, 2009 10:44:48 PM org.smslib.helper.Logger logInfo
> > INFO: GTW: modem.com1: GSM: Registered to home network.>>> Gateway Status
> change for modem.com1, OLD: RESTART -> NEW: STARTING
> >
> > Nov 24, 2009 10:44:48 PM org.smslib.helper.Logger logInfo
> > INFO: GTW: modem.com1: Gateway started.>>> Gateway Status change for
> modem.com1, OLD: STARTING -> NEW: STARTED
> >
> > OKMGL: 2,"REC READ","+919814760090",,"09/11/24,22:40:20+22"2"
> >
> > >>> New Inbound message detected from Gateway: modem.com1
> >
> >
> ===========================================================================­====
> > << InboundMessage >>
> >
> ---------------------------------------------------------------------------­----
> >  Gateway Id: modem.com1
> >  Encoding: 7-bit
> >  Date: Tue Nov 24 22:40:20 IST 2009
> >  Dispatched via SMSC: null
> >  Text: J
> >  PDU data: null
> >  Originator: +919814012345
> >  Memory Index: 1
> >  Multi-part Memory Index:
> >  Memory Location: SM
> >  Source / Destination Ports: -1 / -1
> >
> ===========================================================================­====
> >
> > >>> New Inbound message detected from Gateway: modem.com1
> >
> >
> ===========================================================================­====
> > << InboundMessage >>
> >
> ---------------------------------------------------------------------------­----
> >  Gateway Id: modem.com1
> >  Encoding: 7-bit
> >  Date: Tue Nov 24 22:40:20 IST 2009
> >  Dispatched via SMSC: null
> >  Text: J
> >  PDU data: null
> >  Originator: +919814012345
> >  Memory Index: 2
> >  Multi-part Memory Index:
> >  Memory Location: SM
> >  Source / Destination Ports: -1 / -1
> >
> ===========================================================================­====
> >
> > Nov 24, 2009 10:49:07 PM org.smslib.helper.Logger logInfo
> > INFO: GTW: modem.com1: Stopping gateway...>>> Gateway Status change for
> modem.com1, OLD: STARTED -> NEW: STOPPING
> >
> > Nov 24, 2009 10:49:07 PM org.smslib.helper.Logger logInfo
> > INFO: GTW: modem.com1: Closing: COM1 @115200
> > Nov 24, 2009 10:49:07 PM org.smslib.helper.Logger logInfo
> > INFO: GTW: modem.com1: Gateway stopped.>>> Gateway Status change for
> modem.com1, OLD: STOPPING -> NEW: STOPPED
> >
> > Any ideas on this?
> > On Thu, Nov 19, 2009 at 9:47 PM, Atul Kumar <
> [email protected]>wrote:
>  >
> >
> >
> > > I have downloaded the latest version only i.e. v3.4.4. Actually
> > > "smslib-v3[1].4.4" is the name of the zip file that is downloaded
> >
> > > Following is the latest log of the ReadMessages program. The
> interrupted
> > > exception is not coming, but the "String index out of range: -1" is
> still
> > > coming. In this log the "E" message was already there in the inbox. It
> was
> > > read fine, but when I sent the new message, the exception came. Is
> there any
> > > way to debug the actual issue?
> >
> > >
> ---------------------------------------------------------------------------­---------------------------------------------------
> >
> > > Example: Read messages from a serial gsm modem.
> > > SMSLib: A Java API library for sending and receiving SMS via a GSM
> modem or
> > > othe
> > > r supported gateways.
> > > This software is distributed under the terms of the Apache v2.0
> License.
> > > Web Site:http://smslib.org
> > > Version: 3.4.4
> > > Nov 19, 2009 9:44:13 PM org.smslib.helper.Logger logInfo
> > > INFO: SMSLib: A Java API library for sending and receiving SMS via a
> GSM
> > > modem o
> >
> > > r other supported gateways.
> > > This software is distributed under the terms of the Apache v2.0
> License.
> > > Web Site:http://smslib.org
> > > Nov 19, 2009 9:44:14 PM org.smslib.helper.Logger logInfo
> > > INFO: Version: 3.4.4
> > > Nov 19, 2009 9:44:14 PM org.smslib.helper.Logger logInfo
> > > INFO: JRE Version: 1.6.0_13
> > > Nov 19, 2009 9:44:14 PM org.smslib.helper.Logger logInfo
> > > INFO: JRE Impl Version: 11.3-b02
> > > Nov 19, 2009 9:44:14 PM org.smslib.helper.Logger logInfo
> > > INFO: O/S: Windows XP / x86 / 5.1
> > > Nov 19, 2009 9:44:14 PM org.smslib.helper.Logger logInfo
> > > INFO: GTW: modem.com1: Starting gateway, using Wavecom (Generic) AT
> > > Handler.
> > > Nov 19, 2009 9:44:14 PM org.smslib.helper.Logger logInfo
> >
> > > INFO: GTW: modem.com1: Opening: COM1 @115200
> > > Nov 19, 2009 9:44:31 PM org.smslib.helper.Logger logInfo
> >
> > > INFO: GTW: modem.com1: GSM: Registered to home network.
> > > >>> Gateway Status change for modem.com1, OLD: STOPPED -> NEW: STARTING
> > > Nov 19, 2009 9:44:31 PM org.smslib.helper.Logger logInfo
> >
> > > INFO: GTW: modem.com1: Gateway started.
> > > >>> Gateway Status change for modem.com1, OLD: STARTING -> NEW: STARTED
> > >  Modem Information:
> > >   Manufacturer:  WAVECOM WIRELESS CPU
> > >   Model:  MULTIBAND  900E  1800
> > >   Serial No: 352238020010757
> > >   SIM IMSI: ** MASKED **
> > >   Signal Level: 90%
> > >   Battery Level: 0%
> >
> > >
> ===========================================================================­====
> >
> > > << InboundMessage >>
> >
> > >
> ---------------------------------------------------------------------------­----
> > >  Gateway Id: modem.com1
> > >  Encoding: 7-bit
> > >  Date: Thu Nov 19 21:17:28 IST 2009
> > >  Dispatched via SMSC: 919814047105
> > >  Text: E
> > >  PDU data: 45
> >
> > >  Originator: +919814012345
> > >  Memory Index: 1
> > >  Multi-part Memory Index:
> > >  Memory Location: SM
> > >  Source / Destination Ports: -1 / -1
> >
> > >
> ===========================================================================­====
> > >  Now Sleeping - Hit <enter> to stop service.
> > > Exception in thread "SMSLib-AsyncMessageProcessor : modem.com1"
> > > java.lang.String
> > > IndexOutOfBoundsException: String index out of range: -1
> > >         at java.lang.String.substring(Unknown Source)
> > >         at
> > > org.smslib.modem.ModemGateway.readMessagesPDU(ModemGateway.java:527)
> > >         at
> > > org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:206)
> >
> > >         at
> > > org.smslib.modem.AModemDriver$AsyncMessageProcessor.run(AModemDriver.
> > > java:891)
> >
> > >
> ---------------------------------------------------------------------------­---------------------------------------------------------------------------­-------------
> >
> > >   On Thu, Nov 19, 2009 at 4:28 PM, Thanasis <[email protected]>
> wrote:
> >
> > >> I don't get this naming: "smslib-v3[1].4.4". You can find
> >
> > ...
> >
> > read more »
>
> --
>
> 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]<smslib%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/smslib?hl=en.
>
>
>

--

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