issues with serial data acquisition
am 18.07.2007 22:01:28 von Aghor
Hi!
Recently i was using php-cli with php_dio.dll for manipulate data from and
to the serial port (com) under windows xp. Like an adquisition system that
inserts data into a mysql database.
While i worked with 2 virtual serial ports, my scripts worked fine and
efficiently.
Knowing that, i tried to test my adquisition data program in a real fisical
port (com1 or com2).
So far i haven`t any good result with that, nor even making an echo with
every char arrived. Nothing is captures by the program.
Why this could happen ???
Is there a exception or recommendation working with real data or real ports?
Tell me if it is necessary to put the complete script.
Regards,
Aghor
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: issues with serial data acquisition
am 18.07.2007 23:26:48 von Ariz Jacinto
------=_Part_121364_10754628.1184794008236
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
have you tried initializing the com port first? (e.g. running MODE.COM,
etc.)
On 7/18/07, Aghor wrote:
>
> Hi!
>
> Recently i was using php-cli with php_dio.dll for manipulate data from and
> to the serial port (com) under windows xp. Like an adquisition system that
> inserts data into a mysql database.
>
> While i worked with 2 virtual serial ports, my scripts worked fine and
> efficiently.
>
> Knowing that, i tried to test my adquisition data program in a real
> fisical
> port (com1 or com2).
>
> So far i haven`t any good result with that, nor even making an echo with
> every char arrived. Nothing is captures by the program.
>
> Why this could happen ???
>
> Is there a exception or recommendation working with real data or real
> ports?
>
> Tell me if it is necessary to put the complete script.
>
> Regards,
> Aghor
>
>
>
>
------=_Part_121364_10754628.1184794008236--