Open Source Automation Development Lab
You are here: Home / Support / HOWTOs / 
2014-04-25 - 06:37

Next OSADL Events:

Breaking News:

2014-04-09 12:00

First LCA certificate issued

Major automation provider passed OSADL License Compliance Audit


2014-01-20 12:00

Good news from OIN

The Linux Defense Department


2013-11-06 12:00

SIL2LinuxMP ...

why Open Source/Open Proof is the right way to go for safety



OSADL HOWTOs

HOWTO: The OSADL Parport Monitor

It sometimes is required to directly signal a computer state at an output port without using a driver, e.g. in a crashed system that is no longer able to handle interrupts but still has some kind of life in it. The parallel port is ideally suitable for this purpose. A simple DB25 plug with LEDs to monitor its output bits is described here.

A simple schematic

The eight output pins of the parallel port are connected to LEDs via 330 Ohm resistors; and four input pins are pulled to logical 1 with 3.3 kOhm resistors, but can temporarily be set to logical 0 using a push button. This is intended to signal particular input to the kernel. The schematic at the left and a printed circuit board were created using the Open Source KiCad EDA Software Suite.

Below is a link to the schematics in PDF format; in addition, a screen hardcopy and some intermediate images of the KiCAD application are shown. Finally, all Excellion and Gerber files are provided that may be sent to a professional PCB manufacturer. Alternatively, ready-to-use assembled Parallel Port Monitors can be obtained from OSADL.

Related kernel patch

Many systems of the OSADL QA Farm are equipped with this device; here is a kernel patch that exemplifies how the parallel port may be used to monitor NMI activity. This feature may help to determine whether there still are some embers in the ashes of a crashed system. Another functionality allows to output the number of the most recent system call, hardware IRQ or software IRQ vector as additional hint in a post-mortem diagnosis of a system crash.

Download the schematics of the OSADL Parport Monitor

parport.pdf

Schematics of the OSADL Parport Monitor (PDF format)

20 K

From schematics to PCB with KiCAD

Screen hardcopy of the KiCAD PCB layout window
The PCB layout
The OSADL Parport Monitor in KiCAD's 3D viewer

KiCAD board file

parport.brd

This file can be loaded directly into KiCAD

28 K

parport-extra-components.tgz

Some additional components used in the parport project

119 K

Excellon and Gerber files to submit to a PCB manufacturer

parport.drl

Drill commands

1.5 K

parport-Front.gtl

Front circuit

3.7 K

parport-Back.gbl

Back circuit

3.7 K

parport-Mask_Front.gts

Front mask

2.0 K

parport-Mask_Back.gbs

Back mask

1.7 K

parport-SilkS_Front.gto

Silk Front

71 K

parport-PCB_Edges.gbr

PCB edges

434

Related kernel patch of setparport module

add-nmi-callback-and-raw-parport-driver.patch

Setparport module

18.8 K