[PHP] Serial Communication

2004-10-23 Thread Ulrik Witschass
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(); $query =

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(); $query =

AW: [PHP] Serial Communication

2004-10-23 Thread Ulrik Witschass
Thanks for the help, when communicating to it via hyperterminal (or other software) it responds immidiately. I will try it on different machines within the next few days...hopefully it is just a hardware/software problem with my dev-system... best regards Ulrik //You could try the same thing

[PHP] Serial Communication

2004-10-22 Thread Ulrik Witschass
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) where I can find

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 Zend

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

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

AW: [PHP] Serial Communication

2004-10-22 Thread Ulrik Witschass
Thanks for the many great replies, since at the moment the project is based on PHP4, I will try if the filesystem functions provide what I need. Opening the port and sending doesn't seem to be a problem, I'll try it out tonight. If for some reason it doesnt provide the functionality I need, I