Sunday, December 28, 2008

Power Supply

Power Supplies

The computer needs electrical power to operate. It is plugged into a 110-volt socket, which uses Alternating Current (AC). Computers use 5- and 12-volt direct current (DC) electricity. Therefore, a device is required to convert the power from the wall socket to the power required by the computer. This is the function of a power supply. Power supply connectors are either the Molex type (square shape) or the Bundy type (rectangular shape).
Although power supplies are rated in different ways, the most common rating is in watts. A watt is a unit of measurement of an electrically powered device and is affected by the electricity that is passed through it. Because computer components are becoming increasingly more efficient with large-scale integration and low-power designs, a 200 or 250 watt power supply is typically large enough for most systems. Do not be surprised, however, to see a 300-or-more-watt power supply in some of the larger network servers with large hard drives and other peripherals.

Power supplies are most often found in a rear corner of the inside of the computer, and have several colored wires running out of them. These are called power connectors and are used to connect peripherals such as floppies, tape backups, or hard drives. The power supply will most likely have a fan attached. Although some newer designs do not, most still use the fan in order to maintain an internal temperature acceptable to the design of the circuitry. The fan moves warm air outside the computer and brings cool air in.

The power supply will have an AC line that will connect into the wall. It will also have connectors for external peripheral devices. Usually there are three or more disk drive connectors and two system board connectors. Hard drives and 5-1/4" floppy drives use the same connector; 31/2" drives use a smaller one. Older models of computers typically connected the monitor to the power supply. Newer models of monitors plug directly into the wall, because they require more power than the power supply connector can provide.

Getting a bit more technical, the AC current is converted to DC in the power supply. There are four voltages present in a power supply: +12 volts, -12 volts, +5 volts, and -5 volts. The +12 voltage is for the motor, and the +5 voltage is for the processor. These are the four levels of electricity the computer needs to operate. Different devices use different voltage levels. The power supply not only converts these, but also ensures that the flow of electricity into the computer is received evenly, without bursts or sags.

Because of the voltages used and because not all technicians are certified electricians, repairing power supplies is not recommended. Replacement is the safest option. However, the wiring for the connectors can be tested for proper voltage levels.
The following table shows specifications for the output wiring of the power supply.

Wire Voltage Proper Range Current Range (Amps)
Yellow +12 +8.5 - +12.6 0.0 - 2.00
Blue -12 -8.5 - -12.6 0.0 - 0.25
Red +5 +2.4 - +5.2 2.3 - 7.00
White -5 -4.5 - -5.4 0.0 - 0.30
The specifications may be tested with a multimeter, which has a dial so you can specify what you want tested. You can select DC Volts, AC Volts, or Amps. Later in the course, we will demonstrate the use of multimeters.

Selecting Power Supplies

When selecting power supplies to be used as on-hand spares, when building PCs from component subsystems, or when given the option on vendor-built systems, you need to give some thought to what you are selecting. While all power supplies use the same input voltages and provide the same DC output voltages, there are some differences, which may influence your decision.

Peak Power

This determines the amount of power available for short term, high current situations, as it occurs when you first turn on the system. Large hard disks can increase your peak power requirements.

Number and type of connectors

You will need a connector for each hard disk and floppy disk you install in your system. Both hard disks and 5-1/4" floppy disk drives use the same power connector.
Many 3-1/2" disk drives use a different type of connector. There are jumper plugs available that convert one type of connector to the other.

For today's PCs, the minimum rating for a power supply is 200 to 250 Watts.

Power Requirements

Listed below are the average power requirements that you can expect from many common devices. Several factors can affect these requirements. Always check vendor documentation for information on specific devices.

Device AC Current Requirements at 120 Volts Power Requirements
System Board &expansion cards 0.80 Amps 96.0 VA
Diskette drive and adapter 0.16 Amps 19.2 VA
Additional diskette drive 0.05 Amps 6.0 VA
Hard Disk* 0.13 Amps 15.6 VA
* Average value for 3 1/2" hard disk. Increase to 40 VA for a 5 1/4" hard disk. VA (Volt Amps) is a measure of power and is equal to WATTS.

Scanner Installation

Scanner Installation

You will want to consider the following before purchasing a scanner to attach to a PC.
The scanner will need to be attached to the PC via an expansion card. Some scanners offer a serial interface in addition to another interface; however, scanners generate large amounts of data, up to 7 MB or more. You will not want to send all of the data through a serial port because it takes too long. Faster interfaces, such as SCSI or Hewlett-Packard's General Purpose Interface Bus (GPIB), or one that is proprietary, will offer better scanner performance.

Does the machine to which you are planning to add the scanner have adequate expansion slots? Is an IRQ available? If you are adding a scanner to an 8-bit machine, IRQ 2 is a good starting point, because some network and video adapters use this IRQ. When adding a scanner to a 16-bit machine, try using the interrupts above IRQ 8.
In addition to finding an available IRQ, you will have to find an available I/O port. First, try using the address suggested by the manufacturer of the scanner. If you find you have a conflict in the I/O ports, you will have to find another address that works.

