Modifications

Sauter à la navigation Sauter à la recherche
aucun résumé de modification
Ligne 1 : Ligne 1 :  
{{Bluefruit-LE-Shield-NAV}}
 
{{Bluefruit-LE-Shield-NAV}}
  −
{{traduction}}
      
== Croquis BLEUart ==
 
== Croquis BLEUart ==
The '''BLEUart''' example sketch allows you to send and receive text data between the Arduino and a connected Bluetooth Low Energy Central device on the other end (such as you mobile phone using the '''Adafruit Bluefruit LE Connect''' application for [https://play.google.com/store/apps/details?id=com.adafruit.bluefruit.le.connect Android] or [https://itunes.apple.com/app/adafruit-bluefruit-le-connect/id830125974?mt=8 iOS] in UART mode).
+
L'exemple '''BLEUart''' permet d'échanger des données texte (envoi et réception) entre un Arduino et un périphérique Bluetooth Low Energy connecté à l'autre bout (comme un téléphone mobile utilisant l'application '''Adafruit Bluefruit LE Connect''' pour [https://play.google.com/store/apps/details?id=com.adafruit.bluefruit.le.connect Android] ou [https://itunes.apple.com/app/adafruit-bluefruit-le-connect/id830125974?mt=8 iOS]. Le transfert se fait en mode UART).
    
== Ouvrir le croquis ==
 
== Ouvrir le croquis ==
To open the ATCommand sketch, click on the '''File > Examples > Adafruit_BluefruitLE_nRF51''' folder in the Arduino IDE and select '''bleuart_cmdmode''':
+
Pour ouvrir le croquis ATCommand, cliquez sur le menu '''Fichiers > Exemples > Adafruit_BluefruitLE_nRF51''' dans Arduino IDE puis sélectionnez '''bleuart_cmdmode''':
    
{{ADFImage|Bluefruit-LE-Shield-BLEUart-00.png}}
 
{{ADFImage|Bluefruit-LE-Shield-BLEUart-00.png}}
   −
This will open up a new instance of the example in the IDE, as shown below:
+
Cela ouvrira l'exemple dans l'environnement de développement, comme visible ci-dessous:
    
{{ADFImage|Bluefruit-LE-Shield-BLEUart-01.png}}
 
{{ADFImage|Bluefruit-LE-Shield-BLEUart-01.png}}
    
== Configuration ==
 
== Configuration ==
Check the '''Configuration!''' page earlier to set up the sketch for Software/Hardware UART or Software/Hardware SPI. The default is hardware SPI
+
Vérifiez la page '''Configuration''' présenter plus tôt dans le tutoriel! Il est important de configurer le croquis pour utiliser soit l'UART Logiciel/Matériel, soit le bus SPI Logiciel/Matériel correspondant à votre plateforme. Par défaut, le croquis utilise le bus SPI matériel
   −
If using software or hardware Serial UART:
+
Si vous utilisez le port série/UART logiciel ou matériel:
* This tutorial does not need to use the MODE pin, '''make sure you have the mode switch in CMD mode''' if you do not configure & connect a MODE pin
+
* Ce tutoriel ne requière pas l'utilisation de la broche MODE, '''assurez-vous d'avoir l'interrupteur en position CMD''' si vous ne configurer pas (et ne connectez pas) la broche MODE.
* Don't forget to also '''connect the CTS pin on the Bluefruit to ground if you are not using it!''' (The Flora has this already done)
+
* N'oubliez pas de '''connecter la broche CTS sur la masse/GND du Bluefruit si vous n'utilisez pas le signal CTS!''' (Le Flora l'a déjà branché à la masse)
    
== Exécuter le croquis ==
 
== Exécuter le croquis ==
Once you upload the sketch to your board (via the arrow-shaped upload icon), and the upload process has finished, open up the Serial Monitor via '''Tools > Serial Monitor''', and make sure that the baud rate in the lower right-hand corner is set to '''115200''':
+
Une fois le croquis téléversé sur votre carte Arduino, vous pouvez ouvrir le moniteur série via le menu '''Outils > Moniteur série'''. Assurez-vous que le débit (Baud rate) soit configuré sur '''115200''' bauds (en bas à droite):
    
{{ADFImage|Bluefruit-LE-Shield-BLEUart-10.png}}
 
{{ADFImage|Bluefruit-LE-Shield-BLEUart-10.png}}
   −
Once you see the request, use the App to connect to the Bluefruit LE module in '''UART''' mode so you get the text box on your phone
+
Une fois que vous pouvez voir les requêtes envoyées au module BleFruit, utiliser l'App Adafruit sur votre smartphone pour vous connecter sur le module Bluefruit LE en mode '''UART''' (vous obtiendrez donc une zone texte sur votre téléphone.
   −
Any text that you type in the box at the top of the Serial Monitor will be sent to the connected phone, and any data sent from the phone will be displayed in the serial monitor:
+
Tout le texte que vous saisissez dans la zone de saisie du moniteur série (la zone en haut) sera envoyé vers le smartphone... et toutes les donnée envoyé depuis le smarphone sera affiché dans le moniteur série:
    
{{ADFImage|Bluefruit-LE-Shield-BLEUart-11.png}}
 
{{ADFImage|Bluefruit-LE-Shield-BLEUart-11.png}}
   −
You can see the incoming string here in the Adafruit Bluefruit LE Connect app below (iOS in this case):
+
Vous pouvez voir, ci-dessous, les chaînes de caractères arrivant sur l'application "Adafruit Bluefruit LE Connect" (App iOS en l'occurence):
    
{{ADFImage|Bluefruit-LE-Shield-BLEUart-12.png|480px}}
 
{{ADFImage|Bluefruit-LE-Shield-BLEUart-12.png|480px}}
   −
The response text ('Why hello, Arduino!') can be seen below:
+
Le texte de réponse ('Why hello, Arduino!') renvoyé depuis le Smartphone est visible dans le moniteur série Arduino (voir ci-dessous):
    
{{ADFImage|Bluefruit-LE-Shield-BLEUart-13.png}}
 
{{ADFImage|Bluefruit-LE-Shield-BLEUart-13.png}}
    
{{Bluefruit-LE-Shield-TRAILER}}
 
{{Bluefruit-LE-Shield-TRAILER}}
29 917

modifications

Menu de navigation