<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=108142&amp;view=findpost&amp;p=811136</guid>
        <pubDate>Mon, 18 Sep 2000 09:03:00 +0000</pubDate>
        <title>Как работать с модемом в Delphi...</title>
        <link>https://forum.sources.ru/index.php?showtopic=108142&amp;view=findpost&amp;p=811136</link>
        <description><![CDATA[Oleg: Если тебе нравиться программировать ручками смотри:<br>http://msdn.microsoft.com/library/techart/msdn_serial.htm<br>Лучше всего найди компонент для работы с СОМ портом. У меня есть пару, самые мелкие кину счас тебе мылом...<br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Это сообщение было перенесено сюда или объединено из темы &quot;RE: Как работать с модемом в Delphi...&quot;</span></span>]]></description>
        <author>Oleg</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=108142&amp;view=findpost&amp;p=811135</guid>
        <pubDate>Sun, 17 Sep 2000 12:15:00 +0000</pubDate>
        <title>Как работать с модемом в Delphi...</title>
        <link>https://forum.sources.ru/index.php?showtopic=108142&amp;view=findpost&amp;p=811135</link>
        <description><![CDATA[Mihail_R: Спасибо всем, кто откликнулся. Теперь я умею дозваниваться и передавать строку текста по модему методом WriteFile(). Сложность возникла при чтении с модема - не могу :-( Как мне получить данные? Подскажите еще протоколы работы (или ССЫЛКИ, где можно покопать.) ПЛИЗ!!!<br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Это сообщение было перенесено сюда или объединено из темы &quot;RE: Как работать с модемом в Delphi...&quot;</span></span>]]></description>
        <author>Mihail_R</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=108142&amp;view=findpost&amp;p=811130</guid>
        <pubDate>Wed, 06 Sep 2000 07:17:00 +0000</pubDate>
        <title>Как работать с модемом в Delphi...</title>
        <link>https://forum.sources.ru/index.php?showtopic=108142&amp;view=findpost&amp;p=811130</link>
        <description><![CDATA[purpe: А вот, например, как устанавливать настройки ком порта под Виндами:<br>procedure TForm1.Button1Click(Sender: TObject); <br>var <br>  CommPort : string; <br>  hCommFile : THandle; <br>  Buffer : PCommConfig; <br>  size : DWORD; <br>begin <br>  CommPort := 'COM1'; <br>{Open the comm port} <br>  hCommFile := CreateFile(PChar(CommPort), <br>                          GENERIC_WRITE, <br>                          0, <br>                          nil, <br>                          OPEN_EXISTING, <br>                          FILE_ATTRIBUTE_NORMAL, <br>                          0); <br>  if hCommFile=INVALID_HANDLE_VALUE then <br>  begin <br>    ShowMessage('Unable to open '+ CommPort); <br>    exit; <br>  end; <br>{Allocate a temporary buffer} <br>  GetMem(Buffer, sizeof(TCommConfig)); <br>{Get the size of the CommConfig structure} <br>{as it may be different than documented} <br>  size := 0; <br>  GetCommConfig(hCommFile, Buffer^, size); <br>{Free the temporary buffer} <br>  FreeMem(Buffer, sizeof(TCommConfig)); <br>{Allocate the CommConfig structure} <br>  GetMem(Buffer, size); <br>  GetCommConfig(hCommFile, Buffer^, size); <br>{Change the baud rate} <br>  Buffer^.dcb.BaudRate := 1200; <br>{Set the comm port to the new configuration} <br>  SetCommConfig(hCommFile, Buffer^, size); <br>{Free the buffer} <br>  FreeMem(Buffer, size); <br>{Close the comm port} <br>  CloseHandle(hCommFile); <br>end; <br>А модему, наверное, надо отправлять простые команды (его, модемные) через COM порт.]]></description>
        <author>purpe</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=108142&amp;view=findpost&amp;p=811129</guid>
        <pubDate>Wed, 06 Sep 2000 07:05:00 +0000</pubDate>
        <title>Как работать с модемом в Delphi...</title>
        <link>https://forum.sources.ru/index.php?showtopic=108142&amp;view=findpost&amp;p=811129</link>
        <description><![CDATA[purpe: Ну например есть такой пример, позволяющий проверить состояние модема (состояние его регистров)под Win32. <br>procedure TForm1.Button1Click(Sender: TObject); <br>var <br>  CommPort : string; <br>  hCommFile : THandle; <br>  ModemStat : DWord; <br>begin <br>  CommPort := 'COM2'; <br>{Открываем COM порт} <br>  hCommFile := CreateFile(PChar(CommPort), <br>                          GENERIC_READ, <br>                          0, <br>                          nil, <br>                          OPEN_EXISTING, <br>                          FILE_ATTRIBUTE_NORMAL, <br>                          0); <br>  if hCommFile = INVALID_HANDLE_VALUE then <br>  begin <br>    ShowMessage('Unable to open '+ CommPort); <br>    exit; <br>  end; <br>{Get the Modem Status} <br>  if GetCommModemStatus(hCommFile, ModemStat) &lt;&gt; false then begin <br>    if ModemStat and MS_CTS_ON &lt;&gt; 0 then <br>      ShowMessage('The CTS (clear-to-send) is on.'); <br>    if ModemStat and MS_DSR_ON &lt;&gt; 0 then <br>      ShowMessage('The DSR (data-set-ready) is on.'); <br>    if ModemStat and MS_RING_ON &lt;&gt; 0then <br>      ShowMessage('The ring indicator is on.'); <br>    if ModemStat and MS_RLSD_ON &lt;&gt; 0 then <br>      ShowMessage('The RLSD (receive-line-signal-detect) is <br>on.'); <br>end; <br>{закрываем COM порт} <br>  CloseHandle(hCommFile); <br>end;]]></description>
        <author>purpe</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=108142&amp;view=findpost&amp;p=794008</guid>
        <pubDate>Sun, 10 Sep 2000 08:32:00 +0000</pubDate>
        <title>Как работать с модемом в Delphi...</title>
        <link>https://forum.sources.ru/index.php?showtopic=108142&amp;view=findpost&amp;p=794008</link>
        <description><![CDATA[Oleg: Если хочешь использовать модем на низком уровне грамотнее было бы использовать TAPI (читай Microsoft Windows Telephony API Programmer's reference).<br>-- Но можно и руками ;-)<br>Открыть СОМ порт (есть компоненты для работы с СОМ портами)и давать модему AT команды (найди где ни будь описание АТ команд).<br>Например, что бы дозвонится по номеру 1234567<br>напишешь:<br>Port.Send('ATDP1234567')<br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Это сообщение было перенесено сюда или объединено из темы &quot;Как работать с модемом в Delphi...&quot;</span></span>]]></description>
        <author>Oleg</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=108142&amp;view=findpost&amp;p=794007</guid>
        <pubDate>Wed, 06 Sep 2000 06:07:00 +0000</pubDate>
        <title>Как работать с модемом в Delphi...</title>
        <link>https://forum.sources.ru/index.php?showtopic=108142&amp;view=findpost&amp;p=794007</link>
        <description><![CDATA[Mihail_R: Не подскажет ли кто как работать с модемом на Delphi? Конкретно: как заставить дозвониться/ответить, переслать/принять данные... (хотя-бы байт :)<br>Подскажите протоколы, которые использует модем?<br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Это сообщение было перенесено сюда или объединено из темы &quot;Как работать с модемом в Delphi...&quot;</span></span>]]></description>
        <author>Mihail_R</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      </channel>
      </rss>
	