sq11 usb camera

Moderator: leecollings

Post Reply
Aturum
Posts: 1
Joined: Friday 09 March 2018 21:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

sq11 usb camera

Post by Aturum »

Good day to all.

This is my first post in the Domoticz forums, too bad it has to be a help request (i managed to survive until now with just the wiki and some posts)... First of all, yes, i did checked out all the camera's posts looking for my problem, but it looks like it is not here (or i couldn't find it). There i go:

I just recieved an SQ11 chineese camera to test its quality. Starting at the main Windows computer, and looks like it works perfectly. Then i changed to the rPi, and tried to set it as the camera, but problems started here. Reading the USB Camera section in the wiki, i found that you have to install the uvccapture, and then test it. Well... i allways get an error (ioctl querycontrol error 22). Then i moved to test it with fswebcam, and looks like it works fine, i can get a picture with no problem (at first, now it gives me bad pictures, but at least i get something). Also, when trying to add the camera in the server, filling everything as the wiki said, both using 192.168.*.* and "localhost" (and adding fake user and password to the url as it was sugested in some posts) it says all the time "Please enter an address!"

So here are my questions:
-Does anyone know how to correctly connect the USB camera to get something with the uvccapture in this particulary model?
-Is there an option to use fswebcam instead of uvccapture?

The camera is working, since fswebcam is giving me some pictures so... am i doing anything wrong?

Thank you in advance, and i'm sorry if this was already asked before, if so, i wasn't able to find it.
enboer
Posts: 36
Joined: Tuesday 02 October 2018 15:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: sq11 usb camera

Post by enboer »

Although this is an old post already, I post my experience and workaround for this. I have an endoscope camera that monitors my descaler that is in the basement.
I had a similar issue that uvccapture did not get a correct picture (green screen with some other colored pixels at the top). fswebcam is doing fine.
Search internet for solution to get the camera to work with uvccapture but no luck.
What I did was created a script called /usr/bin/uvccapture (renamed the binary uvccapture). In this script I execute the fswebcam command:
fswebcam -r "1600x1200" /home/pi/domoticz/tempcam.jpg

You can use other fswebcam options here as well, as long as you create the tempcam.jpg picture, that is what Domoticz will show.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest