UNSOLVED rasp pi3 + SC132 - capture only works once
-
Hello,
I am trying to get the SC132 to work with the rasp pi 3B+, I couldn't get it to work on Buster but I managed to get it working on Bullseye.
I did enable legacy video mode in both cases.
The problem is that it works once on Bullseye (2-3 times if I'm lucky), then it stops working, I tried to send a reset command through the i2c interface but once it stops working I can't get it to work again, I have to reboot the Raspberry Pi.Here are the logs:
BUSTER
`pi@raspberrypi:~uname -a Linux raspberrypi 5.15.43-v7+ #1558 SMP Thu May 26 16:10:12 BST 2022 armv7l GNU/Linux pi@raspberrypi:~/veye/i2c_cmd/bin $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" pi@raspberrypi:~/veye/i2c_cmd/bin $ ./cs_mipi_i2c.sh -r -f devid hardwareid is 0x 2 pi@raspberrypi:~/veye/i2c_cmd/bin $ ./cs_mipi_i2c.sh -r -f hwver NOT SUPPORTED! pi@raspberrypi:~/veye/i2c_cmd/bin $ ./cs_mipi_i2c.sh -r -f hdver hardware logic version is 0x34 pi@raspberrypi:~/veye/i2c_cmd/bin $ ./cs_mipi_i2c.sh -r -f productmodel PRODUCT MODEL is CS-MIPI-SC132 pi@raspberrypi:~/veye/i2c_cmd/bin $ ./cs_mipi_i2c.sh -r -f firmwarever r firmware version is 2.38 pi@raspberrypi:~/veye/i2c_cmd/bin $ ./cs_mipi_i2c.sh -r -f mipistatus r mipi count 8272, mipi state 1 pi@raspberrypi:~/veye/veye_raspcam/bin $ ./veye_raspipreview before create camera com time out 5000 Hardare version: a02082 before create camera com mmal: mmal_component_enable w 1920 h 1080 fps 30 raspipreview_create com ^Cmmal: Aborting program
BULLSEYE
user@raspberrypi:~ $cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)" NAME="Raspbian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" user@raspberrypi:~ $ uname -a Linux raspberrypi 5.15.43-v7+ #1558 SMP Thu May 26 16:10:12 BST 2022 armv7l GNU/Linux user@raspberrypi:~ $ cat veye-rec-120.sh #! /bin/sh ./veye/i2c_cmd/bin/camera_i2c_config rm /dev/shm/test.h264 ./veye/veye_raspcam/bin/veye_raspivid -w 640 -h 480 -fps 120 -o /dev/shm/test.h264 ls -l /dev/shm/test.h264 user@raspberrypi:~ $ ./veye-rec-120.sh # ->works setting GPIO for board revsion: a02082 Raspberry Pi3B / Pi3B+ / 3A Set state of 133 to 1 Use i2c-10 for the sensor (-y 10) camera num -1 Hardare version: a02082 mmal: mmal_component_enable w 640 h 480 fps 120 raspipreview_create com mmal: Splitter has 4 output port,you could use num 2,3 for extend mmal: running now!! mmal: running stop!! 0 -rw-r--r-- 1 user user 1401681 1 juin 22:15 /dev/shm/test.h264 user@raspberrypi:~ $ ./veye-rec-120.sh # ->does not work setting GPIO for board revsion: a02082 Raspberry Pi3B / Pi3B+ / 3A Set state of 133 to 1 Use i2c-10 for the sensor (-y 10) camera num -1 Hardare version: a02082 mmal: mmal_component_enable w 640 h 480 fps 120 raspipreview_create com mmal: Splitter has 4 output port,you could use num 2,3 for extend ^Cmmal: Aborting program
I recently did a apt upgrade and a rpi-update.
I downloaded the veye software from the github repo last week, so I think I'm pretty up to date.
Any idea where the problem comes from?
it's ok if it onlye works on bullseye but I need to be able to launch it several times reliably without any problems.Regards
-
@jean_vid
Hi,
The veye_raspicam series software itself does not call the i2c command to configure the camera working mode.
So you need to use the following command first to configure the videofmt of the camera and then call veye_raspicam series software to get the image.