cicciopizza
Posts: 2
Joined: Sat Mar 22, 2014 11:37 am

irrecord problem

Wed Apr 25, 2018 4:30 pm

I have a strange problem with lirc and irrecord
- irrecord 0.9.4c version on 2 raspberry pi3 Raspbian GNU/Linux 9 (stretch)
Target: clone samsung BN59-00865A remote control.
after configuring lirc etc. (I'm 99% sure the lirc software configuration is correct)
I did these steps:

Step 1
irrecord -d /dev/lirc0 ~/lircd.conf
I follow all the instructions...
and finally I get the lircd.conf file (the file is samsung.lircd.conf) and its contents is:

Code: Select all

# Please take the time to finish this file as described in
# https://sourceforge.net/p/lirc-remotes/wiki/Checklist/
# and make it available to others by sending it to
# <[email protected]>
#
# This config file was automatically generated
# using lirc-0.9.4c(default) on Sat Apr 21 17:47:12 2018
# Command line used: -d /dev/lirc0 /home/pi/lircd.conf
# Kernel version (uname -r): 4.9.59-v7+
#
# Remote name (as of config file): samsung
# Brand of remote device, the thing you hold in your hand:
# Remote device model nr:
# Remote device info url:
# Does remote device has a bundled capture device e. g., a
#     usb dongle? :
# For bundled USB devices: usb vendor id, product id
#     and device string (use dmesg or lsusb):
# Type of device controlled
#     (TV, VCR, Audio, DVD, Satellite, Cable, HTPC, ...) :
# Device(s) controlled by this remote:

begin remote

  name  samsung
  bits           16
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       4514  4470
  one           557  1678
  zero          557   560
  ptrail        557
  pre_data_bits   16
  pre_data       0xE0E0
  gap          107919
  toggle_bit_mask 0x0
  frequency    38000

      begin codes
          key_1                    0x20DF
          key_2                    0xA05F
          key_3                    0x609F
          key_4                    0x40BF
      end codes

end remote
I have only decoded 4 keys and the key_4 corresponds to the power on / off

Step 2
I replace the file samsung.lircd.conf in /etc/lirc/lircd.conf

Step 3
restart lircd process to read the new configuration

Code: Select all

sudo service lircd restart
Step 4
I start irw process and with the remote control I press the keys KEY_1 .. KEY_4
it works correctly, irw read the signals from the remote control

Step 5
On a second raspberry nr. 2 identical rasbian configuration, lirc etc. and the same file lirc.conf,
I try to simulate with irsend the push KEY_1 .. KEY_4:

Code: Select all

irsend SEND_ONCE samsung KEY_1
(samsung is the name inside the lircd.conf name tag)

irw on the other raspberry nr. 1 DOES NOT HAVE ANYTHING !!!


Step 6
trying to send irsend:

Code: Select all

irsend SEND_ONCE samsung KEY_1
to the TV does not work


Step 7
I found the lirc.conf file on the internet for the remote control samsung BN59-00865A
I uploaded this file on both raspberry
on a raspebrry nr. 1 I run command

Code: Select all

irsend SEND_ONCE samsung KEY_1
and on the other raspberry with active irw
i have READ the signal

Step 8
If I push KEY_1 on remote control, irw on raspberry nr. 2 NON READ SIGNAL !!!
but if I send with irsend command:

Code: Select all

irsend SEND_ONCE samsung KEY_1
to the TV THIS WORK FINE !!!!



seeing the differences between the lirc.conf file downloaded from the internet and what
I have generated, the differences that I have seen concern

lirc.conf downloaded from internet GOOD

Code: Select all

begin remote
  name samsung
  bits           16
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100
  header       4633  4321
  one           712  1520
  zero          712   398
  ptrail        704
  pre_data_bits   16
  pre_data       0xE0E0
  gap          108193
  toggle_bit      0
      begin codes
          KEY_TV                   0xD827                    #  Was: TV
          TOOLS                    0xD22D
          KEY_FAVORITES            0x22DD                    #  Was: FAV_CH
          KEY_ENTER                0x1AE5                    #  Was: RETURN
          CH_LIST                  0xD629
          KEY_POWER                0x40BF                    #  Was: POWER
          KEY_CYCLEWINDOWS         0x807F                    #  Was: SOURCE
          KEY_1                    0x20DF                    #  Was: 1
          KEY_2                    0xA05F                    #  Was: 2
          KEY_3                    0x609F                    #  Was: 3
          KEY_4                    0x10EF                    #  Was: 4
          KEY_5                    0x906F                    #  Was: 5
          KEY_6                    0x50AF                    #  Was: 6
          KEY_7                    0x30CF                    #  Was: 7
          KEY_8                    0xB04F                    #  Was: 8
          KEY_9                    0x708F                    #  Was: 9
          KEY_0                    0x8877                    #  Was: 0
          PRE-CH                   0xC837
          KEY_VOLUMEUP             0xE01F                    #  Was: VOL+
          KEY_CHANNELUP            0x48B7                    #  Was: P+
          KEY_MUTE                 0xF00F                    #  Was: MUTE
          KEY_VOLUMEDOWN           0xD02F                    #  Was: VOL-
          KEY_CHANNELDOWN          0x08F7                    #  Was: P-
          KEY_MENU                 0x58A7                    #  Was: MENU
          KEY_EXIT                 0xB44B                    #  Was: EXIT
          KEY_UP                   0x06F9                    #  Was: UP
          KEY_LEFT                 0xA659                    #  Was: LEFT
          ENTER-OK                 0x16E9
          KEY_RIGHT                0x46B9                    #  Was: RIGHT
          KEY_DOWN                 0x8679                    #  Was: DOWN
          KEY_INFO                 0xF20D                    #  Was: GUIDE
          KEY_INFO                 0xF807                    #  Was: INFO
          TEXT-MIX                 0x34CB
          KEY_RED                  0x36C9                    #  Was: RED
          KEY_GREEN                0x28D7                    #  Was: GREEN
          KEY_YELLOW               0xA857                    #  Was: YELLOW
          KEY_BLUE                 0x6897                    #  Was: BLUE
          KEY_SUBTITLE             0xA45B                    #  Was: SUBTITLE
      end codes
end remote




lirc.conf generated with irreconr WRONG !!!

Code: Select all

begin remote

  name  samsung
  bits           16
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       4514  4470
  one           557  1678
  zero          557   560
  ptrail        557
  pre_data_bits   16
  pre_data       0xE0E0
  gap          107919
  toggle_bit_mask 0x0
  frequency    38000

      begin codes
          key_1                    0x20DF
          key_2                    0xA05F
          key_3                    0x609F
          key_4                    0x40BF
      end codes

end remote


because I can not generate a good lirc.conf file with irrecord ???

Nortol
Posts: 1
Joined: Thu Mar 01, 2018 8:17 am

Re: irrecord problem

Wed Sep 12, 2018 4:20 pm

Have you found a solution for this problem?

Cheers

User avatar
jadro
Posts: 323
Joined: Sun Oct 02, 2016 1:20 pm
Location: Croatia

Re: irrecord problem

Thu Sep 13, 2018 6:32 am

One question,

I see that everyone use lirc for TV remote.
Does lirc works for AirConditioner?

Thanx,
Jadro
Oracle back-end database developer
SmartHome IoT & Microprocessor enthusiast and hobbyist

Return to “General discussion”

Who is online

Users browsing this forum: chinmay.g, Chris D, Haris1977, jerrm, Pepelabricole and 40 guests