Reverse Engineering the Logitech Harmony
twitter.com
twitter.com
I wrote the client/server/embedded software for the Harmony (technically the 'EasyZapper'(!) at first). It was the original 'two guys and a laptop' project. My mate Justin was the electrical/industrial/hardware/UI designer (although he will blame all the shitty software UI on me...).
Happy to answer any questions.
Glen.
1) Some wrapper that let us embed a web browser that wasn't too buggy
2) Some crazy bridge that got us down to native (ish) code
3) Some crazy native code that abused the HID protocol to talk to the remote itself
We had this working for:
Windows - pretty sure it was VB embedding Internet Explorer that bridged down to a C++ COM component for communication
Mac - Safari talking to java HID bridge
Linux - Firefox talking to java HID bridge
It was a long time ago, but that sounds 80% correct.
Originally we wanted to use full java on all 3 platforms, but back then (2000), it was too slow and buggy. Ironically, we ended up using VB for the server stuff (for a consistent dev environment), and then had to rewrite back to java in 2003 ish.
Fun times.
This core architecture (server working out all of the UI and then sending it down to a psychotically dumb remote) was in place for all remotes between 2000-2005.
1) Call stack frame and local variables
2) Full graphical menuing system with text and icons
3) Infrared sending
4) Infrared learning
5) Smart State Control (i.e. for each device, simulate what state it 'should' have been in, then work out what commands needed to be sent to hopefully get it into the new state'
6) Synchronization (i.e. when Smart State didn't work, sending the user through a graphical workflow that would get it going again)
7) Interactive TV listings (i.e. when watching TV, it could show you what programmes were on which channel, select to change to that channel)
8) Dynamic content 'zapping'. OK, it was a dumb feature, but you could press the 'Zap' button and it would remember what channel you were watching at what time, and then take you to relevant content (e.g. ads).
9) Favourite channel lists - pressing channel up would only cycle you through the channels you liked, working out if it was 2 or 3 digits, zero prefixed, 'channel up shortcut' etc.
10) USB HID protocol stack (the USB chip was only a dumb transceiver).
n. (1)
A unit of cultural information, such as a cultural practice or idea, that is transmitted verbally or by repeated action from one mind to another.
Then they went and updated. They artificially limited the number of devices a class of remote could control. They moved more "features" into the display of the remote which made them harder to use and reduced buttons. The quality went down, and the the newer remotes stopped being able to accurately control all my devices.
I now sit with 5 remotes on my couch's armrest instead of one harmony. They had the best universal remote and they ruined it. If I were more of a hardware guy, I'd start a competing product that added the required sensors as a dongle to your phone.
The software is awful and has always been awful, but the hardware has been pretty consistently solid.
I really wish there was a way to run a custom firmware on these devices, particularly the Harmony Hub + Simple Remote.
[0] - https://twitter.com/Foone/status/1251483589914423296?s=19