Serial Protocol Arduino-Linux (web-php)

Only to notify the new ArduinoLinuxSerial class, with a simple protocol, for Arduino-Web (php) link in Linux O.S.

The master is PHP. The master message max length is 60 char (serial Arduino rx buffer limit), the response (from Arduino) as no limits. The '\n' char is used internally as terminator. The protocol uses CRC8 to insure correctness. In case of error the message is resended 3 times before exit in error state.

On Linux you need a USB serial driver (it uses devices like /dev/ACMx or /dev/USBx). A Bash script (serialArduino.sh) is used to setup the USB device on Linux, after startup or USB connection. The serial communication is open for any message: in the Bash script the DTR pin is disabled to avoid the Arduino auto-reset. (see: Arduino Playground - DisablingAutoResetOnSerialConnection)

I hope this can help, see GitHub - msillano/ArduinoLinuxSerial: This is an helper class for php-Arduino communications on Linux

Best reagards

I can't make sense of your Original Post. It is hard to know whether you are telling us something or asking for advice.

This Python - Arduino demo may be of interest. Also Serial Input Basics - simple reliable ways to receive data without being limited by the size of the Arduino Serial input buffer.

On Linux you need a USB serial driver

On any Linux I have used it is a standard feature and nothing needs to be added.

...R