Page 1 of 1

16 channel generic card, almost working...

Posted: Sun Sep 23, 2007 9:29 pm
by JohnnyLaww
Okay, I have a generic 16 channel 4 chip bt878a. I have 4 cameras connected to the card, although there are no markings which indicate which pigtail bnc corresponds to which video port. I have been able to get video only from /dev/video0(0). However, I also get the same video feed from /dev/video1(0) and /dev/video2(0) and /dev/video3(0). I am not sure where to go from here. I have attempted to change the card type to almost every card type available. type=77 seems to work the best. I will try to get a picture of the card and post it soon, until then here is dmesg, lspci and scanpci.

lspci:
ohnnylaww@HawkEye:/usr/share/zoneminder$ sudo lspci -vv

02:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (4000ns min, 10000ns max)
Interrupt: pin A routed to IRQ 19
Region 0: Memory at d4000000 (32-bit, prefetchable)
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

02:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin A routed to IRQ 19
Region 0: Memory at d4001000 (32-bit, prefetchable)
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

02:0d.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (4000ns min, 10000ns max)
Interrupt: pin A routed to IRQ 20
Region 0: Memory at d4002000 (32-bit, prefetchable)
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

02:0d.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin A routed to IRQ 20
Region 0: Memory at d4003000 (32-bit, prefetchable)
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

02:0e.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (4000ns min, 10000ns max)
Interrupt: pin A routed to IRQ 21
Region 0: Memory at d4004000 (32-bit, prefetchable)
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

02:0e.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin A routed to IRQ 21
Region 0: Memory at d4005000 (32-bit, prefetchable)
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

02:0f.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (4000ns min, 10000ns max)
Interrupt: pin A routed to IRQ 22
Region 0: Memory at d4006000 (32-bit, prefetchable)
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

02:0f.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin A routed to IRQ 22
Region 0: Memory at d4007000 (32-bit, prefetchable)
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-



Dmesg:

johnnylaww@HawkEye:/usr/share/zoneminder$ sudo dmesg | grep bttv
[ 41.460537] bttv: driver version 0.9.17 loaded
[ 41.460542] bttv: using 8 buffers with 2080k (520 pages) each for capture
[ 41.460609] bttv: Bt8xx card found (0).
[ 41.460658] bttv0: Bt878 (rev 17) at 0000:02:0c.0, irq: 19, latency: 32, mmio: 0xd4000000
[ 41.460667] bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[ 41.460701] bttv0: gpio: en=00000000, out=00000000 in=000fffff [init]
[ 41.525565] bttv0: using tuner=4
[ 41.525572] bttv0: i2c: checking for TDA9875 @ 0xb0... not found
[ 41.526043] bttv0: i2c: checking for TDA7432 @ 0x8a... not found
[ 41.526506] bttv0: i2c: checking for TDA9887 @ 0x86... not found
[ 41.585349] bttv0: registered device video0
[ 41.585380] bttv0: registered device vbi0
[ 41.585407] bttv0: PLL: 28636363 => 35468950 .ACPI: PCI Interrupt Link [APCJ] enabled at IRQ 22
[ 41.615938] bttv: Bt8xx card found (1).
[ 41.616211] bttv1: Bt878 (rev 17) at 0000:02:0d.0, irq: 20, latency: 32, mmio: 0xd4002000
[ 41.616230] bttv1: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[ 41.616267] bttv1: gpio: en=00000000, out=00000000 in=009fffff [init]
[ 41.626234] bttv1: using tuner=4
[ 41.626238] bttv1: i2c: checking for TDA9875 @ 0xb0... not found
[ 41.626711] bttv1: i2c: checking for TDA7432 @ 0x8a... not found
[ 41.627174] bttv1: i2c: checking for TDA9887 @ 0x86... not found
[ 41.636593] bttv1: registered device video1
[ 41.636624] bttv1: registered device vbi1
[ 41.636651] bttv1: PLL: 28636363 => 35468950 .. ok
[ 41.667842] bttv: Bt8xx card found (2).
[ 41.668112] bttv2: Bt878 (rev 17) at 0000:02:0e.0, irq: 21, latency: 32, mmio: 0xd4004000
[ 41.668130] bttv2: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[ 41.668167] bttv2: gpio: en=00000000, out=00000000 in=002f7fff [init]
[ 41.678204] bttv2: using tuner=4
[ 41.678208] bttv2: i2c: checking for TDA9875 @ 0xb0... not found
[ 41.678790] bttv2: i2c: checking for TDA7432 @ 0x8a... not found
[ 41.679253] bttv2: i2c: checking for TDA9887 @ 0x86... not found
[ 41.688566] bttv2: registered device video2
[ 41.688608] bttv2: registered device vbi2
[ 41.688635] bttv2: PLL: 28636363 => 35468950 .. ok
[ 41.719753] bttv: Bt8xx card found (3).
[ 41.720025] bttv3: Bt878 (rev 17) at 0000:02:0f.0, irq: 22, latency: 32, mmio: 0xd4006000
[ 41.720042] bttv3: using: GrandTec Multi Capture Card (Bt878) [card=77,insmod option]
[ 41.720078] bttv3: gpio: en=00000000, out=00000000 in=00bff5ff [init]
[ 41.730057] bttv3: using tuner=4
[ 41.730061] bttv3: i2c: checking for TDA9875 @ 0xb0... not found
[ 41.730531] bttv3: i2c: checking for TDA7432 @ 0x8a... not found
[ 41.730994] bttv3: i2c: checking for TDA9887 @ 0x86... not found
[ 41.740522] bttv3: registered device video3
[ 41.740557] bttv3: registered device vbi3
[ 41.740584] bttv3: PLL: 28636363 => 35468950 .. ok
[ 62.437976] bttv0: PLL can sleep, using XTAL (28636363).
[ 1217.691655] bttv0: OCERR @ 37c4b014,bits: HSYNC OCERR*
[ 1348.751343] bttv1: PLL can sleep, using XTAL (28636363).
[ 1676.828831] bttv2: PLL can sleep, using XTAL (28636363).
[ 1737.315212] bttv3: PLL can sleep, using XTAL (28636363).
[ 2116.202546] bttv3: OCERR @ 37dd0014,bits: HSYNC OCERR*


