Shell script to C prog on OPENWRT to read microcontroller PINs

Hello, can someone point me to the doc to read about how to write a script or C prog to read micro controller PINs from OpenWRT available on Yun board?

I tried this but that didn't help:

Process p;
p.runShellCommand("sh test.sh");

Not sure what the second post is meant to say, but you should read up on the "bridge" in the Yun. The Yun has to distinct parts (one the Atmel 32u4/Arduino sketch part, the other the Athero MIPS/Linino part) and a specific way to communicate between those two, called the "bridge", which has corresponding software (libraries) on each side...

Ralf

Raif, thanks for reply. Please ignore 2nd post. Do you have example to read the pin of controller from OpenWRT? or can you share a link to document to read more about it?

devnp:
Raif, thanks for reply. Please ignore 2nd post.

I already did! :grin:

Do you have example to read the pin of controller from OpenWRT? or can you share a link to document to read more about it?

You can not read any pin input (or output through any pin) from (to) the ATmega chip from Linino (not OpenWRT!) directly.

As I tried to tell you already in the previous post, the Yun has two parts, the MIPS/Linino part (what you seem to refer to as OpenWRT) and the ATmega part (which is more or less Leonardo compatible). Communication between those two parts is through the "bridge" and you can find plenty of info on that in the "Guide to the Arduino Yun" on this very web site (http://arduino.cc/en/Guide/ArduinoYun)

Ralf