Find the answer to your Linux question:
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.
  1. #1
    Just 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

  2. #2
    Just Joined!
    Join Date
    Oct 2012
    Location
    Delhi, India
    Posts
    19
    i think what you got on ubuntufourms is ok

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •