From: Bengt M. <bu...@be...> - 2015-07-12 15:49:12
|
On 07/12/15 07:28, David Germany wrote: > I have a Raspberry Pi 2 and a Raspberry Pi B models that I installed > OSMC (Raspbian, OPENELEC etc) on. Now they work great, and I appreciate > the hard work. What I'm confused about is how LIRC works. So I got an > AppleTV Remote and got it working with my Pi2. Then I decided to get > another AppleTV Remote and program it for the Pi B Model. It worked as > well. > > But now I'm noticing that If I use controller A it will control both the > Pi2 and the Pi B. If I use controller B it's the same thing. > > So all I wanted to know is if there's a way to get passed this, so that > I can use both at the same time, without any interference . If they send the same codes they send the same code, not much to do... The Apple remotes (as far as I am aware, they have not changed the last few years, I have one here from around 2010) send a protocol that is called "Apple". It is really the same as NEC1, but the meaning of the bits are slightly different. (Also, it appears to send exactly one repeat, independently of how long the button is held down.) The last 8 bits are a "unique" "ID number", different for different remotes (oh well, just 8 bits...). So. assuming that you did not have two remotes with the same id (the probability should be 1/256 ~~ 0.005), there is the possibility that your lirc configuration is not evaluating all the bits (32 of them), but instead, say, 24, which would fit into the description. (Lirc checks not all the bits, only the ones it has in its configuration file.) You can scrutinize your configuration file and the remotes with IrScrutinizer, may help diagnose. Greetz, Bengt |