Re: Problems with Hauppauge DEC3000-s

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

 



(sorry, this mail should be send to the list, not to Peter privat, so here again to the list)

Hi!

The syslog-etnry while scanning is the following:
[snip]
hrm, turned out to be a rather dumb bug. When dvbscan prepares the
tuning it does:
SET_TONE(off), SET_VOLTAGE, SEND_DISEQC_MSG, SEND_BURST, SET_TONE.
Because the driver doesn't implemenent the send_burst method, dvbscan
errors out _before_ setting the tone, which results tuning to the wrong
frequency ...
Try the attached patch, which implements a dummy send_burst function.

I applied the patch and here is the result.
when plugging in the DEC3000-s:

Apr  7 23:53:44 NCC-1701A kernel: [4344166.246000] usbcore: registered
new driver ttusb-dec
Apr  7 23:54:17 NCC-1701A kernel: [4344198.543000] ohci_hcd
0000:00:02.1: wakeup
Apr  7 23:54:17 NCC-1701A kernel: [4344198.888000] usb 2-3: new full
speed USB device using ohci_hcd and address 5
Apr  7 23:54:20 NCC-1701A kernel: [4344201.961000] usb 2-3: device
descriptor read/64, error -110
Apr  7 23:54:21 NCC-1701A kernel: [4344202.798000] ttusb_dec_probe
Apr  7 23:54:21 NCC-1701A kernel: [4344202.798000] ttusb_dec_init_usb
Apr  7 23:54:21 NCC-1701A kernel: [4344202.798000] ttusb_dec_alloc_iso_urbs
Apr  7 23:54:21 NCC-1701A kernel: [4344202.798000] ttusb_dec_setup_urbs
Apr  7 23:54:21 NCC-1701A kernel: [4344202.798000] ttusb_dec_init_stb
Apr  7 23:54:21 NCC-1701A kernel: [4344202.798000] ttusb_dec_get_stb_state
Apr  7 23:54:21 NCC-1701A kernel: [4344202.798000] ttusb_dec_send_command
Apr  7 23:54:21 NCC-1701A kernel: [4344202.798000]
ttusb_dec_send_command: command: 0xAA 0x01 0x08 0x00
Apr  7 23:54:21 NCC-1701A kernel: [4344202.805000]
ttusb_dec_send_command: result: 0x55 0x01 0x08 0x0C 0x00 0x00 0x00 0x00 0x
00 0x07 0x00 0x0C 0x02 0x28 0x00 0x00
Apr  7 23:54:21 NCC-1701A kernel: [4344202.805000] ttusb_dec: Firmware
2.28ttusb_dec_boot_dsp
Apr  7 23:54:21 NCC-1701A kernel: [4344202.942000] ttusb_dec: found DSP
code "DEC2540-t".
Apr  7 23:54:21 NCC-1701A kernel: [4344202.946000] ttusb_dec_send_command
Apr  7 23:54:21 NCC-1701A kernel: [4344202.946000]
ttusb_dec_send_command: command: 0xAA 0x02 0x41 0x0A 0x00 0x07 0x19 0x00 0
x00 0x00 0x04 0x4F 0x61 0x00
Apr  7 23:54:21 NCC-1701A kernel: [4344202.965000]
ttusb_dec_send_command: result: 0x55 0x02 0x41 0x01 0xFF
Apr  7 23:54:23 NCC-1701A kernel: [4344205.158000] ttusb_dec_send_command
Apr  7 23:54:23 NCC-1701A kernel: [4344205.158000]
ttusb_dec_send_command: command: 0xAA 0x03 0x43 0x01 0x61
Apr  7 23:54:23 NCC-1701A kernel: [4344205.162000]
ttusb_dec_send_command: result: 0x55 0x03 0x43 0x01 0xFF
Apr  7 23:54:23 NCC-1701A kernel: [4344205.162000] ttusb_dec_exit_usb
Apr  7 23:54:23 NCC-1701A kernel: [4344205.162000] ttusb_dec_free_iso_urbs
Apr  7 23:54:25 NCC-1701A kernel: [4344207.166000] usb 2-3: USB
disconnect, address 5
Apr  7 23:54:25 NCC-1701A kernel: [4344207.168000] ttusb_dec_disconnect
Apr  7 23:54:26 NCC-1701A usb.agent[21802]:      ttusb_dec: already loaded
Apr  7 23:54:32 NCC-1701A kernel: [4344213.793000] ohci_hcd
0000:00:02.1: wakeup
Apr  7 23:54:32 NCC-1701A kernel: [4344214.138000] usb 2-3: new full
speed USB device using ohci_hcd and address 6
Apr  7 23:54:32 NCC-1701A kernel: [4344214.253000] ttusb_dec_probe
Apr  7 23:54:32 NCC-1701A kernel: [4344214.253000] ttusb_dec_init_usb
Apr  7 23:54:32 NCC-1701A kernel: [4344214.253000] ttusb_dec_alloc_iso_urbs
Apr  7 23:54:32 NCC-1701A kernel: [4344214.253000] ttusb_dec_setup_urbs
Apr  7 23:54:32 NCC-1701A kernel: [4344214.253000] ttusb_dec_init_stb
Apr  7 23:54:32 NCC-1701A kernel: [4344214.253000] ttusb_dec_get_stb_state
Apr  7 23:54:32 NCC-1701A kernel: [4344214.253000] ttusb_dec_send_command
Apr  7 23:54:32 NCC-1701A kernel: [4344214.253000]
ttusb_dec_send_command: command: 0xAA 0x01 0x08 0x00
Apr  7 23:54:32 NCC-1701A kernel: [4344214.255000]
ttusb_dec_send_command: result: 0x55 0x01 0x08 0x0C 0xFF 0xFF 0xFF 0xFF 0x
00 0x07 0x00 0x0C 0x01 0x80 0x00 0x00
Apr  7 23:54:32 NCC-1701A kernel: [4344214.255000] ttusb_dec_init_dvb
Apr  7 23:54:32 NCC-1701A kernel: [4344214.255000] DVB: registering new
adapter (DEC3000-s).
Apr  7 23:54:32 NCC-1701A kernel: [4344214.264000] DVB: registering
frontend 0 (TechnoTrend/Hauppauge DEC3000-s Frontend)...
Apr  7 23:54:32 NCC-1701A kernel: [4344214.267000] ttusb_dec_init_v_pes
Apr  7 23:54:32 NCC-1701A kernel: [4344214.267000] ttusb_dec_send_command
Apr  7 23:54:32 NCC-1701A kernel: [4344214.267000]
ttusb_dec_send_command: command: 0xAA 0x02 0x80 0x01 0x05
Apr  7 23:54:32 NCC-1701A kernel: [4344214.269000]
ttusb_dec_send_command: result: 0x55 0x02 0x80 0x00
Apr  7 23:54:33 NCC-1701A usb.agent[21920]:      ttusb_dec: already loaded




