Possible to customize CEC remote commands?

by CuvisTheConqueror

Hey all. I'm trying to use my TV remote to control my Shield via CEC, and I'd like to customize what key does what (for example, I'd like to reprogram the Record key to act as a Home key, since Record is all but useless and my remote doesn't have a button that acts as Home). Would this be possible?

mackadoo

Nope. CEC will function however each manufacturer programmed it to, which seems to be anywhere from 10 to 90 percent of what you would hope to control, and even then not consistently.

What you can do, though, is get a FLIRC - it's a USB IR receiver dongle you can program on your computer to receive signals from whatever remote you have and interpret that as a simulated keyboard button. When you move the FLIRC to your shield it will keep the commands in memory and act as if a keyboard were plugged in and the corresponding button was pressed.

BBmag

The shield has an it receiver , so no need for a flirc

BBmag

Multi language key map definer

cr08

Just a VERY vague guess on my part with minimal knowledge of the CEC spec: CEC devices identify as specific types such as 'display', 'receiver', 'recorder', 'player', etc.. I'm not sure what the Shield identifies as. Maybe just as a player. If your TV remote has a record button and is designed to support HDMI attached recorders in this way, depending on how much of the Shield can be tweaked you can change it to ID as a recorder and change it so the record signal coming in acts as a home key. The biggest thing here though is if you can make these changes in the Shield without something like a completely new rom. Not sure if it would be exposed in a config file anywhere.

LiquidPoint

I'm actually curious about what modulation and protocol the IR receiver in the shield uses.

I have seen lists of hex values for some common universal remotes, but I used to do software for remotes and happen to have a fancy little 5-button remote lying around that I'm sure I could modify the software in to support the shield.

Also, it would be nice if the Android TV Remote (the app) protocol was documented, or better yet, if there was a working proof of concept commandline script or program lying around somewhere. It would be invaluable to people that try to DIY some home automation as well as to those who do TV <-> Hotel System integration (ADB may not appeal too much to the latter, as they'd prefer not to put devices into developer mode, which gets me thinking, is it possible to disable the activation of developer mode in ATV?)