This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DS90UB960-Q1: No Video streaming in between DS90UB960 and DS90UB953

Part Number: DS90UB960-Q1

I am trying to stream video on raspberry pi4 from OV9281 sensor via  DS90UB953 and  DS90UB960. But there no video data. I can able to read all parameter from camera module. 

Here is the Ser and Deser configuration code. Also attached the both ser and deser reg dumb,  Camera information I could able read after the configuration also attached.

camera data lanes: 2, lane data rate: 800000000 bps

Please help

python script

i2c_bus = SMBus(10)
i2c_addr = 0x3d
remote_i2c_addr = 0x18
camera_i2c_addr = 0x60
reg = 0x78

print ("Init Deserializer")
print ("Deserializer Reset")
i2c_bus.write_byte_data(i2c_addr,0x01,0x03) #
sleep(0.1)
print ("GEN CONFG")
i2c_bus.write_byte_data(i2c_addr,0x02,0x3a) # 0011 1010 old 38
print ("BCC WDT")
i2c_bus.write_byte_data(i2c_addr,0x07,0xfe) #
print ("BCC WDT")
i2c_bus.write_byte_data(i2c_addr,0x46,0x20) #
print ("FS CTRL")
i2c_bus.write_byte_data(i2c_addr,0x18,0x0f)# FrameSync Generation Enable
print ("CSI PLL CTRL")
i2c_bus.write_byte_data(i2c_addr,0x1f,0x0a)# 0000 1010 200mhz pll 800mbps speed
print ("FPD3_CAP")
i2c_bus.write_byte_data(i2c_addr,0x4a,0x10) # 0001 0000
print ("RAW EMBED DTYPE")
i2c_bus.write_byte_data(i2c_addr,0x4B,0x12) #0001 0010
print ("FPD3_PORT_SEL")
i2c_bus.write_byte_data(i2c_addr,0x4c,0x01) # RX_PORT0
print ("Link Error")
i2c_bus.write_byte_data(i2c_addr,0xb9,0x03) # <
print ("GPIO CTL")
i2c_bus.write_byte_data(i2c_addr,0x0f,0xff) #gpio input
print ("BC GPIO1 CTL")
i2c_bus.write_byte_data(i2c_addr,0x6E,0x00)
print ("BC GPI23 CTL")
i2c_bus.write_byte_data(i2c_addr,0x6f,0x45)
print ("BCC ERR CTL")
i2c_bus.write_byte_data(i2c_addr,0x46,0x00) # 0000 0000
print ("enable pass throu")
i2c_bus.write_byte_data(i2c_addr,0x58,0xda) # 1101 1110 enable pass throu
print ("i2c time")
i2c_bus.write_byte_data(i2c_addr,0x09,0xfc) # 1111 110
i2c_bus.write_byte_data(i2c_addr,0x5e,0x52) #0010 1001 0101 0010
i2c_bus.write_byte_data(i2c_addr,0x6d,0xf8) # 1111 1000
print ("PORT_CONIFG")
i2c_bus.write_byte_data(i2c_addr,0x7c,0x3f) # 0011 1111
print ("CSI_PORT_SEL")
i2c_bus.write_byte_data(i2c_addr,0x32,0x01) # CSI0 select
print ("CSI_CTL1")
i2c_bus.write_byte_data(i2c_addr,0x33,0x63) # 0110 0011 of 2f
print ("CSI_CTL2")
i2c_bus.write_byte_data(i2c_addr,0x34,0x0d) # 0110 0011 of 2f
print ("CSI_CTL2")
i2c_bus.write_byte_data(i2c_addr,0x21,0x15) # 0000 0101 CSI_EN & CSI0 4L
print ("FWD_PORT")
i2c_bus.write_byte_data(i2c_addr,0x20,0xee) # 1110 0000 forwarding of RX 0 to CSI0

print ("Init Serializer")
print ("Serializer Reset")
i2c_bus.write_byte_data(remote_i2c_addr,0x01,0x03) # ser reset
print ("General_CFG")
sleep(0.1)
i2c_bus.write_byte_data(remote_i2c_addr,0x02,0x52) #0101 0010 cs2 cont clk 2 lane crc enabled 3.3v i2c
print ("FW CH MODE_SEL")
i2c_bus.write_byte_data(remote_i2c_addr,0x03,0x00) #0000 0011 -011: CSI-2 synchronous deser Clock
print ("BC_MODE_SELECT")
i2c_bus.write_byte_data(remote_i2c_addr,0x04,0x00) #0000 0101
print ("PLLCLK_CTRL")
i2c_bus.write_byte_data(remote_i2c_addr,0x05,0x03) # 0000 0011 : CLKIN Div by 1 0: 24.2 MHz to 25.5 MHz, set for 2 Gbps line rate
print ("CLKOUT_CTRL0")
i2c_bus.write_byte_data(remote_i2c_addr,0x06,0x41) # 0000 0001
print ("CLKOUT_CTRL1")
i2c_bus.write_byte_data(remote_i2c_addr,0x07,0x28) # 0000 0001
print ("BCC_WATCHDOG")
i2c_bus.write_byte_data(remote_i2c_addr,0x08,0xfe) # 0: Enables BCC Watchdog Timer operation
print ("I2C_CONTROL1")
i2c_bus.write_byte_data(remote_i2c_addr,0x09,0x1e) # 0001 1110
print ("I2C_CONTROL2")
i2c_bus.write_byte_data(remote_i2c_addr,0x0a,0xc9) # 0001 0000 c9 set during testing may be need to change
print ("GPIO DATA")
i2c_bus.write_byte_data(remote_i2c_addr,0x0d,0xf0) # gpio remote enable
print ("GPIO_INPUT_CTRL")
i2c_bus.write_byte_data(remote_i2c_addr,0x0e,0xf0) # all gpio conf as output and map to remote enable
print ("ALARM_BC_EN")
i2c_bus.write_byte_data(remote_i2c_addr,0x1e,0x03) # Enable CRC_ERR alarm. Enable LINK_DETECT alarm.
print ("CSI_PKT_HDR_TINIT_CTRL")
i2c_bus.write_byte_data(remote_i2c_addr,0x31,0x07) # 0000 0111 CSI-2 Initial Time after power up
print ("BCC_CONFIG")
i2c_bus.write_byte_data(remote_i2c_addr,0x32,0xc9) # 1100 1001 I2C Pass-Through All Transactions. Parity Checker Enable.
print ("Back Channel Control")
i2c_bus.write_byte_data(remote_i2c_addr,0x49,0x00) # 0000 0000

-----------------------------------------------------------------
De-Serializer Register Map
-----------------------------------------------------------------
DeSer Reg 00 = 7a
DeSer Reg 01 = 00
DeSer Reg 02 = 3a
DeSer Reg 03 = 40
DeSer Reg 04 = c0
DeSer Reg 05 = 01
DeSer Reg 06 = 00
DeSer Reg 07 = fe
DeSer Reg 08 = 1c
DeSer Reg 09 = fc
DeSer Reg 0a = 7a
DeSer Reg 0b = 7a
DeSer Reg 0c = 0f
DeSer Reg 0d = b9
DeSer Reg 0e = 00
DeSer Reg 0f = ff
DeSer Reg 10 = 00
DeSer Reg 11 = 00
DeSer Reg 12 = 00
DeSer Reg 13 = 00
DeSer Reg 14 = 00
DeSer Reg 15 = 00
DeSer Reg 16 = 00
DeSer Reg 17 = 00
DeSer Reg 18 = 07
DeSer Reg 19 = 00
DeSer Reg 1a = 00
DeSer Reg 1b = 00
DeSer Reg 1c = 00
DeSer Reg 1d = 00
DeSer Reg 1e = 04
DeSer Reg 1f = 0a
DeSer Reg 20 = ee
DeSer Reg 21 = 15
DeSer Reg 22 = 00
DeSer Reg 23 = 00
DeSer Reg 24 = 00
DeSer Reg 25 = 00
DeSer Reg 26 = 00
DeSer Reg 27 = 00
DeSer Reg 28 = 00
DeSer Reg 29 = 00
DeSer Reg 2a = 00
DeSer Reg 2b = 00
DeSer Reg 2c = 00
DeSer Reg 2d = 00
DeSer Reg 2e = 00
DeSer Reg 2f = 00
DeSer Reg 30 = 00
DeSer Reg 31 = 00
DeSer Reg 32 = 01
DeSer Reg 33 = 63
DeSer Reg 34 = 0d
DeSer Reg 35 = 01
DeSer Reg 36 = 00
DeSer Reg 37 = 03
DeSer Reg 38 = 00
DeSer Reg 39 = 00
DeSer Reg 3a = 00
DeSer Reg 3b = 00
DeSer Reg 3c = 00
DeSer Reg 3d = 00
DeSer Reg 3e = 00
DeSer Reg 3f = 00
DeSer Reg 40 = 00
DeSer Reg 41 = a9
DeSer Reg 42 = 71
DeSer Reg 43 = 01
DeSer Reg 44 = 00
DeSer Reg 45 = 00
DeSer Reg 46 = 00
DeSer Reg 47 = 00
DeSer Reg 48 = 00
DeSer Reg 49 = 00
DeSer Reg 4a = 00
DeSer Reg 4b = 12
DeSer Reg 4c = 01
DeSer Reg 4d = 13
DeSer Reg 4e = 04
DeSer Reg 4f = 39
DeSer Reg 50 = b2
DeSer Reg 51 = 08
DeSer Reg 52 = 00
DeSer Reg 53 = 02
DeSer Reg 54 = 00
DeSer Reg 55 = 00
DeSer Reg 56 = 00
DeSer Reg 57 = 00
DeSer Reg 58 = da
DeSer Reg 59 = 00
DeSer Reg 5a = 00
DeSer Reg 5b = 30
DeSer Reg 5c = 00
DeSer Reg 5d = 00
DeSer Reg 5e = 52
DeSer Reg 5f = 00
DeSer Reg 60 = 00
DeSer Reg 61 = 00
DeSer Reg 62 = 00
DeSer Reg 63 = 00
DeSer Reg 64 = 00
DeSer Reg 65 = 00
DeSer Reg 66 = 00
DeSer Reg 67 = 00
DeSer Reg 68 = 00
DeSer Reg 69 = 00
DeSer Reg 6a = 00
DeSer Reg 6b = 00
DeSer Reg 6c = 00
DeSer Reg 6d = f8
DeSer Reg 6e = 00
DeSer Reg 6f = 45
DeSer Reg 70 = 2b
DeSer Reg 71 = 2c
DeSer Reg 72 = e4
DeSer Reg 73 = 00
DeSer Reg 74 = 00
DeSer Reg 75 = 00
DeSer Reg 76 = 00
DeSer Reg 77 = c5
DeSer Reg 78 = 00
DeSer Reg 79 = 01
DeSer Reg 7a = 00
DeSer Reg 7b = 00
DeSer Reg 7c = 3b
DeSer Reg 7d = 00
DeSer Reg 7e = 00
DeSer Reg 7f = 00
DeSer Reg 80 = 00
DeSer Reg 81 = 00
DeSer Reg 82 = 00
DeSer Reg 83 = 00
DeSer Reg 84 = 00
DeSer Reg 85 = 00
DeSer Reg 86 = 00
DeSer Reg 87 = 00
DeSer Reg 88 = 00
DeSer Reg 89 = 00
DeSer Reg 8a = 00
DeSer Reg 8b = 00
DeSer Reg 8c = 00
DeSer Reg 8d = 00
DeSer Reg 8e = 00
DeSer Reg 8f = 00
DeSer Reg 90 = 00
DeSer Reg 91 = 00
DeSer Reg 92 = 00
DeSer Reg 93 = 00
DeSer Reg 94 = 00
DeSer Reg 95 = 00
DeSer Reg 96 = 00
DeSer Reg 97 = 00
DeSer Reg 98 = 00
DeSer Reg 99 = 00
DeSer Reg 9a = 00
DeSer Reg 9b = 00
DeSer Reg 9c = 00
DeSer Reg 9d = 00
DeSer Reg 9e = 00
DeSer Reg 9f = 00
DeSer Reg a0 = 00
DeSer Reg a1 = 00
DeSer Reg a2 = 00
DeSer Reg a3 = 00
DeSer Reg a4 = 00
DeSer Reg a5 = 1d
DeSer Reg a6 = 00
DeSer Reg a7 = 00
DeSer Reg a8 = 00
DeSer Reg a9 = 00
DeSer Reg aa = 00
DeSer Reg ab = 00
DeSer Reg ac = 00
DeSer Reg ad = 00
DeSer Reg ae = 00
DeSer Reg af = 00
DeSer Reg b0 = 1c
DeSer Reg b1 = 3a
DeSer Reg b2 = 14
DeSer Reg b3 = 08
DeSer Reg b4 = 25
DeSer Reg b5 = 00
DeSer Reg b6 = 18
DeSer Reg b7 = 00
DeSer Reg b8 = f8
DeSer Reg b9 = 03
DeSer Reg ba = 83
DeSer Reg bb = 74
DeSer Reg bc = 80
DeSer Reg bd = 00
DeSer Reg be = 00
DeSer Reg bf = 00
DeSer Reg c0 = 00
DeSer Reg c1 = 00
DeSer Reg c2 = 00
DeSer Reg c3 = 00
DeSer Reg c4 = 00
DeSer Reg c5 = 00
DeSer Reg c6 = 00
DeSer Reg c7 = 00
DeSer Reg c8 = 00
DeSer Reg c9 = 00
DeSer Reg ca = 00
DeSer Reg cb = 00
DeSer Reg cc = 00
DeSer Reg cd = 00
DeSer Reg ce = 00
DeSer Reg cf = 00
DeSer Reg d0 = 00
DeSer Reg d1 = 43
DeSer Reg d2 = 94
DeSer Reg d3 = 03
DeSer Reg d4 = 60
DeSer Reg d5 = f2
DeSer Reg d6 = 00
DeSer Reg d7 = 02
DeSer Reg d8 = 00
DeSer Reg d9 = 00
DeSer Reg da = 00
DeSer Reg db = 00
DeSer Reg dc = 00
DeSer Reg dd = 00
DeSer Reg de = 00
DeSer Reg df = 00
DeSer Reg e0 = 00
DeSer Reg e1 = 00
DeSer Reg e2 = 00
DeSer Reg e3 = 00
DeSer Reg e4 = 00
DeSer Reg e5 = 00
DeSer Reg e6 = 00
DeSer Reg e7 = 00
DeSer Reg e8 = 00
DeSer Reg e9 = 00
DeSer Reg ea = 00
DeSer Reg eb = 00
DeSer Reg ec = 00
DeSer Reg ed = 00
DeSer Reg ee = 00
DeSer Reg ef = 00
DeSer Reg f0 = 5f
DeSer Reg f1 = 55
DeSer Reg f2 = 42
DeSer Reg f3 = 39
DeSer Reg f4 = 36
DeSer Reg f5 = 30
DeSer Reg f6 = 00
DeSer Reg f7 = 00
DeSer Reg f8 = 00
DeSer Reg f9 = 00
DeSer Reg fa = 00
DeSer Reg fb = 00
DeSer Reg fc = 00
DeSer Reg fd = 00
DeSer Reg fe = 00
DeSer Reg ff = 00
-----------------------------------------------------------------
Serializer Register Map
-----------------------------------------------------------------
Ser Reg 00 = 30
Ser Reg 01 = 00
Ser Reg 02 = 52
Ser Reg 03 = 4b
Ser Reg 04 = 00
Ser Reg 05 = 03
Ser Reg 06 = 41
Ser Reg 07 = 28
Ser Reg 08 = fe
Ser Reg 09 = 1e
Ser Reg 0a = c9
Ser Reg 0b = 7f
Ser Reg 0c = 7f
Ser Reg 0d = f0
Ser Reg 0e = f0
Ser Reg 0f = 00
Ser Reg 10 = 00
Ser Reg 11 = 00
Ser Reg 12 = 00
Ser Reg 13 = 00
Ser Reg 14 = 00
Ser Reg 15 = 20
Ser Reg 16 = 18
Ser Reg 17 = 3c
Ser Reg 18 = 80
Ser Reg 19 = 62
Ser Reg 1a = 62
Ser Reg 1b = 62
Ser Reg 1c = 00
Ser Reg 1d = 00
Ser Reg 1e = 03
Ser Reg 1f = 00
Ser Reg 20 = 00
Ser Reg 21 = 00
Ser Reg 22 = 00
Ser Reg 23 = 00
Ser Reg 24 = 00
Ser Reg 25 = 02
Ser Reg 26 = 00
Ser Reg 27 = 00
Ser Reg 28 = 67
Ser Reg 29 = 33
Ser Reg 2a = 01
Ser Reg 2b = 00
Ser Reg 2c = 00
Ser Reg 2d = 00
Ser Reg 2e = 00
Ser Reg 2f = 00
Ser Reg 30 = 00
Ser Reg 31 = 07
Ser Reg 32 = c9
Ser Reg 33 = 04
Ser Reg 34 = 00
Ser Reg 35 = 10
Ser Reg 36 = 00
Ser Reg 37 = 7a
Ser Reg 38 = 00
Ser Reg 39 = 00
Ser Reg 3a = 00
Ser Reg 3b = 00
Ser Reg 3c = 00
Ser Reg 3d = 00
Ser Reg 3e = 00
Ser Reg 3f = 00
Ser Reg 40 = 00
Ser Reg 41 = 00
Ser Reg 42 = 00
Ser Reg 43 = 00
Ser Reg 44 = 00
Ser Reg 45 = 00
Ser Reg 46 = 00
Ser Reg 47 = 00
Ser Reg 48 = 00
Ser Reg 49 = 00
Ser Reg 4a = 00
Ser Reg 4b = 00
Ser Reg 4c = 00
Ser Reg 4d = 00
Ser Reg 4e = 00
Ser Reg 4f = 00
Ser Reg 50 = 20
Ser Reg 51 = c0
Ser Reg 52 = 45
Ser Reg 53 = 00
Ser Reg 54 = 00
Ser Reg 55 = 00
Ser Reg 56 = 00
Ser Reg 57 = 00
Ser Reg 58 = 07
Ser Reg 59 = 07
Ser Reg 5a = 07
Ser Reg 5b = 02
Ser Reg 5c = 00
Ser Reg 5d = 00
Ser Reg 5e = 00
Ser Reg 5f = 00
Ser Reg 60 = 00
Ser Reg 61 = 2b
Ser Reg 62 = 40
Ser Reg 63 = 06
Ser Reg 64 = 3b
Ser Reg 65 = cb
Ser Reg 66 = 00
Ser Reg 67 = 32
Ser Reg 68 = 00
Ser Reg 69 = 00
Ser Reg 6a = 00
Ser Reg 6b = 00
Ser Reg 6c = 00
Ser Reg 6d = 00
Ser Reg 6e = 00
Ser Reg 6f = 00
Ser Reg 70 = 00
Ser Reg 71 = 00
Ser Reg 72 = 25
Ser Reg 73 = 00
Ser Reg 74 = 00
Ser Reg 75 = 00
Ser Reg 76 = 00
Ser Reg 77 = 00
Ser Reg 78 = 00
Ser Reg 79 = 00
Ser Reg 7a = e4
Ser Reg 7b = 00
Ser Reg 7c = 00
Ser Reg 7d = 00
Ser Reg 7e = 00
Ser Reg 7f = 00
Ser Reg 80 = 00
Ser Reg 81 = 00
Ser Reg 82 = 00
Ser Reg 83 = 00
Ser Reg 84 = 00
Ser Reg 85 = 00
Ser Reg 86 = 90
Ser Reg 87 = 00
Ser Reg 88 = 00
Ser Reg 89 = 00
Ser Reg 8a = 00
Ser Reg 8b = 00
Ser Reg 8c = 02
Ser Reg 8d = 00
Ser Reg 8e = 00
Ser Reg 8f = 00
Ser Reg 90 = 32
Ser Reg 91 = e3
Ser Reg 92 = 64
Ser Reg 93 = 01
Ser Reg 94 = 00
Ser Reg 95 = 00
Ser Reg 96 = 00
Ser Reg 97 = 00
Ser Reg 98 = 00
Ser Reg 99 = 00
Ser Reg 9a = 21
Ser Reg 9b = 00
Ser Reg 9c = 02
Ser Reg 9d = 07
Ser Reg 9e = 04
Ser Reg 9f = 0c
Ser Reg a0 = 00
Ser Reg a1 = 0b
Ser Reg a2 = 0d
Ser Reg a3 = 0a
Ser Reg a4 = 0b
Ser Reg a5 = 10
Ser Reg a6 = 42
Ser Reg a7 = 10
Ser Reg a8 = 10
Ser Reg a9 = 10
Ser Reg aa = 03
Ser Reg ab = 01
Ser Reg ac = 00
Ser Reg ad = 00
Ser Reg ae = 00
Ser Reg af = 00
Ser Reg b0 = 04
Ser Reg b1 = 4a
Ser Reg b2 = 3f
Ser Reg b3 = 00
Ser Reg b4 = 00
Ser Reg b5 = 00
Ser Reg b6 = 00
Ser Reg b7 = 00
Ser Reg b8 = 00
Ser Reg b9 = 00
Ser Reg ba = 00
Ser Reg bb = 00
Ser Reg bc = 00
Ser Reg bd = 00
Ser Reg be = 00
Ser Reg bf = 00
Ser Reg c0 = 00
Ser Reg c1 = 00
Ser Reg c2 = 00
Ser Reg c3 = 00
Ser Reg c4 = 00
Ser Reg c5 = 00
Ser Reg c6 = 00
Ser Reg c7 = 00
Ser Reg c8 = 00
Ser Reg c9 = 00
Ser Reg ca = 00
Ser Reg cb = 00
Ser Reg cc = 00
Ser Reg cd = 00
Ser Reg ce = 00
Ser Reg cf = 00
Ser Reg d0 = 00
Ser Reg d1 = 00
Ser Reg d2 = 00
Ser Reg d3 = 00
Ser Reg d4 = 00
Ser Reg d5 = 00
Ser Reg d6 = 00
Ser Reg d7 = 00
Ser Reg d8 = 00
Ser Reg d9 = 00
Ser Reg da = 00
Ser Reg db = 00
Ser Reg dc = 00
Ser Reg dd = 00
Ser Reg de = 00
Ser Reg df = 00
Ser Reg e0 = 00
Ser Reg e1 = 00
Ser Reg e2 = 00
Ser Reg e3 = 00
Ser Reg e4 = 00
Ser Reg e5 = 00
Ser Reg e6 = 00
Ser Reg e7 = 00
Ser Reg e8 = 00
Ser Reg e9 = 00
Ser Reg ea = 00
Ser Reg eb = 00
Ser Reg ec = 00
Ser Reg ed = 00
Ser Reg ee = 00
Ser Reg ef = 00
Ser Reg f0 = 5f
Ser Reg f1 = 55
Ser Reg f2 = 42
Ser Reg f3 = 39
Ser Reg f4 = 35
Ser Reg f5 = 33
Ser Reg f6 = 00
Ser Reg f7 = 00
Ser Reg f8 = 00
Ser Reg f9 = 00
Ser Reg fa = 00
Ser Reg fb = 00
Ser Reg fc = 00
Ser Reg fd = 00
Ser Reg fe = 00
Ser Reg ff = 00