When installing a scanner, you may want to test it before reassembling the case of the PC. If you have problems and need access to the inside of the PC, the case will already be removed.
As always, exercise EXTREME care when working with a computer with the case removed. Make sure that you follow all safety guidelines discussed in Chapter Two.
After you install the expansion card and make the hardware settings, you will need to install the software to operate the scanner.

Before loading the scanner's software, make a backup copy of both the autoexec.bat and config.sys files so you will have a record of them before the scanner software is installed. You will need to make changes to the config.sys file to add a device driver. This change may be made automatically by the scanner's installation software. You will need to reboot the computer for the changes to take effect.

Saturday, December 27, 2008

Troubleshooting TCP/IP

Troubleshooting TCP/IP

Troubleshooting TCP/IP - Detailed Steps

This article shows how to troubleshoot TCP/IP connectivity between computers on a Windows network. If you haven’t already done so, disable XP’s Internet Connection Firewall on all local area network connections, and remove all firewall programs on the network. Improperly configured firewalls are the most common cause of TCP/IP problems.

Open a Command Prompt Window

For many of these steps, you’ll be typing at the command prompt. To open a command prompt window in Windows 2000 or XP, click Start Run, type cmd in the box, and click OK. To open a command prompt window in Windows 95, 98, or Me, click Start Run, type command in the box, and click OK. Type one command per line, and press Enter after each one to execute it. To close the command prompt window, use the exit command.

Determine the TCP/IP Settings

Determine the TCP/IP settings of each computer on the local area network. In XP, open the Network Connections folder, right click the LAN connection, and click Status Support Details. For example, here are the Status and Details views for the LAN connection on an Internet Connection Sharing host.

In Windows 95/98/Me, click Start Run, type winipcfg in the box, and click OK. Select the LAN adapter from the menu, and click More Info.

You can also see the TCP/IP settings from the command prompt. This is especially convenient if a computer has more than one network adapter. Use the ipconfig /all command, which is available in all versions except Windows 95. The output from this command can be long, so it’s best to write it to a file. Specify the file name in the command this way:

ipconfig /all >ipconfig.txt

Description of TCP/IP Settings

Here are the TCP/IP settings that are used in network troubleshooting:

IP Address – Unique address assigned to a network adapter. A computer with multiple network adapters has an IP address for each one, and each one must be in a different subnet.

Subnet Mask – Used in conjunction with the IP address to determine which subnet an adapter belongs to. At the simplest level, communication is only possible between two network adapters when they’re in the same subnet.

Default Gateway - IP address of a computer or router, on one of this computer’s local area networks, that knows how to communicate with subnets not present on this computer. For an Internet connection, the default gateway is a router belonging to your Internet service provider, and all access to sites on the Internet goes through it. For an ICS client, the default gateway is the ICS host. If you use a hardware router, it serves as the default gateway.

DHCP Server – If an adapter is configured to obtain an IP address automatically, this is the address of the server that provides it. It could be your ISP, an ICS host, or a hardware router.