and of course scanpci

johnnylaww@HawkEye:/usr/share/zoneminder$ sudo scanpci -vv

pci bus 0x0002 cardnum 0x0c function 0x00: vendor 0x109e device 0x036e
Brooktree Corporation Bt878 Video Capture
STATUS 0x0290 COMMAND 0x0006
CLASS 0x04 0x00 0x00 REVISION 0x11
BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x00
BASE0 0xd4000008 addr 0xd4000000 MEM PREFETCHABLE
MAX_LAT 0x28 MIN_GNT 0x10 INT_PIN 0x01 INT_LINE 0x0b

pci bus 0x0002 cardnum 0x0c function 0x01: vendor 0x109e device 0x0878
Brooktree Corporation Bt878 Audio Capture
STATUS 0x0290 COMMAND 0x0002
CLASS 0x04 0x80 0x00 REVISION 0x11
BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x00
BASE0 0xd4001008 addr 0xd4001000 MEM PREFETCHABLE
MAX_LAT 0xff MIN_GNT 0x04 INT_PIN 0x01 INT_LINE 0x0b

pci bus 0x0002 cardnum 0x0d function 0x00: vendor 0x109e device 0x036e
Brooktree Corporation Bt878 Video Capture
STATUS 0x0290 COMMAND 0x0006
CLASS 0x04 0x00 0x00 REVISION 0x11
BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x00
BASE0 0xd4002008 addr 0xd4002000 MEM PREFETCHABLE
MAX_LAT 0x28 MIN_GNT 0x10 INT_PIN 0x01 INT_LINE 0x05

pci bus 0x0002 cardnum 0x0d function 0x01: vendor 0x109e device 0x0878
Brooktree Corporation Bt878 Audio Capture
STATUS 0x0290 COMMAND 0x0002
CLASS 0x04 0x80 0x00 REVISION 0x11
BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x00
BASE0 0xd4003008 addr 0xd4003000 MEM PREFETCHABLE
MAX_LAT 0xff MIN_GNT 0x04 INT_PIN 0x01 INT_LINE 0x05

pci bus 0x0002 cardnum 0x0e function 0x00: vendor 0x109e device 0x036e
Brooktree Corporation Bt878 Video Capture
STATUS 0x0290 COMMAND 0x0006
CLASS 0x04 0x00 0x00 REVISION 0x11
BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x00
BASE0 0xd4004008 addr 0xd4004000 MEM PREFETCHABLE
MAX_LAT 0x28 MIN_GNT 0x10 INT_PIN 0x01 INT_LINE 0x0b

pci bus 0x0002 cardnum 0x0e function 0x01: vendor 0x109e device 0x0878
Brooktree Corporation Bt878 Audio Capture
STATUS 0x0290 COMMAND 0x0002
CLASS 0x04 0x80 0x00 REVISION 0x11
BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x00
BASE0 0xd4005008 addr 0xd4005000 MEM PREFETCHABLE
MAX_LAT 0xff MIN_GNT 0x04 INT_PIN 0x01 INT_LINE 0x0b

pci bus 0x0002 cardnum 0x0f function 0x00: vendor 0x109e device 0x036e
Brooktree Corporation Bt878 Video Capture
STATUS 0x0290 COMMAND 0x0006
CLASS 0x04 0x00 0x00 REVISION 0x11
BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x00
BASE0 0xd4006008 addr 0xd4006000 MEM PREFETCHABLE
MAX_LAT 0x28 MIN_GNT 0x10 INT_PIN 0x01 INT_LINE 0x05

pci bus 0x0002 cardnum 0x0f function 0x01: vendor 0x109e device 0x0878
Brooktree Corporation Bt878 Audio Capture
STATUS 0x0290 COMMAND 0x0002
CLASS 0x04 0x80 0x00 REVISION 0x11
BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x00
BASE0 0xd4007008 addr 0xd4007000 MEM PREFETCHABLE
MAX_LAT 0xff MIN_GNT 0x04 INT_PIN 0x01 INT_LINE 0x05



here is modprobe.d/bttv


options bttv card=77,77,77,77 tuner=4,4,4,4


using xawtv or tvtime I can only see the camera connected to /dev/video0(0), so I am at a loss now, any help will be appreciated.

Here is the link to the image of my card Image

Thank you
[EDIT By Cordel] Removed all the unneeded extra info from lspci and scanpci.

Posted: Sun Sep 23, 2007 10:11 pm
by jameswilson
try using video 1 and channel 1 and tryign again

Posted: Sun Sep 23, 2007 10:53 pm
by JohnnyLaww
Okay added video1(1) and it comes up as a blue screen in ZM? Any other suggestions? is it a good thing that it's blue?

To expand on this , I have also added video2(2) and video3(3) they also appear as blue images...

Posted: Sun Sep 23, 2007 11:29 pm
by jameswilson
i would then move my camera to all available ports, to find which is 2 etc

Posted: Sun Sep 23, 2007 11:36 pm
by JohnnyLaww
Yeah, I tried moving from pigtail to piggy but the screen stays blue, I never get any image other than on video(0), video1(0), video2(0), and video3(0) and this is always the same image as is on video0(0). I know the card is good as I had it working under xp with the crappy software that came with it and I had 4 cameras working. This card is at least 5 years old and it may be high time to replace it with an 8 port 240fps card, if I cant get it to work...I guess I just assumed that if I had 1 camera working it should not be too difficult to get 4 working....

Posted: Sun Sep 23, 2007 11:42 pm
by cordel
Accroding to your info that you pasted above and I just cleaned up, you have a kodicom card. Try card=133,132,133,133
[edit] and now that I see the picture it is at least a kodicom clone with multiplexor chip.
So you configure the channels as 0-15 and you can place any of these channels on any of the four devices (/dev/video0 to /dev/video3)

Posted: Sun Sep 23, 2007 11:53 pm
by jameswilson
i used to have one of these it isnt a kodicom clone but id have said it was 133,133,133,133. I remember em all being the same either way

Posted: Mon Sep 24, 2007 12:12 am
by JohnnyLaww
I changed modprobe to card=133,132,133,133 and now I have no video at all, I tried video0-3 and channels 0-3 on each, all resulted in blue images..also, the image of the kodicom 4400r does not match the image of my card as I posted at the top of this thread..

Posted: Mon Sep 24, 2007 12:18 am
by cordel
Blue screen unlike winblows blue screens are a good thing.
The images don't match as this is a clone card.
With the extra mutiplexor chip, channels are not bound to one chip but are in a since shared amongst the chips. You should be able to do /dev/videoX (0-15) on each chip just not the same channel at the same time on other devices (ie /dev/video0 (3) and /dev/video1 (3) ).
Check all the channels 0-15

Posted: Mon Sep 24, 2007 12:58 am
by JohnnyLaww
Ok with type=133,132,133,133 I went through all devices video0-3 channels 0-15 on each, they all show up blue. With card type=77,77,77,77 I was able to see the same camera on video0(0), video1(0), video2(0), and video3(0). Any other ideas?

Posted: Mon Sep 24, 2007 1:32 am
by cordel
Okay, I was hoping you would understand what I meant as you would have only had to go through the channels on one device and didn't need all four, but we will just chalk that to thoroughness ;)
You might try card=102,102,102,102 as some of the other clones use that.

Posted: Mon Sep 24, 2007 2:09 am
by JohnnyLaww
Well, 102,102,102,102 provides only camera1 on video0(0). All the other channels appear blue. I cant seem to get any other cameras to come up and I have three connected currently.

Posted: Thu Oct 04, 2007 4:13 pm
by qriff
Blue is for no-signal, no cable. ZM_SIGNAL_CHECK_COLOUR
On our generic four port bt878 all the ports are /dev/video0 (Device Channel 0-3)

Posted: Thu Oct 04, 2007 4:21 pm
by jameswilson
try 131,131,131,131

i definetly used one of these before. Its a tiger or something like that. Its on the bttv gallery if you want to look through