Results 1 to 2 of 2
Hi Folks,
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-09-2012 #1Just Joined!
- Join Date
- Oct 2012
- Posts
- 1
Reading serial port data via shell script
Hi Folks,
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.
Cheers
J
- 10-10-2012 #2Just Joined!
- Join Date
- Oct 2012
- Location
- Delhi, India
- Posts
- 19
i think what you got on ubuntufourms is ok


Reply With Quote
