ETH-68: Ethernet Audio Interface for Linux

(naturalsystems.io)

67 points | by chabad360 1 day ago

9 comments

  • purpleidea 0 minutes ago
    If this had open source firmware, I think I know a lot of people who would be interested, but I can't seem to find out if that's true or not and where to buy one.
  • jhallenworld 1 hour ago
    How does the receive side recover the transmit side's sample clock? There is a BNC for clock sharing between "multiple units", but I'm not sure if that's used / required between transmit and receive.

    Or is there no such synchronization, in which case there would be long-term drift?

    • alowell 41 minutes ago
      I think I'm going to have to make a blog post addressing some of the clocking questions that come up. My brief answer for now is that there is only one clock, and that is the ETH-68 clock. The overall data flow is push based; the arrival of a new buffer of data at the Linux host IS the clocking event that schedules an audio graph evaluation. There is no need for another clock on the Linux host.
      • zokier 2 minutes ago
        [delayed]
  • Neywiny 1 hour ago
    Far be it from me to discourage an H7 build, but I do question the codec choice. It's far from top of the line and it's not like the design is tight on space. TI offers much better (almost 20 dB SNR more on the ADC). Maybe a gen 2 could benefit from a better codec.
    • alowell 58 minutes ago
      Yes this is an older codec but it has been reliably in production for around 20 years, and has a high channel count to cost ratio. The specifications are not cutting edge but I get comparable performance to my trusty Saffire Pro 40.

      I have my eye on some other codecs for the next project.

  • alowell 1 hour ago
    Hi, I'm Alex, I made ETH-68. I didn't create the post here on HN but I will answer some of the questions that have come up in the comments
    • iFreilicht 7 minutes ago
      First off, very cool project and great article showcasing it! Why does it also have MIDI?
  • dasv 2 hours ago
    How difficult would it be to extend it to 192kHz, or even 384kHz? Is it limited by the ESP32 hardware?
    • hackingonempty 1 hour ago
      For what application do you need 96kHz or 192kHz of bandwidth?
      • alnwlsn 20 minutes ago
      • oivaksef 1 hour ago
        Don't forget about cats and bats, they like music too
      • tacos8me 1 hour ago
        Good old FM radio (in stereo) is a 192kHz mux, annoyingly.
        • anyfoo 1 hour ago
          How so?
          • tacos8me 45 minutes ago
            Stereo pair, pilot, RDS (the scrolling artist/song text), and the 67 kHz SCA. It's not quite 192kHz as I recall, but that's nearest fit really. AES192/192kHz MPX composite on the back end of every exciter/transmitter when I was last near them.
            • anyfoo 36 minutes ago
              That's for the FM baseband signal, not the audio. Among other things you're doing here, you're basically treating a stereo signal (plus a pilot that effectively contains no information, plus an extremely low bitrate RDS stream in an extremely inefficient way) as one monaural signal.

              But maybe there's a use case for replacing an AES192 signal carrying the full FM baseband signal over ETH-67? I'm not sure it's the correct fit, though.

      • thomasjb 1 hour ago
        Tuning into time radio signals like DCF77?
      • cbm-vic-20 1 hour ago
        • bsder 46 minutes ago
          Distributing music != recording music != processing music.

          There ARE good reasons for recording and processing music at higher bitrates and sample sizes. Effects, especially those with positive feedback loops, can go more unstable and clip and lose information with fewer bits and samples.

          There's just no good reason to DISTRIBUTE music at the higher rates.

          • miguelnegrao 3 minutes ago
            Don't such effects already upsample and downsample as needed internally ? You don't need to waste cpu on the effects that don't need higher sampling rate, right ?
    • alowell 57 minutes ago
      I'm using an STM32H7, not ESP32. The DAC on the PCM3168A can go up to 192 kHz, but the ADC can only be clocked up to 96 kHz.
    • Neywiny 1 hour ago
      What ESP32?
  • phaserphile 2 hours ago
    how do I buy this?
    • askvictor 1 hour ago
      Or even build it. Strange there is zero info...
      • alowell 55 minutes ago
        Thanks for your interest! I made a single reddit post about ETH-68 this week and this has been copied around various forums. My intent was to figure out if anyone thought this would be cool enough to produce. I'm trying to figure out if I should do a production run, open source it, or some combo of the two.
  • jauntywundrkind 1 day ago
    Really nice!!!

    I wonder if gigabit would make a difference on latency, faster packet transmissions. Could packets drop from 64 to 32b?

    4ms is pretty good but I feel like sub 2ms would be nicer.

    • dcrazy 1 day ago
      Dante’s default latency compensation is 1ms: https://dev.audinate.com/GA/dante-controller/userguide/webhe...
      • NobodyNada 1 hour ago
        > The typical default latency for a Dante audio device is 1 msec.

        (emphasis mine)

        The latency depends on the device. Hardware implementations of Dante commonly support latencies of 1ms or less, but software implementations are higher. The minimum latency of Dante Virtual Soundcard running on a PC is 4ms.

        That's the appropriate number to compare against here (since the PC is using a software driver to interface with the network). However, that 4ms number is one-way latency, and the OP's 3.6ms number is round-trip. So this is already half the latency of DVS. (That being said, it sounds like this latency figure was only achieved in very ideal configurations, and we don't know the reliability/rate of late packets compared to DVS.)

        • alowell 45 minutes ago
          Yep, thanks for clarifying about this!
    • alowell 53 minutes ago
      1G would certainly decrease the processing latency (not the audio latency) by quite a bit. STM32H7 doesn't have a 1G MAC. 1G MAC is kind of rare on "friendly" microcontrollers, although there are at least two that I'm evaluating for the next project.
    • Neywiny 1 hour ago
      Sadly the H7 doesn't have a gigabit MAC. And most likely doing one over USB high speed host wouldn't help? But it would be an interesting experiment
    • altairprime 1 day ago
      https://semiengineering.com/latency-considerations-for-1-6t-...

      It seems like, at 16000TbaseT anyways, you’re adding an overhead of about 150% on top of copper/fiber latency plus transmit time latency to process data at that bandwidth. I wonder if the same holds true at 100 vs 1000, 2500, 10000? Certainly this is a known tradeoff for DDR performance tuning — if you don’t mind spiking response times greatly, you can get the advertised maximum speeds, else you accept less bandwidth for somewhat less latency — and they’re both effectively using the same strategies to talk over copper.

    • lstodd 59 minutes ago
      One can fit a nice (eg, not 1-channel, but actually useable) LTE base station frontend in a gigabit eth on 2014-s tech.
  • Polizeiposaune 2 hours ago
    > eth68 sends capture packets to 12.12.12.10:3000 by default.

    Um.

    • alowell 52 minutes ago
      Lol, this wasn't my choice really! The JACK server's default UDP listen port is 3000 with the netone backend, so that is default port that ETH-68 sends to. This can be adjusted on both ends
    • k_roy 2 hours ago
      Riiip…. I hate private projects pooping on public spaces.
    • vasachi 2 hours ago
      At least it’s AT&T, not Huawei :)
  • eqvinox 18 hours ago
    > Very low latency: 3.620 milliseconds round trip at 48 kHz with 64 sample buffer

    "very low latency" in audio is <=1ms. 3.6ms is good but not special.

    • tern 2 hours ago
      Round trip latency for RME devices (widely considered the best in the industry) is around 3ms, so this is indeed "very low latency".

      You might be thinking of latency of the converters, which is normally sub-ms.

    • alowell 50 minutes ago
      Check out the round trip latency measurements for audio interfaces on Linux here:

      https://interfacinglinux.com/linux-compatible-audio-interfac...

      AFAIK the best one is RME AIO Pro PCIe card. ETH-68 matches the round trip audio latency of this card at 48 kHz and surpasses it be 0.33 ms at 96 kHz.

    • h3lp 2 hours ago
      They quote a roundtrip of 3.6ms, so one-way 1.8ms. In the plots on their page, it looks like the processing latency is centered on around 1ms:

      > The LATMON pulse width is therefore an accurate measure of the total processing latency of each cycle and is affected by every element in the data path: processing delay in the microcontroller, network transmission delay, host OS delays, signal processing delay in the DAW, etc

      • alowell 47 minutes ago
        You are confusing the audio latency with the processing latency. I see this mistake a lot.

        One way audio latency is about 3.6 ms divided by two = 1.8 ms. This type of latency is audible.

        Processing latency is just the amount of time it takes to complete all processing for each audio cycle. From the histograms, the typical processing latency is about 625 us and of course there is some jitter (almost all of the jitter comes from the Linux host BTW). Processing latency is not audible. However if the processing latency exceeds the deadline on a given audio cycle, there will be an underrun which will cause an audible glitch.

    • k_roy 2 hours ago
      But it’s matching AND exceeding the performance of a $999 PCIe card designed for a similar purpose.

      I would love to know why this is hand-wavy and not very cool? Even as not-audiophile, I’ve got ideas of things to use this for.

      > RME HDSPe AIO Pro PCIe

      > eth68 matches the latency performance of the RME card at 48 kHz and surpasses it by 0.33 ms at 96 kHz.

      • Venn1 2 hours ago
        As the owner of the PCIe card that measurement was taken from, yes, I’d say it’s quite impressive. The average round-trip latency for a USB audio interface at 48 kHz/128 samples would usually fall somewhere around 8 ms, which is a bit much if you’re monitoring post-FX.

        On Linux, we don’t have much in the way of Thunderbolt support for audio interfaces, so the only way to achieve this sort of latency has traditionally been with PCIe or PCI audio interfaces. Having a low-cost, infinitely more portable solution would be very welcome.

        • k_roy 1 hour ago
          Awesome. Love to see it!

          This is just the answer I was looking for. I definitely don’t know anything about the audio space, but am into networking hardcode.

          I love seeing audiophile projects that don’t involve a rebranded tp-link switch and marked up 1000%