Modifications

Sauter à la navigation Sauter à la recherche
4 306 octets ajoutés ,  9 février 2017 à 21:47
Ligne 21 : Ligne 21 :  
{{traduction}}
 
{{traduction}}
    +
Before you can use the FT232H as a serial UART you need to make sure the proper serial port drivers are installed.  Luckily most operating systems include FTDI's serial UART driver so there typically isn't any installation necessary.
 +
 +
Specifically Mac OSX Mavericks or greater have the FTDI serial driver included automatically.  Linux kernel versions since ~2.6 also have the FTDI serial driver included, so modern Linux distributions like Ubuntu 12.04 or 14.04 should work without any driver installation.  Windows can usually search online to find the driver automatically, however if that fails see below for manual driver installation instructions.
 +
 +
If for some reason your operating system doesn't have FTDI serial drivers installed, you can [http://www.ftdichip.com/Drivers/VCP.htm download and install official drivers from FTDI's site].  There are drivers available for Windows 7 & 8, Mac OSX, and Linux.
 +
 +
=== Installation du pilote série Windows ===
 +
Below I'll briefly walk through installation of the FTDI serial driver for Windows since it is a common platform to install the driver.
 +
 +
First start with your Windows 7, 8, or 8.1 machine booted and the FT232H board '''disconnected''' from the PC. 
 +
 +
[http://www.ftdichip.com/Drivers/VCP.htm Download the FTDI serial driver (sometimes called VCP or virtual COM port) here], make sure to pick the '''Windows setup executable''' version of the driver.
 +
 +
Next open explorer and navigate to the folder where the driver executable was downloaded.  Right click on the file and select '''Run as administrator''' as shown below to start the installation.  It's important to run as administartor or else the driver installation will fail to copy files to Window's system directories.
 +
 +
[[Fichier:RASP-FT232H-Serial-Uart-10.png|640px]]
 +
 +
Now click through the setup pages, read and accept the license agreement, etc. to install the driver.  The aren't any configuration or setup options you need to change or worry about in the installation.
 +
 +
Once the installation is done you might need to reboot your machine if the installation program tells you to do so.
 +
 +
After rebooting, plug in the FT232H breakot to your PC using a USB micro cable.  You should see a message pop up that the device is recognized and a driver is being installed.
 +
 +
To check that the serial port installed successfully and find the COM port assigned to it, open device manager by clicking the start menu and searching for '''Device Manager'''.
 +
 +
Inside device manager look under the '''Ports (COM & LPT)''' node and you should see a '''USB Serial Port (COMx)''' device, where x is a number like 5.  This COMx is the COM port assigned to the FT232H serial UART, and what you should use when connecting to the serial port in the Arduino IDE or with a serial terminal program.
 +
 +
However if for some reason you don't see the '''USB Serial Port (COMx)''' device or '''Ports (COM & LPT)''' node, you might need to enable the VCP mode for the FTDI device.  To do this open the '''Universal Serial Bus''' controllers node at the bottom of Device Manager and you should see a '''USB Serial Converter''' node.  Right click this node and click the '''Properties''' menu, then click the '''Advanced''' tab at the top.  Make sure the '''Load VCP''' checkbox is checked and then click '''OK'''.  See the picture below for the configuration page and device manager view you should see.
 +
 +
[[Fichier:RASP-FT232H-Serial-Uart-11.png|640px]]
 +
 +
Now unplug and plug in again the FT232H board and check device manager again to find the '''USB Serial Port (COMx)''' node in the '''Ports (COM & LPT)''' node.  That's it, you're all set to access the device as a serial COM port in Windows!
 +
 +
== Utiliser le port série ==
 +
Once any necessary serial port drivers are installed, you're ready to use the FT232H as a USB to serial UART.  Let's perform a simple loopback test to confirm you can read and write data with the UART.  This test will connect the TX pin to the RX pin so any data sent to serial UART will be immediately received and echoed back to you.
 +
 +
Using a jumper wire, connect pin '''D0 (TX)'''' to '''D1 (RX)''' on the FT232H breakout as shown below.
 +
 +
[[Fichier:RASP-FT232H-Serial-Uart-20.jpg|640px]]
 +
 +
Now open a serial console for the FT232H board and check that anything you type is echoed back to you.
    
{{RASP-FT232H-TRAILER}}
 
{{RASP-FT232H-TRAILER}}
29 922

modifications

Menu de navigation