KionelLAB WORKFLOWS

GUIDE · BUSINESS EDITION

A one-way serial cable as a low-cost data diode

A data diode lets data leave a network and makes it physically impossible for anything to come back. Commercial diodes are appliances bought as an IT project. For moving files off one isolated PC, the same physical idea fits in a serial cable: connect the sender's transmit line to the receiver's receive line, and leave the other direction unconnected.

Written by Taha Bayar, a biologist working on laboratory data handover.

The wiring

On a standard 9-pin serial connector (DB9), a PC sends on pin 3 (TXD), receives on pin 2 (RXD), and pin 5 is signal ground. A one-way cable has only two wires:

Sending PC (isolated)Receiving PC
Pin 3, TXD (transmit)→Pin 2, RXD (receive)
Pin 5, GND—Pin 5, GND
Pin 2, RXDnot connectedPin 3, TXD

Build it from two DB9 screw-terminal adapters and two wires, or open an ordinary null-modem cable and cut every wire except TXD→RXD and ground. With nothing connected to the sending PC's receive pin, there is no electrical path back, whatever software runs on either side. Label the cable with its direction; a reversed cable carries nothing.

Speeds and transfer times

Serial speed is set in baud; with 8 data bits, no parity and one stop bit, ten bits carry one byte. Kionel adds about 3% for framing and 10% of spare blocks.

SpeedAbout1 MB takesWhere it works
115,200 baud10 KB/sabout 1 min 45 sEvery port, including a PC's built-in COM port
230,400 baud20 KB/sabout 50 sMost USB serial adapters
460,800 baud40 KB/sabout 25 sMost USB serial adapters
921,600 baud80 KB/sabout 13 sAdapters based on FTDI, CH340 and similar chips, over a short cable

Both sides must use the same speed. The RS-232 standard is designed for about 15 m at low speeds; at the higher speeds keep the cable short, or step down a speed if frames are lost. Kionel reports when data arrives but no frames can be read, which is what a speed mismatch looks like.

Sending with Kionel

  1. On the receiving PC, open Kionel in Chrome or Edge, choose Receive → Sender has no camera — show a code and Serial cable, set the speed and press Choose the serial port and listen.
  2. On the isolated PC, open Kionel (the offline package works), choose the file, type the receiver's code, open Send over a serial cable, set the same speed and press Choose the serial port and send.
  3. The receiver checks the file against the signed dispatch record and signs the delivery receipt. With a folder chosen, the file and receipt are written straight into it.

Because nothing comes back, the sender cannot know the receiver finished; after one full pass it stops and offers Send more, which continues the same transfer for a receiver that started late or lost data. The code or a receiver card is what keeps the content encrypted on the wire; the cable is what keeps the direction one-way.

The other direction: into an isolated PC

Turn the cable round and the isolated PC becomes the receiver: methods, recipes or reference files go in, and nothing can come out, because its transmit pin is not connected. That is the direction classified and safety networks usually care about. The isolated PC listens with the offline package; the outside computer sends. The delivery receipt is then made on the isolated side and stays there, where it can be printed or sealed.

How this differs from a certified data diode

For files leaving an instrument PC a few times a day, those limits are usually acceptable, and each transfer still ends with a dispatch record and a delivery receipt an inspector can check. The comparison of diodes, USB and optical transfer helps with the wider choice.

Business editionOpen Kionel