USB Low Light Camera Connection to Companion

Hi Oystein,

I’m a bit concerned that lengthening the USB cable for the camera may have caused issues. When you say it works when plugged into your laptop, is that through the full length of USB cable that you have installed now?

We have a camera troubleshooting section on ArduSub.com and I want to point you towards one particular parts of that. Here’s the main link: Redirecting...

This section below will have you access the camera start-up script and make sure it is running properly or hopefully see an error message if something went wrong.

If you have checked all of the above and still don’t have a video stream, you can check the video streaming process for errors. Access http://192.168.2.2:8088 or log into the Raspberry Pi via SSH with PuTTY (on windows), or the terminal in Linux or MacOS. The default ip address of the Raspberry Pi is 192.168.2.2, the username is ‘pi’ and the password ‘companion’. After you have logged and enter the following command into the Raspberry Pi command line:

screen -r video

If the camera is working and the video stream is running, the output should end in something like this:

Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

To return to the command line and keep the streaming process running, hit control+a then type ‘d’ (to detach).

If the video stream isn’t running the output of the screen command will be:

There is no screen to be resumed matching video.

You can relaunch the video streaming process by entering:

~/companion/scripts/start_video.sh

If the output of this command contains something like this:

mmal: Failed to create camera component

Then the camera isn’t working. Double check the camera ribbon cable, and try running sudo rpi-update .

Please let us know how that goes.

-Rusty