You can check this guide Blinking an LED with the Arduino* IDE | Intel® Developer Zone to know how to upload sketches to your Edison board. Regarding on how you can communicate both Edisons, as you pointed, there are several options like UART, I2C or SPI. However, there is not an official guide about it. Those interfaces are standard protocols. So, I recommend you to research a little bit about them, in order to understand how they work and choose the one you that fit your project better. The following links would be a good place to start:
Then, you can check the examples available in the Arduino IDE about UART, SPI and I2C. They show you how you can implement them in a sketch.
The easiest way I can think of for them to share information is this:
Use the USB OTG on each edison, and plug it into the other so that each edison mounts the "drive" of the other edison in its filesystem.
You would most likely need a cheap non-powered USB HUB on each side. But should work just fine.
Then just write and read text files back and forth.
Not even hard to write code for that.
Hope this helps,
There are several options. I think the simplest ones are:
1. Use WiFi. You can setup both Edisons in ad-hoc mode, or setup one as an AP and another one as a client, or use a separate access point or wireless router to link them together. You'll need to implement some kind of TCP/IP protocol... One possibility is to use a simple web server (Edison already comes with one) and client, another might be using SSH + shared keys.
2. Use serial port. I believe Edison has a getty running on it, so that would need to be disabled. Depending on the distance between boards you might not even need RS-232 level shifters... just connect RX to TX. Again you would need to implement some protocol to exchange the data.
3. Bluetooth.This guide might have more into: http://download.intel.com/support/edison/sb/edisonbluetooth_331704004.pdf
I wouldn't do SPI or I2C, since these are master/slave interfaces, and I think Edison only implements the master part...
There is an example for iotkit-comm-js that does more or less exactly what you want. Here is a link to the Tutorials: distributed-thermostat. Here is a link to the source code: iotkit-comm-js/example/distributed-thermostat at master · intel-iot-devkit/iotkit-comm-js · GitHub
This example uses zeromq as the protocol. The service and the associated service specificatoin (*.spec) need to be in the same folder on a the device. The dashboard, thermostat, and sensor can all be on one device or different devices. You can also a hostpc as one of the endpoint if you install nodejs 0.10.x and zeromq.
Hope this helps
I have connected one as the Access Point and one more has the client using Wifi.
But am not sure of how to write the code for the both to communicate. (am using Arduino platform with a C++ language)
Basically i have to display the output of the sketch in the client board to the access point borad using a LCD.