Difference between revisions of "Twinhan USB HID Remote"
|Line 96:||Line 96:|
Revision as of 17:44, 15 August 2006
This is a cheap terrestrial (free to air) DVB card. It is very similar to the Twinhan VisionPlus DVB card.
This card is sold in Australia and works with the "Free To Air" Digital TV services.
The channel frequencies for all regions in Australia are listed on the Digital Broadcast Australia website.
Sources for the card:
This card is supported in the stock Linux kernel 2.6.8+ by the bttv driver. the 'dmesg' command shows the following:
bttv0: Bt878 (rev 17) at 0000:01:04.0, irq: 209, latency: 32, mmio: 0xe6afe000 bttv0: detected: Twinhan VisionPlus DVB [card=113], PCI subsystem ID is 1822:0001 bttv0: using: Twinhan DST + clones [card=113,insmod option] bttv0: gpio: en=00000000, out=00000000 in=00f762ff [init] bttv0: using tuner=4 bttv0: add subdevice "dvb0"
The bundled remote control has a USB reciever that acts as a HID keyboard device and send keycodes. This has been a problem for some people because there was no easy way to change the keycodes that it sends. Apparently is it possible to use LIRC to intercept the incoming keycodes and handle them as any other lirc device. Here is an extract from the MythTV Users mailing list:
To get this (or any) USB IR HID device to work with mythtv: 1) Compiled lirc with devinput as the driver (under Other) 2) Faffed about trying cat /dev/input/eventX until I found one that was the remote (or just "cat /proc/bus/input/devices" to determine it) 3) Used irremote --device /dev/input/eventX to configure lircd.conf for the keypresses on the remote. It's quite (almost) able to figure it out itself. This also required some hand editing as some of the buttons were multiple key presses (eg, Ctrl+Alt+F6 for power) and not all the keys were unique in the file. I just dumped some output from irremote to a file and picked out unique ones for each key.
Link to the full email: [Re: TwinHan IR remote and receiver problem - SOLVED]
Thought I'd just add a bit here, I wrote that thread about the remote but it's not very helpfull.
The problem with the TwinHan remote is that certain keys on the remote (Power, Volume) send more that one key to the keyboard buffer. This confuses the lirc.conf configurator "irremote".
Example: Power sends Ctrl+Alt+F6.
irremote seems to have a fair chance of mapping ctrl, alt OR F6 to Power in the conf file. Now, if another key on the remote (say, Pause) sends something like Alt+F4 (Pause doesn't send that btw) you run the chance of Power and Pause being mapped to the Alt key. Which means that Power does Power and Pause and vice versa.
The only solution to this that I found was saving the output from irremote to a file after pressing the offending keys. Then, pick a unique keykode from each buttons presses (in our example, F4 and F6) and put those after your entries in lirc.conf.
Here is my lirc.conf:
name TwinHanRemote bits 32 eps 30 aeps 100 one 0 0 zero 0 0 gap 115899 toggle_bit 0 begin codes fullscreen 0x8001002C Power 0x8001001D 1 0x80010002 2 0x80010003 3 0x80010004 4 0x80010005 5 0x80010006 6 0x80010007 7 0x80010008 8 0x80010009 9 0x8001000A 0 0x8001000B rec 0x80010066 favorite 0x8001002F rewind 0x80010017 forward 0x80010031 ch+ 0x80010068 ch- 0x8001006D vol- 0x8001006C vol+ 0x80010067 recall 0x8001002E play 0x8001001C stop 0x8001006B pause 0x80010014 mute 0x80010032 cancel 0x80010001 capture 0x80010019 preview 0x80010025 epg 0x80010012 recordlist 0x80010026 tab 0x8001000F teletext 0x8001001E end codes