I try to control the SAY command from a NanoPi NEO2 (a device like the Raspberry Pi).
So I uploaded the SerialMonitor Sketch from the Examples MOVI->debug and connected the MOVI via USB to the NanoPi.
Sometimes a "echo "SAY Hello how are you?" > /dev/ttyACM0" does work, but often it seems that the serial buffer/queue seems to hang.
From minicom it works, when set to 9600 Baud and Hardware Flowcontroll off.
If you exit minicom with X (Exit and Reset) it didnt work with the command above,
but when you leave minicom via q (Exit and dont reset) the command works from the shell.
The SAY command goes "crazy" when I try to init the stty with 9600 Baud like this:
stty -F /dev/ttyACM0 ispeed 9600 ospeed 9600 -crtscts -ixoff -ixon -hupcl cs8 -cstopb -parenb
Then it even do say somehting (like MOVI) thats not included in the echo-String.
The "MOVI" seems to be a part of the output that is coming from MOVI.
Has anyone a Idea how to correctly init the stty port or/and to clear the serial buffer?
I also did try the echo command with the parameter -e for recognizing \n for new-line and so on,
but it doesnt seem to help :(
To use the USB-serial-port would the to free the ttl-serial-port on the NanoPi.
I dont know if it would work better, if I only would use the ttl-serial port - but I think the commands/init scheme should be the same for ttyS0 or ttyACM0.
Status:Playing with MOVI :) The Call Sign is "Joshua" :)