Terratec Cinergy DT XS Diversity remote

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi list,

I have problems with the remote control of a Terratec DT XS Diversity. 
Video works fine, though.

I had a look at the code and the problem seems to be that no toggle bit is 
wrong or the whole detection of the rc query is wrong somehow (or the data 
which is sent by the device).

I'm using the modul build from the actual code from hg and kernel-2.6.22 with 
the option dvb_usb_dib0700_ir_proto=0.
This seems to be the right mode for this remote. At least the received custom 
and data bits are correct (comparing the values to the key codes that are 
used for this receiver). 

This the log output I get when dvb-usb-dib0700 is loaded with debug=8 
(stripped of the data receive request ">>> 04 00"):

Feb  4 00:11:29 [kernel] input: IR-receiver inside an USB DVB receiver 
as /class/input/input23
Feb  4 00:11:29 [kernel] dvb-usb: schedule remote query interval to 150 msecs.
Feb  4 00:11:29 [kernel] power control: 0
Feb  4 00:11:29 [kernel] dvb-usb: Terratec Cinergy DT XS Diversity 
successfully initialized and connected.
Feb  4 00:11:29 [kernel] usbcore: registered new interface driver 
dvb_usb_dib0700
Feb  4 00:11:30 [kernel] <<< 00 00 00 00
Feb  4 00:11:30 [kernel] <<< 00 00 00 00
Feb  4 00:11:30 [kernel] <<< 00 00 00 00 
Feb  4 00:11:30 [kernel] <<< 00 00 00 00 
Feb  4 00:11:30 [kernel] <<< 00 00 00 00 
Feb  4 00:11:30 [kernel] <<< 00 00 00 00 
Feb  4 00:11:31 [kernel] <<< 00 00 00 00 
Feb  4 00:11:31 [kernel] <<< 00 00 00 00 
Feb  4 00:11:31 [kernel] <<< 00 00 00 00
...
(pressing a key once)
Feb  4 00:12:27 [kernel] <<< 14 eb 14 00 
Feb  4 00:12:27 [kernel] key pressed
Feb  4 00:12:27 [kernel] key repeated
Feb  4 00:12:27 [kernel] <<< 14 eb 14 ff 
Feb  4 00:12:27 [kernel] <<< 14 eb 14 ff 
Feb  4 00:12:28 [kernel] <<< 14 eb 14 ff 
Feb  4 00:12:28 [kernel] <<< 14 eb 14 ff 
Feb  4 00:12:28 [kernel] <<< 14 eb 14 ff
Feb  4 00:12:28 [kernel] <<< 14 eb 14 ff
(pressing the same key rapidely)
Feb  4 00:12:45 [kernel] <<< 14 eb 14 ff 
Feb  4 00:12:45 [kernel] <<< 00 00 00 00 
Feb  4 00:12:45 [kernel] <<< 00 00 00 00 
Feb  4 00:12:45 [kernel] <<< 14 eb 14 00 
Feb  4 00:12:45 [kernel] <<< 14 eb 14 00 
Feb  4 00:12:45 [kernel] <<< 14 eb 14 00 
Feb  4 00:12:45 [kernel] <<< 14 eb 14 00 
Feb  4 00:12:46 [kernel] <<< 14 eb 14 00 
Feb  4 00:12:46 [kernel] <<< 14 eb 14 ff 
Feb  4 00:12:46 [kernel] <<< 14 eb 14 ff 
Feb  4 00:12:46 [kernel] <<< 14 eb 14 ff 
(pressing another key)
Feb  4 00:12:46 [kernel] <<< 13 eb 14 ff 
Feb  4 00:12:46 [kernel] <<< 00 00 00 00 
Feb  4 00:12:47 [kernel] <<< 13 eb 14 ff
Feb  4 00:12:47 [kernel] <<< 13 eb 14 ff 
Feb  4 00:12:47 [kernel] <<< 13 eb 14 ff 
Feb  4 00:12:47 [kernel] <<< 13 eb 14 ff 
Feb  4 00:12:47 [kernel] <<< 13 eb 14 ff 
Feb  4 00:12:47 [kernel] <<< 13 eb 14 ff


Definitely the toggle bit is not "key[2]" which is always 0x14.
The result is that a keypress is recognized only once.
It seems that "key[3]" is some kind of "key was pressed" indicator. 

I changed dib0700_devices.c to:
static int dib0700_rc_query(struct dvb_usb_device *d, u32 *event, int *state)
{
	...
	if (key[3] == 0) {
		for (i=0;i<d->props.rc_key_map_size; i++) {
			if (keymap[i].custom == key[3-2] && keymap[i].data == key[3-3]) {
				*event = keymap[i].event;
				*state = REMOTE_KEY_PRESSED;
				//st->rc_toggle=key[3-1];
				return 0;
			}
		}
		err("Unknown remote controller key : %2X %2X",(int)key[3-2],(int)key[3-3]);
	}
	return 0;
}

Unfortunately this does not have the desired effect. The problem is that 
sometimes just "00 00 00 00" is received, sometimes the last bit _is_ toggled 
and staying at "00" or key[3] does not change to 0 at all even if a key is 
pressed.

Could this be a problem of the firmware? Currently I'm using 
dvb-usb-dib0700-1.10.fw
This seems to be the latest one available. Unfortunately the "generate 
firmware" function on Patricks webpages does not work (or at least I don't 
know which file to upload) and www.thadathil.net is down. Is there any way I 
can extract the firmware myself?
Is anybody using this receiver along with the remote successfully?
Any idea?
-- 
 Christoph


p.s.: erverything works fine under XP, so the hardware should be ok
unfortunaltely, XP is not on the same box as linux to try the firmware loaded 
with XP under linux :(


_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux