Community
cancel
Showing results for 
Search instead for 
Did you mean: 
AGuil4
Novice
1,528 Views

Make-Run I/O Code for Linux Image

Jump to solution

Hello everybody.

I have a question and do not know how to approach it.

I'm running on Intel Galileo gen1 an sd-image of Linux customized, so I communicate with it with ssh (Putty), specifically this:

https://github.com/xbolshe/galileo-custom-images/tree/master/iot_1.1.0_dirty_kernel_3.19.2 xbolshe/galileo-custom-images · GitHub

What I want is to schedule programs that work, for examplo, with the ports of input/output as it is programmed in Arduino IDE software:

like these:

https://learn.sparkfun.com/tutorials/galileo-experiment-guide/sik-galileo---part-4-driving-multiple-... Galileo Experiment Guide - learn.sparkfun.com

I know I can program directly with Linux commands and run .sh files, but that for commands that take into account the output ports and do not know how. For example, in Arduino IDE software program, save the program with a special extension and run Galileo through ssh as # vi test.sh

Can you recommend what I can do. What are my options?

Can you recommend manuals on programming that involves, for example, ports of entry and departure from the linux console ssh?

Ps: Some manual Galileo program from the Arduino software?

I hope you can help me.

Thank you very much in advance.

BR.

Antonio_Algaida

1 Solution
Sergio_A_Intel
Employee
93 Views

Hi,

If what you are looking is for a way to program that easily interfaces the I/O ports you can check MRAA. Libmraa is a C/C++ library with bindings to Python, Javascript and Java to interface with the I/O on Galileo.

Take a look at the MRAA website here http://iotdk.intel.com/docs/master/mraa/ mraa: Main Page

If you are looking for examples of the Arduino IDE then you can also check

Sergio

View solution in original post

3 Replies
Sergio_A_Intel
Employee
94 Views

Hi,

If what you are looking is for a way to program that easily interfaces the I/O ports you can check MRAA. Libmraa is a C/C++ library with bindings to Python, Javascript and Java to interface with the I/O on Galileo.

Take a look at the MRAA website here http://iotdk.intel.com/docs/master/mraa/ mraa: Main Page

If you are looking for examples of the Arduino IDE then you can also check

Sergio

View solution in original post

AGuil4
Novice
93 Views

Oh yes, I am is what I wanted to refer. Thank you.

And if I can ask something else, you know any tutorial for Intel Galileo MRAA for beginners apart from the examples in their official website?

Thank you for responding.

A greeting.

BR. Antonio_Algaida.

Sergio_A_Intel
Employee
93 Views

Hi,

There's not a specific document or tutorial of mraa for beginners but there are several websites that might be helpful such as

https://github.com/intel-iot-devkit/mraa intel-iot-devkit/mraa · GitHub

http://iotdk.intel.com/docs/master/mraa/python/ Welcome to mraa's documentation! — mraa v0.8.0-18-g338feb2 documentation

Sergio

Reply