more G-Labs products

Author Topic: HomeGenie doesn't receive events from IR remote in bananapi  (Read 2167 times)

January 02, 2015, 11:39:49 AM
Read 2167 times

Marco

  • **
  • Information
  • Jr. Member
  • Posts: 36
Hi all,
happy new year!!!
I installed the last lubuntu OS in my bananapi (http://www.lemaker.org/resources/9-76/lubuntu_for_bananapi.html), then Mono-runtime(lubuntu have repository for mono  :) ) and homegenie from this version "http://sourceforge.net/projects/homegenie/files/homegenie-beta_1.00.r441_all.deb"  and updated to the last r452.

configured LIRC for bananapi:
add in "hardware.conf" this parameters:

REMOTE_DRIVER="devinput"
 REMOTE_DEVICE="/dev/input/event0"
 START_LIRCD="true"

copied inside  lircd.conf generic configuration of remote control from
http://lirc.sourceforge.net/remotes/devinput/lircd.conf.devinput
riavviato lirc
# /etc/init.d/lirc restart
I'm able to read the data from my remote control:
# irw /dev/lircd
0000000080010009 00 KEY_8 devinput
0000000080010009 00 KEY_8 devinput

The problem is when I want use the remote control in HG: http://www.homegenie.it/docs/remotes.php
HG not read the data from remote control, doesn't appear poup....

Someone can help me?some idea?

Thank you

Marco

January 07, 2015, 11:21:24 PM
Reply #1

Marco

  • **
  • Information
  • Jr. Member
  • Posts: 36
Hi,
I tried different ways but nothing to do..
I find only this difference of permission files, but after change it, don't read again..

Bananapi with sd image "HomeGenie 1.00 beta rev. 411" update to the last version r4.53
/dev/input$ ls -lg
total 0
lrwxrwxrwx 1 root       6 Jan  1  2010 bp2ir -> event0
drwxr-xr-x 2 root     120 Jan  1  2010 by-id
drwxr-xr-x 2 root     100 Jan  1  2010 by-path
crw-rw---T 1 input 13, 64 Jan  1  2010 event0
crw-rw---T 1 input 13, 65 Jan  1  2010 event1
crw-rw---T 1 input 13, 66 Jan  1  2010 event2
crw-rw---T 1 input 13, 63 Jan  1  2010 mice
crw-rw---T 1 input 13, 32 Jan  1  2010 mouse0
root@lemaker:/dev/input#

lubuntu OS and manual installation update homegenie to the last version r4.53
/dev/input$ ls -lg first to change permission:
total 0
drwxr-xr-x 2 root     80 Jan  1  2010 by-id
drwxr-xr-x 2 root    100 Jan  1  2010 by-path
crw-r----- 1 root 13, 64 Jan  1  2010 event0
crw-r----- 1 root 13, 65 Jan  1  2010 event1
crw-r----- 1 root 13, 66 Jan  1  2010 event2
crw-r----- 1 root 13, 63 Jan  1  2010 mice
crw-r----- 1 root 13, 32 Jan  1  2010 mouse0

Where and how homegenie read the data from lirc and IR files?

@Gene, I think posted in wrong session.."Troubleshooting and Support" is better, but I can't change it.

thank  ;)

Marco

January 08, 2015, 01:22:35 AM
Reply #2

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Hi Marco,

Banana PI IR hardware only works with "devinput" remote definition.
So when adding a remote in HG search for "devinput". Not all remotes will work, but common ones should.
I'm using a Samsung TV remote with BPi which works ok.

Cheers,
g.
« Last Edit: January 08, 2015, 01:28:23 AM by Gene »

January 08, 2015, 08:58:50 PM
Reply #3

Marco

  • **
  • Information
  • Jr. Member
  • Posts: 36
Hi Genie,
I tested this:
cancel all information inside lircd.conf
/etc/lirc# > lircd.conf

Enable in homegenie lirc configuration and select "devinput" see image

read inside lircd.conf and the configuration is ok (the file was empty and now is full of information)

/etc/lirc# nano lircd.conf
# generated by devinput.sh
begin remote
  name  devinput
  bits           16
  eps            30
  aeps          100
  one             0     0   etc.....

restarted the system and I tried to use the remote control...don't works again, HomeGenie will not be able to receive events from my IR remote..
I think is a problem of permission file.. some advice?

Thank

Marco


January 08, 2015, 09:34:36 PM
Reply #4

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Hi Marco,

do you have a file named .lircrc in the /root/ folder?
If you don't have it create the /root/.lircrc file with the following content:
Code: [Select]
begin
        prog = homegenie
        button = KEY_1
        repeat = 3
        config = KEY_1
end
then restart HG.

g.

January 08, 2015, 11:17:04 PM
Reply #5

Marco

  • **
  • Information
  • Jr. Member
  • Posts: 36
Hi Gene,
after your advice now HomeGenie is able to receive events from my IR remote.  ;D

Do you think is not generated this file when install homegene?

Thank

Marco

January 08, 2015, 11:52:59 PM
Reply #6

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
actually you found a bug! =) next update will fix it, thanks for reporting.

g.