0

BrightControl CEC commands

If you use BrightControl to send Ascii string "400D" it will turn the display "on" via CEC over HDMI. The Ascii string "4036" will turn the display "off".  Im trying to find the Ascii string to change inputs.  Does anyone know where to find a list of CEC commands?

34 comments

  • 0
    Avatar
    Mikel Zwissler

    Unfortunately, it's not as simple as finding a list of generic CEC commands.  There may be a command that will work for multiple manufacturers, but generally, they all seem to use their own command set.   The best luck I've had at finding this stuff out in the open waters of the internet is on forums for home theater software like XBMC.

  • 0
    Avatar
    Lance Lander

    I figured it out. Make sure CEC is enabled on the monitor. Use BrightControl to send Ascii String "4F821100". This will activate HDMI input 1. If the input gets changed inadvertently this will switch it back. This worked for a Samsung monitor.  When it switches to HDMI 1 no banner is displayed.

  • 0
    Avatar
    Lance Lander

    *UPDATE* 

    Using BrightControl send Ascii string:

    "4F82" will switch to the active HDMI input

    "4F821100" will switch to HDMI 1

    "4F822100" will switch to HDMI 2

    "4F823100" will switch to HDMI 3

  • 0
    Avatar
    Michael Amato

    Any idea on how to switch to the TV Tuner input?

  • 0
    Avatar
    Lance Lander

    Im not sure if that is possible because CEC only works through HDMI cables.  What make and model monitor are you trying to control? Are you trying to switch to an RF input?

  • 0
    Avatar
    Michael Amato

    Sony Bravia KDL-26L5000.  The HDMI codes you listed above work perfect.  I just need to switch back to the RF input at one point in my project.

    Thanks!

  • 0
    Avatar
    Lance Lander

    I got this to work on my Samsung.

    Using BrightControl send Ascii string:

    "409D0000" will switch to the RF coaxial antenna input.

  • 0
    Avatar
    William

    Hello,

    I am trying to do a very similar thing to Michael actually. I have been able to get the HDMI to work fine, but other sources like VGA and TV Tuner are not working. More or less, I haven't been able to find the codes. Do you have a place you go to find them or do you just know CEC?

    Thanks for the help

  • 0
    Avatar
    Lance Lander

    If you use BrightControl to send Ascii "409D0000" it should switch to the TV input (it worked on my Samsung). 

    I'm not sure if you can switch to VGA because CEC is specifically for communication over HDMI.  But I also didn't think you could switch to the TV input but you can.

    If you have a monitor and a BrightSign player that both have serial capabilities you could easily switch inputs.

    Most of what I have posted is from generating CEC codes from CEC-o-matic.com

    and lots of experimenting.

    If you Google "hdmi-cec-codes" there is an .XLS document (User Control Codes - Andrew N Carr) that has all of the codes and descriptions.

     

  • 0
    Avatar
    William

    Thank you. I did find that excel sheet you were referring to, but they don't tend to work. Lots of trial and error.

  • 0
    Avatar
    William

    I guess the thing I don't understand about the cec-o-matic website is the source vs. destination. It seems rather counter intuitive as to what I am expecting.

  • 0
    Avatar
    Lance Lander

    For the CEC-o-matic website your source is playback 1 and your destination is TV. whenever an address is required use 0.0.0.0

    For example, select Playback 1 for source and TV for destination. Under the "All Messages" tab select "Standby". Then press the purple triangle pointing up on the right side of the page. Then at the top of the page you will see the CEC code generated as "40:36". if you use BrightControl to send Ascii "4036" it will turn the TV off. That is what is sent if you select "Display Off" under BrightControl in BrightAuthor.

    It took a lot of experimenting for me to come up with the codes to change HDMI inputs.

  • 0
    Avatar
    Allen H. Porter

    I am using many different models of commercial Samsung displays.  BrightControl will turn any of them on.  But the Display Off command does not work on any of them.  Send ASCII String 4F821100 also works to switch the Samsung display to HDMI 1.  So I am reasonably certain the issue is with the code used for the Display Off command or Samsung's implementation of CEC.  I also tried Send ASCII String 4036 and that did not affect the various Samsung displays.

    Samsung DB32D

    Samsung ME65B

    Any idea what code works?

  • 0
    Avatar
    Allen H. Porter

    No sooner than I wrote this and I figured it out.  There are additional settings...at least on the Samsung commercial displays..that must be set for the CEC Off command to work.  Just the off command...go figure.


    You have turn on the Samsung Anytime Off feature.

  • 0
    Avatar
    cabin_fever

    Hi there, could you post the complete script for this? Or anyone a simple CEC script?

     

    Best,

    Konrad

  • 0
    Avatar
    Yatin Baluja

    Hi,

    4F821100 and 4F822100 are not working for me on Samsung Led TV as I have to switch between HDMI1 and HDMI2 and I'm using XT1143 BrightSign player. Any one knows from where they get these codes

    4F821100

    4F822100

    4F823100

    Best,

    Yatin 

  • 0
    Avatar
    Lance Lander

    Hi Yatlin,

     

    You need to make sure the Samsung TV you are using supports CEC codes. Samsung calls is AnyNet+. If your TV has AnyNet+ make sure it is enabled in the settings menu.

     

    Lance

  • 0
    Avatar
    Yatin Baluja

    Hi Lance, 

     

    It is enabled and I'm able to use "409D0000" to switch to TV input but not able to use HDMI switcher codes and do you have any idea from where I can find more codes related to that and test that.

     

    Best,

    Yatin Baluja 

  • 0
    Avatar
    Allen H. Porter

    Below I am turning the Samsung display on and setting for HDMI-1.  This is tested and works.  I have not tried to switch to HDMI-2.  I recall it was somewhat tricky getting Samsungs to turn off but otherwise was no issue.

  • 0
    Avatar
    Yatin Baluja

    Turning TV ON and OFF is easy in BrightAuthor and I’m able to do that but how to switch between the different HDMI inputs is not working for me as I used mentioned above codes. Code to switch between TV input and HDMI is working

  • 0
    Avatar
    Lance Lander

    When I created this post I was asking if anyone had a list of "codes". I searched and Googled but I have never saw a list of CEC codes. I do remember finding a PowerPoint presentation about CEC codes and that is where I discovered that "4F82" would switch the monitor to the HDMI input with an active signal. I also found some information in Raspberry Pi forums. I spent a lot of time experimenting to come up with the codes to switch to the various HDMI inputs. Those codes work for me. Are you sending them with BrightControl - Send Ascii String?

     

    Most of what I have posted is from generating CEC codes from CEC-o-matic.com

    and lots of experimenting.

    If you Google "hdmi-cec-codes" there is an .XLS document (User Control Codes - Andrew N Carr) that has all of the codes and descriptions.

  • 0
    Avatar
    Yatin Baluja

    I have that .XLS document but its hard for me to generate CEC code from it and Yes, I'm sending those commands using BrightControl>Send Ascii String. 

     

    Do you have the link of that presentation? 

     

    Using CEC-o-matic.com what do I have to select like the source and the destination? and they generate the CEC code like 40:44:45. So, using this one as Send Ascii string is be like 404445? or is there any other way to send.

  • 0
    Avatar
    Lance Lander

    For the CEC-o-matic website your source is playback 1 and your destination is TV. whenever an address is required use 0.0.0.0

    For example, select Playback 1 for source and TV for destination. Under the "All Messages" tab select "Standby". Then press the purple triangle pointing up on the right side of the page. Then at the top of the page you will see the CEC code generated as "40:36". if you use BrightControl to send Ascii "4036" it will turn the TV off. That is what is sent if you select "Display Off" under BrightControl in BrightAuthor.

    I'll try to find that PowerPoint presentation. If I find it I'll post it here.

  • 0
    Avatar
    Yatin Baluja

    Okay. I'll try few codes tomorrow using CEC-o-matic.com and let you know if facing any problem. In the mean time I'll be glad if you can find and post the presentation you have. 

  • 0
    Avatar
    Lance Lander

    Have you tried sending "4F82"? That one changes to the HDMI input that has a detected signal. Try setting the TV to an input that isn't being used and then send "4F82" with the BrightSign player connected to one of the HDMI inputs. The TV should switch to whichever HDMI input the BrightSign player is connected to. I had success with that before I figured out how to target the exact HDMI inputs.

  • 0
    Avatar
    Yatin Baluja

    I have two HDMI's on a TV and connected two different boxes on each HDMI which I want to switch between.

  • 0
    Avatar
    Lance Lander

    Here is the link to the PowerPoint;

    www.quantumdata.com/pdf/CEC_HDMI_Conference_Final.pps

     

     

  • 0
    Avatar
    Yatin Baluja

    Thank you so much.

  • 0
    Avatar
    Yatin Baluja

    Hi Lance,

     

    I tried following commands using cec-o-matic.com 

     

    40820000

    40821100

    4085

    40821000

    but nothing is happening 

  • 0
    Avatar
    Jeff Nuchols

    The On/Off codes work, but I can't figure out had to setup the scheduler to turn the system on in the morning and then back off at the end of the day.

Please sign in to leave a comment.