Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi (Xmodem ) "Modem command state not present" problem (https://www.delphipraxis.net/85633-xmodem-modem-command-state-not-present-problem.html)

mr_fahrrad 2. Feb 2007 14:12


(Xmodem ) "Modem command state not present" proble
 
Delphi-Quellcode:
xModem1.OpenDevice;
xModem1.EntercommandState;
I got the error: "Modem command state not present"

how I fix this?

I'm using a gsm modem

mr_fahrrad 2. Feb 2007 18:11

Re: (Xmodem ) "Modem command state not present" pr
 
A change de FlowControl property from fcNone to fcDtrDsr and the problem has fixed...

BUT now I cant get the response of command. I send a command and the state is forever msATSent ... forever waiting a response for modem

code:
Delphi-Quellcode:

   xModem1.OpenDevice;
   xModem1.EntercommandState;
   xmodem1.SendCommand('ATDT1234');
   showMessage('before start wait');
   at:=xmodem1.WaitForAT(0);
   showMessage('after wait'); //NEVER execute code at this point. apear that never get a response for modem
   xmodem1.exitcommandstate;
   xmodem1.closedevice;

anybody have an idea?


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:36 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz