<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP and Serial Ports</title>
	<atom:link href="http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/</link>
	<description>My Tech Discovery Blog on PHP, Ajax, Security and Web 2.0</description>
	<lastBuildDate>Thu, 04 Mar 2010 06:33:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: vinu</title>
		<link>http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/comment-page-1/#comment-39714</link>
		<dc:creator>vinu</dc:creator>
		<pubDate>Tue, 03 Feb 2009 04:29:30 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/#comment-39714</guid>
		<description>There seems to be a third party component called ActiveComPort which allows you to communicate with Serial Ports in Windows.
http://www.activexperts.com/activcomport/
Here&#039;s their PHP example:
http://www.activexperts.com/activcomport/howto/php/</description>
		<content:encoded><![CDATA[<p>There seems to be a third party component called ActiveComPort which allows you to communicate with Serial Ports in Windows.<br />
<a href="http://www.activexperts.com/activcomport/" rel="nofollow">http://www.activexperts.com/activcomport/</a><br />
Here&#8217;s their PHP example:<br />
<a href="http://www.activexperts.com/activcomport/howto/php/" rel="nofollow">http://www.activexperts.com/activcomport/howto/php/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/comment-page-1/#comment-39711</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sat, 31 Jan 2009 14:58:03 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/#comment-39711</guid>
		<description>Hey, just wondering is there any way of reading serial port with windows, help

Thanks</description>
		<content:encoded><![CDATA[<p>Hey, just wondering is there any way of reading serial port with windows, help</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinu</title>
		<link>http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/comment-page-1/#comment-39501</link>
		<dc:creator>vinu</dc:creator>
		<pubDate>Fri, 19 Sep 2008 07:12:14 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/#comment-39501</guid>
		<description>Tracker,
You can get the contact details for RÃ©my Sanchez from the phpclasses site:
http://www.phpclasses.org/browse/author/428373.html</description>
		<content:encoded><![CDATA[<p>Tracker,<br />
You can get the contact details for RÃ©my Sanchez from the phpclasses site:<br />
<a href="http://www.phpclasses.org/browse/author/428373.html" rel="nofollow">http://www.phpclasses.org/browse/author/428373.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tracker</title>
		<link>http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/comment-page-1/#comment-39498</link>
		<dc:creator>Tracker</dc:creator>
		<pubDate>Thu, 11 Sep 2008 01:14:18 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/#comment-39498</guid>
		<description>Hello. Has anyone seen or heard from RÃ©my Sanchez? The class has an error line 503 and Id like to know more about it. There is no documentation for the class and his personal website has vanished.</description>
		<content:encoded><![CDATA[<p>Hello. Has anyone seen or heard from RÃ©my Sanchez? The class has an error line 503 and Id like to know more about it. There is no documentation for the class and his personal website has vanished.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: B Karthick</title>
		<link>http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/comment-page-1/#comment-38900</link>
		<dc:creator>B Karthick</dc:creator>
		<pubDate>Wed, 23 Jul 2008 18:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/#comment-38900</guid>
		<description>Dear Rod,

Usually the manufacturer supplies code (in C, Java and VB). It may work with small modification for all Displays.</description>
		<content:encoded><![CDATA[<p>Dear Rod,</p>
<p>Usually the manufacturer supplies code (in C, Java and VB). It may work with small modification for all Displays.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rod</title>
		<link>http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/comment-page-1/#comment-34637</link>
		<dc:creator>Rod</dc:creator>
		<pubDate>Thu, 12 Jun 2008 19:50:09 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/#comment-34637</guid>
		<description>I would like to know if you have documentation on how to implement communication with customer display for a POS project im working on. Are the commands etc different from manufactures? where can i get the commands, etc sample will be great thanks.</description>
		<content:encoded><![CDATA[<p>I would like to know if you have documentation on how to implement communication with customer display for a POS project im working on. Are the commands etc different from manufactures? where can i get the commands, etc sample will be great thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: edwinspire</title>
		<link>http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/comment-page-1/#comment-32166</link>
		<dc:creator>edwinspire</dc:creator>
		<pubDate>Mon, 19 May 2008 13:20:34 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/#comment-32166</guid>
		<description>Saludos nuevamente:
Quiero comunicarles a las personas que visitan el foro y buscan informacion acerca de PHP, PHP-GTK2 y/o comunicacion con el puerto serie desde PHP pueden comunicarse conmigo a mi email.

Esta disponible el nuevo codigo fuente de la Aplicacion PHP_GSM, para descargarla en http://edwinspire.890m.com

Hay dos versiones:

- 1 - Una integramente hecha en PHP (Pero en las pruebas realizadas bajo windows se ha notado un alto consumo de memoria RAM y algo de lentitud en la ejecucion del programa.)

- 2 - Otra version donde la parte correspondiente a la comunicacion con el puerto esta Programada en C, el resto del programa sigue escrito en PHP (Con este cambio se noto una mejora notable en el desempeÃ±o del programa)

Probado unicamente con el Motorola L6i sin ningun problema, y diseÃ±ado tanto para Win como para LINUX.</description>
		<content:encoded><![CDATA[<p>Saludos nuevamente:<br />
Quiero comunicarles a las personas que visitan el foro y buscan informacion acerca de PHP, PHP-GTK2 y/o comunicacion con el puerto serie desde PHP pueden comunicarse conmigo a mi email.</p>
<p>Esta disponible el nuevo codigo fuente de la Aplicacion PHP_GSM, para descargarla en <a href="http://edwinspire.890m.com" rel="nofollow">http://edwinspire.890m.com</a></p>
<p>Hay dos versiones:</p>
<p>- 1 &#8211; Una integramente hecha en PHP (Pero en las pruebas realizadas bajo windows se ha notado un alto consumo de memoria RAM y algo de lentitud en la ejecucion del programa.)</p>
<p>- 2 &#8211; Otra version donde la parte correspondiente a la comunicacion con el puerto esta Programada en C, el resto del programa sigue escrito en PHP (Con este cambio se noto una mejora notable en el desempeÃ±o del programa)</p>
<p>Probado unicamente con el Motorola L6i sin ningun problema, y diseÃ±ado tanto para Win como para LINUX.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ever</title>
		<link>http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/comment-page-1/#comment-32091</link>
		<dc:creator>Ever</dc:creator>
		<pubDate>Fri, 16 May 2008 18:56:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/#comment-32091</guid>
		<description>Hi everybody!! I was wondering if some could help me!  I need to make a button that sends something trough the serial port without having to refresh all the web page. Something that u click and u see an inmediate reaction in the port. Thanks. Anything would be usefull!</description>
		<content:encoded><![CDATA[<p>Hi everybody!! I was wondering if some could help me!  I need to make a button that sends something trough the serial port without having to refresh all the web page. Something that u click and u see an inmediate reaction in the port. Thanks. Anything would be usefull!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alfredo</title>
		<link>http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/comment-page-1/#comment-32084</link>
		<dc:creator>alfredo</dc:creator>
		<pubDate>Thu, 15 May 2008 00:51:18 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/#comment-32084</guid>
		<description></description>
		<content:encoded><![CDATA[<p>hey mike fleld</p>
<p>I think your code is incomplete in<br />
function readInput($f,$t)<br />
{<br />
$i=0;<br />
$buffer = â€œâ€?;<br />
while($i â€œ.$buffer;<br />
}</p>
<p>can you check it and post again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EDWINSPIRE</title>
		<link>http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/comment-page-1/#comment-32039</link>
		<dc:creator>EDWINSPIRE</dc:creator>
		<pubDate>Mon, 21 Apr 2008 05:10:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/#comment-32039</guid>
		<description>Saludos:
He programado en PHP un software que permite comunicarse con el puerto serial, enviarle un comando AT y leer su respuesta.
El software esta diseÃ±ado para enviar y recibir SMS tanto en formato PDU como en modo Texo.
Para mas informacion y descargas visiten edwinspire.890m.com hagan clic en PROGRAMACION PHP

Translation (google translate):
	
Hello!
I programmed a PHP software that allows you to communicate with the serial port, send an AT command and read its response.
The software is designed to send and receive SMS in either mode as PDU Texo.
For more information and downloads visit edwinspire.890m.com click on PHP Programming</description>
		<content:encoded><![CDATA[<p>Saludos:<br />
He programado en PHP un software que permite comunicarse con el puerto serial, enviarle un comando AT y leer su respuesta.<br />
El software esta diseÃ±ado para enviar y recibir SMS tanto en formato PDU como en modo Texo.<br />
Para mas informacion y descargas visiten edwinspire.890m.com hagan clic en PROGRAMACION PHP</p>
<p>Translation (google translate):</p>
<p>Hello!<br />
I programmed a PHP software that allows you to communicate with the serial port, send an AT command and read its response.<br />
The software is designed to send and receive SMS in either mode as PDU Texo.<br />
For more information and downloads visit edwinspire.890m.com click on PHP Programming</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike FIeld</title>
		<link>http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/comment-page-1/#comment-31985</link>
		<dc:creator>Mike FIeld</dc:creator>
		<pubDate>Mon, 17 Mar 2008 22:12:07 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/#comment-31985</guid>
		<description>Hi,

I am able to read/write to a serial port under windows with nothing more exotic than the code below. I am just working on exec()ing a &#039;mode&#039; command to set the port speeds and so on.

Mike 
&lt;?php
function readInput($f,$t)
{
  $i=0;
  $buffer = &quot;&quot;;
  while($i  &quot;.$buffer;
}

  error_reporting(E_ALL);

  $f = fopen(&quot;COM4&quot;,&quot;r+&quot;);
  if(!$f)
  {
     die(&quot;Unable to open serial port\n&quot;);
  }
  $i=0;
  fwrite($f,&quot;Hello\r\n&quot;);
  while(true)
  {
    fwrite($f,&quot;AT-&quot;);
    sleep(1);
    readInput($f,5);
    fwrite($f,&quot;AT+CMGF=1-&quot;);
    sleep(1);
    readInput($f,5);
    fwrite($f,&quot;AT+CMGW=\&quot;0212266816\&quot;-&quot;);
    sleep(1);
    readInput($f,5);
    fwrite($f,&quot;AT+CMSS=1-&quot;);
    sleep(1);
    readInput($f,5);
    $i++;
  }


  fclose($f);
?&gt;</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am able to read/write to a serial port under windows with nothing more exotic than the code below. I am just working on exec()ing a &#8216;mode&#8217; command to set the port speeds and so on.</p>
<p>Mike<br />
&lt;?php<br />
function readInput($f,$t)<br />
{<br />
  $i=0;<br />
  $buffer = &#8220;&#8221;;<br />
  while($i  &#8220;.$buffer;<br />
}</p>
<p>  error_reporting(E_ALL);</p>
<p>  $f = fopen(&#8220;COM4&#8243;,&#8221;r+&#8221;);<br />
  if(!$f)<br />
  {<br />
     die(&#8220;Unable to open serial port\n&#8221;);<br />
  }<br />
  $i=0;<br />
  fwrite($f,&#8221;Hello\r\n&#8221;);<br />
  while(true)<br />
  {<br />
    fwrite($f,&#8221;AT-&#8221;);<br />
    sleep(1);<br />
    readInput($f,5);<br />
    fwrite($f,&#8221;AT+CMGF=1-&#8221;);<br />
    sleep(1);<br />
    readInput($f,5);<br />
    fwrite($f,&#8221;AT+CMGW=\&#8221;0212266816\&#8221;-&#8221;);<br />
    sleep(1);<br />
    readInput($f,5);<br />
    fwrite($f,&#8221;AT+CMSS=1-&#8221;);<br />
    sleep(1);<br />
    readInput($f,5);<br />
    $i++;<br />
  }</p>
<p>  fclose($f);<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lara</title>
		<link>http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/comment-page-1/#comment-31984</link>
		<dc:creator>Lara</dc:creator>
		<pubDate>Mon, 17 Mar 2008 09:22:46 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/#comment-31984</guid>
		<description>Hi 
I need to send some data to a printer conected to serial port (com)
and i wnat know the function in PHP that did this operation 
Thanks</description>
		<content:encoded><![CDATA[<p>Hi<br />
I need to send some data to a printer conected to serial port (com)<br />
and i wnat know the function in PHP that did this operation<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rav</title>
		<link>http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/comment-page-1/#comment-31980</link>
		<dc:creator>Rav</dc:creator>
		<pubDate>Sat, 15 Mar 2008 08:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/#comment-31980</guid>
		<description>Hey.. this isn&#039;t working for me.. I am using Fedors core 4.. I tried to connect thru Stty1 and it does nothing.... no error msg too..</description>
		<content:encoded><![CDATA[<p>Hey.. this isn&#8217;t working for me.. I am using Fedors core 4.. I tried to connect thru Stty1 and it does nothing&#8230;. no error msg too..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya</title>
		<link>http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/comment-page-1/#comment-26844</link>
		<dc:creator>Ilya</dc:creator>
		<pubDate>Fri, 17 Aug 2007 21:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/#comment-26844</guid>
		<description>Hello!

Great class! One problem though that I couldn&#039;t find a solution for.

When I receive a response back from the RS-232 device I communicate with, for some reason my script
(utilizing the serial class) echoes every character of the response back to the serial device.
E.g. when I connect to the serial port with hyper terminal and send a command to it -- it works fine, but when I type something back on the hyper terminal I get every single character echoed back -- so that have 2 symbols for each one I type on the screen if the local echoing is on and
just 1 symbol for each one I type if the local echoing is off.
Could anyone please tell me what I need to do to disable the echoing back? I&#039;d really appreciate your help.

Thanks!</description>
		<content:encoded><![CDATA[<p>Hello!</p>
<p>Great class! One problem though that I couldn&#8217;t find a solution for.</p>
<p>When I receive a response back from the RS-232 device I communicate with, for some reason my script<br />
(utilizing the serial class) echoes every character of the response back to the serial device.<br />
E.g. when I connect to the serial port with hyper terminal and send a command to it &#8212; it works fine, but when I type something back on the hyper terminal I get every single character echoed back &#8212; so that have 2 symbols for each one I type on the screen if the local echoing is on and<br />
just 1 symbol for each one I type if the local echoing is off.<br />
Could anyone please tell me what I need to do to disable the echoing back? I&#8217;d really appreciate your help.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RÃ©my Sanchez</title>
		<link>http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/comment-page-1/#comment-25032</link>
		<dc:creator>RÃ©my Sanchez</dc:creator>
		<pubDate>Wed, 25 Jul 2007 12:08:07 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/#comment-25032</guid>
		<description>Thanks for the &quot;awsome&quot; =D
But I don&#039;t think I ever manage to get reading for windows... I already tried a lot of different functions, and each time it acts as if the stream was empty... So for a pure PHP implementation I don&#039;t think it is possible (or maybe on win 9x only, but actualy I have no time for testing it).
Maybe you can connect to some serproxy server instead</description>
		<content:encoded><![CDATA[<p>Thanks for the &#8220;awsome&#8221; =D<br />
But I don&#8217;t think I ever manage to get reading for windows&#8230; I already tried a lot of different functions, and each time it acts as if the stream was empty&#8230; So for a pure PHP implementation I don&#8217;t think it is possible (or maybe on win 9x only, but actualy I have no time for testing it).<br />
Maybe you can connect to some serproxy server instead</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stonicus</title>
		<link>http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/comment-page-1/#comment-23496</link>
		<dc:creator>stonicus</dc:creator>
		<pubDate>Fri, 06 Jul 2007 14:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/04/09/php-and-serial-ports/#comment-23496</guid>
		<description>Awesome class.  How soon before you&#039;ll have read capability for Windows?</description>
		<content:encoded><![CDATA[<p>Awesome class.  How soon before you&#8217;ll have read capability for Windows?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
