public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: william <william@cobradevil.org>
To: Tim Coote <tim+vger.kernel.org@coote.org>
Cc: linux-media@vger.kernel.org
Subject: Re: setting up a tevii s660
Date: Fri, 07 May 2010 14:31:26 +0200	[thread overview]
Message-ID: <4BE4081E.9010203@cobradevil.org> (raw)
In-Reply-To: <AC7E72DC-BC2D-47FF-AC6C-1CCFA7BD9446@coote.org>

Hello Tim,

On 05/07/2010 01:41 PM, Tim Coote wrote:
> William
> did you load your modules with debug=1, or something else, somehow? I 
> thought that the code printing out ds3000_readreg required debug. or 
> have you got different source code from the tevii driver on 
> www.tevii.com/Support.asp?  (unless I know what you're using, I cannot 
> tell what's relevant.)
i tried this so probably yes
/etc/modprobe.d/test.conf
##
options mt312 debug=1
options ds3000 debug=1
options dvb-usb-dw2102 debug=1
options dvb-usb disable_rc_polling=1
options dvb-usb-dw2102 keymap=2 demod=2
##

The tevii device should be supported by the linuxtv drivers:

############
hg clone http://linuxtv.org/hg/v4l-dvb
cd v4l-dvb
make menuconfig disable/enable what you need
make&&  make install
poweroff
remove power/usb cables
replug the power to tevii device
then connect the usb
then poweron pc

Then i get this in my log:
modprobe dvb-usb-dw2102
[  217.546580] dvb-usb: found a 'TeVii S660 USB' in cold state, will try to load a firmware
[  217.546595] usb 1-3: firmware: requesting dvb-usb-s630.fw
[  217.630018] dvb-usb: downloading firmware from file 'dvb-usb-s630.fw'
[  217.630030] dw2102: start downloading DW210X firmware
[  217.748783] usb 1-3: USB disconnect, address 3
[  217.850050] dvb-usb: found a 'TeVii S660 USB' in warm state.
[  217.850161] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[  217.850236] DVB: registering new adapter (TeVii S660 USB)
[  228.090038] dvb-usb: MAC address: 00:00:00:00:00:00
[  228.162540] mt312: R(126): 00
[  228.162550] Only Zarlink VP310/MT312/ZL10313 are supported chips.
[  228.507136] ds3000_attach
[  228.542534] ds3000_readreg: read reg 0x00, value 0x00
[  228.542541] Invalid probe, probably not a DS3000
[  228.542808] dvb-usb: no frontend was attached by 'TeVii S660 USB'
[  228.542861] dvb-usb: TeVii S660 USB successfully initialized and connected.
[  228.543000] usbcore: registered new interface driver dw2102
[  228.543454] dvb-usb: TeVii S660 USB successfully deinitialized and disconnected.
[  228.820045] usb 1-3: new high speed USB device using ehci_hcd and address 5

########

using the tevii drivers i get this:
doing the same make ; make install ; poweroff ....
modprobe dvb-usb-dw2102

[   80.354236] dvb-usb: found a 'TeVii S660 USB' in cold state, will try to load a firmware
[   80.354252] usb 1-3: firmware: requesting dvb-usb-teviis660.fw
[   80.418598] dvb-usb: downloading firmware from file 'dvb-usb-teviis660.fw'
[   80.418609] dw2102: start downloading DW210X firmware
[   80.436136] usb 1-3: USB disconnect, address 3
[   80.545656] dvb-usb: found a 'TeVii S660 USB' in warm state.
[   80.545780] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[   80.545840] DVB: registering new adapter (TeVii S660 USB)
[   90.810041] dvb-usb: MAC address: 00:00:00:00:00:00
[   90.921279] mt312: R(126): 00
[   90.921289] Only Zarlink VP310/MT312/ZL10313 are supported chips.
[   91.243014] ds3000_attach
[   91.283778] ds3000_readreg: read reg 0x00, value 0x00
[   91.283785] Invalid probe, probably not a DS3000
[   91.284052] dvb-usb: no frontend was attached by 'TeVii S660 USB'
[   91.284105] dvb-usb: TeVii S660 USB successfully initialized and connected.
[   91.284209] usbcore: registered new interface driver dw2102
[   91.284744] dvb-usb: TeVii S660 USB successfully deinitialized and disconnected.
[   91.560036] usb 1-3: new high speed USB device using ehci_hcd and address 5
[   91.710433] usb 1-3: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 2
[   91.712260] dvb-usb: found a 'TeVii S660 USB' in cold state, will try to load a firmware
[   91.712275] usb 1-3: firmware: requesting dvb-usb-teviis660.fw
[   91.722989] dvb-usb: downloading firmware from file 'dvb-usb-teviis660.fw'
[   91.723001] dw2102: start downloading DW210X firmware
[   91.840045] dvb-usb: found a 'TeVii S660 USB' in warm state.
[   91.840180] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[   91.840339] DVB: registering new adapter (TeVii S660 USB)
[  102.080030] dvb-usb: MAC address: 00:18:bd:5c:54:7f
[  102.120028] mt312: R(126): ff
[  102.120038] Only Zarlink VP310/MT312/ZL10313 are supported chips.
[  102.390448] ds3000_attach
[  102.430027] ds3000_readreg: read reg 0x00, value 0xe0
[  102.470026] ds3000_readreg: read reg 0x01, value 0xc0
[  102.510026] ds3000_readreg: read reg 0x02, value 0x00
[  102.510033] DS3000 chip version: 0.192 attached.
[  102.510039] dw2102: Attached ds3000+ds2020!
[  102.510041]
[  102.510274] DVB: registering adapter 1 frontend 0 (Montage Technology DS3000/TS2020)...
[  102.510645] dvb-usb: TeVii S660 USB successfully initialized and connected.

#########

now i have:

root@backend:~# ls -al /dev/dvb/adapter1/
total 0
drwxr-xr-x 2 root root     120 2010-05-07 14:23 .
drwxr-xr-x 4 root root      80 2010-05-07 14:23 ..
crw-rw---- 1 root video 212, 4 2010-05-07 14:23 demux0
crw-rw---- 1 root video 212, 5 2010-05-07 14:23 dvr0
crw-rw---- 1 root video 212, 7 2010-05-07 14:23 frontend0
crw-rw---- 1 root video 212, 6 2010-05-07 14:23 net0


###

Now i can also make use off the device except that my system gets slow 
and channel zapping takes ages.
i disabled the debug message for the remote with the option 
disable_rc_polling for dvb-usb.

only then you cannot use the remote :)

