Hello Now i am trying a program but ubuntu sent message but it is not my message for me
example php
<?php include "php_serial.class.php"; // Let's start the class $serial = new phpSerial; // First we must specify the device. This works on both linux and windows (if // your linux serial device is /dev/ttyS0 for COM1, etc) $serial->deviceSet("/dev/ttyUSB0"); //Set the serial port parameters. $serial->confBaudRate(9600); $serial->confParity("none"); $serial->confCharacterLength(8); //Character length $serial->confStopBits(1); $serial->confFlowControl("none"); // Then we need to open it $serial->deviceOpen(); $serial->sendMessage(chr("0")); $serial->deviceClose(); // We can change the baud rate //$serial->confBaudRate(9600); // etc... ?>i want sent only 1
arduino programming working on windows and debian linux
i write on debian linux
chmod 0777 /dev/ttyUSB0
stty -F /dev/ttyUSB0 -hupcl
working every where but in ubuntu this command not working for me pleasee help me somebody know this solition
but
if i write
- Open a terminal window.
- Enter the following command (that differs slightly from above):
stty -F /dev/ttyUSB0 cs8 9600 ignbrk -brkint -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts - Start screen by typing the following:
screen /dev/ttyUSB0 9600
stty -F /dev/ttyUSB0 cs8 9600 ignbrk -brkint -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts
this in screen terminal working
but why my php code dont working ???