Community
cancel
Showing results for 
Search instead for 
Did you mean: 
MJohn32
Beginner
1,544 Views

Starting Arduino sketch from Linux terminal

Jump to solution

Hi all,

This question is basically the same as this one from a while back ( ) but that seemed to be a bit inconclusive and anyway I couldn't get any of the ideas there to work for me.

I want to be able to run Arduino sketches on my Galileo Gen 2 over SSH using the terminal, just as I might run scripts etc.

Has anyone got this working well? I haven't had any luck so far.

Thanks in advance,

Matt

0 Kudos
1 Solution
FTinetti
Honored Contributor I
216 Views

Hi Matt,

The short answer is:

/sketch/sketch.elf /dev/ttyGS0

However, that sketch is automatically started at startup by the Linux yocto provided by Intel.

There are some extra ideas for working with several sketches at command line at

Please elaborate a little bit more about what you want to do.

HTH,

Fernando.

View solution in original post

3 Replies
FTinetti
Honored Contributor I
217 Views

Hi Matt,

The short answer is:

/sketch/sketch.elf /dev/ttyGS0

However, that sketch is automatically started at startup by the Linux yocto provided by Intel.

There are some extra ideas for working with several sketches at command line at

Please elaborate a little bit more about what you want to do.

HTH,

Fernando.

View solution in original post

MJohn32
Beginner
216 Views

Hi Fernando

Thanks for sending that link, I hadn't seen that thread before, but it seems I want to do the same as the OP there.

I have it working now (using that method), as in I can start and stop sketches, but do you know if there is any way I can continue using the terminal whilst the sketch is running? The only way using this method is to ^C, which of course stops the sketch running.

Also, what are these 'zombie processes' you mentioned?

EDIT: Actually I have worked out how to do it - by running the sketch using

./sketch.elf /dev/ttyGS0 &

thus running the process in the background.

Thanks very much - this will help me a lot in future projects.

Matt

FTinetti
Honored Contributor I
216 Views

Hi Matt,

You are welcome,

Fernando.

Reply