Camera Info

esteban@rasplab:~ $ v4l2-ctl --all
Driver Info:
Driver name : unicam
Card type : unicam
Bus info : platform:fe801000.csi
Driver version : 6.1.73
Capabilities : 0x85a00001
Video Capture
Metadata Capture
Read/Write
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x05200001
Video Capture
Read/Write
Streaming
Extended Pix Format
Media Driver Info:
Driver name : unicam
Model : unicam
Serial :
Bus info : platform:fe801000.csi
Media version : 6.1.73
Hardware revision: 0x00000000 (0)
Driver version : 6.1.73
Interface Info:
ID : 0x03000005
Type : V4L Video
Entity Info:
ID : 0x00000003 (3)
Name : unicam-image
Function : V4L2 I/O
Flags : default
Pad 0x01000004 : 0: Sink
Link 0x02000007: from remote pad 0x1000002 of entity 'vc_mipi_modules_0 10-0060' (Camera Sensor): Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 0: ok)
Format Video Capture:
Width/Height : 1280/800
Pixel Format : 'Y10P' (10-bit Greyscale (MIPI Packed))
Field : None
Bytes per Line : 1600
Size Image : 1280000
Colorspace : sRGB
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Full Range)
Flags :
Selection Video Capture: crop, Left 0, Top 0, Width 1280, Height 800, Flags:
Streaming Parameters Video Capture:
Capabilities : timeperframe
Frames per second: 120.000 (120000/1000)
Read buffers : 2

