On Fri, Oct 2, 2009 at 11:45 AM, Raj <touch.heig...@gmail.com> wrote: > > I am able to send Messages by using example SendMessage program. > However, not able to receive any message using ReceiveMessages > > I have checked through hyperterminal by sending the command > > AT+CMGR=? > > and the result is ERROR > > Is this the reason that I am not able to receive any message? However > the ReadMessages is not showing any error and is exiting normally
could you your log config to DEBUG mode and post your log? especially the log during initialization process. e.g --------- 09/10/02 12:32:28 DEBUG smslib: GTW: modem.ttyUSB1: SEND :AT+CNMI=?(cr) 09/10/02 12:32:28 DEBUG smslib: GTW: modem.ttyUSB1: BUFFER: +CNMI: (0-3),(0-3),(0-3),(0-2),(0,1) OK 09/10/02 12:32:28 DEBUG smslib: GTW: modem.ttyUSB1: RECV :+CNMI: (0-3),(0-3),(0-3),(0-2),(0,1)(cr)OK(cr) 09/10/02 12:32:28 DEBUG smslib: CNMI: Found best match: 3 09/10/02 12:32:28 DEBUG smslib: CNMI: Found best match: 1 09/10/02 12:32:28 DEBUG smslib: CNMI: Found best match: 0 09/10/02 12:32:28 DEBUG smslib: CNMI: Found best match: 2 09/10/02 12:32:28 DEBUG smslib: CNMI: Found best match: 0 09/10/02 12:32:28 DEBUG smslib: GTW: modem.ttyUSB1: SEND :AT+CNMI=3,1,0,2,0(cr) ------ if smslib set the CNMI with the value like AT+CNMI=x,2,x,x,x(cr) The incoming SMS will be notified using +CMT: ... and because the current smslib only waiting for +CMTI: event, you don't receive the SMS in you callback handler. In such case you can check whether your E66 support the CNMI setting something like AT+CNMI=x,1,x,x,x(cr). If it supports such value, maybe you can extend the ATHandler for your E66 and override the function setIndications() and change the line: getModemDriver().write(this.cnmiDetector.getATCommand()); and replace it with the custom CMTI value. Hope it will help you. Regards, Ayah Fathimah --~--~---------~--~----~------------~-------~--~----~ 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 smslib@googlegroups.com To unsubscribe from this group, send email to smslib+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/smslib?hl=en -~----------~----~----~----~------~----~------~--~---