The other day, we gave you an overview of the Yún’s hardware. Today, we are going to talk about the Bridge library, describing how it facilitates communication between the two processors. The Arduino Yún has two different processors on-board: an Atheros AR9331 running Linino (a customized OpenWRT GNU/Linux distribution maintained by Dog Hunter) linked through its serial port with an Atmel ATMega32U4 (the same processor as the Leonardo).
The Bridge concerns itself with communication between these two parts of the Yún.
The Bridge is made of two different parts
One part, written in Python, runs on the GNU/Linux processor and has three functions:
- it executes programs on the GNU/Linux side, when asked by Arduino.
- it provides a shared storage space, useful for sharing data like sensor readings between the Arduino and the Internet
- it receives commands coming from the Internet and passes them directly to the Arduino
The other part of Bridge is the library that runs on the 32U4. The library allows you to access the Linino parts of Bridge through your sketches. (more…)