Peer-to-Peer Interface

Described here is an interface which permits two Desk-Fax type 6500/6499A machines to function together. The interface is constructed from two-dozen-or-so 4000-series CMOS ICs. It would probably be simpler from a hardware perspective to program a PIC or other microcontroller for this task, but I had a stock of CMOS ICs around to be used.

Contents (this page):
  1. Technical Description
  2. Controls and Indicators
  3. Basic Operation
  4. Adjustments
Other Info:

1. Technical Description

Figure 1 depicts the functional organisation of the interface, showing the area of influence of controls and origin of sources for indicators.

The interface must handle three primary tasks:

a) Transmission Control: The main objective here is to detect active status of the incoming unit (ready to receive) and indicate to the outgoing unit to go active (begin scanning/transmission). Similarly, absence of activity from either unit is used as indication to terminate the transmission. Activity here means that the drum is moving along the shaft (Y motion) and is indicated by the presence of sync pulses on the communications line. The Desk-Fax does not place sync pulses on the line until linear drum movement begins, even though the drum is already rolling.

Due to an anomaly in making two Desk-Faxes work together, one aspect of the (presumed) protocol not fully implemented is that of Reception Acknowledgement. This is a result of the Incoming unit terminating ahead of the outgoing unit because the outgoing unit became active slightly after the incoming unit. This was probably handled with an asymmetry in the scan time in the original operating scenario.

b) Synchronisation: One approach to dealing with synchronisation would be to adapt the Desk-Faxes to adjust to received sync pulses in one mode. This is the approach the hams used, as described in several QST articles. I preferred not to do this as I didn't want to have to make any alterations to the Desk-Faxes.

The alternative approach is to have the interface deal with the phase difference by providing it with the ability to store one line of image data (one drum rotation). This is accomplished with a digital delay line implemented from a 4K-bit static RAM and two address counters. This is enough storage to provide for a sampling rate of 4 times the pixel rate. One counter indicates the address at which to write data from the transmitting Desk-Fax, the second indicates the address at which to read data to be sent to the receiving Desk-Fax. The two counters are incremented at the same rate.

Two approaches were tried for the determination of the phase difference:

c) Signal inversion: The image data signal inversion is accomplished within the binary storage path. As the data comes out of the storage RAM, the binary state which represents black enables the output of pulses at a 2500 Hz rate. The duty cycle of these pulses (pulse width) can be adjusted.

2. Controls and Indicators

The following tables present descriptions of the front panel controls and indicators of the interface:

DIRECTION Selects the direction of transmission between the two Desk-Fax units.
MODE SYNC: The preferred mode for transmission from one Desk-Fax to another. Data goes through the delay line.
NO SYNC: The delay-line is bypassed. Consequently the image on the receiving unit may not be aligned to the form.
PIXEL: A test mode to produce one-pixel-wide black lines down the page on the receiver. The number of lines across the page and the angle of the lines is determined by the setting of internal switches.
BLACK: A test mode to produce constant black output, but interrupted (white) by the sync pulse. This can be used while adjusting the RCV potentiometer inside the Desk-Fax to set the black level of printing, and provides visual means to examine the location of the sync pulse relative to the drum position.
START Initiates image transmission sequence.
STOP Terminates image transmission sequence.
Turns on DC current in the communications line of the according unit. For direct manual control of the line current.
XMTR WHITE DETECT This sets the sensed voltage level at which the interface will consider the transmitter to be sending carrier (white).

Too high a level may result in black noise spots and/or blurred/thickened lines in the image, as the high level results in a failure to detect carrier (white) and the interface consequently generates pulses for black. Too low a level may result in a 'thin' or faded image, or white noise spots in black portions of the image, as the interface detects carrier or noise when it shouldn't be.

This must be set in coordination with the transmitter XMT Level adjustment. Suggested procedure is to first set the transmitter to produce a 1V P-to-P carrier level, then find an appropriate setting for the WHITE DETECT. With no signal from the transmitter, setting the WHITE DETECT for a difference in the vicinity of +0.4V measured at the comparator inputs (pin 3 should exceed pin 2 by +0.4V) seems to be about optimal.

RCVR BLACK DRIVE Adjusts the carrier level (black) the interface sends to the receiver. The adjustment within the Desk-Fax is of greater consequence, but this control provides some degree of adjustment without having to open the Desk-Fax cover.

With the DIRECTION switch at IDLE, ON indicates that the according unit wants to send an image.
ON indicates DC current in the according communications line. During transmission should blink out 3 times per second, indicating the sync pulses from the Desk-Fax.
Indicate that the interface has detected linear drum movement of the according unit, based on the presence of sync pulses.
XMTR WHITE Indicates the presence of 2500Hz carrier from the transmitting Desk-Fax. This represents white image data.
RCVR BLACK Indicates the interface is sending 2500Hz carrier to the receiving Desk-Fax. This represents black image data.

3. Basic Operation

Starting with Desk-Fax units plugged into the interface and the following initial state:

Operation proceeds with the following steps:
  1. Press OUTGOING on one Desk-Fax, the according XMT REQUEST lamp should light on interface.
  2. Set DIRECTION switch appropriately on interface.
  3. Press START on interface, the other Desk-Fax should buzz (Incoming Requested).
  4. Press INCOMING on the buzzing (receiving) Desk-Fax.
  5. After both units have warmed up, the interface should detect ACTIVE from the receiver. This will enable the transmitter. The interface should detect ACTIVE from the transmitter, sync will be established (no indication) and image transmission proceeds.
  6. When one of the Desk-Faxes finishes, the interface detects absence of activity and disables both units.

4. Internal Adjustments

There are two variable resistors in the Desk-Fax, accessed by removing the top cover.

There is also a trimmer for the crystal-controlled sampling clock inside the interface but it shouldn't normally need adjustment. The sampling clock should be around 100KHz, as measured at the output of the oscillator or 10KHz measured at one of the outputs of the 10-stage counter.

  Manual Pages | Peer-to-Peer Interface
Nov 2005