Announcement

Collapse
No announcement yet.

Pcp and Ir control

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

    #31
    Mine does the same at boot although my remote is Sony and does work.



    Code:
    [   16.308079] Registered IR keymap rc-rc6-mce
    [   16.325021] IR RC6 protocol handler initialized
    [   16.360083] rc rc0: gpio_ir_recv as /devices/platform/[email protected]/rc/rc0
    [   16.360575] rc rc0: lirc_dev: driver gpio_ir_recv registered at minor = 0, raw IR receiver, no transmitter
    [   16.361064] input: gpio_ir_recv as /devices/platform/[email protected]/rc/rc0/input0

    What is the output from "sudo ir-keytable" ?

    What is the output from "sudo ir-keytable -t" when a key on the remote is pressed ?

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

    Comment


      #32
      Originally posted by Jeff07971 View Post
      Mine does the same at boot although my remote is Sony and does work.

      What is the output from "sudo ir-keytable" ?
      [email protected]:~$ sudo ir-keytable
      Found /sys/class/rc/rc0/ (/dev/input/event0) with:
      Name: gpio_ir_recv
      Driver: gpio_ir_recv, table: rc-rc6-mce
      LIRC device: /dev/lirc0
      Supported kernel protocols: lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp imon
      Enabled kernel protocols: lirc rc-6
      bus: 25, vendor/product: 0001:0001, version: 0x0100
      Repeat delay = 500 ms, repeat period = 125 ms


      Originally posted by Jeff07971 View Post

      What is the output from "sudo ir-keytable -t" when a key on the remote is pressed ?
      oooups nothing. Tsop is on PIN25 and I saw values when LIRC was installed

      Comment


        #33
        Originally posted by PaulH View Post
        [email protected]:~$ sudo ir-keytable
        Found /sys/class/rc/rc0/ (/dev/input/event0) with:
        Name: gpio_ir_recv
        Driver: gpio_ir_recv, table: rc-rc6-mce
        LIRC device: /dev/lirc0
        Supported kernel protocols: lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp imon
        Enabled kernel protocols: lirc rc-6
        bus: 25, vendor/product: 0001:0001, version: 0x0100
        Repeat delay = 500 ms, repeat period = 125 ms




        oooups nothing. Tsop is on PIN25 and I saw values when LIRC was installed

        Pin 25 is Ground, do you mean Pin 22 GPIO25 ?

        I'm not sure whats going on here its worked fine for me for many years and reinstalls.

        Are you sure theres nothing extra you've done over what you've told us ?

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

        Comment


          #34
          Theres something weird going on somewhere !

          I loaded your conf file

          Code:
          #table: Apple, type: nec
          0x87eee20b  KEY_UP
          0x87eee20d  KEY_DOWN
          0x87eee208  KEY_LEFT
          0x87eee207  KEY_RIGHT
          0x87eee20e  KEY_P
          0x87eee202  KEY_0
          and I get

          Code:
          [email protected]:~$ sudo ir-keytable
          Found /sys/class/rc/rc0/ (/dev/input/event0) with:
                  Name: gpio_ir_recv
                  Driver: gpio_ir_recv, table: rc-rc6-mce
                  LIRC device: /dev/lirc0
                  Supported kernel protocols: lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp imon
                  Enabled kernel protocols: lirc nec
                  bus: 25, vendor/product: 0001:0001, version: 0x0100
                  Repeat delay = 500 ms, repeat period = 125 ms

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

          Comment


            #35
            Originally posted by Jeff07971 View Post
            Pin 25 is Ground, do you mean Pin 22 GPIO25 ?
            Of course!! My mistake !


            Originally posted by Jeff07971 View Post
            Are you sure theres nothing extra you've done over what you've told us ?
            I'm using an HfiBerry DAC2


            Why I don't have this line:
            Enabled kernel protocols: lirc nec

            Does the table has a special name/extension ???
            Last edited by PaulH; 2022-01-20, 14:50.

            Comment


              #36
              When you say

              D/A choice, resize files, LMS, Jivelite install, Kernel keytables install, upload IRfile
              Where do you upload "upload IRfile"

              Click image for larger version

Name:	2022-01-19 09_58_23-pCP - LIRC — Mozilla Firefox.jpg
Views:	1
Size:	49.5 KB
ID:	1574272

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

              Comment


                #37
                Originally posted by Jeff07971 View Post
                When you say



                Where do you upload "upload IRfile"

                [ATTACH]36950[/ATTACH]

                Here ?
                Not sure. It's not the same color...
                Click image for larger version

Name:	Capture d’écran 2022-01-20 à 16.21.36.jpg
Views:	1
Size:	200.2 KB
ID:	1574273

                Comment


                  #38
                  Here

                  Click image for larger version

Name:	Capture d%u2019écran 2022-01-20 à 16.21.36.jpg
Views:	1
Size:	207.0 KB
ID:	1574274

                  Sorry I have "Dark" Theme turned on

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

                  Comment


                    #39
                    Exactly at this place !
                    Uploading with this message:
                    Code:
                    [ INFO ] Uploading: jivelite keytables
                    [ INFO ] Backing up files to /mnt/mmcblk0p2/tce/mydata.tgz / 
                    Done.
                    [ OK ] Backup successful.
                    [ INFO ] Loading keytable
                    [ INFO ] Backing up files to /mnt/mmcblk0p2/tce/mydata.tgz / 
                    Done.
                    [ OK ] Backup successful.
                    and:
                    Code:
                    [email protected]:~$ sudo ir-keytable
                    Found /sys/class/rc/rc0/ (/dev/input/event0) with:
                    	Name: gpio_ir_recv
                    	Driver: gpio_ir_recv, table: rc-rc6-mce
                    	LIRC device: /dev/lirc0
                    	Supported kernel protocols: lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp imon 
                    	Enabled kernel protocols: lirc rc-6 
                    	bus: 25, vendor/product: 0001:0001, version: 0x0100
                    	Repeat delay = 500 ms, repeat period = 125 ms

                    Comment


                      #40
                      OK

                      We now know that its software !

                      Your conf file runs OK on my pCP and enables NEC protocol but dosent on your pCP

                      I called your file "Nec.conf" and edited it in MS Windows Notepad

                      Nec.conf

                      Can you upload this and try "sudo ir-keytable" and "sudo ir-keytable -t" again

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

                      Comment


                        #41
                        Originally posted by Jeff07971 View Post
                        OK

                        We now know that its software !

                        Your conf file runs OK on my pCP and enables NEC protocol but dosent on your pCP

                        I called your file "Nec.conf" and edited it in MS Windows Notepad

                        [ATTACH]36954[/ATTACH]

                        Can you upload this and try "sudo ir-keytable" and "sudo ir-keytable -t" again

                        Jeff
                        [ INFO ] Uploading: jivelite keytables
                        [ INFO ] Backing up files to /mnt/mmcblk0p2/tce/mydata.tgz /
                        Done.
                        [ OK ] Backup successful.
                        [ INFO ] Loading keytable
                        [ INFO ] Backing up files to /mnt/mmcblk0p2/tce/mydata.tgz /
                        Done.
                        [ OK ] Backup successful.




                        Wahou !!!

                        Found /sys/class/rc/rc0/ (/dev/input/event0) with:
                        Name: gpio_ir_recv
                        Driver: gpio_ir_recv, table: rc-rc6-mce
                        LIRC device: /dev/lirc0
                        Supported kernel protocols: lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp imon
                        Enabled kernel protocols: lirc nec
                        bus: 25, vendor/product: 0001:0001, version: 0x0100
                        Repeat delay = 500 ms, repeat period = 125 ms

                        [email protected]:~$ sudo ir-keytable -t
                        Testing events. Please, press CTRL-C to abort.
                        21908.790063: lirc protocol(nec32): scancode = 0x87eee25e
                        21908.790086: event type EV_MSC(0x04): scancode = 0x87eee25e
                        21908.790086: event type EV_SYN(0x00).
                        21908.880094: lirc protocol(nec32): scancode = 0x87eee204
                        21908.880108: event type EV_MSC(0x04): scancode = 0x87eee204
                        21908.880108: event type EV_SYN(0x00).

                        It works!!!!

                        I saw too late my file has a .rtf extension. That probably why it doesn't work but without any error message !!!


                        Thanks a lot Jeff !!!!! GREAT JOB !!!

                        Comment


                          #42
                          Phew !!! Got there in the end !

                          I noticed I had a filename problem once before, its even in the thread "Howto create a linux kernel IR remote keytable for Jivelite on piCorePlayer 5.x/6.x "

                          Oh well !

                          Glad you got it working

                          Enjoy

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

                          Comment


                            #43
                            Originally posted by Jeff07971 View Post
                            Phew !!! Got there in the end !

                            I noticed I had a filename problem once before, its even in the thread "Howto create a linux kernel IR remote keytable for Jivelite on piCorePlayer 5.x/6.x "

                            Oh well !

                            Glad you got it working

                            Enjoy

                            Jeff
                            Perfect!!! I sent you a PM.

                            Comment


                              #44
                              Originally posted by PaulH View Post
                              I saw too late my file has a .rtf extension. That probably why it doesn't work but without any error message !!!
                              rtf is rich text, the file must be plain text. We can handle the Dos->Unix line endings, but not much else. There is very little error checking going on with the file you upload......it takes the user knows what to do. I would have to add some more dependencies to do more error checking.

                              Notepad++ is the best windows editor for working on files on a linux system.
                              piCorePlayer a small player for the Raspberry Pi in RAM.
                              Homepage: https://www.picoreplayer.org

                              Please donate if you like the piCorePlayer

                              Comment


                                #45
                                Originally posted by paul- View Post
                                Notepad++ is the best windows editor for working on files on a linux system.
                                I fully agree with you! Unfortunately it didn't exist for MAC. I made the file (RTF!) with Textedit.

                                Normally Mac should be closer to linux than window.... :-(

                                Comment

                                Working...
                                X