
 Nina - 2009-03-04 09:51:03
Hello,
I have downloaded PHP serial and it works great in Windows. 
I have some microcontroler device that is returning response after I send data, so I decided to test it in linux (because I can't read it with windows), but in Linux it projects warnings:
Warning: Specified port is not valid in /var/www/folder/php_serial.class.php on line 112
Warning: Unable to set the baud rate : the device is either not set or opened in /var/www/folder/php_serial.class.php on line 205
...
...
Warning: The device must be set before to be open in /var/www/folder/php_serial.class.php on line 138
Warning: Device must be opened in /var/www/folder/php_serial.class.php on line 542
Warning: Device must be opened to read it in /var/www/folder/php_serial.class.php on line 475
In example.php I changed device specification to $serial->deviceSet("/dev/ttyS0")
I'm using Ubuntu 7.10 and there is PHP version 5.2.3.-lubuntu6.5
I don't know where the problem is, because when I send data through shell to the port everything works fine (that was also the test that the port is working):
echo some_hex_data > /dev/ttyS0
Does anyone knows what am I doing wrong? Can anyone help me? :)  
Beforehand thank you,
Nina