Reading serial port data via shell script
I am working on a project that has a microcontroller sending data via the serial port that I want to use in a shell script. I can see the variable on screen using cat /dev/ttys1 but I want to take it a step further and use the data as variables in a shell script.
Can anyone point me in the direction of how this can be done?
The data consists of a string of 3 numbers every 30 seconds followed by EOL characters. I want to have each of the numbers in a separate variable.