News:

Latest versions:
Server plugin: 0.5.1
MVP dongle: 0.5.2
Raspberry Pi client: 0.5.2
Windows client: 0.5.2-1

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - woz

#1
Hmm weird,

i did a reinstallalion of libcec-dev. I'll crosscheck that.

Thx
Wolfgang
#2
Hi there,

when trying to build with the actual GIT version this compiler error occurs:
remotelinux.cc: In member function 'int RemoteLinux::initCec()':
remotelinux.cc:134:34: error: invalid conversion from 'int (*)(void*, const cec_log_message&) {aka int (*)(void*, const CEC::cec_log_message&)}' to 'CEC::CBCecLogMessageType {aka int (*)(void*, CEC::cec_log_message)}' [-fpermissive]
remotelinux.cc:135:32: error: invalid conversion from 'int (*)(void*, const cec_keypress&) {aka int (*)(void*, const CEC::cec_keypress&)}' to 'CEC::CBCecKeyPressType {aka int (*)(void*, CEC::cec_keypress)}' [-fpermissive]
remotelinux.cc:136:31: error: invalid conversion from 'int (*)(void*, const cec_command&) {aka int (*)(void*, const CEC::cec_command&)}' to 'CEC::CBCecCommandType {aka int (*)(void*, CEC::cec_command)}' [-fpermissive]
remotelinux.cc:137:44: error: invalid conversion from 'int (*)(void*, const libcec_configuration&) {aka int (*)(void*, const CEC::libcec_configuration&)}' to 'CEC::CBCecConfigurationChangedType {aka int (*)(void*, CEC::libcec_configuration)}' [-fpermissive]
remotelinux.cc: In member function 'virtual UCHAR RemoteLinux::getButtonPress(int)':
remotelinux.cc:251:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
remotelinux.cc:279:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make[2]: *** [remotelinux.o] Fehler 1

A previous build (with git version 2013-08-21) has been successful
Any suggestions?

Cheers
Wolfgang
#3
Ok guys,

attached my solution for the HAMA MCE REMOTE.

First installing inputlirc
sudo apt-get install inputlirc

Configure inputlirc
Edit /etc/default/inputlirc
# Options to be passed to inputlirc.
# EVENTS="/dev/input/event0 /dev/input/event1"
EVENTS="/dev/input/by-id/usb-05a4_9881-event-kbd /dev/input/by-id/usb-05a4_9881-event-mouse"
OPTIONS="-g -c -m0"


This maps all IR-remote events to LIRC

Now all LIRC events have to be mapped to remote socket:

Second installing lirc
sudo apt-get install lirc

Edit /etc/lirc/hardware.conf
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS=""

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false

#Don't start irexec, even if a good config file seems to exist.
START_IREXEC=true

#Try to load appropriate kernel modules
#LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="UNCONFIGURED"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE="none"
MODULES="none"

# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""



Edit /etc/lirc/lircd.conf
#
#
# To find out how to get a proper configuration file please read:
#
#       /usr/share/doc/lirc/README.Debian

START_IREXEC=true


Next edit /etc/lir/lircrc

begin
        prog = irexec
        button = KEY_UP
        config = echo "20" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_DOWN
        config = echo "21" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_LEFT
        config = echo "22" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_RIGHT
        config = echo "23" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = CTRL_SHIFT_KEY_T
        config = echo "56" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_BACKSPACE
        config = echo "31" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = CTRL_KEY_M
        config = echo "41" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = CTRL_KEY_I
        config = echo "46" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = CTRL_KEY_E
        config = echo "11" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_ENTER
        config = echo "37" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_VOLUMEUP
        config = echo "16" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_VOLUMEDOWN
        config = echo "17" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_KP0
        config = echo "0" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_KP1
        config = echo "1" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_KP2
        config = echo "2" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_KP3
        config = echo "3" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_KP4
        config = echo "4" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_KP5
        config = echo "5" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_KP6
        config = echo "6" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_KP7
        config = echo "7" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_KP8
        config = echo "8" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_KP9
        config = echo "9" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = CTRL_SHIFT_KEY_B
        config = echo "50" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = CTRL_SHIFT_KEY_F
        config = echo "52" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_PREVIOUSSONG
        config = echo "36" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_NEXTSONG
        config = echo "30" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_PLAYPAUSE
        config = echo "48" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_HOMEPAGE
        config = echo "59" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_PAGEUP
        config = echo "32" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_PAGEDOWN
        config = echo "33" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = BTN_RIGHT
        config = echo "13" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_MUTE
        config = echo "15" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_KPASTERISK
        config = echo "10" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_NUMLOCK
        config = echo "14" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = ALT_META_KEY_ENTER
        config = echo "18" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = KEY_SLEEP
        config = echo "61" |nc -w0 -u 127.0.0.1 2000
end
begin
        prog = irexec
        button = CTRL_KEY_R
        config = echo "55" |nc -w0 -u 127.0.0.1 2000
end


I use netcat to transfer the keys according the remote.h to the local vompclient - socket.

... remarks welcome  :)

Wolfgang

#4
Hi there,

I'm facing the same problems with the HAMA - remote. There are several reasons:


  • The HAMA remote creates 2 devices: /dev/input/by-id/usb-05a4_9881-event-kbd  and  /dev/input/by-id/usb-05a4_9881-event-mouse
  • When pressing the colour - keys a key sequence is generated e.g. Ctrl-, Shift-,  t-Event and unfortunately no CTRL_SHIFT_KEY_T Event

What I've done so far:
I created a lirc device using inputlirc according to this howto http://wiki.xbmc.org/index.php?title=HOW-TO:Configure_VRC-1100_remote_for_Ubuntu
When starting irw, I get different events for the different keys.

The good question now:
How can I use (input)lirc - events for the VOMPCLIENT?
One solution might be unsing IREXEC and netcat connecting via socket similar to http://forum.loggytronic.com/index.php?topic=658.0.

Might there be any other possibility, because this approach seems to be really intricately?

@Marten
When having a look at your sources, might there be a possibility to use native LIRC?

Regards
Wolfgang