Différences entre versions de « Arduino Yun-Librairie »
(Page créée avec « {{Arduino Yun-NAV}} {{traduction}} {{Arduino Yun-TRAILER}} ») |
|||
Ligne 2 : | Ligne 2 : | ||
{{traduction}} | {{traduction}} | ||
+ | |||
+ | == Introduction == | ||
+ | The {{pl|338|Arduino Yún}} has two processors on board. One is an ATmega32U4 like on the {{pl|96|Arduino Leonardo}}. The other is an Atheros 9331, running Linux and the OpenWRT wireless stack, which enables the board to connect to WiFi and Ethernet networks. It is possible to call programs or custom scripts on the Linux system through the Arduino to connect with various internet services. | ||
+ | |||
+ | The Bridge library simplifies communication between the ATmega32U4 and the AR9331. It inherits from Stream (voir ci-dessous), and many of the methods should be familiar from Serial and other derivatives of Stream. | ||
+ | |||
+ | Bridge commands from the 32U4 are interpreted by Python on the AR9331. Its role is to execute programs on the GNU/Linux side when asked by Arduino, provide a shared storage space for sharing data like sensor readings between the Arduino and the Internet, and receiving commands from the Internet and passing them directly to the Arduino. | ||
+ | |||
+ | Bridge allows communication in both directions, acting as an interface to the the Linino command line. For a brief explanations of the terminal and [[Arduino-LinuxCLI|executing commands on Linux see here]]. | ||
+ | |||
+ | To become familiar with the Yún, please see le [[Arduino Yun-Guide|guide de démarrage]] and [[Arduino Yun-Présentation|description matérielle]]. | ||
+ | |||
+ | == Les bibliothèques == | ||
+ | |||
+ | === Process === | ||
+ | Process is used to launch processes on the Linux processor, and other things like shell scripts. | ||
+ | |||
+ | === Console === | ||
+ | Console can be used to communicate with the network monitor in the Arduino IDE, through a shell. Functionally, it is very similar to Serial. | ||
+ | |||
+ | === FileIO === | ||
+ | An interface to the Linino file system. Can be used to read/write files on the SD card | ||
+ | |||
+ | === HttpClient === | ||
+ | Creates a HTTP client on Linino. Acts as a wrapper for common CURL commands, by extending Process. | ||
+ | |||
+ | === Mailbox === | ||
+ | An asynchronous, sessionless interface for communicating between Linino and Arduino. | ||
+ | |||
+ | === YunClient === | ||
+ | An Arduino based HTTP client, modeled after the EthernetClient class. | ||
+ | |||
+ | === YunServer === | ||
+ | An Arduino based HTTP server, modeled after the EthernetServer class. | ||
+ | |||
+ | === Temboo === | ||
+ | An interface to Temboo making it easy to connect to a large variety of online tools. See the Tembo documentation for more. | ||
+ | |||
+ | === Spacebrew === | ||
+ | Spacebrew is "a simple way to connect interactive things to one another" that uses WebSockets to communicate. you can find more about Spacebrew [http://docs.spacebrew.cc/ through their online documentations]. | ||
+ | |||
{{Arduino Yun-TRAILER}} | {{Arduino Yun-TRAILER}} |
Version du 24 novembre 2013 à 14:33
En cours de traduction/élaboration. |
Introduction
The Arduino Yún has two processors on board. One is an ATmega32U4 like on the Arduino Leonardo. The other is an Atheros 9331, running Linux and the OpenWRT wireless stack, which enables the board to connect to WiFi and Ethernet networks. It is possible to call programs or custom scripts on the Linux system through the Arduino to connect with various internet services.
The Bridge library simplifies communication between the ATmega32U4 and the AR9331. It inherits from Stream (voir ci-dessous), and many of the methods should be familiar from Serial and other derivatives of Stream.
Bridge commands from the 32U4 are interpreted by Python on the AR9331. Its role is to execute programs on the GNU/Linux side when asked by Arduino, provide a shared storage space for sharing data like sensor readings between the Arduino and the Internet, and receiving commands from the Internet and passing them directly to the Arduino.
Bridge allows communication in both directions, acting as an interface to the the Linino command line. For a brief explanations of the terminal and executing commands on Linux see here.
To become familiar with the Yún, please see le guide de démarrage and description matérielle.
Les bibliothèques
Process
Process is used to launch processes on the Linux processor, and other things like shell scripts.
Console
Console can be used to communicate with the network monitor in the Arduino IDE, through a shell. Functionally, it is very similar to Serial.
FileIO
An interface to the Linino file system. Can be used to read/write files on the SD card
HttpClient
Creates a HTTP client on Linino. Acts as a wrapper for common CURL commands, by extending Process.
Mailbox
An asynchronous, sessionless interface for communicating between Linino and Arduino.
YunClient
An Arduino based HTTP client, modeled after the EthernetClient class.
YunServer
An Arduino based HTTP server, modeled after the EthernetServer class.
Temboo
An interface to Temboo making it easy to connect to a large variety of online tools. See the Tembo documentation for more.
Spacebrew
Spacebrew is "a simple way to connect interactive things to one another" that uses WebSockets to communicate. you can find more about Spacebrew through their online documentations.
Source: Arduino Yun, Guide to the Arduino Yún. Crédit: Arduino.cc, licence Creative Common Attribution ShareAlike.
Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : « Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.
L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.