[ Team LiB ] |
22.4 Installing and Configuring Serial Port Hardware Before you buy a serial port,
If you do need to buy a serial port card, get a dual-16650 card, Once the port is physically installed and enabled, the next step is
If you need 22.4.1 Configuring COM Port Settings Once you have installed and 22.4.1.1 Configuring COM port settings in Windows 9XTo configure COM port settings in Figure 22-5. The General page of Communications Port Properties displaying the operational status of the portClick the Port Settings tab to display the Port Settings page, shown Figure 22-6. The Port Settings page, where you configure communication parameters for the port
Windows automatically detects and enables Figure 22-7. Advanced Port Settings, where you configure UART |
|
To modify IRQ and/or I/O port settings, display the
Resources page, shown in Figure 22-8. Clear the Use
automatic settings checkbox, and select one of the Basic
Configurations shown in Table 22-11. Highlight
Input/Output Range or IRQ and click Change Setting. Select an
available I/O port or IRQ, making sure that the Conflict information
pane indicates that no conflicts exist. Save the changes and restart
the system.
Figure 22-8. Windows 98SE
displaying automatic settings for COM1
Table 22-11 lists Windows 98 (not Windows 98SE) Basic
Configurations for COM ports. Basic Configurations 0, 2, 4, and 6
define standard uneditable values for COM1 through COM4,
respectively. Basic Configurations 1, 3, 5, and 7 assign standard
settings for I/O Port, but allow you to modify the IRQ. Choosing
Basic Configuration 8 allows you to assign any IRQ and I/O port to a
COM port.
Basic configuration | Comm port | Default IRQ | IRQ editable? | Default I/O port | I/O port editable? |
---|---|---|---|---|---|
0 | 1 | 4 | No | 0x3F8 - 0x3FF | No |
1 | 1 | 4 | Yes | 0x3F8 - 0x3FF | No |
2 | 2 | 3 | No | 0x2F8 - 0x2FF | No |
3 | 2 | 3 | Yes | 0x2F8 - 0x2FF | No |
4 | 3 | 4 | No | 0x3E8 - 0x3EF | No |
5 | 3 | 4 | Yes | 0x3E8 - 0x3EF | No |
6 | 4 | 3 | No | 0x2E8 - 0x2EF | No |
7 | 4 | 3 | Yes | 0x2E8 - 0x2EF | No |
8 | Any | Variable | Yes | Variable | Yes |
Table 22-12 and Table 22-13 list Windows 98SE (not Windows
98) Basic Configurations for COM ports 1 and 2, respectively. In each
case, Basic Configuration 0000 uses the most common settings for that
port, and allows editing neither IRQ nor I/O Port. Basic
Configurations 0001 through 0004 allow you to choose a standard I/O
Port address range and assign any available IRQ to that COM port. The
Windows 98SE method differs from that of Windows 98 and Windows 2000
(described in the following section) in that it forces you to choose
a predefined I/O Port address range, and allows editing only the IRQ
assigned to that port.
Basic configuration | Default IRQ | IRQ editable? | Default I/O port | I/O port editable? |
---|---|---|---|---|
0000 | 4 | No | 0x3F8 - 0x3FF | No |
0001 | 4 | Yes | 0x3F8 - 0x3FF | No |
0002 | 4 | Yes | 0x2F8 - 0x2FF | No |
0003 | 4 | Yes | 0x3E8 - 0x3EF | No |
0004 | 4 | Yes | 0x2E8 - 0x2EF | No |
Basic configuration | Default IRQ | IRQ editable? | Default I/O port | I/O port editable? |
---|---|---|---|---|
0000 | 3 | No | 0x2F8 - 0x2FF | No |
0001 | 3 | Yes | 0x2F8 - 0x2FF | No |
0002 | 3 | Yes | 0x3F8 - 0x3FF | No |
0003 | 3 | Yes | 0x3E8 - 0x3EF | No |
0004 | 3 | Yes | 0x2E8 - 0x2EF | No |
22.4.1.2 Configuring COM port settings in Windows NT 4
To configure port
settings in Windows NT, run the Control Panel Ports applet. The Ports
dialog lists the COM ports that NT recognizes. Double-click the port
to be configured and use the drop-down lists in the Settings dialog,
shown in Figure 22-9, to configure default port
settings for speed, framing, and flow control.
Figure 22-9. The Windows NT 4 Settings dialog, where you configure communication parameters for the port
To view or change settings for I/O port and IRQ, click the Advanced
button in the Settings dialog, and use the drop-down lists to specify
parameters for the port (see Figure 22-10). You can
enable or disable FIFO buffering by marking or clearing the checkbox,
but Windows NT 4 makes no provision for tuning FIFO performance from
the GUI. Although it's probably not worth the time
to do, you can modify FIFO buffering settings using the Registry
Editor. FIFO settings are contained in the key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Serial.
The relevant value entries are:
- RxFIFO
The RxFIFO value entry specifies the number of
bytes that must accumulate in the receive FIFO buffer before a COM
port interrupt is triggered. RxFIFO is a REG_DWORD value. The default
value for this entry is the value set for the Serial service, which
is eight bytes.- TxFIFO
The TxFIFO value entry specifies the number of
bytes that must accumulate in the send FIFO buffer before a COM port
interrupt is triggered. TxFIFO is a REG_DWORD value. The default
value for this entry is the value set for the Serial service, which
is one byte.Figure 22-10. The Windows NT 4 Advanced Settings dialog, where you configure base address and IRQ for a selected COM port
Note the following when you are configuring COM ports under NT:
NT may or may not recognize a newly installed port, depending on its
settings. If the new port is not listed, click Add from the Ports
dialog and use the drop-down lists to define port number, I/O port,
and IRQ for the new port, as described earlier.You can enter a custom value for I/O port address instead of using
one of those listed.NT does not prevent you from using settings that will cause port
conflicts, so verify that the IRQ and I/O port address are available
before configuring a port to use them.
22.4.1.3 Configuring COM port settings in Windows 2000/XP
To configure port settings in Windows
2000/XP, right-click the My Computer icon and choose Properties to
display the System Properties dialog. Display the Hardware page and
click the Device Manager button. If necessary, mark the View devices
by type option button. Expand the Ports (COM and LPT) item, and
double-click the port you are configuring to display the port
Properties dialog, shown in Figure 22-11. The General
page reports port status and whether or not the port is available for
use in the current profile. The Port Settings page, shown in Figure 22-11, allows you to change the default speed and
framing parameters for the port.
Figure 22-11. The Windows 2000/XP Port Settings, where you change default speed and framing parameters for the selected port
Windows 2000/XP automatically detects and enables 16550 FIFO
buffering by default, but sets both Receive Buffer and Transmit
Buffer to their fastest settings by default. On most systems, these
settings work properly. If you encounter frequent retries or
corrupted data on the serial port, try using these sliders on the
Advanced Settings dialog, shown in Figure 22-12, to
reduce the buffer settings in small increments.
Figure 22-12. The Receive Buffer and Transmit Buffer sliders, which you can adjust for optimum performance
To modify IRQ and/or I/O port settings, display the Resources page,
shown in Figure 22-13. Clear the Use automatic
settings checkbox, and select one of the Basic Configurations shown
in Table 22-14 (for COM1) or Table 22-15 (for COM2). Highlight Input/Output Range or
IRQ and click Change Setting. Select an available I/O port or IRQ,
making sure that the Conflict information pane indicates that no
conflicts exist. Save the changes and restart the system.
Figure 22-13. Windows XP Professional displaying automatic settings for COM1
Table 22-14 and Table 22-15
list Windows 2000/XP Basic Configurations for COM ports 1 and 2,
respectively. In each case, Basic Configurations 0000 through 0003
define standard settings for the COM ports, with 0000 corresponding
to the most common settings. For either port, choosing Basic
Configuration 0004 allows you to assign any available IRQ and I/O
port to that COM port. The Windows 2000 method is similar to that of
Windows 98SE, except that Windows 2000 allows editing both IRQ and
I/O Port address range in Basic Configuration 0004, whereas Windows
98SE forces you to select from among the listed I/O Port address
ranges, and allows editing only the IRQ assigned to the port.
Basic configuration | Default IRQ | Default I/O port | Editable? |
---|---|---|---|
0000 | 04 | 0x3F8 - 0x3FF | No |
0001 | 04 | 0x3E8 - 0x3EF | No |
0002 | 03 | 0x2F8 - 0x2FF | No |
0003 | 03 | 0x2E8 - 0x2EF | No |
0004 | 04 | 0x3F8 - 0x3FF | Yes |
Basic configuration | Default IRQ | Default I/O port | Editable? |
---|---|---|---|
0000 | 03 | 0x2F8 - 0x2FF | No |
0001 | 03 | 0x2E8 - 0x2EF | No |
0002 | 04 | 0x3F8 - 0x3FF | No |
0003 | 04 | 0x3E8 - 0x3EF | No |
0004 | 03 | 0x2F8 - 0x2FF | Yes |
On some i440BX-based systems梐nd perhaps systems with other
chipsets as well, although we have not encountered it梂indows
2000/XP refuses to recognize serial ports and parallel ports. From
reports we receive from readers, this is apparently not an uncommon
problem. The symptom of this problem is that the Device Manager
displays a yellow exclamation point for the port(s) in question.
Double-clicking the port displays the Device status information shown
in Figure 22-14.
Figure 22-14. Windows displaying Device status as disabled when it does not recognize a port
According to Microsoft, the message "This device is
disabled because the firmware of the device did not give it the
required resources. (Code 29)" indicates either that
the port is disabled in the BIOS but is still being enumerated, or
that the system BIOS needs to be updated. Each time we have
encountered this problem, updating the system BIOS to the most recent
version indeed fixed the problem.
[ Team LiB ] |
No comments:
Post a Comment