
If you have added equipment or replaced old equipment and the remote no longer controls it, we probably have to come reprogram it. Radio frequency allows you to control equipment without seeing it (hidden in a closet or cabinet) infrared uses line of sight (point and shoot). We program the remotes to use both RF and IR at the same time (radio frequency and infrared). So if it has stopped working or is not functioning properly, it is RARELY a programming issue or a problem with the remote itself. They do not lose their programming, even if the batteries die. This may not be the exact remote you have, but a good bit of the troubleshooting will work for older models as well. The URC MX-780 remote is the go to remote for us and has been for years now. There are several things you need to keep in mind before moving further. So we figured it is about time to do a short troubleshooting write up. These remotes are not cheap and you have to be a URC certified dealer to program them or add new equipment to the system.

Their remotes are solid, reliable, and short of your dog getting a hold of it we rarely have to replace them. It is a product that we believe in and trust. If you can't explain it, or they don't get it, it probably isn't.We have been selling, installing, and programming Universal Remote Control (URC) remotes in our custom home A/V systems for well over 10 years now. If they get it, the code is probably good. Explain the code to a non-programmer - your mother, father, wife, boyfriend, cat, whatever. Print each of your functions out on separate pieces of paper. You don't need to call loop() from loop() or put gotos and labels to make loop() iterate again. loop(), for instance, does not need your help to get called again when it ends. Learn what break and return do, and where control goes when they are executed. Get each function to work before adding more. That's about the extent that the human brain can comprehend at one time. Write small functions, that can print on ONE sheet of paper. About a year after I wrote that code, I re-wrote it to not need that one goto statement. In 25+ years of making a living as a programmer, I've used goto in C++ code exactly once.

Male the name meaningful when you define the function, and save yourself the trouble.įorget that goto exists. They are things that you do from the very beginning.Ĭhanging a function name that is meaningless later, after you've call the function 512 times is tedious. Thinking logically, organizing code well, etc. The time to make the code look good is when you type it. It's a bit messy, I know, but we're planning to clean it up later when things work out
