How do universal IR remote “codes” work

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












It is easy to find this kind of reference when searching for IR protocols and codes for specific equipment. The actual IR transmission contains far more data than these small codes can hold.



What exactly those codes represent?

How can 4 digits represent all the commands a device can receive?

Are these "codes" references to some standard protocol?
How do the universal remote knows the protocol and all the codes the product understands from this small configuration code?



I would love to understand more about this technology. For me it seems that every remote is different, and you would have to reverse engineer every message to identify which bit/byte does what.










share|improve this question























  • Thank you @Passerby
    – Filipe Nicoli
    1 hour ago














up vote
2
down vote

favorite












It is easy to find this kind of reference when searching for IR protocols and codes for specific equipment. The actual IR transmission contains far more data than these small codes can hold.



What exactly those codes represent?

How can 4 digits represent all the commands a device can receive?

Are these "codes" references to some standard protocol?
How do the universal remote knows the protocol and all the codes the product understands from this small configuration code?



I would love to understand more about this technology. For me it seems that every remote is different, and you would have to reverse engineer every message to identify which bit/byte does what.










share|improve this question























  • Thank you @Passerby
    – Filipe Nicoli
    1 hour ago












up vote
2
down vote

favorite









up vote
2
down vote

favorite











It is easy to find this kind of reference when searching for IR protocols and codes for specific equipment. The actual IR transmission contains far more data than these small codes can hold.



What exactly those codes represent?

How can 4 digits represent all the commands a device can receive?

Are these "codes" references to some standard protocol?
How do the universal remote knows the protocol and all the codes the product understands from this small configuration code?



I would love to understand more about this technology. For me it seems that every remote is different, and you would have to reverse engineer every message to identify which bit/byte does what.










share|improve this question















It is easy to find this kind of reference when searching for IR protocols and codes for specific equipment. The actual IR transmission contains far more data than these small codes can hold.



What exactly those codes represent?

How can 4 digits represent all the commands a device can receive?

Are these "codes" references to some standard protocol?
How do the universal remote knows the protocol and all the codes the product understands from this small configuration code?



I would love to understand more about this technology. For me it seems that every remote is different, and you would have to reverse engineer every message to identify which bit/byte does what.







infrared remote-control protocol






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 hours ago









Passerby

55.2k448143




55.2k448143










asked 2 hours ago









Filipe Nicoli

42338




42338











  • Thank you @Passerby
    – Filipe Nicoli
    1 hour ago
















  • Thank you @Passerby
    – Filipe Nicoli
    1 hour ago















Thank you @Passerby
– Filipe Nicoli
1 hour ago




Thank you @Passerby
– Filipe Nicoli
1 hour ago










2 Answers
2






active

oldest

votes

















up vote
2
down vote



accepted










The codes are just a reference to a set of actual IR codes. It tells the microcontroller or CPU (loose term) of the remote which type of code modulation, brand and device type to use. The standard protocols are RC5 and NEC, though there are other types. Once you know the protocol, the rest is just crafting the actual button code, which is a fairly small set of generic codes, typically 8 bits so 0 to 255 or 0x00 to 0xFF, and a manufacturer code. Each value does different things based on the device, so one tv may take 0x0A to mean power on, another might use that for channel down.



Universal remotes work basically by the manufacturer gathering as much data about common IR code sets for common devices and providing the end user with a way to set that code set. The codes you put in are just like a street address, with the remote figuring out all the information it needs for that code.



TV manufacturers sometimes reuse codes from one tv to another, and some white label manufacturers reuse them (white label manufacturers make generic TVs with a store name brand). So there's a lot of overlap in codes. No one likes to reinvent the wheel.






share|improve this answer






















  • So the codes on the table I've referenced are far more related to the universal remote than to the devices themselves?
    – Filipe Nicoli
    1 hour ago










  • Yes. They are basically arbitrary numbers for the order that the remote company added new code sets.
    – Passerby
    1 hour ago










  • I understand. Are you aware of any online source for these code sets?
    – Filipe Nicoli
    1 hour ago










  • YES! getzweb.net/jp1 has a huge list for multiple remote types. I use it with my Comcast remote that's really a universal remote made by UEI. Typically seen with the JP1 connector. You can google your remote type to find more. Some can be programmed with custom codes. For example, my tv code set includes codes for my android tv box and my Mac!
    – Passerby
    38 mins ago

















up vote
1
down vote













All the code does is tell the transmitting device what it's talking to. The specific commands would already be known by the transmitting device for each model.



As for how the remote knows the commands for each model, it would have to be programmed into the remote, so they would be defined and released by the manufacturer or reverse engineered.






share|improve this answer








New contributor




