Future Technology Devices International Ltd. AN232R-02 FTDIChip-ID for the FT232R and FT245R



Similar documents
Future Technology Devices International Ltd. USB-Key. Datasheet

Application Note. AN_136_Hi-Speed Mini Module EEPROM Disaster Recovery

Future Technology Devices International Ltd. USB NMC-2.5m. USB to USB Null Modem Cable. Datasheet

Future Technology Devices International Ltd. Windows XP Installation Guide

VF2F. USB Flash Disk File-to-file Transfer Vinculum Evaluation Kit. Future Technology Devices International Ltd. Preliminary - Subject to Change

Future Technology Devices International Ltd. FTDI Drivers Installation guide for. Windows VISTA

Future Technology Devices International Ltd. Windows 2000 Installation Guide

Application Note AN_149. Upgrading a passive DB9 RS232 Interface to an active USB Interface using an FTDI DB9-USB-RS232 Module

Application Note AN_385. FTDI D3XX Driver Installation Guide

Future Technology Devices International Ltd. FTDI Drivers Installation guide for Windows XP

Future Technology Devices International Ltd. FTDI Drivers Installation guide for Windows XP

Technical Note. TN_134 FTDI Android D2XX Driver

Future Technology Devices International Ltd. FTDI Drivers Installation guide for. Windows 7

TTL-232R-PCB. TTL to USB Serial Converter PCB. Datasheet

Determining USB Peripheral Device Class

Technical Note TN_152. USB 3.0 Compatibility Issues Explained

Future Technology Devices International Ltd. USB to RS232 Serial Converter Range of Cables. Datasheet

Future Technology Devices International Ltd. VF2F2. USB Flash Disk File-to-file Transfer Vinculum Evaluation Kit.

Future Technology Devices International Ltd. USB to RS232 UART Serial Converter PCB. Datasheet

Future Technology Devices International Ltd. Technical Note TN_101

TTL-232R-3V3 USB to TTL Serial Converter Cable

Future Technology Devices International Ltd. Application Note AN_234. FTDI Drivers Installation guide for. Windows 8

Future Technology Devices International Ltd USB TO RS422 UART SERIAL CONVERTER PCB. Datasheet. Document Reference No.: FT_000119

Simplified Description of USB Device Enumeration

Application Note AN_243. FT312D USB Host to UART Cable Application

White Paper WP_001. Connecting Peripherals to an Android Platform

Command Processor for MPSSE and MCU Host Bus Emulation Modes

Application Note AN_242

Application Note AN_101. Submitting Modified FTDI Drivers for Windows Hardware Certification

FT2232H Mini Module. USB Hi-Speed FT2232H Evaluation Module. Datasheet

FT4232H Mini Module. USB Hi-Speed FT4232H Evaluation Module. Datasheet

Future Technology Devices International Ltd

Application Note AN_241. FTDI_AOA_HyperTerm_User_Manual

Future Technology Devices International Ltd

Technical Note TN_146. Creating Android Images for Application Development

TTL-232R. TTL to USB Serial Converter Range of Cables. Datasheet

TTL-232R. TTL to USB Serial Converter Range of Cables. Datasheet

USB Hi-Speed Serial/Hub Module. Datasheet

Application Note AN_299. FT800_FT801_Internal_Clock _Trimming

Application Note AN_209. AN_209 PDIUSBD12 to FT120 Migration Guide

UMFT4222PROG FT4222 Programmer Module

VDIP1. Vinculum VNC1L Module. Datasheet

Application Note AN_276. FT800 Audio File Conversion

Technical Note. TN_132 Adding FTDI Devices VCP Driver Support to Android

Technical Note. TN_147 Java D2xx for Android

Technical Note TN_158. What is the Camera Parallel Interface?

Application Note AN_185. Vinculum-II UART to USB HID Class Host Bridge

USB-COM422-PLUS1. Datasheet

C232HD. USB 2.0 Hi-Speed to UART Cable. Datasheet

