Application Note AN_132. Re-Assigning COM Port Numbers Using the Windows Registry

Similar documents
Application Note AN_385. FTDI D3XX Driver Installation Guide

Technical Note TN_152. USB 3.0 Compatibility Issues Explained

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

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

Application Note AN_242

Application Note AN_243. FT312D USB Host to UART Cable Application

Application Note AN_241. FTDI_AOA_HyperTerm_User_Manual

Technical Note. TN_134 FTDI Android D2XX Driver

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

Determining USB Peripheral Device Class

White Paper WP_001. Connecting Peripherals to an Android Platform

Application Note. AN_136_Hi-Speed Mini Module EEPROM Disaster Recovery

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

Technical Note TN_158. What is the Camera Parallel Interface?

Application Note AN_276. FT800 Audio File Conversion

Technical Note TN_146. Creating Android Images for Application Development

UMFT4222PROG FT4222 Programmer Module

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_299. FT800_FT801_Internal_Clock _Trimming

Application Note AN_209. AN_209 PDIUSBD12 to FT120 Migration Guide

Future Technology Devices International Ltd

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

Technical Note. TN_147 Java D2xx for Android

Future Technology Devices International Ltd

Command Processor for MPSSE and MCU Host Bus Emulation Modes

Simplified Description of USB Device Enumeration

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

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

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

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

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

Future Technology Devices International Ltd. Technical Note TN_101

USB Hi-Speed Serial/Hub Module. Datasheet

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

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

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

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

Application Note AN_254. FT800 Designs With Visual TFT

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

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

Future Technology Devices International Ltd. Windows XP Installation Guide

Application Note AN_250. Configuring FT313H Driver for Embedded Linux

Future Technology Devices International Ltd. USB-Key. Datasheet

Application Note AN_208. FT311D and FT312D Demo_APK_User_GuideFT311D and FT312D Demo_APK_User_Guide

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

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

VDIP1. Vinculum VNC1L Module. Datasheet

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

USB-COM422-PLUS1. Datasheet

USB-COM232-PLUS4. Datasheet

Future Technology Devices International Ltd

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

Vinco Development Module. Datasheet

Technical Note TN_105

USB-COM422-PLUS2. Datasheet

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

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

Application Note AN_146. USB Hardware Design Guidelines for FTDI ICs

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

Application Note AN_252. FT800 Audio Primer

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

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

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

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

Prolific USB to SATA Bridge Controller Backup Software User s Manual

DRIVERS INSTALLATION GUIDE

Schneider OS-Loader usage via Ethernet or USB.

Select Correct USB Driver

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

Installation Manual LATC-W1

Application Note Siemens PLC and SIMATIC STEP 7 / TIA Portal

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

Installing PowerLink on Windows 7 64-bit

Handheld LPC Data Retrieval Software for Windows. Operation Manual

Transferring Scans from your Dolphin into Destiny

DLP USB Scroll Control. Configuration Guide for QBox

Centurion PLUS CPC4 Download Guide

FACTORY AUTOMATION MANUAL USB VIRTUAL COM PORT DRIVER INSTALLATION UNDER WINDOWS XP/WINDOWS 2000

ScanWin Installation and Windows 7-64 bit operating system

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

3. USB DRIVER Installation of USB driver Driver for Infinity SD Data Logger. INFINITY Series Acquisition Tools Manual

Future Technology Devices International Ltd. FT311D

Craig Pelkie Bits & Bytes Programming, Inc. craig@web400.com

Serial Ports Troubleshooting. Rev

Basic Use of the SPC Feature on 1100R+/H+ Testers

Title: ZOLL USB Direct Connect Cable Installation Instructions

Welch Allyn PCH100 and PCH200 Installation Guide

Copyright. Disclaimer. Introduction 1. System Requirements Installing the software 4

Operating Instructions. Network Audio Player N-70A/N-50A USB Audio Driver software (for Windows)

Universal Serial Bus (USB) to DH-485 Interface Converter

CNC Transfer. Operating Manual

Wireless Keyboard & Optical Mouse. User Manual

Table of Contents. 1. Overview Materials Required System Requirements User Mode Installation Instructions..

Application Note AN_240. FT800 From the Ground Up

USB Drivers Getting Started Guide

How to use your Capture Manager PC Software

Installing the Gerber P2C Plotter USB Driver

COM Port Stress Test

Transcription:

Application Note AN_132 Re-Assigning COM Port Numbers Using the Windows Registry Version 1.1 Issue Date: 2016-04-27 This application note illustrates how to re-assign automatically assigned FTDI COM port numbers using the Window OS registry. 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): support1@ftdichip.com Web: http://www.ftdichip.com Copyright Future Technology Devices International Limited

Table of Contents 1 Introduction... 2 2 System COM Port Assignment... 3 3 How to Re-Assign COM port numbers by registry modification... 4 3.1 Open the OS registry... 4 3.1.1 Windows XP...4 3.1.2 Windows 7 Onwards...4 3.2 Re-assign the COM Name Arbiter in ComDB... 7 3.3 Import the modifed FTDIUSB registry file... 9 4 Contact Information... 13 Appendix A - References... 14 Acronyms and Abbreviations...14 Appendix B List of Tables & Figures... 15 List of Figures...15 Appendix C - Revision History... 16 1

