Announcement

Collapse
No announcement yet.

Pcp and Ir control

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

  • PaulH
    replied
    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.... :-(

    Leave a comment:


  • paul-
    replied
    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.

    Leave a comment:


  • PaulH
    replied
    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.

    Leave a comment:


  • Jeff07971
    replied
    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

    Leave a comment:


  • PaulH
    replied
    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 !!!

    Leave a comment:


  • Jeff07971
    replied
    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

    Leave a comment:


  • PaulH
    replied
    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

    Leave a comment:


  • Jeff07971
    replied
    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

    Leave a comment:


  • PaulH
    replied
    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

    Leave a comment:


  • Jeff07971
    replied
    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 ?

    Leave a comment:


  • PaulH
    replied
    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.

    Leave a comment:


  • Jeff07971
    replied
    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

    Leave a comment:


  • Jeff07971
    replied
    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

    Leave a comment:


  • PaulH
    replied
    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

    Leave a comment:


  • Jeff07971
    replied
    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

    Leave a comment:

Working...
X