<?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: Serial IO in PHP using the DIO extension</title>
	<atom:link href="http://www.cyberspice.org.uk/blog/2010/02/15/serial-io-in-php-using-the-dio-extension/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cyberspice.org.uk/blog/2010/02/15/serial-io-in-php-using-the-dio-extension/</link>
	<description>The life and times of a jet setting software engineer!</description>
	<lastBuildDate>Mon, 02 May 2011 18:45:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Daniel</title>
		<link>http://www.cyberspice.org.uk/blog/2010/02/15/serial-io-in-php-using-the-dio-extension/comment-page-1/#comment-2521</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Fri, 10 Dec 2010 07:55:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberspice.org.uk/blog/?p=429#comment-2521</guid>
		<description>I think I solved the issue above - modem expects &quot;\r\r&quot; instead of &quot;\r\n&quot; after AT+CMGS command. Works fine now!</description>
		<content:encoded><![CDATA[<p>I think I solved the issue above &#8211; modem expects &#8220;\r\r&#8221; instead of &#8220;\r\n&#8221; after AT+CMGS command. Works fine now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.cyberspice.org.uk/blog/2010/02/15/serial-io-in-php-using-the-dio-extension/comment-page-1/#comment-2509</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Thu, 09 Dec 2010 16:06:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberspice.org.uk/blog/?p=429#comment-2509</guid>
		<description>Hi!

I&#039;m trying to use DIO to send SMS using a GSM modem - this is what your test script outputs:

 AT+CMGF=1
&gt; OK
&lt; AT+CMGS=&quot;+49160xyz&quot;
 AT+CMGS=&quot;+49160xyz&quot;
&gt; ERROR
&gt; Hello world!
^C

Using minicom and issuing the AT-commands manually works as expected.

I&#039;m using ubuntu x64, php 5.3.3 and DIO 0.0.4RC4 (beta) from PECL repositories.</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>I&#8217;m trying to use DIO to send SMS using a GSM modem &#8211; this is what your test script outputs:</p>
<p> AT+CMGF=1<br />
&gt; OK<br />
&lt; AT+CMGS=&quot;+49160xyz&quot;<br />
 AT+CMGS=&#8221;+49160xyz&#8221;<br />
&gt; ERROR<br />
&gt; Hello world!<br />
^C</p>
<p>Using minicom and issuing the AT-commands manually works as expected.</p>
<p>I&#8217;m using ubuntu x64, php 5.3.3 and DIO 0.0.4RC4 (beta) from PECL repositories.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcel</title>
		<link>http://www.cyberspice.org.uk/blog/2010/02/15/serial-io-in-php-using-the-dio-extension/comment-page-1/#comment-871</link>
		<dc:creator>Marcel</dc:creator>
		<pubDate>Thu, 03 Jun 2010 11:10:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberspice.org.uk/blog/?p=429#comment-871</guid>
		<description>XAMMP 1.7.3 (WinXP)
PHP 5.3.1 MSVC6 (Visual C++ 6.0) 
PHP EXTENSION BUILD: API20090626,TS,VC6 

Trying to install via PEAR, which fails and tells me to install via PECL.

C:\xampp\php&gt;pear install dio
No releases available for package &quot;pear.php.net/dio&quot; - package pecl/dio can be installed with &quot;pecl install dio&quot;
install failed

Trying PECL install and fails as well:

C:\xampp\php&gt;pecl install dio
WARNING: channel &quot;pecl.php.net&quot; has updated its protocols, use &quot;pecl channel-update pecl.php.net&quot; to update
downloading dio-0.0.4RC4.tgz ...
Starting to download dio-0.0.4RC4.tgz (18,334 bytes)
......done: 18,334 bytes
12 source files, building
WARNING: php_bin \xampp\php\php.exe appears to have a suffix \php.exe, but config variable php_suffix does not match
ERROR: The DSP dio.dsp does not exist.

Tried all php_dio.dll that I could find, but all failed.

Any idea how I can get DIO to work? Is there anybody with a compiled DLL that does work?</description>
		<content:encoded><![CDATA[<p>XAMMP 1.7.3 (WinXP)<br />
PHP 5.3.1 MSVC6 (Visual C++ 6.0)<br />
PHP EXTENSION BUILD: API20090626,TS,VC6 </p>
<p>Trying to install via PEAR, which fails and tells me to install via PECL.</p>
<p>C:\xampp\php&gt;pear install dio<br />
No releases available for package &#8220;pear.php.net/dio&#8221; &#8211; package pecl/dio can be installed with &#8220;pecl install dio&#8221;<br />
install failed</p>
<p>Trying PECL install and fails as well:</p>
<p>C:\xampp\php&gt;pecl install dio<br />
WARNING: channel &#8220;pecl.php.net&#8221; has updated its protocols, use &#8220;pecl channel-update pecl.php.net&#8221; to update<br />
downloading dio-0.0.4RC4.tgz &#8230;<br />
Starting to download dio-0.0.4RC4.tgz (18,334 bytes)<br />
&#8230;&#8230;done: 18,334 bytes<br />
12 source files, building<br />
WARNING: php_bin \xampp\php\php.exe appears to have a suffix \php.exe, but config variable php_suffix does not match<br />
ERROR: The DSP dio.dsp does not exist.</p>
<p>Tried all php_dio.dll that I could find, but all failed.</p>
<p>Any idea how I can get DIO to work? Is there anybody with a compiled DLL that does work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: siddesh</title>
		<link>http://www.cyberspice.org.uk/blog/2010/02/15/serial-io-in-php-using-the-dio-extension/comment-page-1/#comment-539</link>
		<dc:creator>siddesh</dc:creator>
		<pubDate>Thu, 11 Mar 2010 08:28:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberspice.org.uk/blog/?p=429#comment-539</guid>
		<description>hi

  i wanted to get the video stream from digital webcam attached to the usb port.
i have the activXcomport but it not full version. so i m decided to use the dio_open but i m get error by this method.............

  please help me regarding this .....
  thank you in advance......</description>
		<content:encoded><![CDATA[<p>hi</p>
<p>  i wanted to get the video stream from digital webcam attached to the usb port.<br />
i have the activXcomport but it not full version. so i m decided to use the dio_open but i m get error by this method&#8230;&#8230;&#8230;&#8230;.</p>
<p>  please help me regarding this &#8230;..<br />
  thank you in advance&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cyberspice</title>
		<link>http://www.cyberspice.org.uk/blog/2010/02/15/serial-io-in-php-using-the-dio-extension/comment-page-1/#comment-522</link>
		<dc:creator>cyberspice</dc:creator>
		<pubDate>Mon, 01 Mar 2010 13:09:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberspice.org.uk/blog/?p=429#comment-522</guid>
		<description>Hi Cliff,  I think the code snippet you pasted has gotten truncated. 

However if you are using DIO 0.0.4 I think this may be because I changed the default behaviour (which I shouldn&#039;t have had so I will fix it).  You need to provide &#039;is_canonical&#039; =&gt; 0 in your array of serial port settings.  Character 4, i.e. ctrl-D, is end of file in canonical mode and so no further data will be received.  You need to disable canonical mode in the settings.

Melanie</description>
		<content:encoded><![CDATA[<p>Hi Cliff,  I think the code snippet you pasted has gotten truncated. </p>
<p>However if you are using DIO 0.0.4 I think this may be because I changed the default behaviour (which I shouldn&#8217;t have had so I will fix it).  You need to provide &#8216;is_canonical&#8217; =&gt; 0 in your array of serial port settings.  Character 4, i.e. ctrl-D, is end of file in canonical mode and so no further data will be received.  You need to disable canonical mode in the settings.</p>
<p>Melanie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cliff Lan</title>
		<link>http://www.cyberspice.org.uk/blog/2010/02/15/serial-io-in-php-using-the-dio-extension/comment-page-1/#comment-518</link>
		<dc:creator>Cliff Lan</dc:creator>
		<pubDate>Sun, 28 Feb 2010 17:40:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberspice.org.uk/blog/?p=429#comment-518</guid>
		<description>Dear Sir,

can you advise me why I can not read byte 0x04 ? when this byte arrives, the reading stopped. I was really puzzled.

Cliff

 19200,
  &#039;bits&#039; =&gt; 8,
  &#039;stop&#039;  =&gt; 1,
  &#039;parity&#039; =&gt; 0
)); 

$cnt=0;
$f = null;
while (1) {


  //if($f == null)$f = fopen(&#039;t&#039;.time(),&quot;w&quot;);

  $data = dio_read($fd,1);
print $data;
if(ord(substr($data,0,1)) == 0x04)
{
print &quot;EOT received\n&quot;;
dio_write($fd,chr(1).chr(2).chr(3).chr(4));
}

} 

dio_close($fd);
?&gt;</description>
		<content:encoded><![CDATA[<p>Dear Sir,</p>
<p>can you advise me why I can not read byte 0&#215;04 ? when this byte arrives, the reading stopped. I was really puzzled.</p>
<p>Cliff</p>
<p> 19200,<br />
  &#8216;bits&#8217; =&gt; 8,<br />
  &#8216;stop&#8217;  =&gt; 1,<br />
  &#8216;parity&#8217; =&gt; 0<br />
)); </p>
<p>$cnt=0;<br />
$f = null;<br />
while (1) {</p>
<p>  //if($f == null)$f = fopen(&#8216;t&#8217;.time(),&#8221;w&#8221;);</p>
<p>  $data = dio_read($fd,1);<br />
print $data;<br />
if(ord(substr($data,0,1)) == 0&#215;04)<br />
{<br />
print &#8220;EOT received\n&#8221;;<br />
dio_write($fd,chr(1).chr(2).chr(3).chr(4));<br />
}</p>
<p>} </p>
<p>dio_close($fd);<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cyberspice</title>
		<link>http://www.cyberspice.org.uk/blog/2010/02/15/serial-io-in-php-using-the-dio-extension/comment-page-1/#comment-516</link>
		<dc:creator>cyberspice</dc:creator>
		<pubDate>Sun, 28 Feb 2010 16:22:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberspice.org.uk/blog/?p=429#comment-516</guid>
		<description>Hi dongzhigang,

I&#039;ll look in to it.  I currently don&#039;t have a copy of VC6 but I&#039;ll see what I can do.</description>
		<content:encoded><![CDATA[<p>Hi dongzhigang,</p>
<p>I&#8217;ll look in to it.  I currently don&#8217;t have a copy of VC6 but I&#8217;ll see what I can do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dongzhigang</title>
		<link>http://www.cyberspice.org.uk/blog/2010/02/15/serial-io-in-php-using-the-dio-extension/comment-page-1/#comment-492</link>
		<dc:creator>dongzhigang</dc:creator>
		<pubDate>Sat, 20 Feb 2010 09:58:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberspice.org.uk/blog/?p=429#comment-492</guid>
		<description>dio-0.0.4RC4 compiled with vc6 failed, unable to find zend_config.h ...... asked about solutions,
Or send a php_dio.dll for php5.3.1, thank you.
Configure the environment:
windows xp
Apache2.2.14
dio-0.0.4RC4
PEAR-1.9.0
php-5.3.1</description>
		<content:encoded><![CDATA[<p>dio-0.0.4RC4 compiled with vc6 failed, unable to find zend_config.h &#8230;&#8230; asked about solutions,<br />
Or send a php_dio.dll for php5.3.1, thank you.<br />
Configure the environment:<br />
windows xp<br />
Apache2.2.14<br />
dio-0.0.4RC4<br />
PEAR-1.9.0<br />
php-5.3.1</p>
]]></content:encoded>
	</item>
</channel>
</rss>