DB9-USB-RS232 Module. Male & Female. Datasheet

USB-COM422-PLUS2. Datasheet

FTDI Chip. VM800P Datasheet Embedded Video Engine Plus Module. VM800P Embedded Video Engine Plus Module Datasheet Version 1.0

USB-COM232-PLUS4. Datasheet

White Paper WP_003. Android Peripheral Options

FTDI Ltd DS_US232R-10(R-100/500) USB to RS232 Adapter cable. Data Sheet

C232HM. USB 2.0 Hi-Speed to MPSSE Cable. Datasheet

UC232R ChiPi Minimum Component FT232RL USB to RS232 Converter Cable

The DB9-USB Family of. UART Converter Modules. Datasheet

Future Technology Devices International Ltd

Application Note AN_146. USB Hardware Design Guidelines for FTDI ICs

Application Note AN_100. Using the FT232R/FT245R with an External Crystal or Oscillator

Vinco Development Module. Datasheet

Technical Note TN_105

USB-Based Temperature & Humidity Sensor

Application Note AN_254. FT800 Designs With Visual TFT

* Lead Free * DLP-2232ML-G LOW-PROFILE USB MODULE. 1.0 Introduction

Application Note AN_250. Configuring FT313H Driver for Embedded Linux

USB - FPGA MODULE (PRELIMINARY)

NOW LEAD-FREE! VCCIO VCCIO RXLED TXLED DTR# 10K FTDI FT232R

Future Technology Devices International Ltd. UM245R USB - Parallel FIFO. Development Module. Datasheet

USB / Data-Acquisition Module NOW LEAD-FREE

Future Technology Devices International Ltd. MM232R USB - Serial UART Development Module. Datasheet

Application Note AN_208. FT311D and FT312D Demo_APK_User_GuideFT311D and FT312D Demo_APK_User_Guide

Prolific USB to SATA Bridge Controller Backup Software User s Manual

UM245R USB-Parallel FIFO Development Module

Application Note AN_252. FT800 Audio Primer

Application Note AN_113. Interfacing FT2232H Hi-Speed Devices To I2C Bus

VeriSign PKI Client Government Edition v 1.5. VeriSign PKI Client Government. VeriSign PKI Client VeriSign, Inc. Government.

DRIVERS INSTALLATION GUIDE

Future Technology Devices International Ltd. Windows 98 Installation Guide

SAPIP GUI INSTALLATION. Table of Contents

Future Technology Devices International Ltd. UM232R USB - Serial UART Development Module. Datasheet

StoneGate SSL VPN Technical Note Adding Bundled Certificates

Future Technology Devices International Ltd. FT311D

Cisco ASA. Implementation Guide. (Version 5.4) Copyright 2011 Deepnet Security Limited. Copyright 2011, Deepnet Security. All Rights Reserved.

Astaro Security Gateway V8. Remote Access via SSL Configuring ASG and Client

USB Stick Driver Installation Instructions

Application Note AN_180. FT232H MPSSE Example - USB Current Meter using the SPI Interface

GigE Cameras. IP Configuration

Software Toolbox License Transfer Guide. TOP Server OPC Server

Installation and Operating Instructions Audit Trail Software for 6126/6127/6128/6129 Series

AN220 USB DRIVER CUSTOMIZATION

NetMotion Mobility XE

Sophos SafeGuard Disk Encryption for Mac Startup guide

GPS 35 USB. installation and quick start guide

KX-Series PBX TAPI Service Provider

Configuring and Monitoring Citrix Branch Repeater

Encrypting*a*Windows*7*Hard*Disk* with%bitlocker%disk%encryption!

How To Connect To A Ppanasonic Pbx On A Pc Or Mac Or Ipa (For A Pc) With A Usb Or Ipo (For Mac) With Pbq (For Pc) On A Usb (For Pb

Intel SSD 520 Series Specification Update

Transcription:

Future Technology Devices International Ltd. AN232R-02 FTDIChip-ID for the FT232R and FT245R

2 AN232R-02 FTDIChip-ID for the FT232R and FT245R 1 FTDIChip-ID for the FT232R and FT245R 1.1 Overview Each FT232R USB UART IC and FT245R USB FIFO IC has a unique identification number burnt into it during manufacture, the FTDIChip-ID. The FTDIChip-ID is readable over USB, but cannot be altered by the end user. This feature provides a way of tying application software to a specific device with a high level of security. The FTDIChip-ID feature can be used without affecting any of the other device features.

FTDIChip-ID for the FT232R and FT245R 3 1.2 Using the FTDIChip-ID The FTDIChip-ID is readable over USB, but cannot be modified. To read the device FTDIChip- ID, the D2XX drivers need to be installed and a separate DLL to read the FTDIChip-ID is also required. This will read the unique FTDIChip-ID from the device and allow application software to check the hardware identity. Further to using the FTDIChip-ID directly to tie hardware to application software, the FTDIChip- ID can be encrypted and then stored in the user area of the FT232R or FT245R device. The data stored in the integrated EEPROM user area can contain information in addition to the FTDIChip-ID, such as date and time information or the name of the person the device is registered to. The EEPROM user area is accessible using the D2XX EEPROM user area functions FT_EE_UASize, FT_EE_UAWrite and FT_EE_UARead. For example, the FTDIChip-ID can be read using a DLL and then combined with a date and time, perhaps to represent a registration date or licence expiration date. All of this information can then be encrypted and stored in the EEPROM user area. Application software can then decrypt this information to determine the date stored in the EEPROM and can compare the decrypted FTDIChip-ID with the unchangeable FTDIChip-ID to confirm that the EEPROM user area has not been modified by an end user.

4 AN232R-02 FTDIChip-ID for the FT232R and FT245R 1.3 Considerations EEPROM User Area Size The integrated EEPROM is 1024 bits (128 bytes) is size. The size of the EEPROM user area available is determined by the length of the serial number and description strings programmed into the EEPROM. If these strings are long, there may not be enough user area available to store the encrypted data required. The D2XX function FT_EE_UASize returns the size of the user area in bytes and can be used to verify the required space is available before attempting to write data to the EEPROM. Strong Encryption Method In order to maintain security, a strong encryption method should be implemented. There are many standard encryption routines (DES, 3DES, AES, Blowfish and many more) that may be used, or a unique encryption method may be chosen. A strong encryption key should also be chosen to maximise security.

FTDIChip-ID for the FT232R and FT245R 5 1.4 FT232R/FT245R Web Registration Example To demonstrate a possible use of the FTDIChip-ID feature, FTDI have made an example available. This example consists of two applications, a server side application and a client application. The server side application is not available as an example, only the client application is distributed. The server maintains a list of all the registered devices and performs part of the data encryption. The client application handles the device EEPROM interfacing and part of the encryption. In the case of this example, the FTDIChip-ID is encrypted 3 times to maintain security at each phase of the registration process. The sequence is as follows: Extract FTDIChip-ID and obtain a date and time stamp from the server, encrypt it and then send it to the server Encrypt a second time and send back to the client application Encrypt the data returned from the server again and program the resulting data into the FT232R/FT245R EEPROM user area To verify the device is registered, the client application decrypts the data from the EEPROM user area and compares the extracted FTDIChip-ID with the protected FTDIChip-ID. If they do not match the device is recognised as not registered. Please note that the D2XX drivers must be installed on the client PC before this example will work. The process of registering a device using the example is as follows: Launch the FTDIChip-ID example client application.

6 AN232R-02 FTDIChip-ID for the FT232R and FT245R Click Find Devices to list all FT232R and FT245R devices connected to the client PC. The screen below shows one device connected and it is unregistered.

FTDIChip-ID for the FT232R and FT245R 7 To proceed with registering the device, check the box next to the device serial number, then click Register.

8 AN232R-02 FTDIChip-ID for the FT232R and FT245R The user is then prompted with a dialog box to provide registration details. These details are held in a database on the server along with the device FTDIChip-ID.

FTDIChip-ID for the FT232R and FT245R 9 Clicking Register Details, the client application obtains a time and date stamp from the server which is combined with the FTDIChip-ID, then encrypted and sent to the server. The server stores the registration details, encrypts the registration data again and returns the data to the client application. The client application then encrypts the data a third time and programs the resulting data into the EEPROM user area. This completes the device registration. Closing then reopening the application and pressing Find Devices, the device is found and recognised as a registered device. The device can be unregistered at any time by clicking the check box next to the registered device serial number and then clicking Unregister. If the portion of the device user area holding the encrypted data is altered, the decrypted FTDIChip-ID will not match the protected FTDIChip-ID. If they do not match the device is recognised as not registered.

10 AN232R-02 FTDIChip-ID for the FT232R and FT245R

FTDIChip-ID for the FT232R and FT245R 11 1.5 References FT232R Datasheet FT245R Datasheet FTDIChip-ID Examples

12 AN232R-02 FTDIChip-ID for the FT232R and FT245R 2 History, Disclaimer, Contact 2.1 Document Revision History Version Release Date Comments 1.0 December 2005 Initial release.

History, Disclaimer, Contact 13 2.2 Disclaimer Neither the whole nor any part of the information contained in, or the product described in this manual, may be adapted or reproduced in any material or electronic form without the prior written consent of the copyright holder. This product and its documentation are supplied on an as-is basis and no warranty as to their suitability for any particular purpose is either made or implied. Future Technology Devices International Ltd. will not accept any claim for damages howsoever arising as a result of use or failure of this product. Your statutory rights are not affected. This product or any variant of it is not intended for use in any medical appliance, device or system in which the failure of the product might reasonably be expected to result in personal injury. This document provides preliminary information that may be subject to change without notice.

14 AN232R-02 FTDIChip-ID for the FT232R and FT245R 2.3 Contact Information Head Office - Glasgow, UK Future Technology Devices International Limited 373 Scotland Street Glasgow G5 8QB United Kingdom Tel: +44 (0) 141 429 2777 Fax: +44 (0) 141 429 2758 E-Mail (Sales): sales1@ftdichip.com E-Mail (Support): support2@ftdichip.com E-Mail (General Enquiries): admin1@ftdichip.com Web Site URL: http://www.ftdichip.com Web Shop URL: http://apple.clickandbuild.com/cnb/shop/ftdichip Branch Office - Taiwan Future Technology Devices International Limited (Taiwan) 4F, No 16-1, Sec. 6 Mincyuan East Road Neihu District Taipei 114 Taiwan ROC Tel: +886 2 8791 3570 Fax: +886 2 8791 3576 E-Mail (Sales): tw.sales1@ftdichip.com E-Mail (Support): tw.support1@ftdichip.com E-Mail (General Enquiries): tw.admin1@ftdichip.com Web Site URL: http://www.ftdichip.com Branch Office - Hillsboro, Oregon, USA Future Technology Devices International Limited (USA) 5285 NE Elam Young Parkway Suite B800 Hillsboro, OR 97124-6499 USA Tel: +1 (503) 547-0988 Fax: +1 (503) 547-0987 E-Mail (Sales): us.sales@ftdichip.com E-Mail (Support): us.support@ftdichip.com E-Mail (General Enquiries): us.admin@ftdichip.com Web Site URL: http://www.ftdichip.com Agents and Sales Representatives Please visit the Sales Network page of the FTDI Web site for the contact details of our distributor(s) in your country.

Index 15 Index - C - Contact 14 - D - Disclaimer 13 - E - E-Mail 14 - F - FT232R 2, 3, 4, 5, 11 FT245R 2, 3, 4, 5, 11 FTDIChip-ID 2, 3, 4 - H - History 12