![]() I have used the "$whoami" to check name of user and added that user "prudhvi" to the dialout group. When I send a command directly from the terminal using the command : echo 1 > /dev/ttyUSB0 it works and '1' is transmitted to the serial port. I have also tried to add the apache user "prudhvi" to the dialout group by using command :īut it doesnt work. I have used the command : chmod 0777 /dev/ttyUSB0 to give permissions. Warning: Unable to set parity : the device is either not set or opened in /opt/lampp/htdocs/xampp/php_ on line 295 Warning: Unable to set the baud rate : the device is either not set or opened in /opt/lampp/htdocs/xampp/php_ on line 241 Warning: Specified serial port is not valid in /opt/lampp/htdocs/xampp/php_ on line 147 The php script gets executed but gives the following warnings. $serial->sendMessage("*1" ) //sleep(1) // echo "hi" $serial->deviceClose() Now we "open" the serial port so we can write to it $serial->confFlowControl("none") //Device does not support flow control of any kind, so set it to none. $serial->confStopBits(1) //Stop bits (this is the "1" in "8-N-1") $serial->confCharacterLength(8) //Character length (this is the "8" in "8-N-1") $serial->confParity("none") //Parity (this is the "N" in "8-N-1") I have installed xampp in fedora 13.I am trying to communicate with microcontroller through serial port using php serial class. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |