hi all,

I tried to send the command AT + CMGL = "ALL" to the modem sms, but the data I 
get is a blank. It was as if the modem does not respond.code is as follows

***** start code ***************
  
gsm:=TBlockserial.Create;
  
gsm.Config(lport_baud_value,lport_data_bits_value,lport_parity_mode_char,lport_stop_bits_value,false,false);
  gsm.Connect(lport);
  Writeln(myFile,'Trying to connect to '+lport+'...',gsm.LastErrorDesc);  

  gsm.ATCommand('AT+CMGL="ALL"');
  sleep(20000);
  Writeln(myFile,'AT+CMGL="ALL".... ',gsm.ATResult);
  repeat
  grecv:=gsm.RecvPacket(20000);
  writeln(myFile,'Data di repat: ',grecv);
  until grecv='';

***** end of code ***************

why did this happen? anyone can help me pls....



      

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to