Hobbynet SANE sq930x vidcam backend (sq930b/c) + sq930 kernel module UNIX!HCC

Main Index, webcam info, Info, links, documents, Progress: sq930 kernel module, SANE sq930x backend, Download, To Do list

Goal for this page is to collect data about the sq930b/c usb bridge (webcam) and to give information
about the SANE sq930x Vidcam backend and sq930 kernel module.
Some parts of the Sane stv680 backend are used for this sq930x backend.

Info, links, documents
1. Links: Creative Opensource page
2.        Creative Opensource page New
			
3. USB chip manufactuers: Service & Quality (Shenzhen) Technology Co., Ltd. (usb bridge) SQ930B or SQ930C
4.   
sq930 b/c supported sensor list
Manufactuers Sensor Type USB bridge supported Sensor size optical Resolution Colordepth Formats Command Interface Comment
Sharp LZ24BP CCD SQ930B ...., see image below 640x480 ???? ........ ........ ..
Sony ICX098 CCD SQ930B ...., see image below 640x480 ???? ........ ........ ..
Sony ICX414 CCD SQ930B ...., 640x480 ???? ........ ........ ..
Sony ICX424 CCD SQ930B ...., 640x480 ???? ........ ........ ..
ICMedia ICM-105C CMOS SQ930B/C 1/4" 640x480 9 RGB ... 34 pins??
Hynix HV7131E/R CMOS SQ930B/C 1/3" 640x480 8 RGB ... 48 pins
Micron MI0360 (MT9V011) CMOS SQ930B/C 1/4" 640x480 10 RGB Serial 28 pins
Omnivision OV7660 CMOS SQ930B/C 1/5" 640x480 8 RGB/RGB422/YUV/YCbCr422 SCCB 22 pins
Micron MI1300 CMOS SQ930B/C ...., 1280x1024 ???? ........ ........ ..
Omnivision OV9630 CMOS SQ930B/C ...., 1280x1024 ???? ........ ........ ..
Reference: Hardware supported sensors: SQ930B, SQ930C Brief Specification.
   Some info on these CCD sensors: From the Web Cameras for Astronomy Imaging page
   SHARP-SONY-CCDS.jpg size ~xxk]

5. Some usb-sniff info:0x41e:0x403c usb log, used for program, not available anymore

6. Kernel module drivers/Programs
a. Alpha kernel module from Ernst Mayerhofer (stopped maintaining this module). 
   Status: development for kernel 2.4, some image is read, License GPL.
   clultra kernel module (29-08-2006)
   usb commands information (29-08-2006)

b. Alpha kernel module from Sam Revitch (stopped maintaining this module).
   Status: development for kernel 2.6.17 -2.6.23.
   Patches/contributions/testreports are welcome.
   sq930-dev kernel module (06-05-2007)
c. gspca V4L2 adaptation by Jean-Francois Moine 
   Jean-Francois Moine website
Progress gspac-sq930x subdriver
31-05-2010                  Tested version gspca-2.9.37.tar, getting colour images with both cams possible, subdriver will be
                            included in kernel version 2.6.36.
22-04-2010 ..               New files downloaded for test from Jean-Francois Moine website
                            The test version is gspca-2.9.18.tar.
                            For Trust WB 2500-T status:
                            webcam-shot-000043.jpg
                            For Creative Live! Ultra for Notebooks status:
                            see webcam-shot-000026.jpg and
                            see webcam-shot-000040.jpg
03-03-2010 ..               New files received for test from Jean-Francois Moine (not tested yet)
                            sq930x-01032010.c rename to sq930x.c
                            sq930x-26022010.pat
24-09-2009 .. 27-10-2009    Test done with Debian testing, kernel 2.6.30, with updated sq930x.c file, see below
                            0x041e/0x403d led on, /dev/video0 present (tested with amsn, unable to capture from device)
                            0x2770/0x930c led on, images, colour not ok yet, image light, B = R, R = G, G =??.
                            (tested with amsn)
                            sq930x-update.c rename to sq930x.c
09-09-2009 .. 19-09-2009    Test done with Debian testing, kernel 2.6.30
                            0x041e/0x403d led on, /dev/video0 present (tested with amsn, gmerlin (camelot),
                            unable to capture from device)
                            0x2770/0x930c led on, images, colour not ok yet, image dark
                            (tested with amsn, gmerlen (camelot)
                            error decompressing jpeg, fill_nbits error: need 2 more bytes
                            error: more then 63 AC componets (range 65-72) in huffman unit))
                            (tested with svv,
                            (range 14-19 extraneous butes before marker 0xd9))
05-09-2009                  gspca V4L2 adaptation by Jean-Francois Moine
                            sq930x.pat
                            Status it compiles, check code before running!
Progress sq930 kernel modules
07-11-2008 .. Hold          Due to v4l interface problems, intention is to integrate the sq930 kernel
                            module into the gspca kernel module tree, so maintenance effort on the v4l part
                            will be reduced. See gspca-sq930x subdriver for further developments. 
                            Patches/contributions/testreports are welcome.
15-03-2008 .. 12-05-2008    Working on patch for Trust WB-3500T and patch for 2.6.24/2.6.25.
                            Information R5U870 webcam driver from Sam Revitch and updates
                            Ricoh R5U870 Sam Revitch
                            Ricoh R5U870 updates 
29-12-2007 .. 29-12-2007    Placed sq930 kernel modules on website. 
                            (Thanks to Ernst Mayerhofer and Sam Revitch)
sq930 kernel module, status alpha
Manufacturer Model No. Type USB bridge Sensor Lens USB id Status Comment
Creative VF0070 Live! Ultra for Notebooks sq930B CCD LZ24BP w.a. f2.0-f2.9mm 0x041e/0x403d working max. 320x240, camstream, xawtv, ekiga
Creative VF0060 Live! Ultra sq930B CCD ???? ???? 0x041e/0x403c Untested ..
Creative VF0150 Live! Motion sq930C CCD LZ24BP ???? 0x041e/0x4041 working max. 320x240, camstream, xawtv, ekiga
Creative VF0080 Live! Pro sq930C ??? ???? 0x041e/0x4038 Untested Check lsusb -v output (sq930C or a m5603C)
Trust WB-3500T .. sq930C CMOS 1/7 "or 1/4" Micron ???? ???? 0x2770/0x930c .. Working on init sequence
c. MACAM(MAC OSX driver under development)

Return/Terug Top
VidPid table from sq930b.inf file
USBDCam.DeviceDesc%=USBDCam.Device,USB\VID_2770 PID_930B
USBDCam.DeviceDesc%=USBDCam.Device,USB\VID_2770 PID_930C
USBDCam.DeviceDesc%=USBDCam.Device,USB\VID_041E PID_4038 (sq930c or m5603c)
USBDCam.DeviceDesc%=USBDCam.Device,USB\VID_0471 PID_0329
USBDCam.DeviceDesc%=USBDCam.Device,USB\VID_04F2 PID_A120
USBDCam.DeviceDesc%=USBDCam.Device,USB\VID_04F2 PID_A121
USBDCam.DeviceDesc%=USBDCam.Device,USB\VID_04F2 PID_A122
USBDCam.DeviceDesc%=USBDCam.Device,USB\VID_04F2 PID_A123
USBDCam.DeviceDesc%=USBDCam.Device,USB\VID_04F2 PID_A124
sq930x SANE backend camera table, status alpha
Manufacturer Type USB bridge Sensor Lens USB id Status Comment
Creative Live! Ultra for Notebooks sq930B CCD ???? w.a. f2.0-f2.9mm 0x041e/0x403d Led is switched on, colour image is read ..
Creative Live! Ultra sq930B CCD ???? 0x041e/0x403c Untested Init sequence?
Creative Live! Motion sq930C CCD LZ24BP ???? 0x041e/0x4041 Image is read ..
Creative Live! Pro sq930C ??? ???? 0x041e/0x4038 Untested check sq930c or m5603c
Joy-IT 318S 318S,creative cloon? sq930C CMOS MI-360 (Micron MT9V011) ???? 0x041e/0x4038 some data is read, no image yet Site Markus Dahms
Sweex, Typhoon, Typhoon , ProQ Motion M6610TM Motion Tracking/MotionCam sq930B 1/4" CMOS F2.1 / 2P 0x2770/0x930b init problems working on init sequence
NGS Robbie 2.0 sq930C CMOS ???? 0x2770/0x930c Led is switched on, image is read Image is dark
Trust WB-3500T sq930C CMOS 1/7" or 1/4"Micron???? ???? 0x2770/0x930c Led is switched on, colour image is read Image is dark
Tecom 318S-H (NHJ) sq930C CMOS ???? 0x2770/0x930c untested ....
Ares Chenbro UFO Cam sq930C CMOS ???? ???? 0x????/0x???? untested ..
Intertec Components GmbH ITM-PCS 20- sq930x CMOS OV9630 ???? 0x????/0x???? untested 1280x960 jpeg
some other information from
TAICHENG INFORMATION ENTERPRISE CO., LTD.http://www.taicheng.com.tw ?????
webcams
5.SQ930+MI360+5G(Interpolate1300K USB2.0 1280*960),with microphone+magnetism USB wire,USD$ 12.5 without foot (foot:USD$1.2)
6.SQ930+PAS5101+5G,with microphone+magnetism USB wire,USD$15.5 without foot (foot:USD$1.2) 
7.SQ930+Sharp LZ24BP(CCD sensor)+5G,with microphone+magnetism USB wire

For using this pre alpha SANE sq930x backend the following files need to be patched/placed:

sane backends (use SANE version 1.0.19 or higher):
placed in backend directory (1.0.18): sq930x.c, sq930x.h and sq930x.conf.in files.
placed in doc/descriptions directory:     sq930x.desc file.
patched in backend directory:             dll.conf.in (add: sq930x)
patched                                   configure.in (add to list BACKENDS: sq930x)

Run:                                      autoheader
					  autoconf
Makefile patches:
For 1.0.19 or older
patched Makefile.in:                backend/Makefile.in 
                                    add lines after "# We must not build SANE backend libraries ..":
                                    libsane-sq930x.la: ../sanei/sanei_constrain_value.lo
                                    libsane-sq930x.la: ../sanei/sanei_usb.lo
				    Check/add by DISTFILES: sq930x.c sq930x.h sq930x.conf.in
For 1.0.20 or newer
patche Makefile.am		    backend/Makefile.am
                                    doc/Makefile.am
                                    add lines for sq930x, use as example the stv680 lines
Run:			 	    automake

export BACKENDS=sq930x		    Only sq930x backend will be compiled

Run "./configure --sysconfdir=/etc --prefix=/usr --mandir=/usr/share",
    "make", and "make install" (as root) as usual.

sane-frontend (use SANE version 1.0.14 or higher):

Use "export SANE_DEBUG_SQ930X=255" to enable debugging.
Use "export SANE_DEBUG_SANEI_USB=255" to enable debugging for sanei usb functions.
Use "export SANE_DEBUG_XSCANIMAGE=255" to enable debugging for xscanimage functions.

Check file permisions from (for example 0666): (hotplug) /proc/bus/usb/0xx/0yy or
                                               (udev)    /dev/bus/usb/0xx/0yy
					       
If you want to add your device, just add code until the backend works.

see also download link

sane-frontend (use SANE version 1.0.14 or higher):

see also download link

Reference: backend-writing.txt

At this moment there are two frontends which can be used with the sq930x backend:
1. xcam: xcam -B for display (no streaming video (SANE bugreport 300832) only snapshots in 
   display and save to file is possible).
   If a modified version is used, only streaming frames is possible 
   remove first "stop_camera ();" line in routine "input_available".
2. scanimage: for writing in batch mode to files (files can be one file
   each time overwritten or each time a frame is written to a new file).
   scanimage -B -d sq930x:libusb:001:002 --batch=out.ppm --batch-count 5 --mode "Color RGB"
   for different files use =out%d.ppm
3. saned: not tested yet.
4. scanadf: not tested yet.
5. USB network?   see usbip

Using other frontends will be a problem, no idea if for example
writing a gstreamer-sane plugin will be a lot of work and/or difficult.
Another solution could be to use a frontend which can read the file from
scanimage which is refreshed at a rate of .. fps.
Some other idea's are on the next pages:
stv680 userspace program with sdl gui
pccam880 userspace program with v4l interface
Python sane example

Return/Terug Top
Progress SANE sq930x backend
26-04-2008 .. 02-05-2008 .. sq930x.c file, BA81 to RGB conversion for COLOR_RGB updated, first color image.
14-04-2006 .. 21-04-2008 .. sq930x.txt
29-12-2007 .. 29-12-2007 .. Placed sq930 kernel modules on website. 
                            (thanks to Ernst Mayerhofer and Sam Revitch)
02-06-2007 .. 02-06-2007 .. Updated files for detection vid 0x2770 pid 0x930b devices
11-05-2007 .. 11-05-2007 .. Image in COLOR_RAW mode, added brighness adjustment
01-05-2007 .. 01-05-2007 .. Image in COLOR_RAW mode
                            sq930x-screenshot-text-3.jpg size ~84k]
29-04-2007 .. 30-04-2007 .. Update sq930x.c file, raw image mode, one gray image 640x480 for
                            (vid 0x041e pid 0x403d). working on RGB decompression.
28-04-2007 .. 28-04-2007 .. Updated sq930x files, see download page 
                            In Color_RGB mode a image could be better visable, but decompression is NOK yet. 
			    For some tests use only one device on your host usb port, so performance is 
			    not a problem.
21-04-2007 .. 22-04-2007 .. Updated files uploaded, raw image reading possible for:
                            (vid 0x041e pid 0x403d)
			    (vid 0x041e pid 0x4041)
			    (vid 0x2770 pid 0x930c, Trust WB-3500T)
			    RGB decompression NOK, some raw images are disturbed.
19-04-2007 .. 19-04-2007 .. Update sq930x.c file, removed/reduced delay loops to get a better image.
                            Color and decompression NOK (image is build up from mode COLOR RGB + overlay Raw)
                            sq930x-screenshot-text-2.jpg size ~84k]
18-04-2007 .. 18-04-2007 .. Update sq930x.c file (urb 134 command corrected, thanks Sam Revitch)
                            Image (sort of) can be read with (vid 0x041e pid 0x403d) 
			    (640 mode, color NOK, double views)
14-08-2006 .. 14-09-2006 .. Working on init and image decompression (vid 0x2770 pid 0x930c)
                            Image raw format is jpeg, for (vid 0x041e pid 0x403d) image format is bmp.
                            Screenshot 2770 930c
31-05-2006 .. 31-05-2006 .. After reboot (from MS), image with garbage is read (vid 0x041e pid 0x403d),
                            so it seems init is not complete yet, update, some gui buttons added.
19-05-2006 .. 19-05-2006 .. xcam frontend screenshot: 
                            after reboot (from MS), init and decompression not ok yet.
			    image is from a keyboard, image format seems RGB, bitmap
                            Screenshot sq930x
18-05-2006 .. 18-05-2006 .. After reboot (from MS), image with garbage is read, so it seems init sequence
                            is not complete yet.
14-05-2006 .. 14-05-2006 .. Some USB vendor and product id's added to sq930x.c, sq930x.conf.in and sq930x.desc
05-05-2006 .. 16-05-2006 .. Working on usb commands, led webcam is turned on, no image reading yet.
15-04-2006 .. 03-05-2006 .. Working on usb commands.
14-04-2006 .. 14-04-2006 .. Started to work on skeleton files backend (ready).
14-04-2006 Start of webpage, some test done (lsusb -v, sane-find-scanner -v -v).

Return/Terug Top
Download
14-04-2006 See Downloads page
Return/Terug Top
TO DO list
Sane backend
1. Make USB Sniff file from (2770 930c) in bmp mode usb 2.0.
2. Make some usb log files with a USB Protocoll analyser (Beagle).
3. Add more color correction routines.
4. Working on I420 mode
5. For webcam (2770 930c) decompression routine (jpeg)
6. Code clean up
Kernel module
1. Patch for 2770 930c (Trust WB-3500T)
2. Patch for 2.6.24 kernel, use the R5U870 kernel module as reference
Return/Terug Top

Copyright © 2006 - 2010. Alle rechten voorbehouden, Revisie: 6 Juni 2010. Opmerkingen over deze site? Mail de webmaster