Go Down

Topic: How can C program running on YUN linux, can comminucate with Arduino? (Read 2601 times) previous topic - next topic

rouch_neck

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

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


0v3rl04d


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?


akbarkhan

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

Go Up