DNS Servers – IP address of one or more Domain Name Server computers. DNS servers translate Internet names (like http://www.practicallynetworked.com/) to their IP addresses (like 63.146.109.227).

Subnets

See our article on subnets for a brief description of how they work. For more details, see this Microsoft Knowledge Base article.

If two computers are supposed to be on the same subnet, but aren’t, something is wrong with the network hardware or software configuration. This is most likely to happen when one of them receives an IP address of 169.254.x.x, which indicates that:

It’s configured to obtain an IP address automatically.

It couldn’t find a DHPC server on the network to make the assignment.

Windows assigned it an Automatic Private IP Address.

See our article on Specific Networking Problems and Their Solutions for more information.

Pinging

The ping command is the basic tool for testing TCP/IP connectivity. It sends a special packet (called ICMP Echo) to a particular IP address and looks for a reply. If everything is working right, the reply comes back. If not, the ping times out in a few seconds. By default, the ping command repeats the process four times. Here’s an example of an ICS client computer pinging a Windows XP Home Edition ICS host, using the host’s IP address and its computer name.

When ping fails, you’ll see one of these error messages:

Request timed out - The IP address is valid, but there’s no reply from it. If the IP address is on a local area network, the most likely cause is a firewall program blocking the ping.

Unknown host or Ping request could not find host - The computer name doesn’t exist on the local area network. Make sure that NetBIOS over TCP/IP is enabled.

Destination host unreachable – The IP address isn’t on a local area network, and the default gateway can’t access it. Either there’s no default gateway, its address is wrong, or it isn’t functioning.

Pinging the Local Area Network

Here is a series of ping commands to use in finding where a problem occurs on a local area network. Run them in the order shown, and don’t go on to the next command until all of the previous commands work properly. In this example:

The computer being tested is named Winxp, with IP address 192.168.1.101.

There’s another computer on the network, named Win98, with IP address 192.168.1.123

Substitute the appropriate IP addresses and computer names for your network.

Command Target What Ping Failure Indicates

ping 127.0.0.1 Loopback address Corrupted TCP/IP installation

ping localhost Loopback name Corrupted TCP/IP installation

ping 192.168.1.101 This computer’s IP address Corrupted TCP/IP installation

ping winxp This computer’s name Corrupted TCP/IP installation

ping 192.168.1.123 Another computer’s IP address Bad hardware or NIC driver

ping win98 Another computer’s name NetBIOS name resolution failure

To fix a corrupted TCP/IP Installation on Windows XP, follow the steps in this Microsoft Knowledge Base article. For Windows 95/98/Me, un-install the TCP/IP protocol in Control Panel Network, reboot, and re-install it. If that doesn’t fix it, use this procedure on Windows 95 or 98.

Pinging the Internet

You can also use ping to find a problem with Internet access. Run these commands in the order shown, and don’t go on to the next command until all of the previous commands work properly. Use the Default Gateway and DNS Server addresses that you got from the winipcfg or ipconfig /all command.

Command Target What Ping Failure Indicates

ping w.x.y.z Default Gateway Default Gateway down

ping w.x.y.z DNS Server DNS Server down

ping w.x.y.z Web site IP address Internet service provider or web site down

ping www.something.com Web site name DNS Server down or web site down

Thursday, December 25, 2008

Installation of Plug and Play Devices

Installation of Plug and Play Devices
If the device is a new installation, Windows should detect the
device at startup. One of three things can happen:
1. Windows will already have the required software device drivers and configure the system with or without user prompts
2. Windows will prompt the user for the OS installation CDs to retrieve the required drivers
3. Windows will prompt the user to provide the location for the required drivers supplied by the device manufacturer.
This would be your cue to insert the manufacturer’s CD that came with the device and point Windows to the correct driver installation file for the OS. Alternately, the manufacturer’s instal­lation guide may provide a different method for installation. Example: most USB devices require that you install the software first before connecting the device.
If Windows recognizes the device but you don’t have the man­ufacturer’s CD, there is a good chance that you can enable basic functionality by using the default Windows drivers. See the section Installation of non-Plug and Play Devices on how to tell Windows to use the default Windows drivers.

Installation of non-Plug and Play devices
If the device is not getting detected by Plug and Play during system startup, this usually means that you have a non-Plug and Play device. If you have the manufacturer’s CD and/or manual, look for installation instructions. Non-Plug and Play devices are usually older, and require manual allocation of resources, usually through setting jumpers or switchers on the device itself. Once you have ensured that the device has been configured as per the manufac­turer’s guidelines, boot up and install any software provided by the manufacturer as per the installation guidelines.
If there are no installation guidelines or the device is a second hand component with no documentation or you don’t have the required software drivers, then you can try to force Windows to recognise the device. First try to verify if the phys­ical installation and the jumper/switch settings on the device are correct. Search the Internet for information on how to do this. If you are able to do this, good; if not, don’t worry too much about it and go on to forcing Windows to recognise the device:
1. Click on the Add New Hardware (Windows 9x/ME) / Add Hardware (Windows 2000/XP) in the Control Panel. The Add Hardware Wizard will start up. Click Next.
2. If you have Windows 9x/ME go to Step 3, else go to Step 5.
3. In Windows 9x/ME, the Wizard will inform you that it is going to search for new hardware. Allow it to do so by clicking Next twice. After Windows finishes searching for Plug and Play Devices it will report that no Plug and Play devices are found.
4. Click Next. The first option tells Windows to search for non-Plug and Play devices. If it successfully detects the device, follow the on-screen instructions to complete the installation. Otherwise, select “No, I want to select the hardware from a list” and click Next. Go to Step 6.
5. In Windows 2000/XP, select “Add a new hardware device” and click Next. In the next dialog box, you can either ask Windows to search for a driver, or you can install the device manually. For manual device installation, select “Install the hardware that I manually select from a list (Advanced)”.
6. Select the hardware type from the list and click Next.
7. If you know the name of the device manufacturer, select the name of the manufacturer and browse through the list on the right side to see if your device model number is listed or a gener­ic name for your model series e.g. HP DeskJet for DeskJet printers. If you do not know the name of the manufacturer or the device model number, check if there are standard device types that you can install. If there are no standard types that can be installed, you will need to find a suitable driver by searching the Internet or getting it from other sources.
8. If the device has a standard type, choose the specification closest matching to your device. If the device does not have a standard type, click the “Have Disk…” button and provide the location for the appropriate driver installation file. Follow the on-screen instructions to complete the installation.

The above steps (for both Plug and Play and non-Plug and Play devices) should normally solve the device conflict and get your hard­ware operational.