Modifications

Sauter à la navigation Sauter à la recherche
1 165 octets ajoutés ,  8 septembre 2017 à 09:24
Ligne 1 : Ligne 1 :  
{{RASP-FT232H-NAV}}
 
{{RASP-FT232H-NAV}}
  −
{{traduction}}
      
= Installation sous Windows =
 
= Installation sous Windows =
Ligne 9 : Ligne 7 :     
Avant de commencer, assurez vous d'avoir Python 2.7 installé sur votre machine. Vous pouvez [https://www.python.org/downloads/windows/ télécharger la dernière version de Python 2.7 ici] (<small>c'est la version 2.7.8 au moment où nous écrivons ces lignes, n'importe quelle version 2.7.x devrait convenir--'''les version 3.x ne sont malheureusement pas encore supportés'''</small>). Téléchargez l'installateur MSI correspondant à votre version de Windows, soit 32-bits ou 64-bits, puis exécutez le programme d'installation. Installez Python dans son répertoire d'installation standard, généralement C:\python27. Assurez vous d'avoir sélectionné l'option ajoutant "Python dans le ''system path''" de sorte que vous pourrez appeler l'interpréteur depuis n'importe quelle ligne de commande (ou terminal).
 
Avant de commencer, assurez vous d'avoir Python 2.7 installé sur votre machine. Vous pouvez [https://www.python.org/downloads/windows/ télécharger la dernière version de Python 2.7 ici] (<small>c'est la version 2.7.8 au moment où nous écrivons ces lignes, n'importe quelle version 2.7.x devrait convenir--'''les version 3.x ne sont malheureusement pas encore supportés'''</small>). Téléchargez l'installateur MSI correspondant à votre version de Windows, soit 32-bits ou 64-bits, puis exécutez le programme d'installation. Installez Python dans son répertoire d'installation standard, généralement C:\python27. Assurez vous d'avoir sélectionné l'option ajoutant "Python dans le ''system path''" de sorte que vous pourrez appeler l'interpréteur depuis n'importe quelle ligne de commande (ou terminal).
 +
 +
{{ambox-stop|text=Attention: nous avons fait différents tests et avons remarqué qu'il est impossible de charger le bibliothèque "ftdi" (compilée en Win32) sur une installation Python 64 bit (tournant sur un Win 64Bit). Le simple fait d'utiliser un python win32 a résolu notre problème.}}
    
== Installation de libusb ==
 
== Installation de libusb ==
Téléchargez l'outil Zadig correspondant à votre version de Windows [http://zadig.akeo.ie/at depuis la page Zadig]. Cet outil simplifie l'installation du pilote libusb pour le périphérique FT232H.
+
Téléchargez l'outil Zadig correspondant à votre version de Windows [http://zadig.akeo.ie/ depuis la page Zadig]. Cet outil simplifie l'installation du pilote libusb pour le périphérique FT232H.
    
Débranchez tous les périphériques FTDI de votre ordinateur avant d'exécuter l'outil. Cela inclus les périphériques tesl qu'Arduino  qui inclus un composant FTDI utilisé comme convertisseur USB vers série. Vous devez débrancher des périphériques pour être certain de ne pas accidentellement l'un d'eux et remplacer son pilote avec l'outil.
 
Débranchez tous les périphériques FTDI de votre ordinateur avant d'exécuter l'outil. Cela inclus les périphériques tesl qu'Arduino  qui inclus un composant FTDI utilisé comme convertisseur USB vers série. Vous devez débrancher des périphériques pour être certain de ne pas accidentellement l'un d'eux et remplacer son pilote avec l'outil.
Ligne 40 : Ligne 40 :     
== Installation libftdi ==
 
== Installation libftdi ==
This step will install libftdi's Python libraryCarefully follow the steps below to make sure the library is installed.
+
Cette étape installe la bibliothèque Python pour libftdi.  Suivez attentivement les étapes suivantes pour installer correctement la bibliothèque.
   −
Start by downloading the binary version of the libftdi library by clicking the button below. This binary is provided by the [https://sourceforge.net/projects/picusb/files/ picusb USB resources project].
+
Nous allons commencer par télécharger la version binaire de la bibliothèque libftdi en cliquant sur le bouton ci-dessous. Ce binaire est fournit dans [https://sourceforge.net/projects/picusb/files/ les ressources du picusb USB].
    
{{download-box|libftdi1-1.0_devkit_mingw32_17Feb2013.zip|http://downloads.sourceforge.net/project/picusb/libftdi1-1.0_devkit_mingw32_17Feb2013.zip}}
 
{{download-box|libftdi1-1.0_devkit_mingw32_17Feb2013.zip|http://downloads.sourceforge.net/project/picusb/libftdi1-1.0_devkit_mingw32_17Feb2013.zip}}
   −
Unzip the archive and you should see a series of folders like below:
+
En dézippant l'archive, vous devriez vous une série de répertoire comme ceci:
    
{{ADFImage|RASP-FT232H-MPSSE-Windows-20.png}}
 
{{ADFImage|RASP-FT232H-MPSSE-Windows-20.png}}
   −
We need to copy some files from libftdi into Python's package directory. Open another Explorer window and navigate to the location you installed Python earlier, typically '''C:\python27'''. Inside the Python directory navigate to the '''Lib > site-packages''' folder. Files you copy into this folder will be available globally as packages that your Python scripts can use.
+
Nous aurons besoin de copier quelques fichiers de libftdi dans le répertoire des paquet Python (un répertoire nommé "package"). Ouvrez un autre explorateur de fichier et naviguez dans le répertoire où vous avez installé Python, généralement '''C:\python27'''. Dans le répertoire Python, déplacez vous vers le sous répertoire '''Lib > site-packages'''.  
 +
 
 +
Les fichiers que vous copierez dans ce répertoire seront disponibles "globalement" pour vos propres scripts Python.
   −
From the libftdi archive folder, copy all the .DLL files from the '''bin''' folder into the Python '''site-packages''' folder, specifically:
+
Depuis le répertoire de l'archive libftdi, copiez tous les fichiers .DLL du répertoire '''bin''' vers le répertoires '''site-packages''' de python. Et plus spécialement:
 
* '''bin\libftdi1.dll'''
 
* '''bin\libftdi1.dll'''
 
* '''bin\libftdipp1.dll'''
 
* '''bin\libftdipp1.dll'''
Ligne 61 : Ligne 63 :  
* '''bin\libusb-1.0.dll'''
 
* '''bin\libusb-1.0.dll'''
   −
Then also copy in the files from the python2.7 folder of the libftdi archive into the Python site-packages folder:
+
Puis, copiez également les fichiers suivants contenu dans le sous répertoire python2.7 de l'archive libftdi. Ces fichiers doivent également être copiés dans le répertoire site-packages de python:
 
* '''python2.7\_ftdi.pyd'''
 
* '''python2.7\_ftdi.pyd'''
 
* '''python2.7\ftdi1.py'''
 
* '''python2.7\ftdi1.py'''
   −
To double check you copied in the right files, your Python site-packages folder should have at least the files below inside it (you might see other files & directories, but don't worry they can be ignored):
+
Vérifiez une nouvelle fois que les fichiers soient copiés au bon emplacement. Votre répertoire site-packages doit au moins contenir les fichiers listés ci-dessus (vous devriez également voir d'autres répertoires et fichier mais vous pouvez les ignorer):
    
{{ADFImage|RASP-FT232H-MPSSE-Windows-21.png}}
 
{{ADFImage|RASP-FT232H-MPSSE-Windows-21.png}}
   −
That's all you need to do to install libftdi. Let's move on to install the Adafruit Python GPIO library next.
+
Voilà, c'est tout ce dont vous aurez besoin pour installer libftdi.  
 +
 
 +
Maintenant, nous allons pouvoir installer la bibliothèque "Adafruit Python GPIO".
    
== Bibliothèque Adafruit Python GPIO ==
 
== Bibliothèque Adafruit Python GPIO ==
Finally let's install the Adafruit Python GPIO library which will allow your Python scripts to access the MPSSE functionality of the FT232H breakout
+
Voila, nous allons terminer par l'installation de la bibliothèque "Adafruit Python GPIO" qui permettra à vos scripts python d'accéder au fonctionnalités MPSSE du breakout FT232H.
   −
First download an archive of the library by clicking the button below:
+
Pour commencer, nous allons télécharger l'archive en cliquant sur le lien suivant:
    
{{download-box|Adafruit Python GPIO Library|https://github.com/adafruit/Adafruit_Python_GPIO/archive/master.zip}}
 
{{download-box|Adafruit Python GPIO Library|https://github.com/adafruit/Adafruit_Python_GPIO/archive/master.zip}}
   −
Unzip the contents and then open a command terminal and navigate to the directory where the library was unzipped. Execute the following command to install the library:
+
Dézipper le contenu de l'archiver dans un répertoire. Démarrez ensuite un terminal et rendre vous dans le répertoire où vous avez dézippé le contenu de l'archive.
 +
 
 +
Saisissez y la commande suivante:
    
  <nowiki>python setup.py install</nowiki>
 
  <nowiki>python setup.py install</nowiki>
   −
Note if you see an error that Python can't be found then make sure you installed Python 2.7 as mentioned at the top of the page, and that it was added to your system path. [http://stackoverflow.com/questions/6318156/adding-python-path-on-windows-7 Here's more details on how to manually add Python to your system path].
+
Note: si vous constatez un message d'erreur indiquant que python ne peut être trouvé alors assurez vous d'avoir installé Python 2.7 comme mentionné en début de cette page (et avoir ajouté python au répertoire de recherche système). [http://stackoverflow.com/questions/6318156/adding-python-path-on-windows-7 Vous trouverez des détails sur ajouter manuellement python au répertoire de recherche système] (''stackoverflow, anglais'').
   −
You should see the Python library install itself with text similar to the below:
+
Vous devriez voir la bibliothèque python s'installer toute seule... comme ci-dessous:
    
{{ADFImage|RASP-FT232H-MPSSE-Windows-30.png}}
 
{{ADFImage|RASP-FT232H-MPSSE-Windows-30.png}}
   −
Now let's test if both the libftdi and Adafruit Python GPIO libraries were correctly installedIn the command terminal run Python by executing:
+
Nous allons maintenant vérifier que les bibliothèques libftdi et Adafruit Python GPIO soient correctement installéeExécutez les commandes suivantes dans un terminal:
    
<nowiki>python</nowiki>
 
<nowiki>python</nowiki>
   −
Once the Python interpretor has loaded, type the following at the >>> prompt:
+
Une fois l'interpréteur chargé, saisissez les commandes suivantes sur l'invite de commande python (invite idéntifié par ">>>" ):
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
Ligne 99 : Ligne 105 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
You should see no response from the Python interpretor after entering each command like below:
+
Vous ne devriez pas voir de message de la part de l'interpréteur. Cela signifie que les commandes se ont étés exécutées avec succès et que les bibliothèques ont étés chargées... comme ci-dessous:
    
{{ADFImage|RASP-FT232H-MPSSE-Windows-31.png}}
 
{{ADFImage|RASP-FT232H-MPSSE-Windows-31.png}}
   −
No response from the Python interpretor is a good sign because it means Python was able to successfully load the libraries.
+
Si vous constatez un message d'erreur après la saisie d'une commande, cela signifie que quelque chose ne s'est pas déroulé convenablement durant l'installation des bibliothèques. Dans ce cas, revenez en arrière dans le tutoriel et vérifiez point par point les différentes étapes d'installation. Vous aurez besoin d'avoir tous les fichiers libftdi dans le répertoire site-packages de Python. La bibliothèque Adafruit Python GPIO doit également s'installer avec succès.
 
  −
If you see an error message or failure after entering a command, unfortunately something went wrong with the installation of the library. Go back through the steps above and carefully check that nothing was missed. You want to make sure all the libftdi files are copied into the Python site-packages folder, and that the Adafruit Python GPIO library installed itself successfully.
     −
Once you've confirmed Python can load the libraries, exit the Python interpretor by typing:
+
Une fois que vous avez confirmé le chargement des bibliothèques dans python, vous pourrez quitter l'interpréteur en saisissant la commande suivante:
    
  <nowiki>quit()</nowiki>
 
  <nowiki>quit()</nowiki>
   −
Congratulations, the MPSSE mode drivers and Python libraries are installed and ready to use! Move on to the next section to see how to use the MPSSE mode to access GPIO, SPI, I2C, etc.
+
Félicitation, le pilote en mode MPSSE et la biblothèque Python sont installés en prêt à l'emploi! Nous pouvons maintenant passer à la suite du tutoriel pour apprendre à utiliser le mode MPSSE et accéder aux GPIO, bus SPI, bus I2C, etc.
    
== Désinstallation de libusb ==
 
== Désinstallation de libusb ==
29 917

modifications

Menu de navigation