Hello Stan, This is a shortcoming of the ReadMessages example. Its just an example, implementing both the sync (i.e. readMessages() call) method and the async (i.e. callback method) method of reading messages. That's why you get duplicates. Furthermore, you obviously don't delete the messages after reading them, so the same messages are read over and over again.
In you application, you should probably implement EITHER the sync OR the async way. You should also delete messages after processing. On Apr 7, 3:33 am, sbyrdsell <[email protected]> wrote: > To all: > I have this same problem: > > Note: I only have this problem if I send in 10 SMS then start the > SMSServer. > The first 4 messages called readMessagesare then the next 6 messages > called both readMessages and InboundNotification. > > After the messages were loaded, I sent 5 more messages and it called > InboundNotification only. > > Is there fix for this yet? > > Modem: MultiTech > Model:MTCBA-G-U-F4 > > AT+CPMS? > +CPMS: "SM",0,30,"SM",0,30,"SM",0,30 > > Log out put: > Modem Information: > Manufacturer: WAVECOM MODEM > Model: MULTIBAND G850 1900 > Serial No: 011204000000104 > SIM IMSI: ** MASKED ** > Signal Level: 87% > Battery Level: 0% > > Thanks > Stan Byrdsell > > On Mar 30, 1:58 am, Thanasis <[email protected]> wrote: > > > Hi, > > > edit src/java/org/smslib/modem/athandler/ATHandler.java and add as the > > last line in the constructor, the following: > > > setStorageLocations("MT"); > > > Recompile and try once more. > > If everything goes well, give me a confirmation in order to create a > > new ATHandler class specific to Motorola RAZR. > > > On Mar 29, 11:09 pm, Sise <[email protected]> wrote: > > > > Here's my header... I'm having same issues.. > > > > >>> Gateway Status change for modem.com13, OLD: STOPPED -> NEW: RUNNING > > > > Modem Information: > > > Manufacturer: +CGMI: "Motorola CE, Copyright 2004" > > > Model: +CGMM: "GSM900","GSM1800","GSM1900","GSM850","MODEL=V3re" > > > Serial No: +CGSN: IMEI352476022813873 > > > SIM IMSI: ** MASKED ** > > > Signal Level: 67% > > > Battery Level: 90% > > > > and you are right, it's reading from two memory locations IM and MT... > > > Why and how do I stop it...? > > > > Memory Location: MT > > > Memory Location: IM > > > > All other information on thereadmessagesare same but these two > > > lines.. > > > > Thanks for your Help.. > > > > Thanasis wrote: > > > > This could happen if the phone maps two distinct storage identifiers > > > > to the same storage... > > > > > Could you post a log of such a case? You seem to need a specialized AT > > > > handler for the RAZR phone and I need to see the log in order to > > > > propose a solution. > > > > > On Mar 23, 6:56 am, "[email protected]" <[email protected]> wrote: > > > > > I have Motorola Razr phone which I am using to receive a SMS message. > > > > > But whenever there is aninboundmessage it'sreadtwice. Even though > > > > > I have code inInboundnotificationto remove the message when the > > > > > program reads it. > > > > > > Any idea? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
