AN_243 FT312D USB Host to UART Cable Application

Future Technology Devices International Ltd
Application Note AN_243
FT312D USB Host to UART Cable
Application
Document Reference No. FT_000839
Version 1.0
Issue Date: 2013-05-21
This application note illustrates how to develop a USB host to
UART/RS232 cable for Android Open Accessory. The FT312D USB to
serial UART converter chip will be used on this Android application.
Future Technology Devices International Limited (FTDI)
Unit 1,2 Seaward Place, Glasgow G41 1HH, United Kingdom
Tel.: +44 (0) 141 429 2777 Fax: + 44 (0) 141 429 2758
E-Mail (Support): [email protected] Web: http://www.ftdichip.com
Copyright © 2013 Future Technology Devices International Limited
Document Reference No.: FT_000839
FT312D USB Host to UART Cable Application Application Note AN_243
Version 1.0
Clearance No.: FTDI 340
Table of Contents
1
2
Introduction ....................................................................................... 2
1.1
Block Diagram ................................................................................................. 2
1.2
FT312D Feature .............................................................................................. 2
Application Examples...................................................................... 4
2.1
USB to RS232 ................................................................................................... 4
2.2
USB to RS485 ................................................................................................... 4
2.3
USB to RS422 ................................................................................................... 5
3
Reference Schematic ...................................................................... 6
4
Manufacture Tool and Software Development ...................... 7
5
Acronyms and Abbreviations ....................................................... 8
6
Contact Information ........................................................................ 9
Appendix A - List of Figures and Tables ....................................... 10
Appendix B - Revision History ......................................................... 11
1
Copyright © 2013 Future Technology Devices International Limited
Document Reference No.: FT_000839
FT312D USB Host to UART Cable Application Application Note AN_243
Version 1.0
Clearance No.: FTDI 340
1
Introduction
The FT312D is a dedicated USB Full Speed host bridge chip that has been designed specifically
to support Android Open Accessory protocol. The FT312D connects to a USB device on the
Android platform, establishes the USB connection, enumerates Open Accessories, and then
provides a bridge from the USB host port to a UART interface. All necessary USB and Android
Open Accessory protocol is incorporated in the FT312D, so that designers can quickly and
easily establish a USB connectivity link and have a basic UART (RXD, TXD, RTS, CTS signals)
interface for their end systems.
Android Open Accessory Protocol is supported in Android Honeycomb (3.1) and later versions,
with the benefit that data can be transmitted and received without additional driver support.
This document gives a brief introduction to the features and applications of the FT312D (USB
Android Host chip), and demonstrates the USB to UART bridge function. A cable application is
used as the specific example.
1.1 Block Diagram
FT31xD USB Host to Android RS232/485/422 Cable
Android Devices
(Tablet, Phone)
USB Device Port
Micro USB B
Plug and
Tethered
Cable
FT31xD USB
Host to Basic
UART controller
USB Data
DB9
Connector
RS232/485/422
Converter
TTL Level
UART Data
RS232/485/422
Level
UART Data
RS232/485/422
Application’s
female DB9
connector/Gender
Changer/DB9 Cable
Power Source
5V/600mA
Figure 1 USB Host to Android RS232/485/422 Cable
1.2 FT312D Feature

Suitable for use on any Android platform supporting Android Open Accessory Mode
(Typically 3.1 onwards, however some platforms may port Open Accessory Mode to version
2.3.4)

Basic UART interface with RXD, TXD, RTS, CTS pins option.

Provide general HyperTerm UART utility; easily adaptable to a console function.
•
Support CTS/RTS Flow control
•
Support Baud from 300 to 921600 with CTS/RTS flow control
•
Support Baud from 300 to 115200 without flow control
•
Save file and Send file functions

FT312D large UART RX buffer size of 5512 bytes for enhanced UART performance. (FT311D
RX buffer is 512Byte)

USB Plug and Play

Provide power source to the Android device via the Y-cable configuration.

USB 2.0 Full Speed compatible.

