Hi,
My linux kernel version is 4.14.78.
I'm using the gpio-ir-recv IR driver with LIRC and want to receive the SONY remote control signal.
[ 7.451594] lirc_dev: IR Remote Control driver registered, major 511
[ 7.467606] IR LIRC bridge handler initialized
[ 7.492242] rc rc0: lirc_dev: driver ir-lirc-codec (gpio-rc-recv) registered at minor = 0
And I use the mode2 to check the IR signal :
mode2 -d /dev/lirc0
Then I get the SONY IR pulse and space for one button press like :
space 2548057 <- this look like the time during button press
pulse 2528245 <- I'm not sure what this pulse means.
space 2373
pulse 632
space 1174
pulse 635
space 570
pulse 636
space 1173
pulse 637
space 569
pulse 636
space 1173
pulse 636
space 570
pulse 637
space 569
pulse 636
space 570
pulse 637
space 569
pulse 637
space 570
pulse 636
space 599
pulse 607
space 1202
pulse 607
space 1211
pulse 598
space 570
pulse 637
space 570
pulse 21663 <- It look like "gap"
space 2406
pulse 604
space 1173
pulse 636
space 570
pulse 636
space 1174
pulse 608
space 597
pulse 636
space 1203
pulse 607
space 599
pulse 607
space 599
pulse 607
space 600
pulse 607
space 600
pulse 606
space 599
pulse 607
space 600
pulse 606
space 1204
pulse 605
space 1203
pulse 608
space 599
pulse 608
space 599
pulse 21637
space 2407
pulse 604
space 1174
pulse 636
space 600
pulse 608
space 1202
pulse 606
space 600
pulse 606
space 1204
pulse 606
space 600
pulse 607
space 600
pulse 607
space 601
pulse 606
space 600
pulse 607
space 599
pulse 607
space 602
pulse 604
space 1203
pulse 606
space 1203
pulse 607
space 599
pulse 607
space 599
pulse 21634
space 2407
pulse 604
space 1203
pulse 607
space 599
pulse 606
space 1203
pulse 607
space 600
pulse 606
space 1203
pulse 607
space 600
pulse 606
space 601
pulse 606
space 600
pulse 607
space 599
pulse 607
space 600
pulse 606
space 600
pulse 607
space 1201
pulse 606
space 1204
pulse 605
space 600
pulse 607
space 600
pulse 21633
space 2406
pulse 604
space 1204
pulse 606
space 599
pulse 607
space 1203
pulse 607
space 600
pulse 606
space 1203
pulse 606
space 600
pulse 606
space 600
pulse 606
space 600
pulse 606
space 600
pulse 607
space 599
pulse 607
space 599
pulse 606
space 1204
pulse 605
space 1203
pulse 606
space 600
pulse 606
space 601
And I try to use irrecord to record the SONY remote control:
irrecord -d /dev/lirc0
then I get the message like below:
It is very important that you press many different buttons randomly
and hold them down for approximately one second. Each button should
generate at least one dot but never more than ten dots of output.
Don't stop pressing buttons until two lines of dots (2x80) have
been generated.
Press RETURN now to start recording.
..Cannot find any gap, using an arbitrary 50 ms one. If you have a
regular remote for e. g., a TV or such this is probably a point
where you hit control-C. However, technical hardware like air
condition gear often works without any gap. If you think it's
reasonable that your remote lacks gap you can proceed.
Please enter the name for the next button (press <enter> to finish recording)
KEY_POWER</enter>
Now hold down button "KEY_POWER".
Something went wrong: Cannot decode data
Please try again. (28 retries left)
Now hold down button "KEY_POWER".
Something went wrong: Cannot decode data
Please try again. (27 retries left)
Now hold down button "KEY_POWER".
Something went wrong: Cannot decode data
Please try again. (26 retries left)
Now hold down button "KEY_POWER".
Something went wrong: Cannot decode data
Please try again. (25 retries left)
...............
It keep show "Something went wrong: Cannot decode data".
Finally, I can't creat the new lircd.conf.
I'm not sure what step went wrong and how to setup the lircd.conf file ?
Best Regards,
Sam
It looks like gpio-ir-recv is not configured correctly. The Sony protocol should start with a 2400 pulse and 600 space, yet you get the reverse (2400 space and 600 pulse). I suspect that the pin should be inverted.
Since this ticket is almost four years old, please let us know if this still an issue and we can reopen.