hi there.. first of all forgive me if this is not the suitable place to post this problem..im new here :). to the problem: im trying to send data on serial port on linux ubuntu 5.10 server through php script using the php serial class (im not allowed to put links yet :()
when im trying to set the serial device for use (through deviceSet function provided in the php serial class) the function checks the result of this command "stty -F/dev/ttyS0" to be 0 (if ($this->_exec("stty -F " . $device) === 0)//line 92 in php_serial.class.php) the problem is that when i print the result of this command it prints 1 when i type the command directly to the terminal the output is: speed 9600 baud; line=0; -brkint -imaxbel im not a linux expert.. so i dont know what the "stty -F" really does and what it means when the result of it is 0 or 1
so can anybody help specifiying where the problem is?