User Controls

exposure 0x00980911 (int) : min=9 max=7962 step=1 default=1001 value=1001
gain 0x00980913 (int) : min=0 max=254 step=1 default=16 value=16
horizontal_flip 0x00980914 (bool) : default=0 value=0
vertical_flip 0x00980915 (bool) : default=0 value=0

Image Processing Controls

link_frequency 0x009f0901 (intmenu): min=0 max=0 default=0 value=0 (800000000 0x2faf0800) flags=read-only
0: 800000000 (0x2faf0800)
pixel_rate 0x009f0902 (int64) : min=1 max=400000000 step=1 default=160000000 value=160000000 flags=read-only
esteban@rasplab:~ $

                                                                                                                                     

dmesg info

[ 9.344658]vc_mipi_common_bcm2835: loading out-of-tree module taints kernel.
[ 9.345486] vc_mipi_common_bcm2835 (0.2.7) init
[ 9.389281] vc_mipi_common (0.2.7) init
[ 9.475033] Bluetooth: hci0: BCM: chip id 107
[ 9.475393] Bluetooth: hci0: BCM: features 0x2f
[ 9.476576] Bluetooth: hci0: BCM4345C0
[ 9.476602] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0000
[ 9.508317] vc_mipi_modules_0 10-0060: vc_mipi_modules_0 (0.2.7) probe
[ 9.562448] Bluetooth: hci0: BCM4345C0 'brcm/BCM4345C0.raspberrypi,4-model-b.hcd' Patch
[ 9.759414] brcmfmac: F1 signature read @0x18000000=0x15264345
[ 9.766916] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 9.767539] usbcore: registered new interface driver brcmfmac

