robca
Member
Just to be clear before starting: this is not meant as GLM replacement for room/speaker optimization. This is a limited function solution for volume control and a bit more. Also, this is an independent, open-source community project. It is not affiliated with, authorized, funded, or endorsed by Genelec Oy.
I own a pair of 8320A and a GLM interface but I always found it annoying have to use a $500 unit just for volume control. And remote volume control from a mobile device is impossible. I'm also planning to buy a new pair of Genelec speakers, and I see no reason to buy a second GLM to control volume in a separate room.
I'm an electronics engineer and Genelec speakers use a RS485 bus to communicate. How hard could it be to control the speakers directly? A bit harder than I expected, but not impossibly so.
I opened my GLM, connected a few probes to the RS 485 chip (an ADM 483) so that I could also capture the direction of a packet (from/to hub). I fired up my trusty oscilloscope and logic analyzer and after a few measurements and a custom pulseview protocol parser, I could figure out the physical protocol (9N2 @296 kbps, a non-standard speed). The GLM hardware is pretty simple, an STM32F407, a good quality ADC, a 24L01 wireless chip, and a RS485 interface. I captured a few logs with pulseview and my rickety stack of protocol decoders, feeding the data into a couple of LLMs. I was doing targeted operations (like changing volume 5 times, muting 3 times, etc, so the volume change or mute commands were easy to identify), and the LLMs did their magic. I could have decoded by hand, but it would have been much harder. LLMs are really good at parsing long streams of data. They made a few mistakes, but nothing I couldn't fix over time. I plan to write a primer on how to use LLMs to decode a protocol
The GLM protocol uses a non-standard 9-bit transmission at a non-standard speed, so that limited the choice of processors. But the STM32 family fully supports it, and STM32 boards are cheap and easy to find. Once I had a device that could reliably read the RS485 stream, I wrote a simple protocol dump, and with a few more sessions of LLM-aided investigation, I had a fully documented protocol.
For the 8320A, that is. I know that higher end speakers use more inputs, 96 kbps DSP (instead of 48 kHz like mine). So, if you want to donate an 8351 or similar speaker, I'm here
More details, full specs, schematics, and code available here: https://github.com/robcazzaro/hlm (over time I'll add a wiki with more details)
Please use this thread to ask questions, discuss features, report problems and banter in general. For a bug report or a real feature request, please open an issue in github. I can't promise anything, but I'll do my best to support anyone daring enough to build a device
One of the first things I plan to do (after I enjoy the newly gifted 83x1 speakers you will send me, that is
) is to create a Home Assistant integration. I figured out a way to implement the unsupported 9-bit serial protocol on the ESP32 processors, explicitly for Home Assistant. And figure out an enclosure. Today it's more of a rat's nest of wires than anything else
I own a pair of 8320A and a GLM interface but I always found it annoying have to use a $500 unit just for volume control. And remote volume control from a mobile device is impossible. I'm also planning to buy a new pair of Genelec speakers, and I see no reason to buy a second GLM to control volume in a separate room.
I'm an electronics engineer and Genelec speakers use a RS485 bus to communicate. How hard could it be to control the speakers directly? A bit harder than I expected, but not impossibly so.
I opened my GLM, connected a few probes to the RS 485 chip (an ADM 483) so that I could also capture the direction of a packet (from/to hub). I fired up my trusty oscilloscope and logic analyzer and after a few measurements and a custom pulseview protocol parser, I could figure out the physical protocol (9N2 @296 kbps, a non-standard speed). The GLM hardware is pretty simple, an STM32F407, a good quality ADC, a 24L01 wireless chip, and a RS485 interface. I captured a few logs with pulseview and my rickety stack of protocol decoders, feeding the data into a couple of LLMs. I was doing targeted operations (like changing volume 5 times, muting 3 times, etc, so the volume change or mute commands were easy to identify), and the LLMs did their magic. I could have decoded by hand, but it would have been much harder. LLMs are really good at parsing long streams of data. They made a few mistakes, but nothing I couldn't fix over time. I plan to write a primer on how to use LLMs to decode a protocol
The GLM protocol uses a non-standard 9-bit transmission at a non-standard speed, so that limited the choice of processors. But the STM32 family fully supports it, and STM32 boards are cheap and easy to find. Once I had a device that could reliably read the RS485 stream, I wrote a simple protocol dump, and with a few more sessions of LLM-aided investigation, I had a fully documented protocol.
For the 8320A, that is. I know that higher end speakers use more inputs, 96 kbps DSP (instead of 48 kHz like mine). So, if you want to donate an 8351 or similar speaker, I'm here
More details, full specs, schematics, and code available here: https://github.com/robcazzaro/hlm (over time I'll add a wiki with more details)
Please use this thread to ask questions, discuss features, report problems and banter in general. For a bug report or a real feature request, please open an issue in github. I can't promise anything, but I'll do my best to support anyone daring enough to build a device
One of the first things I plan to do (after I enjoy the newly gifted 83x1 speakers you will send me, that is
Last edited: