snearch + pietro   23

TBS 6981 DVB-S2 Doppel-Tuner, PCIe Satelliten-HDTV: Amazon.de: Computer & Zubehör
Die Karte habe ich mir gekauft, nachdem meine alte MSI Sat TV@anywhere nicht unter Linux zum Laufen zu bringen war.
Mit der TBS 6981 war das unter Ubuntu kein Problem (auch mit 11.10, Kernel 3). Die Treiber von der Herstellerseite laden und installieren. Die Anleitung (readme) ist dabei sehr hilfreich. Die Software integriert sich dabei in das V4L-Paket.
Pietro  DVB-S  Ubuntu  Linux  TBS_6981 
december 2012 by snearch
sudo: no tty present and no askpass program specified - The UNIX and Linux Forums
sudo will only run a program as a different user if one of these 3 conditions has been met (as far as passwords are concerned):

the NOPASSWD option is specified
the user entered the correct target password
the user entered the correct source password

Since options 2 and 3 require a TTY (sudo won't read from a pipe) it won't run if it can't find one. Check your script if at any point you're running a script remotely using ssh, as it's possible that it won't allocate a TTY for a non-interactive remote command.
Pietro  sudo 
october 2012 by snearch
php - mysql table to json - Stack Overflow
$return_arr = Array();

$query = mysql_real_escape_string($_GET['qery']);
$result = mysql_query("SELECT * FROM recent_tags where query like '%" . $query . "%'");

while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
array_push($return_arr,$row);
}
echo json_encode($return_arr);
Pietro  MySQL  JSON 
october 2012 by snearch
SourceForge.net: Installation - dvbstreamer
Setup

Before you can actually start to use DVBStreamer you need to initialise it's database of service to do this you'll need a channels.conf file produces by the linuxtv.org utility scan. Go here if you need help with scan.

When you have a channels.conf file you need to initialise the database DVBStreamer will use.

To initialise the database for adapter 1 using a terrestrial (DVB-T) channels.conf file in the current directory use the following command

setupdvbstreamer -t channels.conf

For DVB-C use the -c swith, DVB-S use -s and for ATSC (>0.8) use -A. To create a database for a different adapter use -a <Adapter Number>.

To find out what services have been imported use the services command which will list all the available service

DVBStreamer> service

To quit out of dvbstreamer type quit
Pietro  setup_dvbstreamer_with_scan 
october 2012 by snearch
TBS Download Center-Update the Latest Window & Linux Driver
TBS6284

1. TBS6284 Windows Driver is updated to V1.0.0.4. It includes Windows XP, Vista, Windows 7 Media Center.
2. TBS6284 Linux Driver is updated to v120827, which has belowed updating:
* initial support for 6985
* improved 5280 initialization
* improved performance of 6928 and 6991
3. TBS6284 IR software V1.0.0.8 is released, which solved the problem of some buttons can't work properly.
4. TBS6284 User Guide is updated.

-------------------------------------------------

TBS6984

1. TBS6984 Windows Driver is updated to V1.0.2.3.
2. TBS6984 Linux Driver is updated to v120827, which has belowed updating:
* initial support for 6985
* improved 5280 initialization
* improved performance of 6928 and 6991
3. TBS6984 IR software V1.0.0.8 is released, which solved the problem of some buttons can't work properly.
Pietro  TBS  DVB-T  DVB-S  TBS6284  TBS6984 
october 2012 by snearch
Ubuntu -- Informationen über Paket dvb-apps in lucid
Digitial Video Broadcasting (DVB) applications

Applications and utilities geared towards the initial setup, testing and operation of an DVB device supporting the DVB-S, DVB-C, DVB-T, and ATSC standards.

Main User Applications:

. util/scan - Scan for channels on your digital TV device
. util/gnutv - Tune, watch and stream your TV

General Utilities:

. util/dvbdate - Set your clock from digital TV
. util/dvbnet - Control digital data network interfaces
. util/dvbtraffic - Monitor traffic on a digital device
. util/femon - Monitor the tuning on a digital TV device
. util/zap - *Just* tunes a digital device

Hardware Specific Utilities:

. util/av7110_loadkeys - Load remote keys into an av7110 based card
. util/dib3000-watch - Monitor DIB3000 demodulators
. util/dst-utils - Utilities for DST based cards
. util/ttusb_dec_reset - Reset a TechnoTrends TTUSB DEC device

Libraries:

. lib/libdvbapi - Interface library to digital TV devices
. lib/libdvbcfg - Library to parse/create digital TV channel
. lib/libdvbsec - Library for Satellite Equipment Control operations
. lib/libucsi - Fast MPEG2 Transport Stream SI table parsing library
. lib/libdvben50221- Implementation of a Cenelec EN 50221 CAM stack
. lib/libdvbmisc - Miscellaneous utilities used by the other libraries
Pietro  dvb-apps  DVB-T  DVB-S 
october 2012 by snearch
dvb-utils › Wiki › ubuntuusers.de
Da einige Videoplayer keine Funktionen mitbringen, selbst nach TV-Sendern zu suchen, bedient man sich des Programms scan, welches diese Funktion übernimmt. Es erstellt die Datei channels.conf, welche von den eben genannten Programmen benötigt wird, um DVB-C (Digital Video Broadcasting - Cable), DVB-S (Digital Video Broadcasting - Satellit) und DVB-T (Digital Video Broadcasting – terrestrisch) Signale interpretieren zu können.

In diesem Artikel wird auf scan eingegangen. In einem weiteren Artikel wird w scan behandelt.

....

channels.conf

Voraussetzung für alle Beispiele ist ein funktionsfähiges DVB-Gerät. In den Beispielen wird auf DVB-T und DVB-S eingegangen. Das Grundprinzip ist jedoch bei allen Methoden ähnlich. scan benötigt lediglich die Basisdatenfrequenz und Übertragungsmodus, da es die Frequenzen nicht selbständig durchlaufen kann. Diese sind im Ordner /usr/share/dvb/ zu finden.

Da die Daten nicht immer auf dem aktuellen Stand sind, empfiehlt es sich, mitunter selber Hand anzulegen. Die zweite Methode geht von einem aktuellen Datenbestand in dem angegebenen Ordner aus. Die Grunddaten liegen nicht nur für Deutschland, sondern auch für eine Reihe anderer Länder (u.a. Österreich und Schweiz) vor.
DVB-T

Als erstes von Überallfernsehen DVB-T {de} oder Media Channel {de} die technischen Parameter der Sender für die eigene Region heraussuchen. Exemplarisch wird hier für die Region Düsseldorf/Neuss {dl} eine Datei für DVB-T, unter Verwendung von XINE, nach folgendem Muster erstellt [3]:
vergrößern

# DVB-T Ddorf
# Februar 2007
# T freq bw fec_hi fec_lo mod transmission-mode guard-interval hierarchy
T 538000000 8MHz 2/3 NONE QAM16 8k 1/4 NONE
T 586000000 8MHz 2/3 NONE QAM16 8k 1/4 NONE
T 690000000 8MHz 2/3 NONE QAM16 8k 1/4 NONE
T 722000000 8MHz 2/3 NONE QAM16 8k 1/4 NONE
T 746000000 8MHz 2/3 NONE QAM16 8k 1/4 NONE
T 482000000 8MHz 2/3 NONE QAM16 8k 1/8 NONE
T 506000000 8MHz 2/3 NONE QAM16 8k 1/8 NONE
T 674000000 8MHz 2/3 NONE QAM16 8k 1/4 NONE
T 762000000 8MHz 2/3 NONE QAM16 8k 1/8 NONE

Diese anschließend in der Datei de-STADT speichern, wobei STADT durch den eigenen Wohnort abgeändert werden sollte - in diesem Beispiel: de-Ddorf. Diese Daten benötigt das Programm scan, welches in den dvb-utils enthalten ist.
Hinweis:

Wichtig sind hier die Daten: Frequenz & Guard-Intervall! Diese entsprechend in der Datei abändern - Rest übernehmen.

Nun mit dem zweiten Schritt fortfahren:
scan

Nun im Terminal [2] in das Verzeichnis wechseln, in der die soeben erstellte Datei liegt, und folgenden Befehl eingeben:
Pietro  Ubuntu  dvb-utils  DVB-S  dvb-apps 
october 2012 by snearch
How to Obtain, Build and Install V4L-DVB Device Drivers - LinuxTVWiki
etrieving and Building/Compiling the Latest V4L-DVB Source Code

There are a couple of different methods by which you can obtain and build the latest source code. Regardless of which route you take, all are performed from the command line within a console. The "basic" method is likely appropriate for most end users, though, in some cases, some users will have to use the slightly more "manually intensive" approach. This second approach is effectively, for all intents and purposes, really just the same as the "basic" method, but performing the steps in a piecemeal fashion affords you the opportunity to tailor the source code or the "make"/build process as might be required in your particular situation. Again, before proceeding with either approach, make sure you have installed all the prerequisite software listed above.
Note: If you are using Ubuntu, you were previously very likely to run into a fatal compilation error within the v4l-dvb build process when it reaches the firedtv module. The reason for this is because Ubuntu had a bug in their packaging of the kernel headers. This seems to be fixed on a fully updated systtem (5 July 2011) This was a long standing issue, and one of the most frequently reported on the mailing list.
If you still have the problem, you should be able to correct this compilation problem by following the more manual procedure listed below. In particular, before proceeding to build the modules, you will have to edit the file v4l/.config and change the line for the firedtv driver from "firedtv=m" to "firedtv=n".
Note: If you are having build failures like "implicit declaration of function 'mfd_get_data'" try editing v4l/Makefile.media, and just comment out anything related to CONFIG_*_TIMBERALE. [Source]


Retrieving the Source Code & Building/Compiling the Modules "Basic" Approach Developer's Approach More "Manually Intensive" Approach

git clone git://linuxtv.org/media_build.git
cd media_build
./build

These commands will download the newest tarball of the source code from linuxtv.org, apply the backport patches to it and then build/compile the source via the included script build.sh.

NB: to add a patch copy the .patch file to the backports directory, and add the patch file as a line to the {kernel-version}_series file in the packports dir.


~ $ git clone git://linuxtv.org/media_build.git
~ $ cd media_build
~/media_build $./build --main-git

Note: The build script will clone the entire media-tree.git, with will take some time

In order to modify a driver foo.c:

~/media_build $ cd media
~/media $ gedit drivers/media/video/foo.c
~/media $ make -C ../v4l
~/media $ make -C ../ install
~/media $ make -C .. rmmod
~/media $ modprobe foo

(some procedure to test the "foo" driver)

To generate a patch, use:

~/media $ git commit -as

Then submit the patch upstream. If your sendmail is properly configured, you can easily send the patch upstream with:

~/media $ git send-email HEAD^1

or, to send a patch series:

~/media $ git send-email initial_branch

Where initial_branch is the name of a branch of a changeset number for the last patch before your changes.


git clone git://linuxtv.org/media_build.git
cd media_build/linux
make tar DIR=<some dir with media -git tree>
make untar
cd ..

If you need to make any sort of change or modification to the source code, now is the time.

Optional Pre-Compilation Steps
These optional command steps are applicable only in certain situations approaching a new build of the driver set, or for experienced users wishing to streamline the build process to consist of only those components they want to install.

make rminstall ... you would use this to remove the currently installed driver set (located within the relevant /lib/modules/["kernel version"]/kernel/drivers/media directory to which they were installed)
make distclean ... cleans up the build configuration environment ... noteworthy is that it will set things up such that a following "make" build process will be against "/usr/src/[uname -r]” kernel source
make menuconfig ... this will open up the ncurses based menu that allows you to select only those components you wish to build and install

The building system offers some other make targets that may be useful for advanced users or developers. For listing the supported targets, please use make help.

Next, build/compile the modules from the source code with the command:

make

Note: For multi-core processor systems, the make command has available options that can be beneficial in terms of the reducing the amount of time required for the process' completion. Specifically, you can run "make -jN" (where "N" = 1 + the number of cores your cpu has ... i.e. if you have a dual core cpu use: make -j3 )
Information Regarding the Build Process
Pietro 
october 2012 by snearch
Testing your DVB device - LinuxTVWiki
Comparison of DTV testing applications

The following table lists the main features of the different command line DTV testing utilities. For specific information on usage, have a look at its specific wiki article.
feature utility dvb-apps zap Szap-s2 dvbtune and dvbstream from dvbtools dvbsnoop
download linuxtv.org/hg/dvb-apps http://mercurial.intuxication.org/hg/szap-s2 http://sourceforge.net/projects/dvbtools http://dvbsnoop.sourceforge.net
supported delivery systems DVB-S, DVB-C, DVB-T, ATSC DVB-S, DVB-S2 DVB-S, DVB-C, DVB-T DVB-S, DVB-C, DVB-T
comments useful for debugging, but inappropriate for newer delivery systems. satellite only. outdated. outdated, but still the most powerful tool for reading and parsing DVB tables. Hint: use another tool to tune and dvbsnoop in parallel to read data. Unfortunally, dvbsnoop misses support for newer descriptors.
supported features

channel scan for legacy systems
tuning
streaming
show signal strength/lock



tuning



tuning (dvbtune)
streaming (dvbstream)



analyse DVB tables and MPEG streams
show signal strength/lock
Pietro 
october 2012 by snearch
Startups: As a startup CEO what is your favorite productivity hack? - Quora
Prioritization Stage
1. Prioritize the most important task you need to get done (often the one you are putting off) It is critical to set objectives before working. - A great book on this topic is Eat That Frog - http://amzn.to/auq0Nf
2. Use AgileZen.com to map out all of the tasks of the company. This gives a macro view of whats going on and allows you to delegate tasks that may better be completed by another person. Trello.com and Asana.com are other Task Management options.
Delegation can be one of your best productivity tools!
3. Delegate (LIKE A BOSS) - When you enjoy what you do you will find yourself being much more productive. If you really suck at doing something, chances are there is someone out there that can probably do it for less than $5/hr. Check out Fiverr.com Elance.com ODesk.com etc etc...
Slow clap it out for globalization.
4. Use a whiteboard to list all of the tasks that are mine to accomplish. After looking at Agile Zen and delegating out tasks, I put mine on a white board. Usually this is 10-15 tasks.
5. Use a post-it note to record the 3 most important things I can do on that particular day. The post-it note beneficial because it has a size constraint.
...
3. Use Rescue Time to track your productivity. - Install Rescue Time on your computer and it measures how much time you spend doing particular activities. You then designate whether those activities are productive or not. It also emails you with a productivity summary for the week. This will show how much time you spend on Facebook or Youtube per week.
...
Alok Bhardwaj, Founder of Hidden Reflex
9 votes by Greg Maza, Akhil Kadangode, Robert James Collier, (more)
1. Do least desirable tasks first thing in the morning. Try to work 2-3 hours straight on getting stuff done first thing in thing in the morning, before email or anything else.
2. Do not read any news, anything similar while working.
3. Workspace is for work only.
4. Daily to-do list of 3-5 things you MUST get done.
5. Don't try to do too much, don't try to optimize too much, delegate, stay focused on the big picture.
6. Exercise, meditate everyday.
Profession  Startup  Arbeitstechniken  Pietro  Eat_That_Frog  Produktivität  messen  Rescue_Time 
october 2012 by snearch
Details about DVB frontend API
Sometime back, (some time in April) i proposed a patch which addressed the issue to scale "even those devices which have a weird scale or none". Though based on an older tree of mine, here is the patch again. If it looks good enough, i can port the patch to accomodate other devices as well. Regards, Manu
Pietro  SNR 
october 2012 by snearch
Re: [PATCH] stb0899: fix the limits for signal strength values - Patchwork
On 23.01.2012 20:43, Mauro Carvalho Chehab wrote:
> Hi Klaus,
>
> The patch didn't apply. It seems to be due to your emailer that mangled the
> whitespaces.

Sorry about that. Here it is again as an attachment.

> The patch looks correct on my eyes. Yet, I'd like to have Manu's ack on it.
>
> Em 19-01-2012 15:39, Klaus Schmidinger escreveu:
>> stb0899_read_signal_strength() adds an offset to the result of the table lookup.
>> That offset must correspond to the lowest value in the lookup table, to make sure
>> the result doesn't get below 0, which would mean a "very high" value since the
>> parameter is unsigned.
>> 'strength' and 'snr' need to be initialized to 0 to make sure they have a
>> defined result in case there is no "internal->lock".
>>
>> Signed-off-by: Klaus Schmidinger<Klaus.Schmidinger@tvdr.de>
>>
>> --- a/linux/drivers/media/dvb/frontends/stb0899_drv.c 2011-06-11 16:54:32.000000000 +0200
>> +++ b/linux/drivers/media/dvb/frontends/stb0899_drv.c 2011-06-11 16:23:00.000000000 +0200
>> @@ -67,7 +67,7 @@
>> * Crude linear extrapolation below -84.8dBm and above -8.0dBm.
>> */
>> static const struct stb0899_tab stb0899_dvbsrf_tab[] = {
>> - { -950, -128 },
>> + { -750, -128 },
>> { -748, -94 },
>> { -745, -92 },
>> { -735, -90 },
>> @@ -131,7 +131,7 @@
>> { -730, 13645 },
>> { -750, 13909 },
>> { -766, 14153 },
>> - { -999, 16383 }
>> + { -950, 16383 }
>> };
>>
>> /* DVB-S2 Es/N0 quant in dB/100 vs read value * 100*/
>> @@ -964,6 +964,7 @@
>>
>> int val;
>> u32 reg;
>> + *strength = 0;
>
> This is not needed, as strength is not initialized only on invalid delivery systems,
> where -EINVAL is returned.

What about the 'if' conditions within the valid delivery system cases?
For instance

case SYS_DSS:
if (internal->lock) {
...
if (STB0899_GETFIELD(VSTATUS_LOCKEDVIT, reg)) {
...
*strength = ...
}
}
break;

So there may be cases where strength has an undefined value, even
if this function returns 0.

>> switch (state->delsys) {
>> case SYS_DVBS:
>> case SYS_DSS:
>> @@ -987,7 +988,7 @@
>> val = STB0899_GETFIELD(IF_AGC_GAIN, reg);
>>
>> *strength = stb0899_table_lookup(stb0899_dvbs2rf_tab, ARRAY_SIZE(stb0899_dvbs2rf_tab) - 1, val);
>> - *strength += 750;
>> + *strength += 950;
>> dprintk(state->verbose, FE_DEBUG, 1, "IF_AGC_GAIN = 0x%04x, C = %d * 0.1 dBm",
>> val& 0x3fff, *strength);
>> }
Pietro  SNR 
october 2012 by snearch
[PATCH] stb0899: fix the limits for signal strength values
Well, as long as there are no negative values for strength... However, I don't quite see why the range is 750 - 950 for DVB-S and 750 - 999 for DVB-S2. Shouldn't this be the same maximum value in both cases? Klaus
SNR  Pietro 
october 2012 by snearch
Re: [linux-media] Re: [PATCH] stb0899: fix the limits for signal strength values -- Linux media
Well, as long as there are no negative values for strength... > However, I don't quite see why the range is 750 - 950 for DVB-S > and 750 - 999 for DVB-S2. Shouldn't this be the same maximum > value in both cases? This is a very good question. Unfortunately, I don't have the datasheets for this device. Manu shold be able to answer that better than me. Based on the table lookup routine, I suspect that what those tables are doing are to interpolate some log curve by breaking it into a few straight line segments. Changing from 999 to 950 will affect such interpolation. So, it is better to check this at the datasheets before changing from -999 to -950, or from -750 to -950. Manu, Could you please review it? Thanks! Mauro
Pietro  SNR 
october 2012 by snearch
Re: [PATCH] stb0899: fix the limits for signal strength values -- Linux media
[PATCH] stb0899: fix the limits for signal strength values The current minimal measures for strengh is 750 - 950, for table stb0899_dvbsrf_tab[], and 750 - 999, for stb0899_dvbs2rf_tab[]. Both are negative values. However, the strength measure is unsigned.
Pietro  SNR 
october 2012 by snearch
[PATCH] stb0899: fix the limits for signal strength values -- Linux media
stb0899_read_signal_strength() adds an offset to the result of the table lookup.
That offset must correspond to the lowest value in the lookup table, to make sure
the result doesn't get below 0, which would mean a "very high" value since the
parameter is unsigned.
'strength' and 'snr' need to be initialized to 0 to make sure they have a
defined result in case there is no "internal->lock".

Signed-off-by: Klaus Schmidinger <Klaus.Schmidinger@xxxxxxx>

--- a/linux/drivers/media/dvb/frontends/stb0899_drv.c 2011-06-11 16:54:32.000000000 +0200
+++ b/linux/drivers/media/dvb/frontends/stb0899_drv.c 2011-06-11 16:23:00.000000000 +0200
@@ -67,7 +67,7 @@
* Crude linear extrapolation below -84.8dBm and above -8.0dBm.
*/
static const struct stb0899_tab stb0899_dvbsrf_tab[] = {
- { -950, -128 },
+ { -750, -128 },
{ -748, -94 },
{ -745, -92 },
{ -735, -90 },
@@ -131,7 +131,7 @@
{ -730, 13645 },
{ -750, 13909 },
{ -766, 14153 },
- { -999, 16383 }
+ { -950, 16383 }
};
Pietro  SNR 
october 2012 by snearch
Re: [linux-media] Re: [PATCH] stb0899: fix the limits for signal strength values -- Linux media
stb0899: fix the limits for signal strength values stb0899_read_signal_strength() adds an offset to the result of the table lookup. That offset must correspond to the lowest value in the lookup table, to make sure the result doesn't get below 0, which would mean a "very high" value since the parameter is unsigned. 'strength' and 'snr' need to be initialized to 0 to make sure they have a defined result in case there is no "internal->lock". Signed-off-by: Klaus Schmidinger <Klaus.Schmidinger@xxxxxxx> --- a/linux/drivers/media/dvb/frontends/stb0899_drv.c 2011-06-11 16:54:32.000000000 +0200 +++ b/linux/drivers/media/dvb/frontends/stb0899_drv.c 2011-06-11 16:23:00.000000000 +0200 @@ -67,7 +67,7 @@ * Crude linear extrapolation below -84.8dBm and above -8.0dBm.
Pietro  SNR 
october 2012 by snearch
linux api fe_read_snr negative - Google-Suche
20 Jun 2005 – [linux-dvb] How do I turn the signal/noise, siganl strength into meaningful values? ... FE_READ_SNR and > > FE_READ_BER I get numbers but need to ... to fit the 16bit allowed by the API (multiply by 257, which is equivalent to (val << 8 | val). ... I return negative > numbers for no signal and small positive ...
Project  Pietro 
october 2012 by snearch

Copy this bookmark:



description:


tags: