Digiflower

From ZoneMinder Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

I've recently laid hands on a few Digi-Flower capture cards and found no indication that anyone has ever taken the time to poke at these cards with a digital multi-meter to discover how they are laid out.

I have two versions, the DVR2000B-R02, and the DVR2510-MP2. First ones were also sold as Huperlab DVR 2400 and probably Leadtek LTR-39608.

Digi-Flower DVR-2000B-R02: 16 input; 4 Fusion BT878A chips

The DVR2000B has four Fusion bt878A decoders and supports 16 composite inputs

Each bt878A device controls a pair of M/D'ers:

      GPIO[0,1,2] => M/D[1][A,B,C] (select pins)
      GPIO[18]    => M/D[1][Enable]

      GPIO[0,1,2] => M/D[2][A,B,C] (select pins)
      GPIO[20]    => M/D[2][Enable]

When an input has been routed the signal is split between the bt878A's MUX0 and a 4581CS Sync Separator. As far as I can tell the only output of the 4581CS that is used is the Odd/Even field output that is routed to GPIO[15] on the respective 878A

                     74HC4051A
 Comp-In (1-8)  => M/D[1] (X0-7) -> \   [ L/C/R ] (inductor/
                                     |= [network] capacitor/
 Comp-In (9-16) => M/D[2] (X0-7) -> /             resistor)

               4581CS Sync Separator
   L/C/R     /  Comp-In -> Odd/Even  => GPIO[15]
 [network] =|
             \ 878A: MUX0

There is also a fifth pair of Mux/Demux chips that are used to send one of 16 inputs to an RCA jack via a 6db video amp. This routing function is controlled by an Atmel AT89C2051 (8051 family) micro controller. I have not determined how to talk to the micro controller at this time. The I2C pins of the first bt878A is connected to the serial port of the micro controller.

There is also a set of 8 external device I/O ports to send or receive On/Off signals from motion detectors or drive alarm circuits, and an on board WatchDog relay output. These are controlled by GPIO[3-10,12-13] of the first 878A.

Anko no longer lists these cards: http://www.anko-tech.com/

lspci data for the DVR2000B ( these numbers seem very generic.. how can the specific card be known?)

02:00.0 PCI bridge [0604]: Hint Corp HB6 Universal PCI-PCI bridge (non-transparent mode) [3388:0021] (rev 11)
03:0c.0 Multimedia video controller [0400]: Brooktree Corporation Bt878 Video Capture [109e:036e] (rev 11)
03:0c.1 Multimedia controller [0480]: Brooktree Corporation Bt878 Audio Capture [109e:0878] (rev 11)
03:0d.0 Multimedia video controller [0400]: Brooktree Corporation Bt878 Video Capture [109e:036e] (rev 11)
03:0d.1 Multimedia controller [0480]: Brooktree Corporation Bt878 Audio Capture [109e:0878] (rev 11)
03:0e.0 Multimedia video controller [0400]: Brooktree Corporation Bt878 Video Capture [109e:036e] (rev 11)
03:0e.1 Multimedia controller [0480]: Brooktree Corporation Bt878 Audio Capture [109e:0878] (rev 11)
03:0f.0 Multimedia video controller [0400]: Brooktree Corporation Bt878 Video Capture [109e:036e] (rev 11)
03:0f.1 Multimedia controller [0480]: Brooktree Corporation Bt878 Audio Capture [109e:0878] (rev 11)

I've been able to get the DVR2000B working with this patch on linux-2.6.32 kernel----

diff -uNrp kernel-2.6.32.orig/drivers/media/video/bt8xx/bttv-cards.c kernel-2.6.32.new/drivers/media/video/bt8xx/bttv-cards.c
--- kernel-2.6.32.orig/drivers/media/video/bt8xx/bttv-cards.c	2010-03-31 18:11:38.506042269 -0600
+++ kernel-2.6.32.new/drivers/media/video/bt8xx/bttv-cards.c	2010-04-01 10:32:31.399044056 -0600
@@ -68,6 +68,8 @@ static void tibetCS16_init(struct bttv *
 static void kodicom4400r_muxsel(struct bttv *btv, unsigned int input);
 static void kodicom4400r_init(struct bttv *btv);
 
+static void digiflower_dvr2000b_muxsel(struct bttv *btv, unsigned int input);
+
 static void sigmaSLC_muxsel(struct bttv *btv, unsigned int input);
 static void sigmaSQ_muxsel(struct bttv *btv, unsigned int input);
 
@@ -326,6 +328,7 @@ static struct CARD {
 	{ 0x763d800b, BTTV_BOARD_GEOVISION_GV800S_SL,	"GeoVision GV-800(S) (slave)" },
 	{ 0x763d800c, BTTV_BOARD_GEOVISION_GV800S_SL,	"GeoVision GV-800(S) (slave)" },
 	{ 0x763d800d, BTTV_BOARD_GEOVISION_GV800S_SL,	"GeoVision GV-800(S) (slave)" },
+	{ 0x00000000, BTTV_BOARD_DIGIFLOWER_DVR2000B,	"Digi-Flower DVR2000B" },
 
 	{ 0x15401830, BTTV_BOARD_PV183,         "Provideo PV183-1" },
 	{ 0x15401831, BTTV_BOARD_PV183,         "Provideo PV183-2" },
@@ -2912,6 +2915,25 @@ struct tvcard bttv_tvcards[] = {
 		.tuner_type     = TUNER_ABSENT,
 		.tuner_addr	= ADDR_UNSET,
 	},
+	[BTTV_BOARD_DIGIFLOWER_DVR2000B] = {
+		.name           = "Digi-Flower DVR2000B (master?)",
+		.video_inputs   = 16,
+		/* .audio_inputs   = 0, */
+		/* .tuner          = UNSET, */
+		.svhs           = NO_SVHS,
+		.tuner_type	= TUNER_ABSENT,
+		.tuner_addr	= ADDR_UNSET,
+		/* .radio_addr	= ADDR_UNSET, */
+		.no_gpioirq	= 1,
+		.gpiomask2	= 0x140007,
+		.muxsel		= MUXSEL(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2),
+		.muxsel_hook	= digiflower_dvr2000b_muxsel,
+		.gpiomux	= { 0, 0, 0, 0 }, /* card has no audio */
+		.no_msp34xx	= 1,
+		.no_tda9875	= 1,
+		.no_tda7432	= 1,
+		.pll            = PLL_28,
+	},
 };
 
 static const unsigned int bttv_num_tvcards = ARRAY_SIZE(bttv_tvcards);
@@ -4548,6 +4570,21 @@ static void kodicom4400r_init(struct btt
 	master[btv->c.nr+2] = btv;
 }
 
+/* DB1 = Top connector fan-out.  DB2 = Bottom connector fan-out. */
+#define DB1    0x100000 
+#define DB2    0x040000
+
+static void digiflower_dvr2000b_muxsel(struct bttv *btv, unsigned int input)
+{
+	static const int masks[] = {
+		DB1,   DB1|1, DB1|2, DB1|3,
+		DB1|4, DB1|5, DB1|6, DB1|7,
+		DB2,   DB2|1, DB2|2, DB2|3,
+		DB2|4, DB2|5, DB2|6, DB2|7,
+	};
+	gpio_write(masks[input%16]);
+}
+
 /* The Grandtec X-Guard framegrabber card uses two Dual 4-channel
  * video multiplexers to provide up to 16 video inputs. These
  * multiplexers are controlled by the lower 8 GPIO pins of the
diff -uNrp kernel-2.6.32.orig/drivers/media/video/bt8xx/bttv.h kernel-2.6.32.new/drivers/media/video/bt8xx/bttv.h
--- kernel-2.6.32.orig/drivers/media/video/bt8xx/bttv.h	2010-03-31 23:22:03.987043302 -0600
+++ kernel-2.6.32.new/drivers/media/video/bt8xx/bttv.h	2010-03-31 23:21:45.412041507 -0600
@@ -185,6 +185,7 @@
 #define BTTV_BOARD_GEOVISION_GV800S	   0x9d
 #define BTTV_BOARD_GEOVISION_GV800S_SL	   0x9e
 #define BTTV_BOARD_PV183                   0x9f
+#define BTTV_BOARD_DIGIFLOWER_DVR2000B     0xa0
 
 
 /* more card-specific defines */


Digi-Flower DVR-2510-MP2: 16 input; 2 Fusion BT878A chips

The DVR2510 has two Fusion BT878A chips. A total of 16 composite inputs that are supported. Eight inputs are routed to each 878A chip, so only one M/D is needed for each 878A.

The two additional M/D are used to route inputs to the composite out monitor connection. This card differs most from its larger cousin in that the Enable pins of the M/D's are connected to the Atmel micro-controller, so the card is not usable until the micro-controller has been initialized. This won't be possible until a logic analyzer can be brought to bear on the problem.