[ 9.770917] i2c 10-0010: addr=0x0086 max_addr=0x00c7
[ 9.889376] i2c 10-0010: VC_SEN_FPGA found!
[ 9.889415] i2c 10-0010: [ MAGIC ] [ mipi-module ]
[ 9.889434] i2c 10-0010: [ MANUF. ] [ Vision Components ] [ MID=0x0427 ]
[ 9.889454] i2c 10-0010: [ SENSOR ] [ OM OV9281 ]
[ 9.889464] i2c 10-0010: [ MODULE ] [ ID=0x9281 ] [ REV=0x0002 ]
[ 9.889474] i2c 10-0010: [ MODES ] [ NR=0x0004 ] [ BPM=0x0010 ]
[ 9.889486] i2c 10-0010: [ COLOR ] [ NO ]
[ 9.889493] i2c 10-0010: [ STEREO ] [ NO ]
[ 9.889500] i2c 10-0010: [ MODE 0 ] format: RAW 10 Bit, type: IntTrig, data lanes: 2, lane data rate: 800000000 bps
[ 9.889534] i2c 10-0010: [ MODE 1 ] format: RAW 8 Bit, type: IntTrig, data lanes: 2, lane data rate: 800000000 bps
[ 9.889547] i2c 10-0010: [ MODE 2 ] format: RAW 10 Bit, type: ExtTrig, data lanes: 2, lane data rate: 800000000 bps
[ 9.889558] i2c 10-0010: [ MODE 3 ] format: RAW 8 Bit, type: ExtTrig, data lanes: 2, lane data rate: 800000000 bps
[ 9.889600] vc_mipi_modules_0 10-0060: read property io-config = 0
[ 9.889613] vc_mipi_modules_0 10-0060: read property external-trigger-mode = 0
[ 9.889623] vc_mipi_modules_0 10-0060: read property sensor-mode = 0
[ 9.889643] vc_mipi_modules_0 10-0060: read property clock-frequency = 25000000
[ 9.889661] vc_mipi_modules_0 10-0060: read property data-lanes = 2
[ 9.889671] vc_mipi_modules_0 10-0060: read property link-frequencies[0] = 800000000
[ 9.889683] vc_mipi_modules_0 10-0060: VC Sensor device-tree has configured 2 data-lanes! [ sensor_mode = 0 ]
[ 10.095999] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Apr 15 2021 03:03:20 version 7.45.234 (4ca95bb CY) FWID 01-996384e2
[ 10.291089] Bluetooth: hci0: BCM: features 0x2f
[ 10.292555] Bluetooth: hci0: BCM43455 37.4MHz Raspberry Pi 3+-0190
[ 10.292588] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0382
[ 10.353516] i2c 10-0010: VC_SEN_MODE=0 PowerOn STATUS=0x80 try=1
[ 10.438841] vc_mipi_modules_0 10-0060: hOutSize: 1280
[ 10.438873] vc_mipi_modules_0 10-0060: vOutSize: 800
[ 10.446451] vc_mipi_modules_0 10-0060: Model ID 0x9281, Lot ID 0x000000, Chip ID 0x00a1
[ 10.454562] vc_mipi_modules_0 10-0060: EXPOSURE = 1760
[ 10.454593] vc_mipi_modules_0 10-0060: REAL EXPOSURE_TIME = 1001
[ 10.469863] vc_mipi_modules_0 10-0060: FLASH = 110 MOD=9099
[ 10.553780] vc_mipi_modules_0 10-0060: Consider updating driver vc_mipi_modules_0 to match on endpoints
[ 12.057247] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS
[ 12.908500] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 12.908517] Bluetooth: BNEP filters: protocol multicast
[ 12.908530] Bluetooth: BNEP socket layer initialized
[ 12.912216] Bluetooth: MGMT ver 1.22
[ 12.936403] NET: Registered PF_ALG protocol family
[ 16.684828] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[ 16.685498] bcmgenet fd580000.ethernet eth0: Link is Down
[ 16.701239] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[ 22.489076] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 3889.294808] vc_mipi_modules_0 10-0060: GET Frame interval: 1000/120000 s = 8333 us
[ 3912.499243] vc_mipi_modules_0 10-0060: GET Frame interval: 1000/120000 s = 8333 us

Thanks

Jolly

  • Hi Jolly,

    Thank you for submitting this detailed information. Based on the information you've provided it appears that there is valid CSI data received by the UB960 in this case (UB960 registers 0x73 - 0x76). Additionally CSI TX port pass is asserted in 0x35[0] indicating valid data is present on the enabled CSI port 0. Could you confirm where the CSI video is not observed?

    Best,

    Thomas

  • I tried on raspberry pi4 by using the command on terminal. I am expecting below response *(this commend was tested and working when camera connected directly to raspberry pi4, i mena with out ser and deser. )

    3.4   First Image Acquisition Test

    A sensor device should be listed as Video input at the following command output (from the Video4Linux-Control):

    v4l2-ctl --all
    

    The following command dumps sensor data:

    v4l2-ctl --stream-mmap --stream-count=-1 -d /dev/video0 --stream-to=/dev/null
    

    It will output subsequent lines ending with a frames-per-second information (in the example named [number]) until pressing CTRL-C:

    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< [number] fps
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< [number] fps
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< [number] fps
    <<<<<<<<<<<<<<<<<<<<<<<^C

    reference link for camera testing
    www.vision-components.com/.../index.html


    with ser and Deser connected to raspberry pi4, there is no response to the dump sensor data command
    its keep blinking the cursor

  • mean while I got another question, do we need to configure Target ID and TARGET_ALIAS, is it mandatory to configure for its operation?

  • Hi Jolly,

    Would you be able to provide a block diagram of the setup we're trying to bring up? 

    One option which may be helpful is to run the MIPI CSI pattern generator on the UB960 to confirm that the connection between the UB960 and the raspberry pi is stable. We have some example code for this in the UB960 datasheet seen below:

    Best,

    Thomas

  • I trired with pattern generstion code, still no video. I have noticed thast I a, not able to update Desr 0xc9 and 0x92 registors which is required to set for 800mbps speed. It is always read as 0x00

  • Hi Jolly,

    Thanks for testing this. Based on the register settings you have provided the UB960 is set up for 2 lane mode. Could you please help me understand where register 0xC9 and 0x92 are being written? Based on the UB960 datasheet we need to configure register 0x1F to select CSI rate.

    Best,

    Thomas

  • Now pattern generation is working I can see the straming data on raspberry pi. lane conifguration was not correct in pattern gen code

    v4l2-ctl --stream-mmap --stream-count=-1 -d /dev/video0 --stream-to=/dev/null
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 29.99 fps
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps
    <<<<<<<<<<<<<<<<<<<<<<<^C

    when I put back the code for ser and deser for stream video,still not getting video data from serialiser. reg 0x35 is 0x01. Could you please send me the DS90UB960-Q1 and
    DS90UB953 initialization code?
  • Hi Jolly,

    Thanks for confirming, do you have follow up issues which still need to be resolved?

    Best,

    Thomas