1 Introduction This application note describes how to re-assign the COM port numbers allocated during installation on Windows operating systems by modifying registry entries. The application note provides a walkthrough of manually editing the registry, but the same technique could be employed by a program. WARNING: Any edits made to a PC registry may be harmful to the operation of the PC. As such we recommend you create a backup of the registry before making any changes. FTDI cannot be held responsible for any damage done as a result of incorrect manual editing of the registry. 2

2 System COM Port Assignment COM ports are assigned to FTDI devices during installation, based on the next free port as indicated by the PC registry. In most systems this would imply starting at COM3 as COM 1 and COM2 are usually reserved for legacy COM ports. If COM3 is already in use, the next available COM port index will be claimed. In the case of multiple interface chips, such as the FT2232H or FT4232H, a co -installer is used to claim consecutive COM ports for the interfaces of the device. If three FTDI FT4232H devices are connected to a PC, then 12 COM ports will appear to the operating system. In the example below, the PC has assigned these COM ports with com port numbers from COM3 to COM14. Figure 1 - System COM Port Assignment 3

3 How to Re-Assign COM port numbers by registry modification In the example above, the operating system automatically assigns the 12 COM ports from COM3 to COM14. If it is required to re-assign the COM port numbers without setting each port individually, then the FTDIUSB file in the registry can be used to do this. Follow the procedures below to re-assign COM Port numbers using the operating system registry. 3.1 Open the OS registry 3.1.1 Windows XP To open the OS registry, select the Start button and press the Run. In the pop-up box that appears, type regedt32 and press enter to access the registry. This is shown in the figure below. Figure 2 - Accessing the Registry (Windows XP) 3.1.2 Windows 7 Onwards To open the OS registry, select the Start button and in the search box type regedt32. This should display the registry executable as shown below in the image to the left. Right click on this to open the context menu where you should select the Run as administrator option, as shown in the image to the right. If you do not select Run as administrator the remaining steps will not work. 4

Figure 3 - Accessing the Registry (Windows 7) Within the registry, navigate to the following area to access all FTDI devices: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\FTDIBUS. Select FTDIBUS and then under the file pull-down menu select export as shown in the figure below. This will export the FTDIBUS registry key, sub-keys and values to a file. Figure 4 - Export the FTDIBUS Registry to a File Right click on this saved file and select Edit to open the file, as shown in the figure below. 5

Figure 5 - Edit the Registry File In the FTDIUSB.reg file, modify the FriendlyName and PortName in the file for each port which needs to re-assigned. Figure 6 - Modifying the FTDIUSB.reg Registry File For example to re-assign COM7 to COM17 modify the FTDIUSB.reg file as follows: 6

Replace FriendlyName from USB Serial Port (COM7) to USB Serial Port (COM17), and modify PortName from COM7 to COM17 at the same time. This will re-assign COM7 to COM17 after the registry file has been uploaded (illustrated later). The same method can be used to modify each port. Note: Care should be taken that the same COM port number is not repeated. 3.2 Re-assign the COM Name Arbiter in ComDB If COM3 to COM14 are re-assigned to COM13 to COM24, then it is necessary to free up the unused com ports (COM3~COM12) and allocate the new additional ports COM15~COM24. To do this it is necessary to modify the ComDB database by using the following procedure. Open the registry and navigate to the following area of the registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\COM Name Arbiter Open the ComDB as shown in the figure below. The example shows that the original value of ComDB is as follows: ComDB original value = FF 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 The ComDB value is a bit mask of COM ports already allocated. This value is equivalent to COM3~COM14. The first byte FF equates to the com ports COM8~COM1 and indicates that these COM ports are occupied. The second byte 3F equates to the com ports COM14~COM9 and this indicates that these COM ports are occupied. (Note that COM1 and COM2 are the COM port of motherboard). 7

Figure 7 - Editing the ComDB Database To allocate the COM port numbers COM13~COM24, it is necessary to modify the ComDB value as follows: ComDB new value = 03 F0 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 This is shown in the following diagram: Figure 8 - Change the Value 3 The first byte 03 is used for COM2 and COM1 of motherboard. COM8~COM3 are not used. 8

The second byte F0 is equates to COM12~COM9 that are not used and COM16~COM13 that are occupied. The third byte FF equates to COM24~COM17 which are occupied. Note: The first byte controls COM8~1, the second byte controls COM16~9, the third byte controls COM24~COM17 and so on. A value=0 means that the port is not used. A value=1 means that the port is occupied. 3.3 Import the modifed FTDIUSB registry file When the FTDIUSB registry file has been modified it is necessary to import the file back into the registry. To be able to do this a user must have full access control rights to modify it in the registry. To modify the permissions, right click on the FTDIUSB folder in the registry and select the Permissions to enable the permission for modification as shown in the figure below - Figure 9 - Modifying Registry Permissions for FTDIUSB Folder The following window will appear. Select full control then press OK. 9

Figure 10 - Allow Full Control Access Rights to the FTDIUSB Registry Note: You may encounter an Access is denied error as per the below diagram. If so follow the below steps. Figure 11 - "Access Denied" Message Window Open the Permissions window for FTDIBUS again and click on the advanced button instead. In the Advanced Security Settings window click on the Owner tab. If the current owner is not you then change to you by highlighting your name in the Change owner to: window. Click Apply > OK. 10

Repeat the steps at the beginning of section 3.3. Note: It is always a good practice reversing the changes back to their default settings, once you have made the necessary changes. Next import the modified FTDIUSB file. Select Import and choose the modified registry file to import the registry file. This is shown in the following figure: Figure 12 - Importing the FTDIUSB File to the Registry To check that the procedure has worked, open the device manager and press Scan for hardware changes. This should show the new COM port assignments as illustrated in the following figure: 11

Figure 13 - Device Manager Re-Assigned COM Port Numbers 12

4 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) sales1@ftdichip.com E-mail (Sales) us.sales@ftdichip.com E-mail (Support) support1@ftdichip.com E-mail (Support) us.support@ftdichip.com E-mail (General Enquiries) admin1@ftdichip.com E-mail (General Enquiries) us.admin@ftdichip.com Branch Office Taipei, Taiwan Branch Office Shanghai, China Future Technology Devices International Limited (Taiwan) 2F, No. 516, Sec. 1, NeiHu Road Taipei 114 Taiwan, R.O.C. Tel: +886 (0) 2 8791 3570 Fax: +886 (0) 2 8791 3576 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) tw.sales1@ftdichip.com E-mail (Sales) cn.sales@ftdichip.com E-mail (Support) tw.support1@ftdichip.com E-mail (Support) cn.support@ftdichip.com E-mail (General Enquiries) tw.admin1@ftdichip.com E-mail (General Enquiries) cn.admin@ftdichip.com Web Site http://ftdichip.com Distributor and Sales Representatives Please visit the Sales Network page of the FTDI Web site for the contact details of our distributor(s) and sales representative(s) in your country. System and equipment manufac turers and des igners are res pons ible to ens ure that their sys tems, and any Future T ec hnology Devices I nternational Ltd (FTDI ) devic es incorporated in their s ystems, meet all applicable safety, regulatory and sys tem-level performanc e requirements. All application-related information in this doc ument (including applic ation desc riptions, s u ggested FTDI devic es and other materials ) is provided for reference only. While FTDI has taken c are to ass ure it is acc urate, this information is s ubjec t to c us tomer c onfirmation, and FTDI disclaims all liability for sys tem designs and for any applic ations assis tanc e provided by FTDI. Us e of FTDI devic es in life s upport and/or safety applications is entirely at the us er s risk, and the us er agrees to defend, indemnify a nd hold harmless FTDI from any and all damages, claims, s uits or expens e resulting from s uch use. T his doc ument is s ubject to change without notice. N o freedom to use patents or other intellec tual property rights is implied by the publication of this doc ument. N either the whole nor any part of the information c ontained in, or the product desc ribed in this document, may be adapted or reproduced in any material or elec tronic form without the prior written c onsent of the c opyright holder. Future Tec hnology Devices I nternational Ltd, U nit 1, 2 Seaward P lac e, C enturion Business P ark, Glasgow G4 1 1HH, U nited Kingdom. Sc otland Registered Company N umber: SC136640 13

Appendix A - References Acronyms and Abbreviations Terms COM OS PC USB Description Communication Port Operating System Personal Computer Universal Serial Bus 14

Appendix B List of Tables & Figures List of Figures Figure 1 - System COM Port Assignment... 3 Figure 2 - Accessing the Registry (Windows XP)... 4 Figure 3 - Accessing the Registry (Windows 7)... 5 Figure 4 - Export the FTDIBUS Registry to a File... 5 Figure 5 - Edit the Registry File... 6 Figure 6 - Modifying the FTDIUSB.reg Registry File... 6 Figure 7 - Editing the ComDB Database... 8 Figure 8 - Change the Value 3... 8 Figure 9 - Modifying Registry Permissions for FTDIUSB Folder... 9 Figure 10 - Allow Full Control Access Rights to the FTDIUSB Registry... 10 Figure 11 - "Access Denied" Message Window... 10 Figure 12 - Importing the FTDIUSB File to the Registry... 11 Figure 13 - Device Manager Re-Assigned COM Port Numbers... 12 15

Appendix C - Revision History Document Title: Document Reference No.: AN_132 Re-Assigning COM Port Numbers Using the Windows Registry FT_000196 Clearance No.: FTDI# 121 Product Page: Document Feedback: http://www.ftdichip.com/ftproducts.htm Send Feedback Revision Changes Date 1.0 Initial release 2009-11-06 1.1 Update to include Windows 7 onwards 2016-04-27 16