Apple's HomePod minis can pair up into stereo pairs. But how do they do it? Resources mentioned in this video: - HomePod mini: https://www.apple.com/shop/buy-homepod/homepod-mini/midnight - IEEE 802.1AS: https://www.ida.liu.se/~sohsa65/courses/tsn-course-2021/stds/8021AS-2020.pdf - AirPlay 2 RS (open source project): https://github.com/lmcgartland/airplay2-rs - What is gPTP: https://blog.meinbergglobal.com/2024/03/27/what-is-gptp/ - What is PTP: https://en.wikipedia.org/wiki/Precision_Time_Protocol - Wireshark: https://www.wireshark.org - HomePod mini intro video: https://www.youtube.com/watch?v=cPakvOuwg48 - MacRumors buyers guide: https://buyersguide.macrumors.com/#Homepod-Mini Support me on Patreon: https://www.patreon.com/geerlingguy Sponsor me on GitHub: https://github.com/sponsors/geerlingguy Merch: https://www.redshirtjeff.com 2nd Channel: https://www.youtube.com/@GeerlingEngineering 3rd Channel: https://www.youtube.com/@Level2Jeff Contents: 00:00 - What did Apple do 01:22 - How hard can it be 06:36 - Now there are two 08:30 - Testing a stereo pair 09:46 - Wireshark 10:52 - WiFi snooping with Apple 12:46 - Finding gPTP 15:03 - Timing packets 17:09 - How PTP works 17:55 - Brief look at IEEE 802.1AS and AVB 19:51 - Apple using standards
ADVERTISEMENT
Through the magic of buying two of them, the Technology can make a Connection
With the magic of buying two of them....
Always love to see a Technology Connections referece
The most valuable knowledge from this video is the fact the Macs support monitor mode on the built-in adapter using the Sniffer app. Thanks Jeff.
Through the magic of corporate marketing they found they can sell stereo speakers one at a time...
1:06 "Through the magic of buying another one", Alec over at Technology Connections would be proud.
"Through the magic of buying two of them" Nice Technology Connections reference
1:53 plugging it in puts it in DFU mode. It's not a 5V device so it needs higher voltage to actually be powered.
It did not go unnoticed that you pluralised it as Homepods Mini. A bit like Attorneys General.
Some ex Apple employees at some point went to create Syng Cell, where you have a similar experience. And if you have more than 2 cells, they can understand the topology of your space (from a sound perspective) start doing sound beaming in a way that allows them to simulate a full surround system by, for instance, making a beam hit a wall behind you so that the sound rebounds and appears to come from your back. Fun fact, they communicate between each other with a linux d-bus. The cells didn't do well commercially for several reasons, but the tech was very cool (I worked on them).
It’s like watching your Grandma set it up.
I have never seen someone struggle so much with a HomePod setup. Even my in laws.
I feel like I’m watching my 65 year old father set up a HomePod who’s also never heard of Ember mugs
The HomePod mini knows where it is at all times. It knows this because it knows where it isn't. By subtracting where it is from where it isn't, or where it isn't from where it is (whichever is greater), it obtains a difference, or deviation, from the other HomePod mini
‘This was supposed to be easy’ Let the poor thing update for a minute.
So interesting. I've always wondered how my Sonos speakers do this; I've had them for years and never thought to snoop on the network. I guess that's a project for the weekend!
As someone who worked for over 5 years with SMPTE 2110, it is crazy to see PTP on a Home Pod. I remember back in 2018 how PTP was an obscure topic for broadcast engineers and how much the network struggled with it sometimes...
5:30 Oh Jeff. You should take a look at the ember mug...
Bluetooth earbuds have to do this time syncing as well and they are far more ubiquitous. Then I think how good that has to be to do surround effects well.
I would assume that they synchronize local clocks in the speakers with the one in the PC by distributing time information and a high priority (low latency) heartbeat signal, kind of a Pulse Per Second (PPS) as used in some spacecrafts to keep everything in sync. Once the speakers adjust their local clock speed (faster if heartbeat arrives early, slower if heartbeat arrives late) and consider they are "in sync" (they finally receive the heartbeat with small deviation w.r.t. the expected time of its arrival), music can then be distributed with timestamps which indicate when to be played and buffered for a few seconds before start.