USB error and over current indicator.
2
Copyright © 2013 Future Technology Devices International Limited
Document Reference No.: FT_000839
FT312D USB Host to UART Cable Application Application Note AN_243
Version 1.0
Clearance No.: FTDI 340

Suitable for TTL, RS232, RS422, or RS485 depending on the transceiver used in
conjunction with the FT312D.
FT312D data sheet may be downloaded from:
http://www.ftdichip.com/Support/Documents/DataSheets/ICs/DS_FT312D.pdf
3
Copyright © 2013 Future Technology Devices International Limited
Document Reference No.: FT_000839
FT312D USB Host to UART Cable Application Application Note AN_243
Version 1.0
Clearance No.: FTDI 340
2
Application Examples
The following sections illustrate possible applications of the FT312D.
2.1 USB to RS232
Figure 2 Application Example Showing USB to RS232
2.2 USB to RS485
Figure 3 Application Example Showing USB to RS485
4
Copyright © 2013 Future Technology Devices International Limited
Document Reference No.: FT_000839
FT312D USB Host to UART Cable Application Application Note AN_243
Version 1.0
Clearance No.: FTDI 340
2.3 USB to RS422
Figure 4 Application Example Showing USB to RS422
5
Copyright © 2013 Future Technology Devices International Limited
Document Reference No.: FT_000839
FT312D USB Host to UART Cable Application Application Note AN_243
Version 1.0
Clearance No.: FTDI 340
3 Reference Schematic
Figure 5 FT312D USB to RS232 Reference schematic
6
Copyright © 2013 Future Technology Devices International Limited
Document Reference No.: FT_000839
FT312D USB Host to UART Cable Application Application Note AN_243
Version 1.0
Clearance No.: FTDI 340
4 Manufacture Tool and Software Development
The manufacture configuration utility may be downloaded from:
http://www.ftdichip.com/Support/Utilities/FT312D_Configuration_V010000.zip
And the user guide, AN_236 User Guide for FT312D Configuration, is available for download at:
http://www.ftdichip.com/Support/Documents/AppNotes/AN_236_UserGuide_for_FT312D_Confi
guration_Utility.pdf
FTDI provide the Android Open Accessory Hyperterm utility via Google Play. Reference software
is provided free of charge, as-is, with no warranties or guarantees.
https://play.google.com/store/search?q=pub:Future Technology Devices International Ltd
A complete user manual is available for download at:
http://www.ftdichip.com/Support/Documents/AppNotes/AN_241_FTDI_AOA_HyperTerm_User
_Manual.pdf

Critical: Note that the reference software and production version of the FT312D were
developed so that the Android device strings correlate. If customers are interested in
providing their own Hyper Terminal application software with addition feature and benefits,
then it is critical that these strings correlate for proper functionality. Further reference
material is provided below if designers choose this type of development.
A complete programmer guide, following the Standard Google Android Open Accessory
Protocol is available for download at:
http://www.ftdichip.com/Support/Documents/ProgramGuides/FT31xD_Android_programmer_g
uide(FT_000532).pdf
FTDI also provide sample code for an Android Open Accessory application that may be
downloaded from:
http://www.ftdichip.com/Support/SoftwareExamples/Android/Android.zip
http://www.ftdichip.com/Support/Documents/AppNotes/AN_208_FT31xD_Demo_APK_User_G
uide.pdf
Additional reference material may also be found at the links below.

Google Android Open Accessory ADK: http://developer.android.com/tools/adk/index.html

FTDI Chip’s Android Support Page: http://www.ftdichip.com/Android.htm
7
Copyright © 2013 Future Technology Devices International Limited
Document Reference No.: FT_000839
FT312D USB Host to UART Cable Application Application Note AN_243
Version 1.0
Clearance No.: FTDI 340
5 Acronyms and Abbreviations
Terms
Description
ADK
Accessory Development Kit
Android
Linux-based operating system designed primarily for touch
screen mobile devices
AOA
Android Open Accessory
HyperTerm
COM Port Communication Tool
UART
Universal Asynchronous Receiver/Transmitter
USB
Universal Serial bus
Table 1 Acronyms and Abbreviations
8
Copyright © 2013 Future Technology Devices International Limited
Document Reference No.: FT_000839
FT312D USB Host to UART Cable Application Application Note AN_243
Version 1.0
Clearance No.: FTDI 340
6 Contact Information
Head Office – Glasgow, UK
Branch Office – Tigard, Oregon, USA
Future Technology Devices International Limited
Unit 1, 2 Seaward Place, Centurion Business Park
Glasgow G41 1HH
United Kingdom
Tel: +44 (0) 141 429 2777
Fax: +44 (0) 141 429 2758
Future Technology Devices International Limited
(USA)
7130 SW Fir Loop
Tigard, OR 97223-8160
USA
Tel: +1 (503) 547 0988
Fax: +1 (503) 547 0987
E-mail (Sales)
E-mail (Support)
E-mail (General Enquiries)
E-Mail (Sales)
E-Mail (Support)
E-Mail (General Enquiries)
[email protected]
[email protected]
[email protected]
Branch Office – Taipei, Taiwan
Future Technology Devices International Limited
(Taiwan)
2F, No. 516, Sec. 1, NeiHu Road
Taipei 114
Taiwan , R.O.C.
Tel: +886 (0) 2 8797 1330
Fax: +886 (0) 2 8751 9737
E-mail (Sales)
E-mail (Support)
E-mail (General Enquiries)
[email protected]
[email protected]
[email protected]
us.sales[email protected]
[email protected]
[email protected]
Branch Office – Shanghai, China
Future Technology Devices International Limited
(China)
Room 1103, No. 666 West Huaihai Road,
Shanghai, 200052
China
Tel: +86 21 62351596
Fax: +86 21 62351595
E-mail (Sales)
E-mail (Support)
E-mail (General Enquiries)
[email protected]
[email protected]
[email protected]
Web Site
http://ftdichip.com
System and equipment manufacturers and designers are responsible to ensure that their systems, and any Future Technology
Devices International Ltd (FTDI) devices incorporated in their systems, meet all applicable safety, regulatory and system-level
performance requirements. All application-related information in this document (including application descriptions, suggested
FTDI devices and other materials) is provided for reference only. While FTDI has taken care to assure it is accurate, this
information is subject to customer confirmation, and FTDI disclaims all liability for system designs and for any applications
assistance provided by FTDI. Use of FTDI devices in life support and/or safety applications is entirely at the user’s risk, and the
user agrees to defend, indemnify and hold harmless FTDI from any and all damages, claims, suits or expense resulting from
such use. This document is subject to change without notice. No freedom to use patents or other intellectual property rights is
implied by the publication of this document. Neither the whole nor any part of the information contained in, or the product
described in this document, may be adapted or reproduced in any material or electronic form without the prior written consent
of the copyright holder. Future Technology Devices International Ltd, Unit 1, 2 Seaward Place, Centurion Business Park,
Glasgow G41 1HH, United Kingdom. Scotland Registered Company Number: SC136640
9
Copyright © 2013 Future Technology Devices International Limited
Document Reference No.: FT_000839
FT312D USB Host to UART Cable Application Application Note AN_243
Version 1.0
Clearance No.: FTDI 340
Appendix A - List of Figures and Tables
List of Figures
Figure 1 USB Host to Android RS232/485/422 Cable ................................................ 2
Figure 2 Application Example Showing USB to RS232 ............................................... 4
Figure 3 Application Example Showing USB to RS485 ............................................... 4
Figure 4 Application Example Showing USB to RS422 ............................................... 5
Figure 5 FT312D USB to RS232 Reference schematic ................................................ 6
List of Tables
Table 1 Acronyms and Abbreviations .......................................................................... 8
10
Copyright © 2013 Future Technology Devices International Limited
Document Reference No.: FT_000839
FT312D USB Host to UART Cable Application Application Note AN_243
Version 1.0
Clearance No.: FTDI 340
Appendix B - Revision History
Revision History
Version 1.0
21st May, 2013
Initial Release
11
Copyright © 2013 Future Technology Devices International Limited