IR remote.

Raspberry Pi related support

IR remote.

Postby djevlen » 29 Nov 2015, 18:22

hi

I got so far, but remote still does nothing..how do i continue ?

[root@runeaudio ~]# systemctl status lirc.service :

* lirc.service - LIRC Infrared Signal Decoder
Loaded: loaded (/etc/systemd/system/lirc.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 1970-01-01 01:00:09 CET; 45 years 10 months ago
Main PID: 222 (lircd)
CGroup: /system.slice/lirc.service
`-222 /usr/sbin/lircd --pidfile=/run/lirc/lircd.pid

when i write irw then :

notice: accepted new client on /var/run/lirc/lird
notice: Cannot open /sys/class/rc

info: Cannot configure the rc device for /dev/lirc0
Error: Could not get file information for /dev/lirc0
default_init(): No cuch file or directory
Warning: Failed to initialize hardware

help pls
djevlen
 
Posts: 11
Joined: 27 Nov 2015, 14:45

Re: IR remote.

Postby hondagx35 » 29 Nov 2015, 20:52

Hi djevlen,

help pls


Hardware:
- Pi1 or Pi2?
- receiver (serial, USB, GPIO)?
- driver loaded?

Frank

BTW: would be nice to get a response here
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: IR remote.

Postby djevlen » 29 Nov 2015, 21:03

Rasp 2 B+
its a USB receiver : http://www.amazon.de/gp/product/B00AEJK6Q0?psc=1&redirect=true&ref_=oh_aui_detailpage_o02_s00

Chinavasion CVSB-983

In openelec it works out of the box.

I dont know how to answer to ur usb driver loaded question. im quite newbee in archlinux.

[root@runeaudio ~]# lsusb
Code: Select all
Bus 001 Device 006: ID 05dc:a768 Lexar Media, Inc. JumpDrive Retrax
Bus 001 Device 005: ID 04d9:1603 Holtek Semiconductor, Inc. Keyboard
Bus 001 Device 004: ID 1d57:ad02 Xenta SE340D PC Remote Control
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter



[root@runeaudio ~]# lsusb -v
Code: Select all
Bus 001 Device 004: ID 1d57:ad02 Xenta SE340D PC Remote Control
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x1d57 Xenta
  idProduct          0xad02 SE340D PC Remote Control
  bcdDevice            1.05
  iManufacturer           0
  iProduct                0
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           59
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      1 Keyboard
      iInterface              0
               HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode           33 US
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     131
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      77
         Report Descriptors:
           ** UNAVAILABLE **
 Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      77
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0005  1x 5 bytes
        bInterval              10
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)
djevlen
 
Posts: 11
Joined: 27 Nov 2015, 14:45

Re: IR remote.

Postby hondagx35 » 29 Nov 2015, 22:11

Hi,

this Multimedia IR Remote Controller with USB Receiver
is supposed to appear as a plain USB HID keyboard.
It sends keyboard events to your Pi, openelec can read these directly.

So no idea how to get this working with lirc.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: IR remote.

Postby djevlen » 29 Nov 2015, 22:18

maybe its easier if i get a IR diode and go the GPIO way ??
djevlen
 
Posts: 11
Joined: 27 Nov 2015, 14:45

Re: IR remote.

Postby den_hr » 30 Nov 2015, 10:33

djevlen wrote:maybe its easier if i get a IR diode and go the GPIO way ??


IMHO, yes... meaning it is easier to use IR dieode and GPIO than a ready-made USB IR module which appears as HID keyboard...

In my experience, those USB "HID keyboard" IR modules are a pain - they can be made to work, but mine were never really reliable (you cannot get to hardware level to control them, the OS handles them through several layers of abstraction, which can be difficult to manage).

On the other hand, simple IR diode connected to GPIO always works as intended, and can be fully controlled using existing solutions and languages (bash, Python, etc...) - and they work just fine with lirc.
The only issue is that irrecord doesn't work in Rune/Arch - as explained here:
post10048.html#p10024
You can prepare another SD card with e.g. raspbian, create a working remote config using irrecord in raspbian, and then copy that to Rune where needed - as explained elsewhere.
den_hr
 
Posts: 52
Joined: 06 Feb 2015, 17:10
Location: Croatia

Re: IR remote.

Postby djevlen » 30 Nov 2015, 14:13

when i have harmony one remote, do i then have to program it to emulate something else eg. microsoft media center remote ?
There are tons of keymaps for different remotes..but i cant find any for harmony ultimate one remote.(because its job is to emulate other remotes)

Is it possible just to use it as harmony remote with harmony keymap ??
djevlen
 
Posts: 11
Joined: 27 Nov 2015, 14:45

Re: IR remote.

Postby djevlen » 30 Nov 2015, 18:52

this is bullshit..there are 1000 guides all explaining the same thing differently..and none of it works.

The time i've spend on this shit I could have had an of the shelf network streamer and quality time with family..obviously this is not ment for normal people.

Code: Select all
[root@runeaudio ~]# systemctl status lircd.service
* lircd.service - LIRC Infrared Signal Decoder
   Loaded: loaded (/usr/lib/systemd/system/lircd.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 1970-01-01 01:01:36 CET; 45 years 10 months ago
 Main PID: 295 (lircd)
   CGroup: /system.slice/lircd.service
           `-295 /usr/sbin/lircd --nodaemon
[root@runeaudio ~]# systemctl status irexec.service
* irexec.service - Start irexec daemon
   Loaded: loaded (/usr/lib/systemd/system/irexec.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 1970-01-01 01:01:39 CET; 45 years 10 months ago
 Main PID: 334 (irexec)
   CGroup: /system.slice/irexec.service
           `-334 /usr/bin/irexec /etc/conf.d/lircrc
[root@runeaudio ~]#


IR receiver is connected to pin 25, and ground, and 3v.. Was succesfuly able to complete the irrecord procedure.


i followed http://buzzthisnow.com/ir-remote-with-lirc-on-raspberry-pi-2-running-runeaudio-archlinux/

only difference is that i use gpio 25 because hifiberry use gpio18

its not working

there is one info line:
info. cannot configure the rc device for /dev/lirc0
djevlen
 
Posts: 11
Joined: 27 Nov 2015, 14:45

Re: IR remote.

Postby XploD » 01 Dec 2015, 14:56

djevlen wrote:this is bullshit..there are 1000 guides all explaining the same thing differently..and none of it works.

The time i've spend on this shit I could have had an of the shelf network streamer and quality time with family..obviously this is not ment for normal people.


Nothing is free in real life. Yes, you can get an of the shelf network streamer but you'll have to pay a fortune for it and it's user interface will be a lot worse than RuneAudio, not to mention options and possibilities and audio quality. But as I said, nothing is free in real life. The price you have to pay is that you have to spend some time to configure everything. These guys who created RuneAudio gave you their product for free, they are doing this for free (except donations, but they're optional, you can still get the product for free). I never tried any of the shelf network streamer but I'm pretty sure that RuneAudio is far better than any of the shelf streamer's UI (except maybe the most expensive ones). And now you can buy Raspberry Pi Zero for 5$, which is good enough for that purpouse. Together with Wi-Fi Dongle, SD card, power supply and all other, you can build it for 20-30 $ and you can invest all remaining money in a good I2S DAC to get the best possible audio quality. And all together, still much cheaper than of the shelf streamer.

And second, don't blame these guys behind RuneAudio for problems with IR remote. This is NOT a part of RuneAudio, at least for now. You can do it yourself and they can give you advices and help you but it's not an official part of RuneAudio.

djevlen wrote:
Code: Select all
[root@runeaudio ~]# systemctl status lircd.service
* lircd.service - LIRC Infrared Signal Decoder
   Loaded: loaded (/usr/lib/systemd/system/lircd.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 1970-01-01 01:01:36 CET; 45 years 10 months ago
 Main PID: 295 (lircd)
   CGroup: /system.slice/lircd.service
           `-295 /usr/sbin/lircd --nodaemon
[root@runeaudio ~]# systemctl status irexec.service
* irexec.service - Start irexec daemon
   Loaded: loaded (/usr/lib/systemd/system/irexec.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 1970-01-01 01:01:39 CET; 45 years 10 months ago
 Main PID: 334 (irexec)
   CGroup: /system.slice/irexec.service
           `-334 /usr/bin/irexec /etc/conf.d/lircrc
[root@runeaudio ~]#


IR receiver is connected to pin 25, and ground, and 3v.. Was succesfuly able to complete the irrecord procedure.


i followed http://buzzthisnow.com/ir-remote-with-lirc-on-raspberry-pi-2-running-runeaudio-archlinux/

only difference is that i use gpio 25 because hifiberry use gpio18

its not working

there is one info line:
info. cannot configure the rc device for /dev/lirc0


This is my website and I wrote this tutorial. I can't guarantee that everything in this tutorial is correct and I'm sorry if there's a mistake, I wrote this tutorial a long after I created this on my system. But I use it like that and it works like a charm. Can you give me some more details about what you've done, so I can try to help you.

1) Have you done all the steps?
2) How did you create configuration for your remote?
3) Where is actually the problem?
4) Since you're using different GPIO pin, have you changed this in all places?
Music taste: xplodmusic @ Last.fm
Audio source: Raspberry Pi 2 + Sabre ES9023 DAC + WD 500 GB HDD + TP-Link TL-WN722N Wi-Fi + D-LINK Dub H7 USB hub
Hi-Fi: Phillips DCD-7010
Mixer: Nady Audio MM-242
Misc: Tube Stereo Vumeter (Magic Eye)
User avatar
XploD
 
Posts: 77
Joined: 24 Mar 2015, 18:32
Location: Croatia

Re: IR remote.

Postby den_hr » 01 Dec 2015, 15:57

djevlen wrote:when i have harmony one remote, do i then have to program it to emulate something else eg. microsoft media center remote ?
There are tons of keymaps for different remotes..but i cant find any for harmony ultimate one remote.(because its job is to emulate other remotes)

Is it possible just to use it as harmony remote with harmony keymap ??


You are approaching this incorrectly.

If you had taken the time to read the provided links and explanations carefully, you would have seen that you need to "capture" the existing remote commands using "irrecord". So, the actual remote DOES NOT have to be programmed - you are doing the "programming" on the other side - on the RasPi.
You are monitoring the signals being sent from the remote using the program "irrecord" (which is an interactive program and quite easy to use).
In the same program (irrecord) you need to assign names to keys on the remote (the key names are already set, you can chose them from the existing list of key names - see manual for "irrecord"). Then you need to decide what those keys will actually do in RuneAudio - it's all explained in the XploD's tutorial which you linked....

On the other hand, if you are a beginner with linux, I'm afraid that all this is not that easy to understand, let alone to tweak and make it work.

Like XploD already said above, this (RuneAudio and RuneOS) is provided to you (and to everyone else) for free, without the need to pay.
And, like already said, in order to make it do what you want (and what the original creators did not already incorporate and make easy to use), you will need some knowledge of Linux, and a lot of work (i.e. "hacking").

What Xplod, myself, and many others are doing with RuneAudio is "extending" the existing system and changing it to suit our needs - and sharing what we learned with the community.
You are complaining that there is no ready-made solution to suit exactly your needs: yes, there are: you can go and buy them in the local hi-fi shop: like XploD said, you will most likely be disappointed :)

So, like with most open-source solutions, you need some knowledge and effort if you want to make the system do something else besides what is already offered and "packaged" :)
And, being impatient and offensive will not get you very far....
Nobody here has a *duty* to help you, and nobody here is being paid to help others: so, keep that in mind when you are asking for help.
den_hr
 
Posts: 52
Joined: 06 Feb 2015, 17:10
Location: Croatia

support RuneAudio Donate with PayPal

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 7 guests