rcsim do the same Fortunately I do not write it, just modify few lines. Source of rcsim in attachment. Good thing is in that way it's very easy to emulate keyboard or advance remote control by modify /dev/input/eventX in rcsim or your irw
Beiträge von chrz
-
-
Finally I manage to compile that, thanx Homey for hint. I have an idea to use irexec to control dm, I don't wont to use webif api because of speed of that solution. I find very handy tool rcsim for dbox, little modify, recompile for mipsel and it's working very well. This tool can simulate remote control from shell.
Code
Alles anzeigenroot@dm8000:~# rcsim rcsim v1.2 DM8000 Usage: rcsim <keyname> [<time>] [<repeat>] <keyname> is one of the list below and corresponds to the key list from /usr/lib/enigma2/python/Tools/KeyBindings.py <time> is how long a code is repeatedly sent, unit is seconds, default is 0 = sent only once <repeat> what time is waited until a new code is sent (if <time> is greater than 0), unit is milliseconds, default is 500 Example: rcsim KEY_1 ; KEY_1 sent once rcsim KEY_OK 2 250 ; KEY_OK sent every 250ms for 2 seconds Keys: KEY_POWER KEY_0 KEY_1 KEY_2 KEY_3 KEY_4 KEY_5 KEY_6 KEY_7 KEY_8 KEY_9 KEY_NEXT KEY_PREVIOUS KEY_VOLUMEUP KEY_VOLUMEDOWN KEY_MUTE KEY_EXIT KEY_CHANNELUP KEY_CHANNELDOWN KEY_INFO KEY_AUDIO KEY_MENU KEY_VIDEO KEY_LEFT KEY_RIGHT KEY_OK KEY_UP KEY_DOWN KEY_RED KEY_GREEN KEY_YELLOW KEY_BLUE KEY_TV KEY_RADIO KEY_TEXT KEY_HELP KEY_PLAYPAUSE KEY_NEXTSONG KEY_PREVIOUSSONG KEY_RECORD KEY_STOP root@dm8000:~# rcsim KEY_CHANNELDOWN sending key KEY_CHANNELDOWN for 0 seconds
Exaple configuration, I just test it with Harmony One configured like MCE remote:
lircd.conf
Code
Alles anzeigenbegin remote name mceusb bits 16 flags RC6|CONST_LENGTH eps 30 aeps 100 header 2667 889 one 444 444 zero 444 444 pre_data_bits 21 pre_data 0x37FF0 gap 110000 toggle_bit 22 rc6_mask 0x100000000 begin codes Power 0x00007bf3 # no e2,e3 MyTV 0x00007bb9 # starts at af MyMusic 0x00007bb8 # starts at af MyPictures 0x00007bb6 # starts at af MyVideos 0x00007bb5 # starts at af Record 0x00007be8 # no e2,e3 Stop 0x00007be6 # no e2,e3 Pause 0x00007be7 # no e2,e3 Play 0x00007be9 # no e2,e3 Rewind 0x00007bea # no e2,e3 Forward 0x00007beb # no e2,e3 Replay 0x00007be4 # no e2,e3 Skip 0x00007be5 # no e2,e3 More 0x00007bf0 # no e2,e3 Back 0x00007bdc # no ba - d8 Left 0x00007bdf # no ba - d8 Right 0x00007bde # no ba - d8 Up 0x00007be1 # no ba - d8 Down 0x00007be0 # no ba - d8 OK 0x00007bdd # no ba - d8 VolUp 0x00007bef # no e2,e3 VolDown 0x00007bee # no e2,e3 ChanUp 0x00007bed # no e2,e3 ChanDown 0x00007bec # no e2,e3 Home 0x00007bf2 # no e2,e3 Mute 0x00007bf1 # no e2,e3 RecordedTV 0x00007bb7 # starts at af Guide 0x00007bd9 # no ba - d8 LiveTV 0x00007bda # no ba - d8 DVDMenu 0x00007bdb # no ba - d8 One 0x00007bfe # no e2,e3 Two 0x00007bfd # no e2,e3 Three 0x00007bfc # no e2,e3 Four 0x00007bfb # no e2,e3 Five 0x00007bfa # no e2,e3 Six 0x00007bf9 # no e2,e3 Seven 0x00007bf8 # no e2,e3 Eight 0x00007bf7 # no e2,e3 Nine 0x00007bf6 # no e2,e3 Zero 0x00007bff # no e2,e3 Star 0x00007be2 # no e2,e3 Hash 0x00007be3 # no e2,e3 Clear 0x00007bf5 # no e2,e3 Enter 0x00007bf4 # no e2,e3 Red 0x00007ba4 # no e2,e3 Green 0x00007ba3 # no e2,e3 Yellow 0x00007ba2 # no e2,e3 Blue 0x00007ba1 # no e2,e3 Teletext 0x00007ba5 # no e2,e3 end codes end remote
So, if I want to map DM OK, UP, DOWN button to MCE ( in fact Logitech One ) I need to create /etc/lircrc file:
Code
Alles anzeigenbegin remote = mceusb button = Ok prog = irexec repeat = 0 config = rcsim KEY_OK end begin remote = mceusb button = Up prog = irexec repeat = 0 config = rcsim KEY_UP end begin remote = mceusb button = Down prog = irexec repeat = 0 config = rcsim KEY_DOWN end
and start irexec:
The best solution would be finding the most similar remote control to original DM as possible, the button layout is important in fact as well. Programing Logitech One with selected and prepare lircrc file. I'm really surprise that above solution is working very smoothly. Finally I don't need to direct remote control to the box. Range with mceusb receiver is much better.
In that way it is possible to use almost any remote control to control DM
In attachment most important file for lirc version 0.8.4a on DM8000 and rcsim. -
Hello
I'm trying to build lirc module for dm8000, but I'm stuck. I'm able to compile lircd for mipsel but modules are always for i386. Maybe it is something wrong with kernel sources, it is simply unpacked kernel from ../openembedded/sources/linux-2.6.12.tar.bz2. Any idea, what I'm doing wrong ?
Configure and make process: http://pastebin.com/f73711a65
Code[OE::mipsel-linux-opendreambox-dm8000]:~/lirc-0.8.0pre1$ file drivers/lirc_mceusb2/lirc_mceusb2.ko drivers/lirc_mceusb2/lirc_mceusb2.ko: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV) [OE::mipsel-linux-opendreambox-dm8000]:~/lirc-0.8.0pre1$ file daemons/lircd daemons/lircd: ELF 32-bit LSB executable, MIPS, MIPS-I version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), not stripped
Regards,
chrz -
I've got the same error with DM800 image build