ToDo

USAGE

sudo dpkg-reconfigure lirc && sudo invoke-rc.d lirc restart ; irw
[ ok ] Stopping remote control daemon(s): LIRC:.
[ ok ] Stopping remote control daemon(s): LIRC:.
[ ok ] Loading LIRC modules:.
[ ok ] Starting remote control daemon(s) : LIRC :.
00000000000000c4 00 KEY_POWER chunghop-rm-l968e-VCR-1080-xbox1

rc emiter

rc reciever

SOFTWARE

lsusb ; # Bus 002 Device 003: ID 045e:0284 Microsoft Corp. Xbox DVD Playback Kit
dpkg -L lirc | grep '/usr/share/lirc/remotes/microsoft/'
wget -O- http://lirc.sourceforge.net/remotes/microsoft/Xbox | sudo tee /etc/lirc/lircd.conf
sudo modprobe -vr xpad
sudo modprobe -v lirc_atiusb # CONFIG_RC_ATI_REMOTE
sudo dpkg-reconfigure lirc && sudo invoke-rc.d lirc restart
# [ ok ] Loading LIRC modules:.
# [....] Starting remote control daemon(s) : LIRC :Driver `UNCONFIGURED' not supported.
# (...)
sudo lircd --driver=help
irw  
# sudo m-a a-i --text lirc-modules
# sudo /usr/sbin/lircd  -n -u --driver=atilibusb  
sudo xxd -c 1 /dev/lirc0 
0000000: c4  .. # OfF button VCR Mode 1080
0000004: c3  .. # DisplaY = Ok
sudo ln -fs lirc0 /dev/lirc && sudo  mode2  --raw
code: 0xd0
sudo irrecord -d /dev/lirc0 tmp # will translate to keycodes

# not working : exit  
grep Name /proc/bus/input/devices

ToDo: chunghop xbox rm-l968e

* http://www.raspberrypi.org/phpBB3/search.php?keywords=045e%3A0284

RX : XBOX

Once Pluged :

lsudb ; dmesg
Bus 002 Device 003: ID 045e:0284 Microsoft Corp. Xbox DVD Playback Kit

usb 2-1: new full speed USB device number 3 using orion-ehci
input: Generic X-Box pad as /devices/platform/orion-ehci.1/usb2/2-1/2-1:1.0/input/input3
evbug: Connected device: input3 (Generic X-Box pad at usb-orion-ehci.1-1/input0)
usbcore: registered new interface driver xpad

So we need to black list ModulE :

sudo grep xpad  /etc/modprobe.d/blacklist.conf
blacklist xpad
modprobe -vr xpad
rmmod xpad
rmmod ff_memless
sudo apt-get build-dep lirc
sudo apt-get install git dialog automake autoconf libtool make
# apt-src install lirc
git clone git://lirc.git.sourceforge.net/gitroot/lirc/lirc
cd lirc/
wget http://old.nabble.com/attachment/31787507/0/lirc_0.9.1_lirc_xbox_driver.patch
patch -p1 <./lirc_0.9.1_lirc_xbox_driver.patch
mkdir linux
touch linux/smp_lock.h
./autogen.sh && ./configure -with-driver=userspace
make -C drivers/lirc_xbox/
sudo make -C drivers/lirc_xbox/ install
sudo apt-get purge lirc
sudo apt-get install lirc
[13636.849728] usb 2-1.2: USB disconnect, device number 9
[13638.838755] usb 2-1.2: new full-speed USB device number 10 using ehci_hcd
[13639.043274] 
[13639.043275] lirc_xbox: XBOX DVD Dongle USB remote driver for LIRC $Revision: 0.01 $
[13639.043278] lirc_xbox: Jason Martin <austinspartan@users.sourceforge.net>
[13639.043348] lirc_xbox 2-1.2:1.0: lirc_dev: driver lirc_xbox  registered at minor = 0
[13639.043351] lirc_xbox[10]:  on usb2:10
[13639.043367] usbcore: registered new interface driver lirc_xbox
modinfo lirc_xbox
filename:       /lib/modules/3.3.6lenovog470+/misc/lirc_xbox.ko
license:        GPL
author:         Jason Martin <austinspartan@users.sourceforge.net>
description:    XBOX DVD Dongle USB remote driver for LIRC
srcversion:     AC1B3EF03F88EA8DF2E6C97
alias:          usb:vFFFFpFFFFd*dc*dsc*dp*ic*isc*ip*
alias:          usb:v045Ep0284d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v040Bp6521d*dc*dsc*dp*ic*isc*ip*
depends:        lirc_dev
vermagic:       3.3.6lenovog470+ SMP mod_unload modversions 
parm:           debug:Debug enabled or not (default: 0) (bool)
parm:           mask:Set channel acceptance bit mask (default: 0xFFFF) (int)
parm:           unique:Enable channel-specific codes (default: 0) (bool)
parm:           repeat:Repeat timeout (1/100 sec) (default: 10) (int)
modprobe -v  lirc_xbox debug=1

