Page tree

Contact: sales@inno-maker.com / support@inno-maker.com /
Download: wiki.inno-maker.com

Skip to end of metadata
Go to start of metadata

Note:

  • Full User Manual,Ready-Made System,Software
  • The latest Raspberry PI OS(Kernel 5.4)driver already support;
  • Inno-maker launched linux 5.4 drivers for raspberry pi
  • Difference between Inno-maker driver and Raspberry pi os driver
Inno-maker driverRaspberry PI OS driver
  • Support 12 working mode, Suitable for various applications.Mode Resolution Ratio Data Format Frame Rate
    • Mode0 1280x800 Y10 120fps
    • Mode1 1280x800 Y8 144fps
    • Mode2 1280x800 Y10 EXT_TRIG
    • Mode3 1280x800 Y8 EXT_TRIG
    • Mode4 1280x720 Y10 120fps
    • Mode5 1280x720 Y8 144fps
    • Mode6 1280x720 Y10 EXT_TRIG
    • Mode7 1280x720 Y8 EXT_TRIG
    • Mode8 640x400 Y10 210fps
    • Mode9 640x400 Y8 253fps
    • Mode10 640x400 Y10 EXT_TRIG
    • Mode11 640x400 Y8 EXT_TRIG

Support 2 working Mode

  • Mode0 1280x800 Y10 120fps
  • Mode1 1280x800 Y8 144fps










User Inno-Maker Driver

How to Set up

  • Step1 Update Your System

$sudo apt-get install vim

$sudo apt-get install vim


  • Step2 Download firmware

$sudo git clone https://gitee.com/inno-maker/cam-mipiov9281.git

  • Step3 Enable your Device

$sudo vim /boot/config.txt

  • Add Below To the last line then save

    dtparam=i2c_vc=on
    dtoverlay=vc_mipi_ov9281
    
    ###If you use PI0 or PI0W
    dtparam=i2c_vc=on
    dtoverlay=vc_mipi_ov9281,i2c_pins_28_29=1
    ###i2c_pins_28_29=1  statement is for rpi use bcm2835 chipset only

$sudo vim /boot/cmdline.txt

  • Add Below To the last line then save
    cma=128M

  • Step4

$cd cam-mipiov9281/Linux_4.19.57/pi4 

$make setmode1                                            #set this module work in mode1

You will see below information

** Mode Instruction**
Mode0 1280x800, 120fps,Y10
Mode1 1280x800, 144fps,Y8
Mode2 1280x800,Y10 ext_trig
Mode3 1280x800,Y8 ext_trig

Test For Kernel Above 5.4

  • 1,VLC Capture Video(8bit Mode)

    • Follow below step

               

  • 2,Frame rate test

cd 

cd cam-mipiov9281/tools

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

It will show you a frames-per-second information of your module

  • 3,vcmipidemo  Preview (Only For Raspberry PI3,Not support Raspberry PI4 Yet)

./vcmipidemo-1028 -s 4135500 -g 0x88 -f >/dev/null                        # support pi3 only

              #  Press Ctrl+Alt+F1 See the Demo, Press Ctrl+Alt+F7 quit demo, then press ctrl+c to stop the program

It can setting the shutter and gain value of this module and capture the frame into frame buffer or PPM file.,Example:
It will setting the shutter to 3ms ,gain value to 0x88 and copy the capture frame into framebuffer.
More detail please use ./vcmipidemo-1028 --help
-s: setting the shutter : range: 8721ns to 8721*885ns ,unit ns
-g: setting the sensor gain: range 0-----254d

  • 4, Capture Y8 Rawdata picture

./v4l2_capture_y8 -s 4135500 -g 0x88 -h 1 -v 1 -c 5

using the camera for capture frames into file. Capture y8 format output into file while module work in mode2
-s: setting the shutter : range: 8721ns to 8721*885ns ,unit ns
-g: setting the sensor gain: range 0-----254d
-h: horizon flip
-v:vertical flip
-c:capture count
More detail please use ./v4l2_capture_y12 --help

You can preview y8 rawdata files directly by following our usermanual

  • 5, Capture Y10 Rawdata picture

./v4l2_capture_y10-16-5.4 -s 3000 -g 0x88 -h 1 -v 1 -c 5

Capture y10 format output into file while module work in mode0 or mode1
-s: setting the shutter : range: 8721ns to 8721*885ns ,unit ns
-g: setting the sensor gain: range 0-----254d
-h: horizon flip
-v:vertical flip
-c:capture count
More detail please use ./v4l2_capture_y10-16-5.4 --help

y10 must be transfer to y8 then you can preview.

               

  • 6, Y10 format file transfer toY8 file

                ./raw16p10p2raw8 <10bit file name> <8bit file name>

tools to handle ov9281 y10 captured file into 8bit gray formate
./raw16p10p2raw8 <file_input> <file_output>

  • 7,Strobe Adjustment

step1, strobe generates a pulse with a reference starting point at the time when the pixel array starts integration.

    Following a delay after the reference starting point, which is controlled by :

a width of strobe_frame_span[31:0] is generated.


$cd cam-mipiov9281/tools

I2c tool read and write register. 

  • Read:

          $./i2c_read 0 0x60 [start addr of reg ] [num of regs]

//example:

Read  value  of  register  0x3928  

$./i2c_read  0  0x60  0x3928  1

  • Write:

          $./i2c_write  0  0x60 [ reg addr] [reg value]

//example:

Write 0x32 to register 0x3928.

$./i2c_write  0  0x60  0x3928  0x32

$./i2c_write  0  0x60  0x3928  0x32

Test For Linux Kernel Under 5.4

  • 1,VLC Capture Video(8bit Mode)

    • Follow below step

               

  • 2,Frame rate test

cd 

cd cam-mipiov9281/tools

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

It will show you a frames-per-second information of your module

  • 3,vcmipidemo Preview

./vcmipidemo -s 4135500 -g 0x88 -f >/dev/null

              #  Press Ctrl+Alt+F1 See the Demo, Press Ctrl+Alt+F7 quit demo, then press ctrl+c to stop the program

It can setting the shutter and gain value of this module and capture the frame into frame buffer or PPM file.,Example:
It will setting the shutter to 3ms ,gain value to 0x88 and copy the capture frame into framebuffer.
More detail please use ./vcmipidemo --help
-s: setting the shutter : range: 8721ns to 8721*885ns ,unit ns
-g: setting the sensor gain: range 0-----254d

  • 4, Capture Y8Rawdata picture

./v4l2_capture_y8 -s 4135500 -g 0x88 -h 1 -v 1 -c 5

using the camera for capture frames into file. Capture y8 format output into file while module work in mode2
-s: setting the shutter : range: 8721ns to 8721*885ns ,unit ns
-g: setting the sensor gain: range 0-----254d
-h: horizon flip
-v:vertical flip
-c:capture count
More detail please use ./v4l2_capture_y12 --help

  • 5, Capture Y10 Rawdata picture

./v4l2_capture_y10 -s 3000 -g 0x88 -h 1 -v 1 -c 5

Capture y10 format output into file while module work in mode0 or mode1
-s: setting the shutter : range: 8721ns to 8721*885ns ,unit ns
-g: setting the sensor gain: range 0-----254d
-h: horizon flip
-v:vertical flip
-c:capture count
More detail please use ./v4l2_capture_y10 --help

  • 6,Transfer y10 file to y8 file for preview.

            ./raw10p2raw8 <10bit file name> <8bit file name>

tools to handle ov9281 y10 captured file into 8bit gray formate
./raw16p10p2raw8 <file_input> <file_output>

  • 7,Strobe Adjustment

step1, strobe generates a pulse with a reference starting point at the time when the pixel array starts integration.

    Following a delay after the reference starting point, which is controlled by :

a width of strobe_frame_span[31:0] is generated.


$cd cam-mipiov9281/tools

I2c tool read and write register. 

  • Read:

          $./i2c_read 0 0x60 [start addr of reg ] [num of regs]

//example:

Read  value  of  register  0x3928  

$./i2c_read  0  0x60  0x3928  1

  • Write:

          $./i2c_write  0  0x60 [ reg addr] [reg value]

//example:

Write 0x32 to register 0x3928.

$./i2c_write  0  0x60  0x3928  0x32

$./i2c_write  0  0x60  0x3928  0x32

Use Raspberry PI OS Driver

How to Set up

  • Step1 Download firmware

$sudo git clone https://gitee.com/inno-maker/cam-mipiov9281.git

  • Step2 Enable your Device

$sudo nano /boot/config.txt

  • Add Below To the last line then save

    dtparam=i2c_vc=on
    dtoverlay=ov9281

$sudo nano /boot/cmdline.txt

  • Add Below To the last line then save
    cma=128M

  •    
  •      $sudo reboot

Test For Kernel Above 5.4

More information please refer to:

1,VLC Capture Video(8bit Mode)

  • Follow below step

               

2 Framerate Test

           $cd cam-mipiov9281

           $sudo chmod -R a+rwx *

           $cd tools

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

It will show you a frames-per-second information of your module


3,vcmipidemo  Preview 

 $./vcmipidemo-1028 -s 4 -g 0x88 -a -f              

 #  Press Ctrl+Alt+F1 See the Demo, Press Ctrl+Alt+F7 quit demo, then press ctrl+c to stop the program

More detail please use ./vcmipidemo-1028 --help
Remark:

How to get the shutter range and sensor gain:$v4l2-ctl -l

  • No labels

7 Comments

  1. Hello! I have a few questions. When are you planning to release the SDK? How many frames will opencv capture (FPS without processing by algorithms)?

  2. Will you have the same issues as your competitors https://github.com/veyeimaging/raspberrypi/issues/6?
  3. Could you add a vcmipidemo code?

    1. dear customer,
      It;s under folder tools/tools-code

      1. https://gitee.com/inno-maker/cam-mipiov9281/tree/master/tools/tools_code 
        What is the name of the file? I can't see a file with that name (vcmipidemo).

        1. Could you send me your email address?

  4. Anonymous

    canadian pharmacy https://viagarabig.com/# - order viagra online buy generic viagra sildenafil generic vs viagra viagra tablets for men price viagra
Write a comment…