Advanced Driver Options



Yüklə 338,83 Kb.
Pdf görüntüsü
səhifə8/13
tarix08.10.2017
ölçüsü338,83 Kb.
#3923
1   ...   5   6   7   8   9   10   11   12   13

 

 

 



Copyright © 2008-2014 Future Technology Devices International Limited 

20 


 

Document Reference No.: FT_000073 

Advanced Driver Options AN_107 Application Note

 

AN_107 Version 2.53 



Clearance No.: FTDI# 63 

6.6.1

 

Timeouts 

The read and write timeout values may be set through the FTDIPORT.INF file. 

[FtdiPort.NT.HW.AddReg] 

HKR,,"MinReadTimeout",0x00010001,

HKR,,"MinWriteTimeout",0x00010001,

This INF file fragment shows the minimum read and minimum write timeout values set to 0ms. 

These values are held in the registry under this key: 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\FTDIBUS\{Device VID, PID and serial 

number}\0000\Device Parameters 

 

 



 

 

 



6.6.2

 

Serial Enumerator 

The function of the serial enumerator is to detect a Plug-and-Play enabled device (such as a serial 

mouse or serial modem) that is attached to the USB serial port. 

The Serial Enumerator option is controlled through the following entries in FTDIPORT.INF: 

[FtdiPort.NT.HW.AddReg] 

HKR,,"UpperFilters",0x00010000,"serenum" 

 

6.6.3

 

Serial Printer 

If enabled, serial printer will disable timeouts to allow for long delays associated with paper 

loading. The Serial Printer option is controlled through bit 7 of byte 0 of the first DWORD of the 

ConfigData entry in the FTDIPORT.INF file. This is the same entry that contains the Baud rate 

table. 

The first DWORD is shown in bold in the INF fragment below. 



[FtdiPort.NT.HW.AddReg] 

HKR,,"ConfigData",1,01,00,3F,3F,10,27,88,13,C4,09,E2,04,71,02,38,41,9C,80,4E,C0,34,00,

1A,00, 0D,00,06,40,03,80,00,00,D0,80 

Please note that this entry is byte-reversed, so MSB the DWORD reads 3F 3F 00 01 and the least 

significant bit is Bit 0. When disabled (serial printer disabled), the DWORD would read 3F 3F 00 

01. When enabled (serial printer enabled), the DWORD would read 3F 3F 00 81

These values are held in the registry under this key: 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\FTDIBUS\{Device VID, PID and serial 

number}\0000\Device Parameters\ConfigData 

 

6.6.4

 

Cancel If Power Off 

The Cancel If Power Off option can be used to assist with problems encountered when going into a 

hibernate or suspend condition. This will cancel any requests received by the driver when going 

into hibernate or suspend. 




 

 

 



Copyright © 2008-2014 Future Technology Devices International Limited 

21 


 

Document Reference No.: FT_000073 

Advanced Driver Options AN_107 Application Note

 

AN_107 Version 2.53 



Clearance No.: FTDI# 63 

The Cancel If Power Off option is controlled through bit 6 of byte 0 of the first DWORD of the 

ConfigData entry in the FTDIPORT.INF file. This is the same entry that contains the Baud rate 

table. 


The first DWORD is shown in bold in the INF fragment below. 

[FtdiPort.NT.HW.AddReg] 

HKR,,"ConfigData",1,01,00,3F,3F,10,27,88,13,C4,09,E2,04,71,02,38,41,9C,80,4E,C0,34,00,

1A,00, 0D,00,06,40,03,80,00,00,D0,80 

Please note that this entry is byte-reversed, so MSB the DWORD reads 3F 3F 00 01 and the least 

significant bit is Bit 0. When disabled (no cancel on power off), the DWORD would read 3F 3F 00 



01. When enabled (cancel on power off), the DWORD would read 3F 3F 00 41. 

These values are held in the registry under this key: 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\FTDIBUS\{Device VID, PID and serial 

number}\0000\Device Parameters\ConfigData 

 

6.6.5

 

Event On Surprise Removal 

The Event On Surprise Removal option is generally left unselected. If an application sets 

SERIAL_EV_EVENT2 (see NTDDSER.H) in it's event bitmask and this feature is enabled, the driver 

will signal this event on surprise removal. 

The Event On Surprise Removal option is controlled through bit 5 of byte 0 of the first DWORD of 

the ConfigData entry in the FTDIPORT.INF file. This is the same entry that contains the Baud rate 

table. 

The first DWORD is shown in bold in the INF fragment below. 



[FtdiPort.NT.HW.AddReg] 

HKR,,"ConfigData",1,01,00,3F,3F,10,27,88,13,C4,09,E2,04,71,02,38,41,9C,80,4E,C0,34,00,

1A,00, 0D,00,06,40,03,80,00,00,D0,80 

Please note that this entry is byte-reversed, so MSB the DWORD reads 3F 3F 00 01 and the least 

significant bit is Bit 0. When disabled (no event on surprise removal), the DWORD would read 3F 

3F 00 01. When enabled (event on surprise removal), the DWORD would read 3F 3F 00 21

These values are held in the registry under this key: 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\FTDIBUS\{Device VID, PID and serial 

number}\0000\Device Parameters\ConfigData 

 

6.6.6

 

Set RTS On Close 

Selecting the Set RTS On Close option will set the RTS signal on closing the port. The Set RTS On 

Close option is controlled through bit 3 of byte 0 of the first DWORD of the ConfigData entry in the 

FTDIPORT.INF file. This is the same entry that contains the Baud rate table. 

The first DWORD is shown in bold in the INF fragment below. 

[FtdiPort.NT.HW.AddReg] 

HKR,,"ConfigData",1,01,00,3F,3F,10,27,88,13,C4,09,E2,04,71,02,38,41,9C,80,4E,C0,34,00,

1A,00, 0D,00,06,40,03,80,00,00,D0,80 

Please note that this entry is byte-reversed, so MSB the DWORD reads 3F 3F 00 01 and the least 

significant bit is Bit 0. When disabled (RTS not set on close), the DWORD would read 3F 3F 00 01

When enabled (RTS set on close), the DWORD would read 3F 3F 00 09

These values are held in the registry under this key: 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\FTDIBUS\{Device VID, PID and serial 

number}\0000\Device Parameters\ConfigData 




Yüklə 338,83 Kb.

Dostları ilə paylaş:
1   ...   5   6   7   8   9   10   11   12   13




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©www.genderi.org 2024
rəhbərliyinə müraciət

    Ana səhifə