[14917.219851] lirc_dev: IR Remote Control driver registered, major 250
[14917.221017]
[14917.221021] lirc_xbox: XBOX DVD Dongle USB remote driver for LIRC $Revision: 0.01 $
[14917.221031] lirc_xbox: Jason Martin <austinspartan@users.sourceforge.net>
[14917.221038] lirc_xbox: debug mode enabled: $Id: lirc_xbox.c,v 1.88 2011/06/05 11:11:11 jmartin Exp $
[14917.221085] lirc_xbox[7]: usb_remote_probe: dev:ffff88023111e800, intf:ffff8801ebcffc00, id:ffffffffa0204478)
[14917.221094] lirc_xbox[7]: scanning remote_list...
[14917.221099] lirc_xbox[7]: remote type = XBOX DVD Dongle
[14917.221106] lirc_xbox[7]: adding remote to list
[14917.221114] lirc_xbox[7]: processing endpoint 0
[14917.221123] lirc_xbox[7]: acceptable inbound endpoint (0x81) found (maxp=8 len=6)
[14917.221133] lirc_xbox[7]: adding ep=0x81 to list
[14917.221678] lirc_xbox 2-1.2:1.0: lirc_dev: driver lirc_xbox  registered at minor = 0
[14917.221689] lirc_xbox[7]:  on usb2:7
[14917.221708] lirc_xbox[7]: usb_remote_probe: dev:ffff88023111e800, intf:ffff8801ebcf9400, id:ffffffffa0204478)
[14917.221713] lirc_xbox[7]: scanning remote_list...
[14917.221717] lirc_xbox[7]: prior instance found.
[14917.221758] usbcore: registered new interface driver lirc_xbox
[14965.532394] lirc_xbox[7]: set use inc
[14965.532403] lirc_xbox[7]: linking iep 0x81 (ffff880215c872a0)
[14965.539504] lirc_xbox[7]: data received 00 06 d0 01 ff ff  (ep=0x81 length=6)
[14973.311448] lirc_xbox[7]: data received 00 06 d0 01 6f bb  (ep=0x81 length=6)

 lsmod | grep -e Used -e lirc
Module                  Size  Used by
lirc_xbox              11769  0 
lirc_dev               11478  1 lirc_xbox

Silent irw ?

@TaG: XBoX

TX : XBOX

1+3+4+2+5+2+10 = 27 keys

        DISPLAY

REVERSE  PLAY  FORWARD

SKIP- STOP PAUSE SKIP+

TITLE             INFO

          UP
LEFT    SELECT   RIGHT
         DOWN

MENU              BACK

        1 2 3 
        4 5 6
        7 8 9
          0

farm4.staticflickr.com_3173_2897880635_e6b95d4754_o.jpg

LIRC

sudo apt-get install module-assistant # lirc-modules-source
sudo m-a a-i --text lirc

/usr/src/modules/lirc-modules/lirc_dev.c:35:28: fatal error: linux/autoconf.h: No such file or directory


KDIR=/usr/local/src/project/linux/src/linux
KHEADERDIR=/usr/src/linux-headers-3.3.6lenovog470+/

sudo ln -fs $KHEADERDIR/include/linux/generated/autoconf.h $KDIR/include/linux/

# ln -fs  /usr/src/linux-headers-3.3.6lenovog470+/include/generated/autoconf.h  /mnt/sda5/local/volatile.dir/usr/local/src/project/linux/src/linux/include/linux/autoconf.h

touch $KDIR/include/linux/smp_lock.h

/usr/src/modules/lirc-modules/lirc_dev.c:329:8: error: ‘plugin_lock’ undeclared (first use in this function)

find  /lib/modules/3.3.0-trunk-amd64/ -iname "lirc*" 
/lib/modules/3.3.0-trunk-amd64/kernel/drivers/media/rc/lirc_dev.ko
/lib/modules/3.3.0-trunk-amd64/kernel/drivers/staging/media/lirc
/lib/modules/3.3.0-trunk-amd64/kernel/drivers/staging/media/lirc/lirc_bt829.ko
/lib/modules/3.3.0-trunk-amd64/kernel/drivers/staging/media/lirc/lirc_sasem.ko
/lib/modules/3.3.0-trunk-amd64/kernel/drivers/staging/media/lirc/lirc_imon.ko
/lib/modules/3.3.0-trunk-amd64/kernel/drivers/staging/media/lirc/lirc_zilog.ko
/lib/modules/3.3.0-trunk-amd64/kernel/drivers/staging/media/lirc/lirc_serial.ko
/lib/modules/3.3.0-trunk-amd64/kernel/drivers/staging/media/lirc/lirc_sir.ko
/lib/modules/3.3.0-trunk-amd64/kernel/drivers/staging/media/lirc/lirc_ttusbir.ko
/lib/modules/3.3.0-trunk-amd64/kernel/drivers/staging/media/lirc/lirc_igorplugusb.ko


sudo /usr/local/sbin/lircd -n -L /dev/stderr -d /dev/lirc0 -H atilibusb 
May 13 23:11:13 lap lircd: lircd(atilibusb) ready, using /var/run/lirc/lircd
lircd: lircd(atilibusb) ready, using /var/run/lirc/lircd
May 13 23:11:17 lap lircd: accepted new client on /var/run/lirc/lircd
lircd: accepted new client on /var/run/lirc/lircd
May 13 23:11:17 lap lircd: couldn't find a compatible USB device
lircd: couldn't find a compatible USB device
May 13 23:11:17 lap lircd: WARNING: Failed to initialize hardware
lircd: WARNING: Failed to initialize hardware

# cat  ~/.lircrc
begin
        prog = irexec
        button = 1
#       config = xterm &\n
end

ALT

RC IR PROG LEARN

chunghop rm-l968e

ed2k://|file|RM-L968E.pdf|10898016|bb2b519ccbf898268294b05da02257ad|

chunghop rm-l968e / VCR / 1080

irrecord /etc/lirc/lircd.conf

cat /etc/lirc/lircd.conf

begin remote

  name  /etc/lirc/lircd.conf
  bits            8
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  gap          63981
  toggle_bit_mask 0x0

      begin codes
          KEY_POWER                0xC4
      end codes
end remote

SonY :

  • 1029 . 1030 , 1071 , 1073 , 1074 , 1075 . 1098 , 1102 , 1113 , 1114 , 1115 , 1116 , 1117 , 1118 , 1119 , 1120 , 1121 , 1122, 1123 , 1182 , 1183 , 1184 , 1247
  • 4010 , 4011 , 4012, 4023 , 4055 , 4056 , 4071 , 4155 , 4156 , 4157, 4160 , 4161 , 4178
  • 0028 , 0119 , 0126 , 0127 , 0128 , 0129 , 0130 , 0182 , 0199 , 0228 , 0269 , 0316 , 0317 , 0344 , 0345 , 0346 , 0347 , 0348 , 0376 , 0446 , 0460 , 0461 , 0462 , 0493 , 0502 , 0514 , 0607 , 0631 , 0632 , 0633 , 0634 , 0659 , 0695 , 0703 , 0748 , 0760 , 0802, 0891 , 0892 , 0893 , 0894

www.chunghop.com_pics_pic4_2008424115151.jpg

HARDWARE

MISC

MORE

ir.txt · Last modified: 2018/12/04 15:56 by rzr
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki