TV card

balanga

Son of Beastie

Reaction score: 217
Messages: 4,024

I found that an Express Card TV card would fit into a hidden slot in my ThinkPad T420 so inserted it and it was rognised:-

Code:
uhid0 on uhub2
uhid0: <Yuan Digital TV, class 0/0, rev 2.00/0.01, addr 3> on usbus1


Bus /dev/usb Device /dev/ugen1.3: ID 10b8:0bc7 DiBcom DVB-T reference design (MOD3000P) (warm)

How do I find out if I can make any use of this card on FreeBSD?
 

jsm

Member
Developer

Reaction score: 11
Messages: 23

Only one or two chips Are supported. You Are out of luck I'm afraid. https:// docs.freebsd.org/en/books/handbook/multimedia/#tvcard
 

Tieks

Active Member

Reaction score: 64
Messages: 150

Try multimedia/webcamd, afaik it is ported from Linux. If it is recognized, use port w_scan2 to make a channel config file that will work with mplayer, mpv and the likes.
 
Last edited by a moderator:
OP
B

balanga

Son of Beastie

Reaction score: 217
Messages: 4,024

Try /usr/ports/multimedia/webcamd, afaik it is ported from Linux. If it is recognized, use port w_scan2 to make a channel config file that will work with mplayer, mpv and the likes.
How will I be able to tell if it is recognised by wecamd?
 
OP
B

balanga

Son of Beastie

Reaction score: 217
Messages: 4,024

Try multimedia/webcamd, afaik it is ported from Linux. If it is recognized, use port w_scan2 to make a channel config file that will work with mplayer, mpv and the likes.
I've just used wscan on Linux with my PCTV DVB-S2 USB stick and it found a whole load of channels, so I'd like to get it working on FreeBSD.

Since mplayer and mpv are available on Linux, I'd like to see how this all hangs together so I can use it on FreeBSD. How do you create a channel list with wscan and how do you make selection from it for mplayer?
 
OP
B

balanga

Son of Beastie

Reaction score: 217
Messages: 4,024

Look for /dev/dvb/XXX character device nodes.
I've just installed your new port of webcamd, and whilst my DVB (ID 2013:0258 PCTV Systems DVB-S2 Stick 461e) device shows up with lsusb, I don't see a /dev/dvb/

I haven't installed tda10071 firmware dvb-fe-tda10071.fw as mentioned in the compatibility list.

Do I need to do that?
 

Tieks

Active Member

Reaction score: 64
Messages: 150

Some chips need firmware, these .fw files must be stored in /boot/modules. See w_scan2 -v to create a channel config file for the player you want to use. I use mpv with this command: /usr/local/bin/mpv --dvbin-file=/root/.mpv/channels.conf --autofit=2560x1440 --vo=vdpau --sid=no dvb://"RTVOOST", where RTVOOST is an entry in channels.conf.
 
OP
B

balanga

Son of Beastie

Reaction score: 217
Messages: 4,024

Is this firmware generic? I don't suppose it's specific to FreeBSD. Not sure where to find it. I guess without it I won't get anywhere.

I have managed to create a channels.conf - under Linux so I expect it to be usable under FreeBSD. Hopefully I'll be able to create one which should be identical.
 

Tieks

Active Member

Reaction score: 64
Messages: 150

Looks like a good place to pick up firmware files. Don't remember where I got mine, but I found the link on https://www.linuxtv.org. Just make sure you choose the right file(s) for your hardware.
 
OP
B

balanga

Son of Beastie

Reaction score: 217
Messages: 4,024

Look for /dev/dvb/XXX character device nodes.
I seem to be stuck at the moment and lacking ideas on how to proceed. There is no /dev/dvb/* created when I insert the device, so it looks like something is missing..

When I insert the device into a Linux system I get this:-
Code:
[  724.608119] usb 7-2: new high-speed USB device number 3 using ehci-pci
[  724.757316] usb 7-2: New USB device found, idVendor=2013, idProduct=0258
[  724.757323] usb 7-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[  724.757328] usb 7-2: Product: PCTV 461
[  724.757333] usb 7-2: Manufacturer: PCTV
[  724.757338] usb 7-2: SerialNumber: 0011467674
[  724.833553] media: Linux media interface: v0.10
[  724.857251] Linux video capture interface: v2.00
[  724.892094] em28xx: New device PCTV PCTV 461 @ 480 Mbps (2013:0258, interface 0, class 0)
[  724.892096] em28xx: DVB interface 0 found: isoc
[  724.892574] em28xx: chip ID is em28178
[  725.281080] em28178 #0: EEPROM ID = 26 00 01 00, EEPROM hash = 0x793c73a0
[  725.281085] em28178 #0: EEPROM info:
[  725.281088] em28178 #0: <--->microcode start address = 0x0004, boot configuration = 0x01
[  725.289432] em28178 #0: <--->AC97 audio (5 sample rates)
[  725.289434] em28178 #0: <--->500mA max power
[  725.289437] em28178 #0: <--->Table at offset 0x27, strings=0x148c, 0x1874, 0x0a6a
[  725.289525] em28178 #0: Identified as PCTV DVB-S2 Stick (461e) (card=92)
[  725.289528] em28178 #0: dvb set to isoc mode.
[  725.289873] usbcore: registered new interface driver em28xx
[  725.341662] em28178 #0: Binding DVB extension
[  725.365875] i2c i2c-9: Added multiplexed i2c bus 10
[  725.434073] ts2020 10-0060: Montage Technology TS2022 successfully identified
[  725.445044] a8293 9-0008: Allegro A8293 SEC successfully attached
[  725.445054] DVB: registering new adapter (em28178 #0)
[  725.445061] usb 7-2: DVB: registering adapter 0 frontend 0 (Montage Technology M88DS3103)...
[  725.447754] em28178 #0: DVB extension successfully initialized
[  725.447758] em28xx: Registered (Em28xx dvb Extension) extension
[  725.477400] em28178 #0: Registering input extension
[  725.516147] Registered IR keymap rc-pinnacle-pctv-hd
[  725.516448] input: em28xx IR (em28178 #0) as /devices/pci0000:00/0000:00:1d.7/usb7/7-2/rc/rc0/input14
[  725.516638] rc rc0: em28xx IR (em28178 #0) as /devices/pci0000:00/0000:00:1d.7/usb7/7-2/rc/rc0
[  725.517047] em28178 #0: Input extension successfully initalized
[  725.517051] em28xx: Registered (Em28xx Input Extension) extension

Should I expect to get something along those lines in FreeBSD?
 

hselasky@

Active Member
Developer

Reaction score: 22
Messages: 100

Hi,

Compile multimedia/webcamd with debug support. Use make config to select that.

Then start webcamd in the foreground from the command line for your device, and see what it prints.

You may also want to check /var/log/messages for webcamd prints. Maybe firmware file is missing. Should be put under /boot/modules .

--HPS
 
OP
B

balanga

Son of Beastie

Reaction score: 217
Messages: 4,024

Hi,

Compile multimedia/webcamd with debug support. Use make config to select that.

Then start webcamd in the foreground from the command line for your device, and see what it prints.

--HPS
Sorry to be a pest, but I don't know what command line parameters to use. There seem to be so many options...
 

hselasky@

Active Member
Developer

Reaction score: 22
Messages: 100

First:
killall webcamd
Then:
/usr/local/sbin/webcamd -d ugenX.Y -U webcamd -G webcamd
where ugenX.Y is your device. See output from usbconfig or webcamd -l

--HPS
 
OP
B

balanga

Son of Beastie

Reaction score: 217
Messages: 4,024

First:
killall webcamd
Then:
/usr/local/sbin/webcamd -d ugenX.Y -U webcamd -G webcamd
where ugenX.Y is your device. See output from usbconfig or webcamd -l

--HPS
# webcamd -l:-
Code:
webcamd [-d ugen6.2] -N PCTV-PCTV-461 -S 0011467674 -M 0

# lsusb:-
Code:
Bus /dev/usb Device /dev/ugen6.2: ID 2013:0258 PCTV Systems DVB-S2 Stick 461e

# webcamd -d ugen6.2 -U webcamd -G webcamd
Code:
webcamd 1083 - - IR NEC protocol handler initialized
webcamd 1083 - - IR RC5(x/sz) protocol handler initialized
webcamd 1083 - - IR RC6 protocol handler initialized
webcamd 1083 - - IR JVC protocol handler initialized
webcamd 1083 - - IR Sony protocol handler initialized
webcamd 1083 - - IR SANYO protocol handler initialized
webcamd 1083 - - IR XMP protocol handler initialized
webcamd 1083 - - b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver chip loaded successfully
webcamd 1083 - - USB Video Class driver (1.1.1)
webcamd 1083 - - cpia2: V4L-Driver for Vision CPiA2 based cameras v3.0.1
webcamd 1083 - - Attached to ugen6.2[0]
webcamd 1083 - - INFO: : New device PCTV PCTV 461 @ 480 Mbps (2013:0258, interface 0, class 0)

webcamd 1083 - - INFO: : DVB interface 0 found: isoc

webcamd 1083 - - INFO: : chip ID is em28178

webcamd 1083 - - INFO: : EEPROM ID = 0x801066000h, EEPROM hash = 0x793c73a0

webcamd 1083 - - INFO: : EEPROM info:

webcamd 1083 - - INFO: :     microcode start address = 0x0004, boot configuration = 0x01

webcamd 1083 - - INFO: :     AC97 audio (5 sample rates)

webcamd 1083 - - INFO: :     500mA max power

webcamd 1083 - - INFO: :     Table at offset 0x27, strings=0x148c, 0x1874, 0x0a6a

webcamd 1083 - - INFO: : Identified as PCTV DVB-S2 Stick (461e) (card=92)

webcamd 1083 - - INFO: : dvb set to isoc mode.

webcamd 1083 - - INFO: : Binding DVB extension

webcamd 1083 - - DBG: 129-0068: chip_id=70

webcamd 1083 - - INFO: i2c-129: Added multiplexed i2c bus 130

webcamd 1083 - - DBG: 129-0068:

webcamd 1083 - - DBG: 129-0068:

webcamd 1083 - - DBG: 130-0060: chip_id=c3

webcamd 1083 - - INFO: 130-0060: Montage Technology TS2022 successfully identified

webcamd 1083 - - INFO: 129-0008: Allegro A8293 SEC successfully attached

webcamd 1083 - - DBG: : dvb_register_frontend:

webcamd 1083 - - INFO: : DVB: registering adapter 0 frontend 0 (Montage Technology M88DS3103)...

webcamd 1083 - - DBG: : dvb_frontend_clear_cache: Clearing cache for delivery system 5

webcamd 1083 - - INFO: : DVB extension successfully initialized

webcamd 1083 - - Creating /dev/dvb/adapter0/demux0
webcamd 1083 - - Creating /dev/dvb/adapter0/dvr0
webcamd 1083 - - DBG: : dvb_frontend_open:

webcamd 1083 - - DBG: : dvb_frontend_release:

webcamd 1083 - - Creating /dev/dvb/adapter0/frontend0

This was what appeared on the screen. I only managed to capture it my ssh-ing into the system.

Is this waiting for something? I have to Ctr-c to close. No /dev/dvb/* appears and there is no /var/log/webcamd.log

root@Multiboot:/boot/modules # ls -al *.fw
-rw-r--r-- 1 root wheel 43558 May 19 20:26 dvb-fe-tda10071.fw

Maybe I have the wrong firmware...
 

hselasky@

Active Member
Developer

Reaction score: 22
Messages: 100

Try ls -l /dev/dvb/adapter0/frontend0 before you stop webcamd.

Also try adding the -B option, which will run webcamd in the background.

Everything looks good, from what I can see.
 
OP
B

balanga

Son of Beastie

Reaction score: 217
Messages: 4,024

Not sure what happened by but I have a /dev/dvb now

Code:
ls -lR /dev/dvb/
total 1
dr-xr-xr-x  2 root  wheel  512 May 20 18:20 adapter0

/dev/dvb/adapter0:
total 0
crw-rw----  1 webcamd  webcamd  0x1ac May 20 18:20 demux0
crw-rw----  1 webcamd  webcamd  0x1ad May 20 18:20 dvr0
crw-rw----  1 webcamd  webcamd  0x1ae May 20 18:20 frontend0
Tried to do a scan using w_scan2 -f s -c GB -s S13E0 but this failed miserably. Unfortunately it's difficult to capture. I tried redirecting the output but couldn't. Also, I don't see any log file.
This the best I could do via ssh:-
Code:
w_scan2-1.0.12 (compiled for DVB API 5.11)
https://github.com/stefantalpalaru/w_scan2

using settings for Satellite at 13 EAST
scan type SATELLITE, channellist 8
output format vdr-2.0
WARNING: could not guess your codepage. Falling back to 'UTF-8'
output charset 'UTF-8', use -C <charset> to override
Info: using DVB adapter auto detection.


**** STUFF not captured but similar to that below *****

initial_tune:3329: Setting frontend failed S2 f = 12673 kHz V SR = 29900  3/4 0,35  8PSK  (0:0:0)
trying 'S2 f = 12692 kHz H SR = 27500  3/4 0,35  8PSK  (0:0:0)'
(time: 00:35.031) diseqc_send_msg: SEC_TONE_OFF failed.

initial_tune:3329: Setting frontend failed S2 f = 12692 kHz H SR = 27500  3/4 0,35  8PSK  (0:0:0)
trying 'S2 f = 12713 kHz V SR = 29900  3/4 0,35  8PSK  (0:0:0)'
(time: 00:35.032) diseqc_send_msg: SEC_TONE_OFF failed.

initial_tune:3329: Setting frontend failed S2 f = 12713 kHz V SR = 29900  3/4 0,35  8PSK  (0:0:0)
trying 'S2 f = 12731 kHz H SR = 29900  3/4 0,35  8PSK  (0:0:0)'
(time: 00:35.032) diseqc_send_msg: SEC_TONE_OFF failed.

initial_tune:3329: Setting frontend failed S2 f = 12731 kHz H SR = 29900  3/4 0,35  8PSK  (0:0:0)

ERROR: Sorry - i couldn't get any working frequency/transponder
 Nothing to scan!!
 

Tieks

Active Member

Reaction score: 64
Messages: 150

You might want to check if the stick is connected to a satellite dish that can actually see the satellite at 13 degrees east.
 
Top