Mailing List archive

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

[linux-dvb] Re: TechnoTrend PCI DVB-C 2.1 success



See details below. Again, any hints are greatly appreciated. I *don't* want
Windows on my VDR.

Stefan

Joachim Konig wrote:
> Does it work under Windows ? If yes, look for the symbol rate and the
> PIDs and
> change this in the init routine in dvb.c (search for pro 7 and change
> the DVB-C
> case). Also set the PIDs correct (that is not important for the tuning
> but...)
> Then check what QAM mode your provider uses.
> If it does not work under windows, try to get it work there first :)

It works fine under Windows using the following config (for CNN):
QAM_64, 6875000 symbols/s, Freq: 354000000 Hz, vpid 4097, apid 4353, service
id 3401 (I think this corresponds to the "pnr" in the linux driver).

I also modified dvb_frontend.c so that is does stay on the same freq all the
time. Specifically, I changed fe_zigzag() to use an offset of zero (soff=0).

# make insmod

# ./check-dvb-c-frontend
 status == 0x13: FE_HAS_POWER FE_HAS_SIGNAL FE_HAS_CARRIER
 status == 0x13: FE_HAS_POWER FE_HAS_SIGNAL FE_HAS_CARRIER
 status == 0x13: FE_HAS_POWER FE_HAS_SIGNAL FE_HAS_CARRIER

# cat check-dvb-c-frontend.c

#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <ctype.h>

#ifdef DVB_IN_KERNEL
#  include <linux/ost/frontend.h>
#  include <linux/ost/dmx.h>
#else
#  include <ost/frontend.h>
#  include <ost/dmx.h>
#endif


#define FRONTEND_DEV "/dev/ost/frontend0"

static
int check_frontend (void)
{
   int fd;
   FrontendStatus status;

   if ((fd = open (FRONTEND_DEV, O_RDONLY)) < 0) {
      fprintf (stderr, "failed opening '%s' !!!\n", FRONTEND_DEV);
      return -1;
   }

   do {
      ioctl (fd, FE_READ_STATUS, &status);
      printf (" status == 0x%02x: ", status);
      if (status & FE_HAS_POWER)
         printf ("FE_HAS_POWER ");
      if (status & FE_HAS_SIGNAL)
         printf ("FE_HAS_SIGNAL ");
      if (status & FE_SPECTRUM_INV)
         printf ("FE_SPECTRUM_INV ");
      if (status & FE_HAS_LOCK)
         printf ("FE_HAS_LOCK ");
      if (status & FE_HAS_CARRIER)
         printf ("FE_HAS_CARRIER ");
      if (status & FE_HAS_VITERBI)
         printf ("FE_HAS_VITERBI ");
      if (status & FE_HAS_SYNC)
         printf ("FE_HAS_SYNC ");
      if (status & FE_TUNER_HAS_LOCK)
         printf ("FE_TUNER_HAS_LOCK ");
      printf ("\n");
      usleep (5000000);
   } while (!(status & FE_HAS_LOCK));

   close (fd);
   return 0;
}


int main (int argc, char **argv)
{
   return check_frontend ();
}


messages :
Jan 12 15:37:22 localhost kernel: i2c-core.o: i2c core module
Jan 12 15:37:22 localhost kernel: Linux video capture interface: v1.00
Jan 12 15:37:22 localhost kernel: i2c-core.o: driver VES1893 DVB demodulator
registered.
Jan 12 15:37:22 localhost kernel: VES1893: init done
Jan 12 15:37:22 localhost kernel: i2c-core.o: driver VES1820 DVB demodulator
registered.
Jan 12 15:37:22 localhost kernel: VES1820: init done
Jan 12 15:37:22 localhost kernel: i2c-core.o: driver L64781 DVB demodulator
registered.
Jan 12 15:37:22 localhost kernel: init_SP8870:
Jan 12 15:37:22 localhost kernel: i2c-core.o: driver SP8870 DVB demodulator
registered.
Jan 12 15:37:22 localhost kernel: i2c-core.o: driver tda8083 DVB demodulator
registered.
Jan 12 15:37:22 localhost kernel: tda8083: init done
Jan 12 15:37:22 localhost kernel: i2c-core.o: driver stv0299 DVB demodulator
registered.
Jan 12 15:37:22 localhost kernel: stv0299: init done
Jan 12 15:37:22 localhost kernel: i2c-core.o: driver i2c TV tuner driver
registered.
Jan 12 15:37:22 localhost kernel: saa7146_core.o: saa7146(1): bus:2, rev:1,
mem:0xcc91e000.
Jan 12 15:37:22 localhost kernel: VES1820: attaching VES1820 at 0x12
Jan 12 15:37:22 localhost kernel: i2c-core.o: client [VES1820] registered to
adapter [saa7146(1)](pos. 0).
Jan 12 15:37:22 localhost kernel: VES1820: init chip
Jan 12 15:37:22 localhost kernel: VES1820: pwm=00
Jan 12 15:37:23 localhost kernel: VES1820: attached to adapter saa7146(1)
Jan 12 15:37:23 localhost kernel: L64781: probably an EEPROM @ 0x55,
skipping ...
Jan 12 15:37:23 localhost kernel: SP8870: no SP8870 found ...
Jan 12 15:37:23 localhost kernel: tuner: chip found @ 0x62
Jan 12 15:37:23 localhost kernel: i2c-core.o: client [i2c tv tuner chip]
registered to adapter [saa7146(1)](pos. 1).
Jan 12 15:37:23 localhost kernel: i2c-core.o: adapter saa7146(1) registered
as adapter 0.
Jan 12 15:37:23 localhost kernel: dvb: init_dvb
Jan 12 15:37:23 localhost kernel: bootarm: debi test OK
Jan 12 15:37:23 localhost kernel: bootarm: load boot code
Jan 12 15:37:24 localhost kernel: bootarm: load dram code
Jan 12 15:37:24 localhost kernel: Unable to load 'arm_firm/Root'.
Jan 12 15:37:25 localhost kernel: Writing DRAM block 0
..
Jan 12 15:37:25 localhost kernel: Writing DRAM block 81
Jan 12 15:37:25 localhost kernel: bootarm: load dpram code
Jan 12 15:37:25 localhost kernel: Unable to load 'arm_firm/Dpram'.
Jan 12 15:37:26 localhost kernel: dvb0: AV7111 - firm f0240009, rtsl
b0250018, vid 71010068, app 00010002
Jan 12 15:37:26 localhost kernel: adapter id = 25  addr = 12
Jan 12 15:37:26 localhost kernel: adapter id = 02  addr = c4
Jan 12 15:37:26 localhost kernel: initfront tunertype=22 dvbtype=2
Jan 12 15:37:26 localhost kernel: VES1820: init chip
Jan 12 15:37:26 localhost kernel: VES1820: pwm=00
Jan 12 15:37:27 localhost kernel: GPIO0 irq 5 32
Jan 12 15:37:27 localhost kernel: GPIO0 irq 05
Jan 12 15:37:27 localhost kernel: dvb0: 01 01 01 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Jan 12 15:37:27 localhost kernel: tuner: type set to 22 (SP5659C)
Jan 12 15:37:27 localhost kernel: tune(): para->Frequency=354000000
Jan 12 15:37:27 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:37:27 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:37:27 localhost kernel: dvb: dvbdevice found
Jan 12 15:37:27 localhost kernel: dvb: 1 dvb(s) found!
Jan 12 15:37:28 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:37:28 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:37:33 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:37:33 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:37:36 localhost kernel: GPIO0 irq 5 14
Jan 12 15:37:36 localhost kernel: GPIO0 irq 05
Jan 12 15:37:36 localhost kernel: dvb0: 01 02 01 00 56 69 61 63 63 65 73 73
00 03   Viaccess
Jan 12 15:37:38 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:37:38 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:37:38 localhost kernel: GPIO0 irq 5 6
Jan 12 15:37:38 localhost kernel: GPIO0 irq 05
Jan 12 15:37:38 localhost kernel: dvb0: 0e 04 30 00 56 69 0 Vi
Jan 12 15:37:43 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:37:43 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:37:48 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:37:48 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:37:52 localhost kernel: try to open DEVICE_FRONTEND_0
Jan 12 15:37:53 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:37:53 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:37:58 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:37:58 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:38:03 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:38:03 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:38:08 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:38:08 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:38:13 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:38:13 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:38:18 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:38:18 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:38:23 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:38:23 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:38:28 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:38:28 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:38:33 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:38:33 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:38:38 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:38:38 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:38:44 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:38:44 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:38:49 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:38:49 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:38:54 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:38:54 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:38:59 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:38:59 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:39:04 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:39:04 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:39:09 localhost kernel: tuner: tv freq set to 354000000
Jan 12 15:39:09 localhost kernel: buffer == 0x18 0x62 0x85 0x84
Jan 12 15:42:50 localhost kernel: try to open DEVICE_FRONTEND_0





-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.


Home | Main Index | Thread Index