Wednesday, December 17, 2008

System Management And Networking 2

Network Hardware
1. Network Topology



2. Type of Network

3 Network Interface Card (NIC)
Ethernet (most common LAN hardware technology)

Tips: Most 100Mbps NICs also support 10Mbps.
4. Example of Small Network



Insert a NIC into one of PCI (Peripheral Component Interconnect) slots of each PC.
To network only two computers, you can link them directory using a crossover cable.
In a star network, all traffic passes through the central device (HUB or Switch).
A hub echoes any incoming data out to all the other devices.
A switch forwards data only to the intended recipient computer.
5. RJ-45 Connector Pin Assignment




EIA/TIA Writing Standards









Only two pairs of wires in the eight-pin RJ-45 connector are used to carry Ethernet signals. Both 10BASE-T and 100BASE-T use the same pins, a crossover cable made for one will also work with the other.
Note: Even though pins 4,5,7, and 8 are not used, it is mandatory that they be present in the cable.

6. Installation of NIC (Network Interface Card)
6.1 Inserting NIC
Power off the computer and disconnect the power cable.
Remove the computer’s cover.
Insert NIC into one of PCI connector.
Replace the computer cover and connect cables.
6.2 Starting computer
Power on the computer
Plug and play automatically detect new hardware.
When “Add New Hardware Wizard” is appeared, follow the instruction.
Check the place of driver software (e.g. Floppy disk drive) ->Next
If driver cannot be found ->Back, specify a location (e.g. A:\WIN98)
Restart the computer
Right click My Computer->Properties->Device Manager
Click +mark of Network adapters
If there is Ethernet Adapter and no yellow question mark, it works properly.
6. Windows Network
1. Windows log-on
1.1 Default setting
Usually log-on is not necessary to start Windows. Desktop screen appears without any interruption. Registered name at the installation or previous log-on name is used as a default of user name.
1.2 Multi-user setting
To customize desktop and/or folders for registered users.
Start->settings->Control Panel, Double click Users.
Follow dialogue, register User name and Password (optional)
Fig.1 Windows log-on screenRestart Windows
Windows log-on screen appears.
Select user name and enter Password (optional) and OK.
If you are not the registered user, press Cancel or X. Common desktop will appear.
Tips: It is not recommended to use multi-user setting because your customized setting and/or holders are easy to delete by 1.3 or 1.4.
Fig.1 Windows log-on screen 1.3To delete registered users
Start->settings->Control Panel, Double click Users. Select user name->Delete->Yes
Tips: This process completely deletes customized setting and/or holders and cannot be recovered it again. Your log-on name cannot be deleted. In that case log-on by another name as follows: Start->Log Off->Yes->Cancel
1.4 To cancel multi-user setting
Start->settings->Control Panel, Double click Passwords->Click User Profiles tab. Mark “All users of this computer use the same…..” OK and then restart computer
Tips: The deleted setting and/or holders can be restored by registering same user name again.

2. Network log-on
Network log-on is not necessary to start Windows. It will be used to connect server/client network
2.1 How to delete Network log-on screen at startup
Click OK or Cancel or X and then log-on to Windows


Start->Log Off
->Yes->Click OK without Password

Fig.2 Network log-on screen (you can type in any user name)
Tips: If a caution “The Windows password you typed is incorrect” appeared, change User name and try it again.
If NT domain log on appears, click Start->Settings->Control Panel->Network
Client for Microsoft Networks->Properties, unselect Log on to Windows NT domai


Monday, December 15, 2008

System Management and Networking

1. Operating System and Boot Process
1. PC Hierarchy
1.1 Hardware
Motherboard, expansion boards, power supplies, peripheral devices, monitors, keyboards, pointing devices, printers, etc.
1.2 BIOS (Basic input/Output System)
BIOS is a set of small program interfacing between a specific hardware and a standard OS. It is stored in a read-only memory (ROM) chip. It also executes a power-on self-test (POST) program each time the PC is initialized.

1.3 Operating System
OS interacts with BIOS to give an application easy access to system resources.
OS forms an environment through which application can be executed and provides a user interface.
1.4 Applications
Any programs which to execute is the purpose to use computer.
2. Boot Process
2.1 Applying Power
A power supply generates a Power Good (PG) logic signal. A motherboard timer chip receives the PG signal, and then CPU starts processing.
2.2 Bootstrap
CPU fetch an instruction from address (FFFF)h (almost the end of ROM space). Jump to actual starting address.
2.3 Core tests
BIOS starts with a test of the motherboard hardware and video system.
2.4 POST
In case of warm start, POST routine is skipped. For cold start, POST routine checks higher-level functions of motherboard, port and peripheral hardware.
Note: start computer by reset button or CTRL+Alt+Del is warm start. Start by power button is cold start.
2.5Finding OS
Search boot sector according to boot order. (e.g. floppy disk, hard disk, CD-ROM)Tips: To change boot order press F2 or F10 (depend on motherboard) after POST and before loading OS. The first sector of hard disk is the master boot record (MBR) where location of OS and partition table are recorded.
2.6Loading OS
2.7 Establishing Environment

