How can C program running on YUN linux, can comminucate with Arduino?

Hello,

How can my C program running on the linux side of YUN, communicate with my program running on the Arduino side of YUN?

I'm trying everything, but I dont see how to do it.

They have examples of how to communicate using browser, but nothing on how to communicate from within the device itself.

Is there a command line script I can call from inside C program to pass data to Arduino from Yun linux? Seems kind of crazy it can be done from a browser over the internet, but it came comminucate with itself from a program running on the board.

Thanks rough

Open a FILE* for /dev/ttyATH0; the ‘other side’ (the Arduino side) should read and write from/to the Serial stream. The Linux side should do the same with its FILE* pointer.

kind regards,

Jos

I would use BridgeClient: see my answer here http://forum.arduino.cc/index.php?topic=265422.msg1872984#msg1872984

JosAH: Open a FILE* for /dev/ttyATH0; the 'other side' (the Arduino side) should read and write from/to the Serial stream. The Linux side should do the same with its FILE* pointer.

kind regards,

Jos

Hi, i've a similar problem. I've a 'C' script that run on Linux Linino and i will send the output of this on the arduino script... How can i do this?

http://forum.arduino.cc/index.php?topic=265394.msg1880075#msg1880075

I used BridgeClient to for communication between c program and arduino and it worked fine for me.