AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Sprachen und Entwicklungsumgebungen Sonstige Fragen zu Delphi Delphi TComPort - send AT commands. Two or more commands
Thema durchsuchen
Ansicht
Themen-Optionen

TComPort - send AT commands. Two or more commands

Ein Thema von mr_fahrrad · begonnen am 2. Feb 2007 · letzter Beitrag vom 2. Feb 2007
Antwort Antwort
mr_fahrrad

Registriert seit: 28. Dez 2006
46 Beiträge
 
#1

TComPort - send AT commands. Two or more commands

  Alt 2. Feb 2007, 11:57
Hi,
In the code:

Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
begin
  ComPort1.WriteStr('AT' + chr(13));
  ComPort1.WriteStr('ATI1' + chr(13));
end;
Only the first command is executed, how i make to the two command be executed?
  Mit Zitat antworten Zitat
v2afrank

Registriert seit: 9. Mai 2005
Ort: Bocholt
571 Beiträge
 
Delphi XE2 Professional
 
#2

Re: TComPort - send AT commands. Two or more commands

  Alt 2. Feb 2007, 12:06
I guess you send both commands, but the modem ignores the second one.
I would suggest you two wait for the "OK" from the modem before you send the second command
  Mit Zitat antworten Zitat
mr_fahrrad

Registriert seit: 28. Dez 2006
46 Beiträge
 
#3

Re: TComPort - send AT commands. Two or more commands

  Alt 2. Feb 2007, 12:21
There are a easy way to make the command wait until the last command return OK before send?
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 05:01 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