Go to advanced search

by hotshotharry
Sun Jul 22, 2012 12:40 am
Forum: Other programming languages
Topic: php and uart serial output
Replies: 14
Views: 29946

Re: php and uart serial output

Thanks ! But I think my permissions are correct as I don't get an error message ... :-) and I have added pi to the dial out and the data group has been added ...
by hotshotharry
Sat Jul 21, 2012 6:45 pm
Forum: Other programming languages
Topic: php and uart serial output
Replies: 14
Views: 29946

Re: php and uart serial output

here is a copy of the code that uses the php serial class <?php session_start(); /* Password <?php echo $_POST["password"]; ?>!<br /> Value <?php echo $_POST["selection"]; ?>!<br /> */ $passvar = $_SESSION["userpassword"]; require("php_serial_class.php"); // /dev/ttyAMA0 ttyS0 $serial = new phpSeria...
by hotshotharry
Sat Jul 21, 2012 8:47 am
Forum: Other programming languages
Topic: php and uart serial output
Replies: 14
Views: 29946

php and uart serial output

Can anyone shed some light on why this wont work on the raspbery pi? i suspect that is has something to do with the way the serial class in php is handling the serial port. here is a snippet of code require("php_serial_class.php"); // /dev/ttyAMA0 ttyS0 $serial = new phpSerial(); $serial->deviceSet(...

Go to advanced search