With kind regards

William van de Velde


>
> my log looks like this (VMWare fusion virtual hardware, MacBookPro 
> host, xubuntu 10.04, installed and updated, make and sudo make install 
> based on a .config that I understand works).
>
> May  7 02:20:37 ubuntu kernel: [42761.520219] usb 1-1: new high speed 
> USB device using ehci_hcd and address 2
> May  7 02:20:37 ubuntu kernel: [42761.708776] usb 1-1: configuration 
> #1 chosen from 1 choice
> May  7 02:20:37 ubuntu kernel: [42762.229009] dvb-usb: found a 'TeVii 
> S660 USB' in cold state, will try to load a firmware
> May  7 02:20:37 ubuntu kernel: [42762.229027] usb 1-1: firmware: 
> requesting dvb-usb-teviis660.fw
> May  7 02:20:38 ubuntu kernel: [42762.307947] dvb-usb: downloading 
> firmware from file 'dvb-usb-teviis660.fw'
> May  7 02:20:38 ubuntu kernel: [42762.307950] dw2102: start 
> downloading DW210X firmware
> May  7 02:20:38 ubuntu kernel: [42762.508553] usb 1-1: USB disconnect, 
> address 2
> May  7 02:20:38 ubuntu kernel: [42762.592094] dvb-usb: found a 'TeVii 
> S660 USB' in warm state.
> May  7 02:20:38 ubuntu kernel: [42762.592253] dvb-usb: will pass the 
> complete MPEG2 transport stream to the software demuxer.
> May  7 02:20:38 ubuntu kernel: [42762.592324] DVB: registering new 
> adapter (TeVii S660 USB)
> May  7 02:20:42 ubuntu kernel: [42766.700222] dvb-usb: MAC address: 
> 00:00:00:00:00:00
> May  7 02:20:42 ubuntu kernel: [42766.778218] Only Zarlink 
> VP310/MT312/ZL10313 are supported chips.
> May  7 02:20:42 ubuntu kernel: [42767.053874] input: IR-receiver 
> inside an USB DVB receiver as 
> /devices/pci0000:00/0000:00:11.0/0000:02:03.0/usb1/1-1/input/input5
> May  7 02:20:42 ubuntu kernel: [42767.054053] dvb-usb: schedule remote 
> query interval to 150 msecs.
> May  7 02:20:42 ubuntu kernel: [42767.054058] dvb-usb: TeVii S660 USB 
> successfully initialized and connected.
> May  7 02:20:42 ubuntu kernel: [42767.054088] usbcore: registered new 
> interface driver dw2102
> May  7 02:20:42 ubuntu kernel: [42767.054463] dvb-usb: TeVii S660 USB 
> successfully deinitialized and disconnected.
> May  7 02:20:43 ubuntu kernel: [42767.340236] usb 1-1: new high speed 
> USB device using ehci_hcd and address 3
> May  7 02:20:43 ubuntu kernel: [42767.824316] usb 1-1: config 1 
> interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 2
> May  7 02:20:43 ubuntu kernel: [42767.828380] usb 1-1: configuration 
> #1 chosen from 1 choice
> May  7 02:20:43 ubuntu kernel: [42768.068383] dvb-usb: found a 'TeVii 
> S660 USB' in cold state, will try to load a firmware
> May  7 02:20:43 ubuntu kernel: [42768.068388] usb 1-1: firmware: 
> requesting dvb-usb-teviis660.fw
> May  7 02:20:43 ubuntu kernel: [42768.087257] dvb-usb: downloading 
> firmware from file 'dvb-usb-teviis660.fw'
> May  7 02:20:43 ubuntu kernel: [42768.087260] dw2102: start 
> downloading DW210X firmware
> May  7 02:20:44 ubuntu kernel: [42768.360185] dvb-usb: found a 'TeVii 
> S660 USB' in warm state.
> May  7 02:20:44 ubuntu kernel: [42768.361175] dvb-usb: will pass the 
> complete MPEG2 transport stream to the software demuxer.
> May  7 02:20:44 ubuntu kernel: [42768.362197] DVB: registering new 
> adapter (TeVii S660 USB)
> May  7 02:20:49 ubuntu kernel: [42773.580095] dvb-usb: MAC address: 
> 70:70:70:70:70:70
> May  7 02:20:49 ubuntu kernel: [42773.612787] Only Zarlink 
> VP310/MT312/ZL10313 are supported chips.
> May  7 02:20:49 ubuntu kernel: [42773.875597] input: IR-receiver 
> inside an USB DVB receiver as 
> /devices/pci0000:00/0000:00:11.0/0000:02:03.0/usb1/1-1/input/input6
> May  7 02:20:49 ubuntu kernel: [42773.875684] dvb-usb: schedule remote 
> query interval to 150 msecs.
> May  7 02:20:49 ubuntu kernel: [42773.875687] dvb-usb: TeVii S660 USB 
> successfully initialized and connected.
> May  7 02:20:49 ubuntu kernel: [42774.024247] dw2102: query RC enter
>
> I'm not getting the 'probably not a ds3000' line, although that could 
> be a debugging level issue.
>
> I see that you're using a different kernel and source file: here's my 
> modinfo for the module that I'm using:
>
> filename:       
> /lib/modules/2.6.32-22-generic/kernel/drivers/media/dvb/dvb-usb/dvb-usb-dw2102.ko 
>
> license:        GPL
> version:        0.1
> description:    Driver for DVBWorld DVB-S 2101, 2102, DVB-S2 2104, 
> DVB-C 3101 USB2.0, TeVii S600, S630, S650, S660 USB2.0, Prof 1100, 
> 7500 USB2.0 devices
> author:         Igor M. Liplianin (c) liplianin@me.by
> srcversion:     5B4AEEBD8B92549304CF812
> alias:          usb:v3034p7500d*dc*dsc*dp*ic*isc*ip*
> alias:          usb:v9022pD660d*dc*dsc*dp*ic*isc*ip*
> alias:          usb:v3011pB012d*dc*dsc*dp*ic*isc*ip*
> alias:          usb:v9022pD630d*dc*dsc*dp*ic*isc*ip*
> alias:          usb:v04B4p3101d*dc*dsc*dp*ic*isc*ip*
> alias:          usb:v0CCDp0064d*dc*dsc*dp*ic*isc*ip*
> alias:          usb:v9022pD650d*dc*dsc*dp*ic*isc*ip*
> alias:          usb:v04B4p2104d*dc*dsc*dp*ic*isc*ip*
> alias:          usb:v04B4p2101d*dc*dsc*dp*ic*isc*ip*
> alias:          usb:v04B4p2102d*dc*dsc*dp*ic*isc*ip*
> depends:        dvb-usb
> vermagic:       2.6.32-22-generic SMP mod_unload modversions 586
> parm:           debug:set debugging level (1=info 2=xfer 
> 4=rc(or-able)). (int)
> parm:           keymap:set keymap 0=default 1=dvbworld 2=tevii 3=tbs  
> ... (int)
> parm:           demod:demod to probe (1=cx24116 2=stv0903+stv6110 
> 4=stv0903+stb6100(or-able)). (int)
> parm:           adapter_nr:DVB adapter numbers (array of short)
>
>
> I'm not convinced that either of us is actually communicating with our 
> s660s. do you get a /dev/dvb/adapter0/frontend0? can you get any 
> output at all from the device? if so, with what?
>
> There are too many variables here. I'd like to collect all of the 
> configurations of a known working system and work methodically from 
> there.
> On 6 May 2010, at 20:09, william wrote:
>
>> Hello Tim,
>>
>> i also have a tevii s660 which i cannot get to work properly.
>>
>> i'm no programmer and nobody has given a reaction on my previous 
>> posts (debugging my tevii...).
>>
>> I get this in my log after getting the source from the linuxtv site 
>> with the driver igor wrote:
>>
>>
>> [   45.654362] dvb-usb: found a 'TeVii S660 USB' in cold state, will 
>> try to load a firmware
>> [   45.654379] usb 1-3: firmware: requesting dvb-usb-s630.fw
>> [   45.717438] dvb-usb: downloading firmware from file 'dvb-usb-s630.fw'
>> [   45.717450] dw2102: start downloading DW210X firmware
>> [   45.824245] usb 1-3: USB disconnect, address 3
>> [   45.930055] dvb-usb: found a 'TeVii S660 USB' in warm state.
>> [   45.930167] dvb-usb: will pass the complete MPEG2 transport stream 
>> to the software demuxer.
>> [   45.930233] DVB: registering new adapter (TeVii S660 USB)
>> [   56.182533] dvb-usb: MAC address: 00:00:00:00:00:00
>> [   56.262532] mt312: R(126): 00
>> [   56.262543] Only Zarlink VP310/MT312/ZL10313 are supported chips.
>> [   56.607024] ds3000_attach
>> [   56.642535] ds3000_readreg: read reg 0x00, value 0x00
>> [   56.642542] Invalid probe, probably not a DS3000
>> [   56.642816] dvb-usb: no frontend was attached by 'TeVii S660 USB'
>> [   56.643037] input: IR-receiver inside an USB DVB receiver as 
>> /devices/pci0000:00/0000:00:1d.7/usb1/1-3/input/input5
>> [   56.643189] dvb-usb: schedule remote query interval to 150 msecs.
>> [   56.643203] dvb-usb: TeVii S660 USB successfully initialized and 
>> connected.
>> [   56.643290] usbcore: registered new interface driver dw2102
>> [   56.773230] dvb-usb: TeVii S660 USB successfully deinitialized and 
>> disconnected.
>> [   57.050043] usb 1-3: new high speed USB device using ehci_hcd and 
>> address 5
>>
>> in my previous post i got a message that an mt312 chip was found and 
>> now it does not find anything.
>> so now i don't have a dvb device at all.
>>
>> the firmware is from the drivers from tevii. I tried and the s630 
>> firmware and later the s660 firmware renamed to s630 but none worked.
>>
>> After installing the driver/changing the firmware, I shutdown the 
>> computer removed the power from the tevii device and then replugged 
>> and started my computer again.
>>
>> ======
>>
>> modinfo dvb-usb-dw2102
>> filename:       
>> /lib/modules/2.6.34-020634rc2-generic/kernel/drivers/media/dvb/dvb-usb/dvb-usb-dw2102.ko 
>>
>> license:        GPL
>> version:        0.1
>> description:    Driver for DVBWorld DVB-S 2101, 2102, DVB-S2 2104, 
>> DVB-C 3101 USB2.0, TeVii S600, S630, S650, S660 USB2.0, Prof 1100, 
>> 7500 USB2.0 devices
>> author:         Igor M. Liplianin (c) liplianin@me.by
>> srcversion:     FCBA4EFAEF1F6A88DC9F2DB
>> alias:          usb:v3034p7500d*dc*dsc*dp*ic*isc*ip*
>> alias:          usb:v9022pD660d*dc*dsc*dp*ic*isc*ip*
>> alias:          usb:v3011pB012d*dc*dsc*dp*ic*isc*ip*
>> alias:          usb:v9022pD630d*dc*dsc*dp*ic*isc*ip*
>> alias:          usb:v04B4p3101d*dc*dsc*dp*ic*isc*ip*
>> alias:          usb:v0CCDp0064d*dc*dsc*dp*ic*isc*ip*
>> alias:          usb:v9022pD650d*dc*dsc*dp*ic*isc*ip*
>> alias:          usb:v04B4p2104d*dc*dsc*dp*ic*isc*ip*
>> alias:          usb:v04B4p2101d*dc*dsc*dp*ic*isc*ip*
>> alias:          usb:v04B4p2102d*dc*dsc*dp*ic*isc*ip*
>> depends:        dvb-usb
>> vermagic:       2.6.34-020634rc2-generic SMP mod_unload modversions
>> parm:           debug:set debugging level (1=info 2=xfer 
>> 4=rc(or-able)). (int)
>> parm:           keymap:set keymap 0=default 1=dvbworld 2=tevii 3=tbs  
>> ... (int)
>> parm:           demod:demod to probe (1=cx24116 2=stv0903+stv6110 
>> 4=stv0903+stb6100(or-able)). (int)
>> parm:           adapter_nr:DVB adapter numbers (array of short)
>> ========
>>
>> if you need help testing i would be glad to help.
>>
>> The tevii drivers are working and also detect the mt312 chip.
>> This driver does not, but i'm not very pleased about the driver from 
>> tevii because channel switch takes long and image quality is bad and 
>> my system get's slow/freezes.
>>
>> With kind regards
>>
>> William van de Velde
>>
>> On 05/06/2010 01:07 AM, Tim Coote wrote:
>>> Hullo
>>> I've been struggling with this for a couple of days. I have checked 
>>> archives, but missed anything useful.
>>>
>>> I've got a tevii s660 (dvbs2 via usb). It works with some 
>>> limitations on windows xp (I cannot get HD signals decoded, but 
>>> think that's a limitation of the software that comes on the CD).
>>>
>>> I'm trying to get this working on Linux. I've tried VMs based on 
>>> fedora 12 and mythbuntu (VMWare Fusion on a MacBookPro, both based 
>>> on kernel 2.6.32), using the drivers from tevii's site 
>>> (www.tevii.com/support.asp). these drivers are slightly modified 
>>> versions of the v4l tip - but don't appear to be modified where I've 
>>> not yet managed to get the drivers working :-(.  Mythbuntu seems to 
>>> be closest to working. Goodness knows how tevii tested the code, but 
>>> it doesn't seem to work as far as I can see.  My issues could just 
>>> be down to using a VM.
>>>
>>> I believe that I need to load up the modules ds3000 and 
>>> dvb-usb-dw2102, + add a rule to /etc/udev/rules.d and a script to 
>>> /etc/udev/scripts.
>>>
>>> I think that I must be missing quite a lot of context, tho'. When I 
>>> look at the code in dw2102.c, which seems to support the s660, the 
>>> bit that downloads the firmware looks broken and if I add a default 
>>> clause to the switch that does the download, the s660's missed the 
>>> download process.  This could be why when I do get anything out of 
>>> the device it looks like I'm just getting repeated bytes (the same 
>>> value repeated, different values at different times, sometimes 
>>> nothing).  I'm finding it non-trivial working out the call sequences 
>>> of the code or devising repeatable tests.
>>>
>>> Can anyone kick me off on getting this working? I'd like to at least 
>>> get to the point where scandvb can tune the device. It does look 
>>> like some folk have had success in the past, but probably with 
>>> totally different codebase (there are posts that refer to the 
>>> teviis660 module, which I cannot find).
>>>
>>> Any pointer gratefully accepted. I'll feed back any success if I can 
>>> be pointed at where to drop document it.
>>>
>>> tia
>>>
>>> Tim
>>> -- 
>>> To unsubscribe from this list: send the line "unsubscribe 
>>> linux-media" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>
>>
>


  parent reply	other threads:[~2010-05-07 12:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-05 23:07 setting up a tevii s660 Tim Coote
2010-05-06 19:09 ` william
2010-05-07 11:41   ` Tim Coote
2010-05-07 11:46     ` Josu Lazkano
2010-05-07 12:31     ` william [this message]
2010-05-07 14:33       ` Tim Coote
2010-05-07 16:41         ` william
2010-05-07 21:18           ` Tim Coote
2010-05-09 18:46 ` Igor M. Liplianin
2010-05-09 21:29   ` Tim Coote
2010-05-10 10:56     ` Igor M. Liplianin
  -- strict thread matches above, loose matches on Subject: below --
2010-05-06 19:14 Fwd: " Paul Shepherd
2010-05-07 11:09 ` Tim Coote

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BE4081E.9010203@cobradevil.org \
    --to=william@cobradevil.org \
    --cc=linux-media@vger.kernel.org \
    --cc=tim+vger.kernel.org@coote.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox