PHP Classes

File: serialArduino.sh

Recommend this page to a friend!
  Classes of Marco Sillano   Arduino PHP Serial Linux   serialArduino.sh   Download  
File: serialArduino.sh
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Arduino PHP Serial Linux
Communicate with a Arduino board via serial port
Author: By
Last change:
Date: 6 years ago
Size: 443 bytes
 

Contents

Class file image Download
?#!/system/bin/sh tty=/dev/ttyACM0 if [[ -e $tty ]] then if [[ ! -w $tty ]] then su -c "chmod 777 $tty" stty -F $tty cs8 115200 ignbrk -brkint -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts stty -F $tty -hupcl # -hupcl: eliminates the Arduino reboot openning serial # to be updated stty -F $tty &> /data/myfolder/status.txt fi fi