Readit News logoReadit News
Posted by u/sephalon 7 months ago
Show HN: Rotary Phone Dial Linux Kernel Drivergitlab.com/sephalon/rotar...
A Linux kernel driver that turns a rotary phone dial into an evdev input device. You might be interested in this driver if you

- prefer the slow pace of dialing over typing numbers with your numpad,

- want to bring your old rotary phone into the digital era,

- are an educator looking for a simple example driver with a VM-based end-to-end development & test environment (no real hardware needed)

- have another creative use case in mind!

This driver was my introduction to embedded Linux years ago—and ultimately led to my career. However, it remained unfinished and unpublished until now. Initially, I intended to reimplement the driver in Rust to explore the state of the Rust for Linux project. Unfortunately, I soon realized that the necessary bindings simply are not available yet, so that part will have to wait.

anonymousiam · 7 months ago
Back in the late 70's, I made a rotary phone dialer for my HP41C calculator. I connected a NC reed relay to the piezoelectric beeper and put the NC contacts in-line with my telephone line. I used "synthetic programming" (undocumented opcodes) to get the short duration beeps needed for the dialing pulses. I could enter a name (alphanumeric!) and it would look up and dial the phone number.

About 10 years ago, I met a guy named Keith Jarrett at my company. As I was about to ask him if he was the Keith Jarrett who wrote a HP-41C Synthetic Programming Manual, he interrupted me and said, "No, I'm not the musician. Everybody asks me that." So I finished my question and he was very happy and surprised, because he was the author of the book I had read 35 years prior.

https://picclick.com/HP-41-Synthetic-Programming-Made-Easy-b...

https://www.hpmuseum.org/prog/synth41.htm

johnea · 7 months ago
A friend and I also made this!

We used it as a speed dialer that worked on any phone.

I still have the hard copy of the synthetic programming guide!

Even outside of that technique, the calculator was a very powerful programmable tool for the early 1980s.

The same friend and I also wrote a program for performing all of the calculations for a grad class in S-parameter modeling of RF transmission. We were so proud, we showed off the program to our professor. Our "reward" was having calculator "programs" banned during all tests 8-/

We didn't realize until later, that there was a "turf war" going on between the RF section of our EE department, and the digital electronic section.

This is how the HP-41CX calculator helped me learn one of the most significant lessons of my EE degree: when it comes to human decision making, the tech is often far from the top priority.

anonymousiam · 7 months ago
Great stories. I had a similar experience with one of my college math professors (I was 16). I showed her that my calculator (with the Math module) could transform a 9th order matrix in a few seconds. She shrugged, because she knew that I didn't need the calculator to ace her tests.

The dialer was one of only two mods that I had made to my 41. I brought out the piezoelectric wires via a two-pin female .1" "berg" connector that I had added to the lower right side of the case. (I wish I had a photo.) The other mod used similar hardware; I put a magnetic reed switch inside, which changed a capacitor value for the system clock when a small magnet was attached (via Velcro) to the side of the calculator. The result was that my 41 would run its programs twice as fast. I had to remove the magnet to use my auto-dialer, because otherwise the timing was wrong. In my area, GTE didn't switch to ESS for another 10 years. Oh the fun!

jtwaleson · 7 months ago
Cool story :) out of curiosity, do you program those kind of things on the calculator itself? I did that with the hp49g and was proud of the programs I was able to write in such a constrained environment, but the single line display of the 41c would be a real achievement!
anonymousiam · 7 months ago
Thanks for asking. Yes, the calculator itself was the first "computer" that I owned, and there was nothing else to connect it to, or to emulate it with. (I had my own PDP-11 at work, and I had previously done batch-mode programming on an IBM 370.) I bought my 41C in 1979 (made in the US!), and spent several thousand dollars on peripherals over a period of about three years. It was a big investment in a platform that did not interoperate with anything else, and I ended up giving it all away. I didn't keep any of it, including all the programs I had written and stored on magnetic cards (a fine example of extinct storage media).

I may still have a spiral notebook, in which I did all of the code development. It would be a hard-copy of all the code I wrote. If I do still have it, I have no idea where it is. It sort of reminds me of the end of Citizen Kane.

Later on, I also got rid of my Synertek SYM-1 and all my CP/M platforms, except for one IMSAI 8080 S-100 box, which I eventually gave away to someone else. I didn't realize at the time (nearly 30 years ago) that the IMSAI 8080 was quite collectable, and was going for about $800 on eBay. Still, I didn't regret it much.

The old systems evoke a sympathetic nostalgia, but actually using them is an exercise in patience, and eventually evokes a desire for more modern systems.

I've still got some emulated retro hardware and some old software emulators, but I don't really use them much.

jtwaleson · 7 months ago
Shameless plug for those who like rotary phones: I converted mine into a fully functional bluetooth headset, including dialing phone numbers with the rotary dial. The HN post didn't do well but it got featured on hackaday.

https://hackaday.com/2024/10/31/bakelite-to-the-future-a-195...

https://blog.waleson.com/2024/10/bakelite-to-future-1950s-ro...

Creating an alt mode for a bluetooth rotary numpad shouldn't be difficult ;) Now if I could only find some time.

sephalon · 7 months ago
Nice one! Using an ESP32 is a much more economical choice these days, but well, I really wanted to write a Linux kernel driver ;-)
jtwaleson · 7 months ago
Understandable ;) In any case,the hardware is a fraction of the costs if you count the hours...

Would be interested to see a bit of your hardware setup!

mauvehaus · 7 months ago
When the iPhone was just a rumor, I suggested that making it with a touch wheel like the iPods of the time would be a great opportunity to bring back rotary dialing. This was soundly rejected by all present.

Thanks to this, all I need to do is set up a Linux box so I can have that classic rotary vibe!

herodotus · 7 months ago
Actually, you were not alone: https://www.patentlyapple.com/2010/12/apple-wins-patent-for-...

Steve Jobs was one of the inventors listed on this patent. As it happens, I and another Apple colleague filed an almost identical patent at around the same time. So, for a while, Apple owned two patents for simulating a rotary dial on a touch wheel. (My patent was eventually allowed to lapse. Steve's has been renewed).

I have to say that I had had a bit too much to drink at a dinner in SF when I suggested this idea to my colleague. I was thinking of the old pinball game that had really good physics making it feel amazingly real. I thought that the crucial part was doing the dialing physics in such a way that users could quickly dial any digit with the right gesture.

I was not disclosed on the iPhone when I came up with this idea, but my colleague sent the idea off to the patent committee and they agreed to it! They must have laughed when they saw the similarities to Steve's patent (which was still in progress too). We did have some big differences with Steve's, so it wasn't a duplicate. That being said, I think they wanted to boost the number of patents related to the iPhone as part of the initial marketing. (Steve said that there were already "over 200 patents" for it when he introduced it.)

mauvehaus · 7 months ago
I love this so much. Both for the fact that people inside Apple had this idea, and for the fact that I may have also been more than one beer into the evening when I floated the idea as well!
spicybright · 7 months ago
That would have been a hilarious timeline if they just upgraded ipods with cell networking, at least for one model.

Then you can use this for typing: https://www.youtube.com/watch?v=9BnLbv6QYcA

gaudystead · 7 months ago
It's wild how that video came out 16 years ago and basically ends with "we'll see if Apple will make computers for business users and not just dicking around", and now in the current day, I'm working at a place where an update was sent out to our Macbook users that bricked the ones running an M1 chip, but not the M2 or M3 models.

It almost feels _impressive_ how hard macOS still is to integrate into an enterprise setting, and maybe they're okay with it just being a running joke for the past two decades that their computers don't do as well in a business context...

afandian · 7 months ago
And this a year or two before. Reflects how new some of these ideas seemed at the time.

https://m.youtube.com/watch?v=BGGOn-H7s3Q

VladVladikoff · 7 months ago
I bet there is an app that lets you rotary dial on the touch screen to make calls.
woleium · 7 months ago
iirc apple are/were very protective of the phone interface and would not allow apps that replace it.
gchamonlive · 7 months ago
About time somebody put that rotary phone to good use and beat Dark Souls with it.
HideousKojima · 7 months ago
You just reminded me that you could use the Dreamcast's fishing rod controller to play Soul Calibur
reaperducer · 7 months ago
Need a DTMF version.

There's a guy in Australia who makes tiny line-powered boxes that translate rotary pulses into Touch Tones.

They let me keep using my rotary phones until a few years ago when I moved into a building that had no POTS wiring. Sad.

Daviey · 7 months ago
Connect it to a an FXS/ATA and make it a voip phone? I have, agmonst others, a candlestick phone from the 1920's still functional using this.
oneoffcomment · 7 months ago
It would be great to hack together a 1920's style AI operator to put the calls through for you.
reaperducer · 7 months ago
Connect it to a an FXS/ATA and make it a voip phone?

I thought about it, but couldn't find a VOIP service that was the right combination of ease/cost/good hardware.

jeroenhd · 7 months ago
Very nice! I love these minimal driver implementations. It shows off how little actual code you need for a driver (but also how many flags and kernel methods you need to know exist to make a basic driver work).

>Initially, I intended to reimplement the driver in Rust to explore the state of the Rust for Linux project. Unfortunately, I soon realized that the necessary bindings simply are not available yet, so that part will have to wait.

That's interesting (and quite disappointing, though hardly unexpected). I think documenting your approach and the setbacks you've encountered could make for an interesting blog post, if you care about writing such things.

sephalon · 7 months ago
Unfortunately only a handful of subystem APIs have Rust bindings right now, so I did not get far enough to write up anything meaningful. Maybe next year support has matured to make a reimplementation in Rust feasible; then I will happily write about my experiences :-)
Stratoscope · 7 months ago
This reminds me of a rotary phone experience I had about 30 years ago.

It didn't involve a rotary phone directly, but a telephone network that was still compatible with them.

Rather than repeat the story, I'll link to it here:

https://news.ycombinator.com/item?id=40391220

If anyone needs their curiosity piqued, it involved a loud knock on the door and...

"San Jose Police! Open up!

satiric · 7 months ago
That story rang a bell, and I was about to comment about 112 redirecting to 911 (precisely because 112 was easier to dial), then realized I had commented the same thing a year ago when I first saw the post
pram · 7 months ago
FWIW I think all PSTN were/are compatible with pulse dialing.
kevvok · 7 months ago
This reminds me of how Sarah at the Connections Museum in Seattle wrote a driver to allow an Asterisk soft PBX on a Linux box to speak revertive pulse signaling to the pre-DTMF trunks on their old telephone switches

https://www.youtube.com/watch?v=35N5vKKGDy8