Modifications

Sauter à la navigation Sauter à la recherche
3 260 octets ajoutés ,  24 octobre 2013 à 10:59
Ligne 96 : Ligne 96 :  
== Reset des processeurs (AR9331, WiFi et 32U4)==
 
== Reset des processeurs (AR9331, WiFi et 32U4)==
    +
To restart the AR9331, which reboots Linino, press the "YÚN RST" reset button that is close to the analog inputs pins and the LEDs of the board.
 +
 +
To restart the the 32U4 and restart the currently installed Arduino sketch, tap the button next to the Ethernet port ''two times''.
 +
 +
The reset button for WiFi is located next to the USB-A connector. When you press the button, the WLAN LED will flash.
 +
 +
If you move to a different network and can no longer wirelessly access the Yún through its web interface, you can reset the Yún's network configuration by pressing the Wifi reset button for longer longer than 5 seconds, but less than 30, the AR9331 processor will reboot. The WiFi configuration will be reset and the Yún will start its own wiFi network Arduino Yún-XXXXXXXXXXXX. Any other modification/configuration will be retained.
 +
 +
To reset the Linino distribution to its default state, press the WiFi reset button for at least 30 seconds. The board reverts to the original settings as if it had been reflashed or taken out of the box. Among other things, this removes all installed files and network settings.
 +
 +
== Serial re-enumeration on reset ==
 +
 +
Since the Yún does not have a dedicated chip to handle serial communication, it means that the serial port is '''virtual''' -- it's a software routine, both on your operating system, and on the board itself. Just as your computer creates an instance of the serial port driver when you plug in any Arduino, the 32u4 creates a serial instance whenever it runs its bootloader. The board is an instance of '''USB's Connected Device Class (CDC)''' driver.
 +
 +
This means that every time you reset the 32U4 processor, the USB serial connection will be broken and re-established. The board will disappear from the list of serial ports, and the list will re-enumerate. Any program that has an open serial connection to the Yún will lose its connection. This is in contrast to the Arduino Uno, with which you can reset the main processor (the ATmega328P) without closing the USB connection (which is maintained by the secondary ATmega8U2 or ATmega16U2 processor). This difference has implications for driver installation, uploading, and communication.
 +
 +
== No reset when you open the serial port ==
 +
 +
The Yún won't restart your sketch when you open a serial port on the computer. That means you won't see serial data that's already been sent to the computer by the board, including, for example, most data sent in setup().
 +
 +
This also applies to the Console, described below.
 +
 +
This means that if you're using any Serial or Console print(), println() or write() statements in setup(), they won't show up when you open the serial monitor or Console connection. To work around this, you can check to see if the port is open like so:
 +
 +
 +
<nowiki>// stops the program until Serial Monitor is opened
 +
while (!Serial);</nowiki>
 +
 +
 +
or
 +
<nowiki>// stops the program until Console is opened
 +
while (!Console) ;</nowiki>
 +
 +
== Installing Drivers for the Yún ==
 +
=== OSX ===
 +
The first time you plug a Yún into a Mac, the "Keyboard Setup Assistant" will launch. There's nothing to configure with the Yún; you can close this dialogue by clicking the red button in the top left of the window.
 +
 +
{{ARDImage|xxx.jpg}}
 +
 +
=== Windows ===
 
{{traduction}}
 
{{traduction}}
  
29 917

modifications

Menu de navigation