First of all, thank you all for your answers.
@Robin: Instead of trying Python I went even to a lower level by just issuing a "cat" command over the text file that I wanted to read from the arduino side using "process" and of course that happened through the bridge.
p.runShellCommand("cat /mnt/sd/showfile.txt");
while(p.available()>0)
{
char c = p.read();
Serial.print(c);
}
Anyway, the "cat" command worked perfect with small files. But with bigger files, the arduino just halted.
So if you check my first post on this thread, two paths yielded the same bad results, my conclusion is that the bridge is buggy.
@chrake: do you think the combination of an arduino and a pi would be a good alternative? I am afraid of running in more trouble than here.....
@tdicola, jantje: when I started this thread was motivated by the frustration after finding that simple things just don´t work. Hopefully they will be fixed on the just released update. I will post my findings here.....
@Matt: your post gives me hope! Thanks. I have invested a ton of time on the yun and looking elsewhere was making me sad. What I need is to read realtime OSC packets in python, or sequenced from a text file in linux and send them as commands to the arduino side. It should not be too much for this platform! But not even being able to read the textfile has been very disappointing.
I also want a web-page to be served for configuration.
And lastly to play on the background an mp3 file, take the time reference from the player´s output and use it as cues for the text file commands.
Imagine a high end halloween animatronic figure that dances in sync with a song.
I thought it was not too much for the yun as it can be done with a regular arduino and shields.
Let´s see how it goes with the updates!
Thank you!
Rodolfo