you will find the sketch in the /sketch folder.
If you want to communicate between Arduino and "native processes" (in fact the Arduino process is native as well) you might be interested in my blog IoT* - SuperZone - Efficient communication between Arduino* and Linux native processes | Intel® Developer Zone
mhahn Thanks again for the article. I've read it and it's a good reference.
Following that topic I was wondering of maybe it would be possible that serial communication from Arduino could be handled/intercepted by Yocto running on Edison? From my understanding Arduino uses Edison's serial port capability to communicate with an external PC. Could Yocto actually use this to communicate a node.js app with Arduino sketch for example? It would also allow for super simple data exchange between running applications
As a followup, how do i stop the currently loaded Arduino sketch from running? I've seen that /sketch folder contains .elf file but i don't know which process handles it so I don't know what to terminate. The only way I know for now is to reboot but it's not really the solution I suppose I'm running a MRAA blink example but it seems that the Arduino loaded sketch has control over the LED blinking.
There are a couple of different ways to handle this:
If I have a console window, such as from Putty:
I simply delete the sketch. Something like:
I also kill the process. I find it by typing something like:
ps | grep sketch
kill <which process is shown>
Or if I am lazy, I simply put in some real dummy sketch, something like:
I also keep around a hard core sketch, that copies the generated logs, to the /home/root directory. Delete everything in sketch directory (itself) and then reboots...
systemctl stop clloader