After the sonix sn9c291 + ov9712 driver is loaded to rt5350, two nodes, video0, and video1 are generated. However, the following error is reported, which is not analyzed yet.
# USB 1-1.2: new high speed USB device using rt3xxx-ehci and address 4
USB 1-1.2: configuration #1 chosen from 1 choice
Uvcvideo: Found UVC 1.00 device USB 2.0 camera (0c45: 6360)
Chip is 0x0
Uvcvideo: failed to query (133) UVC control 8 (Unit 3):-32 (exp. 2 ).
#
Next, run the demo program.
#./Sonix_uvc_testap/dev/video0-C-F mjpg-S
V1.0.5.2 _ sonix_uvc_testap_multi
Optind: 3 optopt: 63
Optind: 5 optopt: 63
Optind: 6 optopt: 63
Device/dev/video0 opened: USB 2.0 camera.
Xu_ctrl_readchipid ==>
= Xu_ctrl_readchipid success =
ASIC read data [0]: 1f
ASIC read data [1]: 10
ASIC read data [2]: 90 (chip ID)
ASIC read data [3]: 0
Chipid = 0
Xu_ctrl_readchipid <=
Xu_multi_get_enable =>
Xu_multi_get_enable ==> switch cmd: IOCTL (uvcioc_ctrl_set) failed (-1)
Sonix_uvc_testap @ main: xu_multi_get_enable failed
Video Format set: width: 1280 Height: 720 buffer size: 1843789
Current Frame Rate: 1/30
Frame Rate set: 1/30
3 buffers allocated.
Length: 1843789 offset: 0 -- buffer 0 mapped at address 0x2ac2a000.
Length: 1843789 offset: 1847296 -- buffer 1 mapped at address 0x2aded000.
Length: 1843789 offset: 3694592 -- Buffer 2 mapped at address 0x2afb0000.
Frame [0] 18120 bytes 964.265081 946685765.997266
Frame [1] 18089 bytes 966.001094 946685766.037230
Frame [2] 18128 bytes 966.041096 946685766.077245
Frame [3] 25923 bytes 966.081096 946685766.117251
Frame [4] 28363 bytes 966.121095 946685766.157245
Frame [5] 48119 bytes 966.161095 946685766.197278
Frame [6] 48263 bytes 966.201094 946685766.237280
Frame [7] 57112 bytes 966.241096 946685766.277294
Frame [8] 62841 bytes 966.281094 946685766.317299
Frame [9] 68272 bytes 966.321096 946685766.357306
Frame [10] 68463 bytes 966.361098 946685766.397314
Frame [11] 61375 bytes 966.409078 946685766.449336
Frame [12] 61201 bytes 966.461095 946685766.497314
Many jpg image files are generated.
# Ls
Frame-000021.jpg frame-000010.jpg sonix_uvc_testap OPT
Frame-000020.jpg frame-000009.jpg public mnt
Sonix_uvcvideo.ko media frame-000019.jpg
Frame-000018.jpg frame-000007.jpg WWW lib
Frame-000017.jpg frame-000006.jpg var init
Frame-000016.jpg frame-000005.jpg USR home
Frame-000015.jpg frame-000004.jpg TMP etc_ro
Frame-000014.jpg frame-000003.jpg sys etc
Frame-000013.jpg frame-000002.jpg sbin Dev
Frame-000012.jpg frame-000001.jpg release Bin
Frame-000011.jpg frame-000000.jpg proc
Upload an image to the TFTP server to view it,
# TFTP-l frame-000000.jpg-r frame-0000.jpg-P 192.168.1.112
#
For example, if the capture time is night, the effect is not very good.