thomashw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

















    Your Answer





    StackExchange.ifUsing("editor", function ()
    return StackExchange.using("mathjaxEditing", function ()
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
    );
    );
    , "mathjax-editing");

    StackExchange.ifUsing("editor", function ()
    return StackExchange.using("schematics", function ()
    StackExchange.schematics.init();
    );
    , "cicuitlab");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "135"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "",
    contentPolicyHtml: "",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f404238%2fhow-do-universal-ir-remote-codes-work%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote



    accepted










    The codes are just a reference to a set of actual IR codes. It tells the microcontroller or CPU (loose term) of the remote which type of code modulation, brand and device type to use. The standard protocols are RC5 and NEC, though there are other types. Once you know the protocol, the rest is just crafting the actual button code, which is a fairly small set of generic codes, typically 8 bits so 0 to 255 or 0x00 to 0xFF, and a manufacturer code. Each value does different things based on the device, so one tv may take 0x0A to mean power on, another might use that for channel down.



    Universal remotes work basically by the manufacturer gathering as much data about common IR code sets for common devices and providing the end user with a way to set that code set. The codes you put in are just like a street address, with the remote figuring out all the information it needs for that code.



    TV manufacturers sometimes reuse codes from one tv to another, and some white label manufacturers reuse them (white label manufacturers make generic TVs with a store name brand). So there's a lot of overlap in codes. No one likes to reinvent the wheel.






    share|improve this answer






















    • So the codes on the table I've referenced are far more related to the universal remote than to the devices themselves?
      – Filipe Nicoli
      1 hour ago










    • Yes. They are basically arbitrary numbers for the order that the remote company added new code sets.
      – Passerby
      1 hour ago










    • I understand. Are you aware of any online source for these code sets?
      – Filipe Nicoli
      1 hour ago










    • YES! getzweb.net/jp1 has a huge list for multiple remote types. I use it with my Comcast remote that's really a universal remote made by UEI. Typically seen with the JP1 connector. You can google your remote type to find more. Some can be programmed with custom codes. For example, my tv code set includes codes for my android tv box and my Mac!
      – Passerby
      38 mins ago














    up vote
    2
    down vote



    accepted










    The codes are just a reference to a set of actual IR codes. It tells the microcontroller or CPU (loose term) of the remote which type of code modulation, brand and device type to use. The standard protocols are RC5 and NEC, though there are other types. Once you know the protocol, the rest is just crafting the actual button code, which is a fairly small set of generic codes, typically 8 bits so 0 to 255 or 0x00 to 0xFF, and a manufacturer code. Each value does different things based on the device, so one tv may take 0x0A to mean power on, another might use that for channel down.



    Universal remotes work basically by the manufacturer gathering as much data about common IR code sets for common devices and providing the end user with a way to set that code set. The codes you put in are just like a street address, with the remote figuring out all the information it needs for that code.



    TV manufacturers sometimes reuse codes from one tv to another, and some white label manufacturers reuse them (white label manufacturers make generic TVs with a store name brand). So there's a lot of overlap in codes. No one likes to reinvent the wheel.






    share|improve this answer






















    • So the codes on the table I've referenced are far more related to the universal remote than to the devices themselves?
      – Filipe Nicoli
      1 hour ago










    • Yes. They are basically arbitrary numbers for the order that the remote company added new code sets.
      – Passerby
      1 hour ago










    • I understand. Are you aware of any online source for these code sets?
      – Filipe Nicoli
      1 hour ago










    • YES! getzweb.net/jp1 has a huge list for multiple remote types. I use it with my Comcast remote that's really a universal remote made by UEI. Typically seen with the JP1 connector. You can google your remote type to find more. Some can be programmed with custom codes. For example, my tv code set includes codes for my android tv box and my Mac!
      – Passerby
      38 mins ago












    up vote
    2
    down vote



    accepted







    up vote
    2
    down vote



    accepted






    The codes are just a reference to a set of actual IR codes. It tells the microcontroller or CPU (loose term) of the remote which type of code modulation, brand and device type to use. The standard protocols are RC5 and NEC, though there are other types. Once you know the protocol, the rest is just crafting the actual button code, which is a fairly small set of generic codes, typically 8 bits so 0 to 255 or 0x00 to 0xFF, and a manufacturer code. Each value does different things based on the device, so one tv may take 0x0A to mean power on, another might use that for channel down.



    Universal remotes work basically by the manufacturer gathering as much data about common IR code sets for common devices and providing the end user with a way to set that code set. The codes you put in are just like a street address, with the remote figuring out all the information it needs for that code.



    TV manufacturers sometimes reuse codes from one tv to another, and some white label manufacturers reuse them (white label manufacturers make generic TVs with a store name brand). So there's a lot of overlap in codes. No one likes to reinvent the wheel.






    share|improve this answer














    The codes are just a reference to a set of actual IR codes. It tells the microcontroller or CPU (loose term) of the remote which type of code modulation, brand and device type to use. The standard protocols are RC5 and NEC, though there are other types. Once you know the protocol, the rest is just crafting the actual button code, which is a fairly small set of generic codes, typically 8 bits so 0 to 255 or 0x00 to 0xFF, and a manufacturer code. Each value does different things based on the device, so one tv may take 0x0A to mean power on, another might use that for channel down.



    Universal remotes work basically by the manufacturer gathering as much data about common IR code sets for common devices and providing the end user with a way to set that code set. The codes you put in are just like a street address, with the remote figuring out all the information it needs for that code.



    TV manufacturers sometimes reuse codes from one tv to another, and some white label manufacturers reuse them (white label manufacturers make generic TVs with a store name brand). So there's a lot of overlap in codes. No one likes to reinvent the wheel.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited 1 hour ago









    Niteesh Shanbog

    16418




    16418










    answered 1 hour ago









    Passerby

    55.2k448143




    55.2k448143











    • So the codes on the table I've referenced are far more related to the universal remote than to the devices themselves?
      – Filipe Nicoli
      1 hour ago










    • Yes. They are basically arbitrary numbers for the order that the remote company added new code sets.
      – Passerby
      1 hour ago










    • I understand. Are you aware of any online source for these code sets?
      – Filipe Nicoli
      1 hour ago










    • YES! getzweb.net/jp1 has a huge list for multiple remote types. I use it with my Comcast remote that's really a universal remote made by UEI. Typically seen with the JP1 connector. You can google your remote type to find more. Some can be programmed with custom codes. For example, my tv code set includes codes for my android tv box and my Mac!
      – Passerby
      38 mins ago
















    • So the codes on the table I've referenced are far more related to the universal remote than to the devices themselves?
      – Filipe Nicoli
      1 hour ago










    • Yes. They are basically arbitrary numbers for the order that the remote company added new code sets.
      – Passerby
      1 hour ago










    • I understand. Are you aware of any online source for these code sets?
      – Filipe Nicoli
      1 hour ago










    • YES! getzweb.net/jp1 has a huge list for multiple remote types. I use it with my Comcast remote that's really a universal remote made by UEI. Typically seen with the JP1 connector. You can google your remote type to find more. Some can be programmed with custom codes. For example, my tv code set includes codes for my android tv box and my Mac!
      – Passerby
      38 mins ago















    So the codes on the table I've referenced are far more related to the universal remote than to the devices themselves?
    – Filipe Nicoli
    1 hour ago




    So the codes on the table I've referenced are far more related to the universal remote than to the devices themselves?
    – Filipe Nicoli
    1 hour ago












    Yes. They are basically arbitrary numbers for the order that the remote company added new code sets.
    – Passerby
    1 hour ago




    Yes. They are basically arbitrary numbers for the order that the remote company added new code sets.
    – Passerby
    1 hour ago












    I understand. Are you aware of any online source for these code sets?
    – Filipe Nicoli
    1 hour ago




    I understand. Are you aware of any online source for these code sets?
    – Filipe Nicoli
    1 hour ago












    YES! getzweb.net/jp1 has a huge list for multiple remote types. I use it with my Comcast remote that's really a universal remote made by UEI. Typically seen with the JP1 connector. You can google your remote type to find more. Some can be programmed with custom codes. For example, my tv code set includes codes for my android tv box and my Mac!
    – Passerby
    38 mins ago




    YES! getzweb.net/jp1 has a huge list for multiple remote types. I use it with my Comcast remote that's really a universal remote made by UEI. Typically seen with the JP1 connector. You can google your remote type to find more. Some can be programmed with custom codes. For example, my tv code set includes codes for my android tv box and my Mac!
    – Passerby
    38 mins ago












    up vote
    1
    down vote













    All the code does is tell the transmitting device what it's talking to. The specific commands would already be known by the transmitting device for each model.



    As for how the remote knows the commands for each model, it would have to be programmed into the remote, so they would be defined and released by the manufacturer or reverse engineered.






    share|improve this answer








    New contributor




    thomashw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      1
      down vote













      All the code does is tell the transmitting device what it's talking to. The specific commands would already be known by the transmitting device for each model.



      As for how the remote knows the commands for each model, it would have to be programmed into the remote, so they would be defined and released by the manufacturer or reverse engineered.






      share|improve this answer








      New contributor




      thomashw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



















        up vote
        1
        down vote










        up vote
        1
        down vote









        All the code does is tell the transmitting device what it's talking to. The specific commands would already be known by the transmitting device for each model.



        As for how the remote knows the commands for each model, it would have to be programmed into the remote, so they would be defined and released by the manufacturer or reverse engineered.






        share|improve this answer








        New contributor




        thomashw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        All the code does is tell the transmitting device what it's talking to. The specific commands would already be known by the transmitting device for each model.



        As for how the remote knows the commands for each model, it would have to be programmed into the remote, so they would be defined and released by the manufacturer or reverse engineered.







        share|improve this answer








        New contributor




        thomashw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        thomashw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 2 hours ago









        thomashw

        1462




        1462




        New contributor




        thomashw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        thomashw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        thomashw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f404238%2fhow-do-universal-ir-remote-codes-work%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            Long meetings (6-7 hours a day): Being “babysat” by supervisor

            Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

            Confectionery