3. Create Startup Disk
Click Start->Settings->Control Panel. Double click Add/Remove Programs->select Startup Disk tab. Insert blank diskette into floppy drive and click Create Disk.
2. Computer Hardware
1. Mother Board











1.1 IDE (Integrated Device Electronics)
Connect between the processor and peripheral devices like hard disks, CD-ROMs inside the computer.
1.2PCI (Peripheral Component Interconnect)

PCI bus inserts an electronic “bridge” between the CPU and the bus. PCI is used for NIC (network interface card), SCSI (small computer system interface) etc.
2. Back Panel






NotePS/2: IBM PScomputer compatible USB : Universal Serial Bus
3. Power Button
In Windows 95, Windows 98, or Windows 2000, pressing the power button does not turn off the power, but enter a low-power state. To turn off the power, pressing the power button and hold for 4 seconds.
3. Maintenance of Windows 98 System
1. Scan Disk
It checks hard disk for logical and physical errors and repair the damaged areas.
Click Start->Programs->Accessories->System Tools->Scan Disk
Select drive(s) and type of test. Then start.
Tips: Thorough test scans whole disk surface and takes more than 30 minutes.
Or My Computer-> right click [C:]->Properties->Tools tab->Error checking status, Check Now.
2. Disk Defragmenter
A File consists of clusters on hard disk. The tool rearranges clusters and straightens used and unused spaces on hard disk.
Click Start->Programs->Accessories->System Tools->Disk Defragmenter
Select drive and OK.
Tips: Execution time depends on used space. It’s usually takes more than 30 minutes.
3. Disk Cleanup
Utility to delete temporary and unnecessary files from disk.
Click Start->Programs->Accessories->System Tools->Disk Cleanup->OK
Select files to delete->OK
Tips: Temporary internet files keep browsed web pages and save time to download duplicate data. Recycle Bin may be used to recover files.
4. Registry Checker
Registry is a place of memory where setting of computer is stored. When computer is started a backup of system files and registry configuration is automatically created once daily. Registry Checker scans the system registry and if invalid registry entries are detected, it will restore the previous day’s backup.
Click Start->Programs->Accessories->System Tools->System InformationAt the screen of Microsoft System Information, click Tools->Registry Checkers
5. System File Checker
To verify the integrity of system files, to restore them if they are corrupted.
Click Start->Programs->Accessories->System Tools->System Information
Select Tools tab->System File Checker->Start
If a file is corrupted, insert installation disk and restore it.
6. Backup Utility
6.1 Install Backup Utility
Click Start->Settings->Control Panel. Double click Add/Remove Programs->Windows Setup tab->System Tools->Details. Select Backup->OK. And restart computer.
6.2 Backup Full System
Click Start->Programs->Accessories->System Tools->Backup.
Microsoft Backup wizard appears. Using default setting and start backup.
It will take 20-30 minutes and occupies 1.5GB (file name: C:\MyBackup.qic)
Tips: At the second time you can backup updated files only. At Microsoft Backup wizard, select “Create a new backup job” OK->“Back up My Computer” Next-> “New and changed files” Next->Next->Next->Start-6.3 Restore Backup Set
Click Start->Programs->Accessories->System Tools->Backup.
At Microsoft Backup wizard, select “Restore backed up files” and
7. Restoring Windows 98
Windows 98/SE System Recovery wizard restores a previously created full system backup.
7.1 Insert Windows 98 Startup disk into the floppy disk drive, and then start computer.
Tips: If you can boot from CD, insert Windows 98 installation CD into the CD drive, and then start computer. (no need to use Startup disk)
7.2On the Windows 98 Startup Menu, choose Start computer with CD-RO
7.3 Insert Windows 98 installation CD. At the command prompt, type the following lines.
A:\>f: (note: Because the diagnostic tools is loaded to a temporary drive,
the letter of CD drive shift one character e.g. E to F.)
F:\>dir
Volume in drive F is WIN98 (to confirm it is CD drive)
F:\>cd tools\sysrec (to change directory)
F:\TOOLS\SYSREC>pcresto
7.4 In the System Recovery wizard, click Next. Remove Windows 98 Startup disk.
7.5 The process takes about 30 minutes. Type name and (company) when it is requested.
7.6 In the Backup dialog box, click Restore Backed Up Files if they are exist.
Tips: System files are restored by this process, but data and settings are kept as original. Some system settings are changed, however.
8. Rescue Data by DOS Command Prompt .
8.1 Insert Windows 98 Startup disk into the floppy disk drive, and then start computer.
8.2 On the Windows 98 Startup Menu, choose “Start computer without CD-ROM support” ort+F5 (Command Prompt) .
8.3 At the command prompt, type the following lines. Now Startup disk can be removed.
A:\>c: (to change drive to C)
C:\>dir (list of files and directories)
C:\>cd mydocu~1 (to change directory to MYDOCU~1)
C:\MYDOCU~1>dir (list of files and directories)
If you find files to be rescue, insert new floppy disk and make backup.
C:\MYDOCU~1>copy xyz.doc a: (copy XYZ DOC file to floppy disk)
C:\MYDOCU~1>copy *.* a: (copy all files to floppy disk)
To exit command prompt, press (Ctrl+Alt+Del)
8.4 Copy files including subdirectories (XCOPY) .
XCOPY command is not included in the Startup disk. To use it, make a copy of the command in a floppy disk. Using another Windows 98 computer, click Start->Find->Files or Folders. Type xcopy->Find Now. Insert blank floppy and right click xcopy->Send To->31/2 Floppy. Right click xcopy32.mod->Send To->31/2 Floppy.
Now ready to use XCOPY. At the command prompt, type the following lines.
C:\MYDOCU~1>a: (to change drive A in order to execute xcopy command)
A:\>xcopy/s c:\mydocu~1 d: (copy all files and directories under mydocu~1 to D:)
Note: /s is an option switch to include subdirectories.
The copied file names are modified because DOS can handle up to 8 characters
4. Hard Disk File System
1. Data Organization












Platter is a disk coated both side with a magnetic media.
Track is one of concentric circles on each side of each platter.
Sector is a section of a track and it is the smallest accessible unit (512 Bytes).
By zoned-bit recording, tracks on the outside of the disk contain more sectors than those on the inside. (modern high density disks using this technique.)
Cylinder is a group of sectors in same position of each platter.
Cluster is a group of sectors and the basic unit of logical storage on
2. File System
FAT (file allocation table) is the Microsoft Windows file system.
It is located at the beginning of partition and provides mapping between clusters and physical location of data (cylinders, tracks, sectors).
Drive/Partition Size
FAT32 Default Cluster Size
Records of FAT file systemFAT contains address of starting cluster for every file. Each cluster contains a pointer to the next cluster in the file or end-of-file indicator (FFFF).





FAT16 can support up to 2GB. (32KB×65,536 (216) clusters)
FAT32 can support up to 2TB.

2.1 Master Boot Record (MBR)
It is located on the first sector of hard disk. (512 bytes)



3. Disk Partition
DOS/Windows is always installed in Primary Partition (C drive). Extended Partition can be divided into Logical Drives (e.g. D, E, F etc)
3.1 FDISK
Insert Windows 98 Startup Disk into floppy drive and (re-)start computer.
On the Win 98 Startup Menu, choose “Start computer without CD-ROM support”
At the command prompt, type the following line.
A:\> fdisk
Do you wish to enable large disk support (Y/N)…? [Y]
Enter choice: [4]

Do you want to display the logical drive information? [Y]
Press Esc to continue (go back to FDISK Option menu)
Enter choice: [1]


Press Esc to return to FDISK Option
Press Esc to exit FDISK
Tips: By pressing Esc (once or twice), you can go back to FDISK Option menu.
Do not try Delete if it is not necessary. There are risks to erase data accidentally.
Primary partition cannot delete if Extended partition exists. Extended partition cannot delete if Logical drives exist. (error massage will be displayed)
Windows FDISK can handle only FAT file system. (cannot handle Linux file system)
Reference A:\> format c: (format C drive. Caution: All data are destroyed.)
A:\> fdisk /mbr (restore MBR for windows system)

Thursday, December 11, 2008

Wednesday, December 10, 2008

IR Motion Detector

IR Motion Detector Features
Motion of an object can be detected by IR (infrared) transmitter and receiver.
38KHz modulated square wave technique is used to avoid background IR noise. The technology is commonly used for TV remote controller.
Range of detection is a couple of meters within visible area. It is suitable for indoor application.
Block Diagram
IR Transmitter IR Receiver


Transmitter Circuit Diagra






Tuesday, December 9, 2008

Electronic Project/Projek Akhir

Electronic Timer
Features
Can generate time interval from 0.1 second to 10 second.
The circuit can operate from 6V to 12V and control output current of up to 3A.
Open collector output can drive inductive load; such as relay, electric valve and motor.
Longer interval can be obtained by increasing capacitance.
Block Diagram

Circuit Diagram



Power Transistor
NEC 2SD795: VCEO = 50V, IC = 3A, PD = 20W, hFE = 160

Operation
t1 = 0.69C1R3 Example: C1 = 100uF, R3 = 50kΩ à t1 = 3.5sec
t2 = 0.69C2R4 C2 = 100uF, R4 = 100kΩ à t2 = 6.9sec