Thursday, October 29, 2026
HomeIoTJonah Brüchert's Rust-Powered Typewriter Bridges Classic East German {Hardware} to Trendy Linux

Jonah Brüchert’s Rust-Powered Typewriter Bridges Classic East German {Hardware} to Trendy Linux

[ad_1]

Jonah Brüchert has put collectively a keyboard with a distinction: it is a classic electrical typewriter, constructed within the German Democratic Republic (GDR) — and now able to interfacing with fashionable programs.

“That is a few SIGMA SM 8200i typewriter, which my dad and mom gave to me for leisure functions once I was a toddler,” Brüchert writes. “Now that I am older, the leisure has shifted extra in the direction of the technical internals. Once we talked about teletype know-how at my native college hackerspace, Spline, I remembered the typewriter had a 26-pin connector.”

This classic East German typewriter has a brand new life, courtesy a USB-to-serial adapter and a few Rust hackery. (📹: Jonah Brüchert )

Some additional analysis revealed the gadget to be a clone of the Erika S3004, “one of the vital widespread typewriters of the GDR,” packaged in a unique housing. Utilizing documentation written for the unique Erika, Brüchert was capable of finding an inventory of management instructions — and to determine that the 26-pin port features a serial connection readily accessible to a USB adapter with some “artistic wiring.”

Interfacing the gadget with a contemporary laptop, although, proved to be a problem. “The instructions that may be despatched and obtained over the serial interface could be separated into two teams,” Brüchert explains. “Management codes and character codes. Sadly the typewriter doesn’t assist Unicode … or ASCII.”

To get round that drawback, Brüchert transformed a Python program written by members of the Chaostreff Potsdam hackspace into Rust. “The brand new gdrascii_codec crate exposes largely const API,” he explains, “which permits to jot down strings in Unicode within the supply code for readability, however already translating them into gdrascii at compile time.”

The typewriter can be used as a keyboard enter, with a bit translation from character codes to keypresses. (📹: Jonah Brüchert )

At that time, the typewriter was a purposeful printer — however Brüchert needed bidirectional performance. “The typewriter helps a mode by which it sends keyboard enter over the serial connection as a substitute of printing it,” he writes. “This was fairly simply attainable utilizing the Linux kernel uinput API. The one complication was, that the typewriter already sends prepared made character codes, however the Linux kernel expects to obtain uncooked keypresses.”

The completed code, for each printing and keyboard enter, has been revealed to Codeberg beneath the European Union Public License v1.2; extra particulars can be found on Brüchert’s web site.

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments