Hi
For the yun I have developed my own bridge ArduinoLibraries/SerialBridgeCommunicator at master · jantje/ArduinoLibraries · GitHub which has become a basis for all my "remote setups".
Now with the yun shield I would like to use this bridge and I and wanted to document here how to get things to work.
Remove folowing line from /etc/inittab to disable the arduino bridge
::askconsole:/bin/ash --login
reboot to take effect.
To set to 115200 baud rate ( that was the maximal stable serial connection I could achieve with the yun).
stty -F /dev/ttyATH0 115200 raw -clocal -echo
now you can see what arduino is sending with
cat </dev/ttyATH0
and send commands to arduino with
echo send this to Arduino >>/dev/ttyATH0
The only thing remaining for me is to disable the wifi or reset.
Edit:wifi or reset is not enabled on the yun shield.
Best regards
Jantje
Note that the above stty instruction assumes you have installed the needed software by running following commands
opkg update
opkg install coreutils-tty
opkg install coreutils-stty
I also use these commands to force a reset of the arduino with a reboot of the linux
echo "#!/bin/ash" >/bin/reboot
echo reset-mcu>>/bin/reboot
echo /sbin/reboot >>/bin/reboot
chmod +x /bin/reboot