Re: [PHP] Serial Communication

2004-10-23 Thread M. Sokolewicz
Ulrik Witschass wrote: Hello List, I have managed to communicate with the serial device with the following code: 'mode com1: BAUD=9600 PARITY=N data=8 stop=1 xon=n';//the config the device needs $fp = fopen("COM1:", "rb+");//also tried only "r+" here if(!$fp) die(); $que

Re: [PHP] Serial Communication

2004-10-22 Thread M. Sokolewicz
You can also use the DIO extension (built-in as of PHP 5.0.0). using dio_open, dio_read, dio_write and dio_close you can do a lot of magical things ;) http://www.php.net/manual/en/ref.dio.php Greg Donald wrote: On Fri, 22 Oct 2004 18:11:43 +0200, Ulrik Witschass <[EMAIL PROTECTED]> wrote: Hello L

Re: [PHP] Serial Communication

2004-10-22 Thread Marek Kilimajer
Ulrik Witschass wrote: Hello List, I am searching information about serial communication with PHP on Windows machines. I want to communicate with a colorimeter via a COM-Port, using a PHP-GTK application. Can anybody point me into the right direction (a webpage, a PHP class/function, a PHP-GTK list

Re: [PHP] Serial Communication

2004-10-22 Thread Greg Donald
On Fri, 22 Oct 2004 18:11:43 +0200, Ulrik Witschass <[EMAIL PROTECTED]> wrote: > Hello List, > > I am searching information about serial communication with PHP on Windows > machines. There's a simple example on this page: http://www.php.net/function.fopen Search for 'SERIAL'. -- Greg Donald Z