when scanning for channels with dvbscan, the syslog speaks this:

Apr  7 23:56:52 NCC-1701A kernel: [4344354.269000] ttusb_dec_send_command
Apr  7 23:56:52 NCC-1701A kernel: [4344354.269000]
ttusb_dec_send_command: command: 0xAA 0x03 0x72 0x08 0x00 0xFF 0x00 0x00 0
xE0 0x10 0x38 0xF1
Apr  7 23:56:52 NCC-1701A kernel: [4344354.349000]
ttusb_dec_send_command: result: 0x55 0x03 0x72 0x04 0x00 0x00 0x00 0x00
Apr  7 23:56:52 NCC-1701A kernel: [4344354.436000] ttusb_dec_send_command
Apr  7 23:56:52 NCC-1701A kernel: [4344354.436000]
ttusb_dec_send_command: command: 0xAA 0x04 0x71 0x28 0x00 0x00 0x00 0x01 0
x00 0xBF 0x85 0x4C 0x00 0x00 0x00 0x01 0x01 0x4F 0xB1 0x80 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xA1 0xBE 0x40 0x00 0
x00 0x00 0x0D 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Apr  7 23:56:52 NCC-1701A kernel: [4344354.441000]
ttusb_dec_send_command: result: 0x55 0x04 0x71 0x04 0x00 0x00 0x00 0x00
Apr  7 23:56:53 NCC-1701A kernel: [4344354.638000] ttusb_dec_start_feed
Apr  7 23:56:53 NCC-1701A kernel: [4344354.638000]   pid: 0x0000
Apr  7 23:56:53 NCC-1701A kernel: [4344354.638000] ttusb_dec_start_sec_feed
Apr  7 23:56:53 NCC-1701A kernel: [4344354.638000] ttusb_dec_send_command
Apr  7 23:56:53 NCC-1701A kernel: [4344354.638000]
ttusb_dec_send_command: command: 0xAA 0x05 0x60 0x1D 0x00 0x00 0x00 0x01 0
x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xFF
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Apr  7 23:56:53 NCC-1701A kernel: [4344354.837000]
ttusb_dec_send_command: result: 0x55 0x05 0x60 0x02 0x00 0x00
Apr  7 23:56:53 NCC-1701A kernel: [4344354.837000] ttusb_dec_start_iso_xfer
Apr  7 23:56:53 NCC-1701A kernel: [4344354.837000] ttusb_dec_setup_urbs
Apr  7 23:56:53 NCC-1701A kernel: [4344354.837000] ttusb_dec_start_feed
Apr  7 23:56:53 NCC-1701A kernel: [4344354.837000]   pid: 0x0011
Apr  7 23:56:53 NCC-1701A kernel: [4344354.837000] ttusb_dec_start_sec_feed
Apr  7 23:56:53 NCC-1701A kernel: [4344354.837000] ttusb_dec_send_command
Apr  7 23:56:53 NCC-1701A kernel: [4344354.837000]
ttusb_dec_send_command: command: 0xAA 0x06 0x60 0x1D 0x00 0x11 0x00 0x01 0
x01 0x42 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xFF
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Apr  7 23:56:53 NCC-1701A kernel: [4344354.841000]
ttusb_dec_send_command: result: 0x55 0x06 0x60 0x02 0x00 0x01
Apr  7 23:56:53 NCC-1701A kernel: [4344354.841000] ttusb_dec_start_iso_xfer
Apr  7 23:56:53 NCC-1701A kernel: [4344354.841000] ttusb_dec_start_feed
Apr  7 23:56:53 NCC-1701A kernel: [4344354.841000]   pid: 0x0010
Apr  7 23:56:53 NCC-1701A kernel: [4344354.841000] ttusb_dec_start_sec_feed
Apr  7 23:56:53 NCC-1701A kernel: [4344354.841000] ttusb_dec_send_command
Apr  7 23:56:53 NCC-1701A kernel: [4344354.841000]
ttusb_dec_send_command: command: 0xAA 0x07 0x60 0x1D 0x00 0x10 0x00 0x01 0
x01 0x40 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xFF
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Apr  7 23:56:53 NCC-1701A kernel: [4344354.845000]
ttusb_dec_send_command: result: 0x55 0x07 0x60 0x02 0x00 0x02
Apr  7 23:56:53 NCC-1701A kernel: [4344354.845000] ttusb_dec_start_iso_xfer
Apr  7 23:57:19 NCC-1701A kernel: [4344380.871000] ttusb_dec_stop_feed
Apr  7 23:57:19 NCC-1701A kernel: [4344380.871000] ttusb_dec_send_command
Apr  7 23:57:19 NCC-1701A kernel: [4344380.871000]
ttusb_dec_send_command: command: 0xAA 0x08 0x62 0x02 0x00 0x01
Apr  7 23:57:19 NCC-1701A kernel: [4344380.873000]
ttusb_dec_send_command: result: 0x55 0x08 0x62 0x02 0x00 0x01
Apr  7 23:57:19 NCC-1701A kernel: [4344380.873000] ttusb_dec_stop_iso_xfer
Apr  7 23:57:20 NCC-1701A kernel: [4344381.874000] ttusb_dec_stop_feed
Apr  7 23:57:20 NCC-1701A kernel: [4344381.874000] ttusb_dec_send_command
Apr  7 23:57:20 NCC-1701A kernel: [4344381.874000]
ttusb_dec_send_command: command: 0xAA 0x09 0x62 0x02 0x00 0x00
Apr  7 23:57:20 NCC-1701A kernel: [4344381.877000]
ttusb_dec_send_command: result: 0x55 0x09 0x62 0x02 0x00 0x00
Apr  7 23:57:20 NCC-1701A kernel: [4344381.877000] ttusb_dec_stop_iso_xfer
Apr  7 23:58:09 NCC-1701A kernel: [4344430.926000] ttusb_dec_stop_feed
Apr  7 23:58:09 NCC-1701A kernel: [4344430.926000] ttusb_dec_send_command
Apr  7 23:58:09 NCC-1701A kernel: [4344430.926000]
ttusb_dec_send_command: command: 0xAA 0x0A 0x62 0x02 0x00 0x02
Apr  7 23:58:09 NCC-1701A kernel: [4344430.929000]
ttusb_dec_send_command: result: 0x55 0x0A 0x62 0x02 0x00 0x02
Apr  7 23:58:09 NCC-1701A kernel: [4344430.929000] ttusb_dec_stop_iso_xfer



and the outpur of dvbscan:

root@NCC-1701A:~# dvbscan -5
/usr/share/doc/dvb-utils/examples/scan/dvb-s/Astra-19.2E >
/root/.szap/channels.conf            scanning
/usr/share/doc/dvb-utils/examples/scan/dvb-s/Astra-19.2E
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
initial transponder 12551500 V 22000000 5
tune to: 12551:v:0:22000
WARNING: filter timeout pid 0x0011
WARNING: filter timeout pid 0x0000
WARNING: filter timeout pid 0x0010
dumping lists (0 services)
Done.
root@NCC-1701A:~#




ttusb_dec_reset (in dvb-apps/utils).
You need libusb in order to compile and use it.

I found it already. I even had it already compiled and it works.

thanks for your work!

Jens


_______________________________________________

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