Live data from Hacker News

Show HN: TCP/UDP over sound

github.com

21–30 of 81 posts

Re: Show HN: TCP/UDP over sound

#21

I've been working on something similar[1] for a few years. Don't forget that you can use tun/tap devices to avoid re-implementing TCP/IP, and to gain interoperability with OS services! [1] https://github.com/piannucci/blurt/tree/master/blurt_py_8021...

Interesting, I had looked around for similar libraries when I started but didn't find many. It looks like ours differ in terms of FEC and configurability.

What throughput does your modem get?

Re: Show HN: TCP/UDP over sound

#22
Slightly unrelated but curious; have there been any attempts to transfer data as sound? I don't mean sound converted to electricity, or to represent 0s and 1s, but using a specific frequency range to represent 1, another range to represent 2, another for 3... I don't know the terms for these things.

Using vibrations instead of electrons to transmit data over a wire?

Do creatures like dolphins do this?

Re: Show HN: TCP/UDP over sound

#23

Slightly unrelated but curious; have there been any attempts to transfer data as sound? I don't mean sound converted to electricity, or to represent 0s and 1s, but using a specific frequency range to represent 1, another range to represent 2, another for 3... I don't know the terms for these things. Using vibrations instead of electrons to transmit data over a wire? Do creatures like dolphins do this?

>I don't mean sound converted to electricity, or to represent 0s and 1s, but using a specific frequency range to represent 1, another range to represent 2, another for 3... I don't know the terms for these things.

Frequency-shift keying?

https://en.wikipedia.org/wiki/Frequency-shift_keying

Re: Show HN: TCP/UDP over sound

#24

Slightly unrelated but curious; have there been any attempts to transfer data as sound? I don't mean sound converted to electricity, or to represent 0s and 1s, but using a specific frequency range to represent 1, another range to represent 2, another for 3... I don't know the terms for these things. Using vibrations instead of electrons to transmit data over a wire? Do creatures like dolphins do this?

It's called frequency-shift keying.

https://en.wikipedia.org/wiki/Frequency-shift_keying#Audio_F...

(The 0 and 1 version is binary audio FSK, but you could also choose to have more frequency levels, such as 4 or 10 or 20 different levels.)

People studying this don't usually distinguish between whether the waves are emitted into space as audio or whether they're encoded as electricity. The main reason for that is that we have devices (speakers and microphones) that convert directly between audio and electricity in both directions, so the design of a system that uses a wave represented as electric signals and a system that uses a wave represented as sound is "equivalent" in some way (even if they face somewhat different practical considerations, like different kinds of background noise).

Edit: oh, there's a more detailed Wikipedia article on non-binary FSK, called "multiple FSK".

https://en.wikipedia.org/wiki/Multiple_frequency-shift_keyin...

It gives some examples of practical applications of this (again, not distinguishing fundamentally between what kind of waves you use).

Re: Show HN: TCP/UDP over sound

#25

Slightly unrelated but curious; have there been any attempts to transfer data as sound? I don't mean sound converted to electricity, or to represent 0s and 1s, but using a specific frequency range to represent 1, another range to represent 2, another for 3... I don't know the terms for these things. Using vibrations instead of electrons to transmit data over a wire? Do creatures like dolphins do this?

There have been some pretty successful attempts that were called modems. They really caught on in the 90s.

Re: Show HN: TCP/UDP over sound

#26
post #20

With this headline, I cannot hear anything in my head except “the dial-up noise.” TCP over sound was how I used to connect to the Internet…

Good catch, but it was actually over audio signals. Sound was just for monitoring.

Re: Show HN: TCP/UDP over sound

#27
post #26
post #20

With this headline, I cannot hear anything in my head except “the dial-up noise.” TCP over sound was how I used to connect to the Internet…

Good catch, but it was actually over audio signals. Sound was just for monitoring.

Some ye olde modems had a socket that you plugged your regular handset into: https://en.wikipedia.org/wiki/Acoustic_coupler

I think one was used in the film War Games, but can't recall clearly.

Re: Show HN: TCP/UDP over sound

#29
post #20

With this headline, I cannot hear anything in my head except “the dial-up noise.” TCP over sound was how I used to connect to the Internet…

I have those memories too! I'm certainly not claiming to have invented the idea of dial-up. The idea for this library is to provide a soft modem, highly configurable (thanks to liquid DSP), which comes "batteries-included" with a TCP stack (thanks to lwip). The examples shown in the README can even run on a nearly-ultrasonic modem profile whose spectrum content lies >= 19kHz
Post reply on HN