Hi,

I have this very simple code in C++ for communication with GSM mobile:
[code]
{
 // ser komunikace
 TBlockSerial *ser = new(TBlockSerial);
 ListBox1->Items->Add(GetSerialPortNames());
 Application->ProcessMessages();

 try {
  ser->Connect("COM1");
  ser->Config(9600,8,'N',SB1,false,false);
  Sleep(200);
  // sms v pdu
  //ser->ATCommand(EditCislo->Text+char(0x0d)+MemoText->Lines->Text+char(0x1a));
  ser->ATCommand("AT");
  if ((ser->LastError != 0))
   {
   ShowMessage("Error1: "+ser->LastErrorDesc +",\n" + ser->LastError);
   ser->Free();
   return;
   }
  ser->ATCommand(EditCislo->Text+char(0x0d));
  ser->ATCommand(MemoText->Lines->Text+char(0x1a));

 } catch (...) {
  ShowMessage("Error komunikace.");
 }
 ser->Free();
}
[/code]

And problem is, that everytime i get error 9997: Timeout during operation. 
after all ser->ATCommands....
My System is WinXP + BDS2006 update2. I tried Set Sleep(xxx) in all possible 
steps, but without positive result.
SMS is sended always without problem, but alwais with this error.
Please help. Where is the problem?

Stan


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to