I want to make a shell or C script that interprets the Arduino serial input to run commands. For that, I will need to make that script be the Serial monitor for my arduino. Another reason I want to use scripts or the command line as a Serial I/O is because the Arduino monitor function freezes the IDE.
My arduino's serial port is /dev/tty.usbmodem1d112
This is what I have tried so far:
cat /dev/tty.usbmodem1d112< This returns absolutely nothingscreen /dev/tty.usbmodem1d112< This Prints output, but has problems with input.cat < /dev/tty.usbmodem1d112< Same result as cat without the<symbol.
Sometimes, I also get annoying Resource Busy messages. This makes me re-plug the Arduino board.
OS X (10.9.5) Arduino IDE latest version. Arduino M0 pro board.