Announcement

Collapse
No announcement yet.

Pcp and Ir control

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Pcp and Ir control

    Hello,

    I would like to add the remote control to PCP.
    Installed : Kernel Keytables, and LIRC.
    Connected and IR receiver on GPIO pin.

    And now ??? What to do exactly ??

    Sorry I'm discovering linux and founded a lot of thread (sometimes very long) but I stay lost. In my opinion some tutorials will be very welcome.

    I'm sure you think it's obvious, but if we don't know where to start it's not easy

    Thanks a lot for your help.

    #2
    Did you follow this?


    Explain how far you have got and what happened.
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

    Comment


      #3
      Originally posted by Paul Webster View Post
      Did you follow this?


      Explain how far you have got and what happened.
      I saw this thread, and don't know if the procedure is still actual because:
      dtoverlay=lirc-rpi,gpio_in_pin=27
      but the pin is defined into PCP Tweeks IR

      This section is for squeezelite ONLY. See post #2 for Jivelite configuration.
      Squeezelite is installed on my PCP but also Jivelite for the vu-meter...

      If you don't have shairport-sync enabled you also need to install
      I have installed Shairtuens2. Does it the job ?

      The lircd-jivelite config file is only for a squeezebox3, classic, or touch slimdevices/logitech remote. I've also included a lircd-jivelite-RMTD116A config file which is for a Sony RMT-D116A remote.
      Not necessary ? I'm using Pi4.

      it's a recipe where I add totally unknown ingredients, which I don't know what results to expect.

      But just founded this one more clear:
      https://forums.slimdevices.com/showt...piCorePlayer-5

      I'll try it

      Thanks

      Comment


        #4
        It should be just a matter of setting the GPIO on the [Tweaks] > [IR page] if you are using a Squeezebox remote.

        The major confusion with IR is there is actually 2 systems, IR in the kernel and LIRC which is alternative.

        IR is built into squeezelite and jivelite. If jivelite is installed, pCP controls it, otherwise pCP controls squeezelite.
        Last edited by Greg Erskine; 2022-01-17, 19:33.

        Comment


          #5
          Ir receiver is working and I see datas.

          Code:
          # table: ??? , type: nec
          0x1012  KEY_C
          0x1011  KEY_POWER
          0x87eee20b  KEY_UP
          0x87eee20d  KEY_DOWN
          0x87eee208  KEY_LEFT
          0x87eee207  KEY_RIGHT
          0x87eee20e  KEY_P
          0x87eee202  KEY_0
          Now I should complete the keytable file. What is the name to add after table: ???

          Shoud I modify the jivelight files (it's write protect) or should I create a new one, and how to activate it ?


          Code:
          865.870047: lirc protocol(nec32): scancode = 0x87eee204 repeat
          865.870079: event type EV_MSC(0x04): scancode = 0x87eee204
          865.870079: event type EV_SYN(0x00).

          What about the repeat code ?

          Thanks

          Comment


            #6
            Originally posted by PaulH View Post
            Ir receiver is working and I see datas.

            Code:
            # table: ??? , type: nec
            0x1012  KEY_C
            0x1011  KEY_POWER
            0x87eee20b  KEY_UP
            0x87eee20d  KEY_DOWN
            0x87eee208  KEY_LEFT
            0x87eee207  KEY_RIGHT
            0x87eee20e  KEY_P
            0x87eee202  KEY_0
            Now I should complete the keytable file. What is the name to add after table: ???

            Shoud I modify the jivelight files (it's write protect) or should I create a new one, and how to activate it ?


            Code:
            865.870047: lirc protocol(nec32): scancode = 0x87eee204 repeat
            865.870079: event type EV_MSC(0x04): scancode = 0x87eee204
            865.870079: event type EV_SYN(0x00).

            What about the repeat code ?

            Thanks
            From the URL you previously posted.
            the first line contains a header with a descriptive name (you can choose that rather arbitrarily, but better avoid special characters, spaces and such) and the remote protocol to use (the type: - which is very important).
            and

            Now we need to upload the file using the piCorePlayer webgui Upload custom jivelite keytables to pCP on the IR page.

            Click Browse and choose your new keytable file, select it and click upload.

            If successful you should be able to use the remote immediately, no jivelite restart or reboot is required.
            The repeat (PERIOD) and delay are set using the ir-keytable utility. You can try different settings from the command line as the changes are immediate.

            If you want to change the defaults you can run ir-keytable from the user commands on the tweaks page.
            Ralphy

            1-Touch, 5-Classics, 3-Booms, 2-UE Radio
            Squeezebox client builds donations always appreciated.

            Comment


              #7
              Thanks ralphy !

              Code:
              # table: Apple, type: nec
              0x87eee20b  KEY_UP
              0x87eee20d  KEY_DOWN
              0x87eee208  KEY_LEFT
              0x87eee207  KEY_RIGHT
              0x87eee20e  KEY_P
              0x87eee202  KEY_0
              Uploaded:
              Code:
              [ INFO ] Uploading: lirc.conf
              [ INFO ] Backing up files to /mnt/mmcblk0p2/tce/mydata.tgz / 
              Done.
              [ OK ] Backup successful.
              [ INFO ] Backing up files to /mnt/mmcblk0p2/tce/mydata.tgz / 
              Done.
              [ OK ] Backup successful.
              Reboot
              but: LIRC IR remote control is not running

              IR RC5(x/sz) protocol handler initialized but not NEC. As if the table was not downloaded correctly. Does this files has a specific extension (.xxx)?

              Tried to uninstall LIRC and reinstall, no change.
              What's wrong ?
              Last edited by PaulH; 2022-01-18, 17:43.

              Comment


                #8
                Originally posted by ralphy View Post
                Now we need to upload the file using the piCorePlayer webgui Upload custom jivelite keytables to pCP on the IR page.

                Click Browse and choose your new keytable file, select it and click upload.

                If successful you should be able to use the remote immediately, no jivelite restart or reboot is required.
                Click image for larger version

Name:	Capture d’écran 2022-01-19 à 09.54.51.jpg
Views:	2
Size:	93.2 KB
ID:	1574246

                PcP is rebooting automatically.

                But I still get:
                Code:
                [   18.812803] Registered IR keymap rc-rc6-mce
                [   18.829030] IR RC6 protocol handler initialized
                not NEC.

                What miss I ?

                Comment


                  #9
                  If you're using Jivelite don't use LIRC !

                  Click image for larger version

Name:	2022-01-19 09_22_57-pCP - LIRC — Mozilla Firefox.jpg
Views:	2
Size:	16.9 KB
ID:	1574247
                  sigpic
                  Want a webapp ? Get SqueezeLite-X ! https://forums.slimdevices.com/showt...l=1#post903953

                  Comment


                    #10
                    Originally posted by Jeff07971 View Post
                    If you're using Jivelite don't use LIRC !

                    [ATTACH]36918[/ATTACH]
                    Jivelite is intall for the vumeter view.

                    No IR control available if we are using Jivelite ?
                    Tks

                    Comment


                      #11
                      Originally posted by PaulH View Post
                      Jivelite is intall for the vumeter view.

                      No IR control available if we are using Jivelite ?
                      Tks
                      IR Control of Jivelite is done by IR-Keytables NOT lirc

                      Jeff
                      sigpic
                      Want a webapp ? Get SqueezeLite-X ! https://forums.slimdevices.com/showt...l=1#post903953

                      Comment


                        #12
                        Originally posted by Jeff07971 View Post
                        IR Control of Jivelite is done by IR-Keytables NOT lirc

                        Jeff
                        Jivelite is a controller for the Server/Player in the Squeezebox system.

                        IR-Keytables allows you to use IR remotes to control Jivelite, Jivelite then controls the system.

                        You only need lirc if you have no Jivelite


                        Jeff
                        sigpic
                        Want a webapp ? Get SqueezeLite-X ! https://forums.slimdevices.com/showt...l=1#post903953

                        Comment


                          #13
                          Originally posted by Jeff07971 View Post
                          Jivelite is a controller for the Server/Player in the Squeezebox system.

                          IR-Keytables allows you to use IR remotes to control Jivelite, Jivelite then controls the system.

                          You only need lirc if you have no Jivelite


                          Jeff
                          I guess Jivelite is used (Pcp is installed on Pi4, with LCD).

                          Where is the IR table. I would like to use an apple remote.

                          Thanks

                          Comment


                            #14
                            Originally posted by PaulH View Post
                            I guess Jivelite is used (Pcp is installed on Pi4, with LCD).

                            Where is the IR table. I would like to use an apple remote.

                            Thanks
                            i found it easier just to use a flirc
                            PiCorePlayer 8.2 on Allo Digi One Signature (Lounge)
                            PiCorePlayer 8.2 with Hifiberry Digi+ Material running on PI for control (Office)
                            PiCorePlayer 8.2 with pi official touchscreen and Hifiberry DAC+(Kitchen)
                            Radio (Bedroom)
                            PiCorePlayer 8.2 with Allo BOSS DAC (Bedroom)
                            PiCorePlayer 8.2 with Hifiberry AMP+. Squeezelite=x for control (Garage)
                            PiCorePlayer 8.2 with Hifiberry AMP+(Patio 2)
                            PiCorePlayer 8.2 with Hifiberry AMP+(Patio 2)

                            LMS 8.3 on unRaid 6.11.5 Server (Seneca HDS)

                            Comment


                              #15
                              Originally posted by PaulH View Post
                              I guess Jivelite is used (Pcp is installed on Pi4, with LCD).

                              Where is the IR table. I would like to use an apple remote.

                              Thanks
                              sigpic
                              Want a webapp ? Get SqueezeLite-X ! https://forums.slimdevices.com/showt...l=1#post903953

                              Comment

                              Working...
                              X