USB Microscope Linux

Hand tools, soldering irons, scopes, multimeters. Talk about em HERE!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
dancole
 
Posts: 14
Joined: Thu Jun 10, 2010 3:15 pm

USB Microscope Linux

Post by dancole »

I'm trying to get the USB Mircrocope - 5.0 Megapixel to work. http://www.adafruit.com/products/636
OS = Fedora 18 (3.10.10-100.fc18.x86_64)
PC = HP P7-1534
The LED lights do turn on.
I tried all the USB ports. I know some are USB 2 and others are USB 3.
lsusb returns:

Code: Select all

Bus 001 Device 002: ID 0ac8:3420 Z-Star Microelectronics Corp. Venus USB2.0 Camera
http://www/ideasonboard.org/uvc/ lists 0ac8:3420 Venus USB 2.0 Camera (Tevion MD 85872 and Minoru3D) as a UVC device that works. UVC = USB Video Class.
Cheese returns an error that says no device is found. Running cheese as root did not work.
I also created /etc/modprobe.d/uvcvideo.conf with the content "options uvcvideo nodrop=1", but that didn't help.
dmesg returns amoung other things:

Code: Select all

[  195.942313] usb 8-1: new high-speed USB device number 2 using xhci_hcd
[  195.967684] usb 8-1: New USB device found, idVendor=0ac8, idProduct=3420
[  195.967693] usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  195.967698] usb 8-1: Product: Vimicro USB 2.0 PC Camera (Venus)
[  195.967703] usb 8-1: Manufacturer: Vimicro
[  195.969939] uvcvideo: Found UVC 1.00 device Vimicro USB 2.0 PC Camera (Venus) (0ac8:3420)
[  195.970218] uvcvideo: No streaming interface found for terminal 3.
[  195.970362] input: Vimicro USB 2.0 PC Camera (Venu as /devices/pci0000:00/0000:00:10.1/usb8/8-1/8-1:1.0/input/input16
Any ideas?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: USB Microscope Linux

Post by adafruit_support_rick »

I think you need to load a driver. But I don't know of any linux drivers for this device.

User avatar
dancole
 
Posts: 14
Joined: Thu Jun 10, 2010 3:15 pm

Re: USB Microscope Linux

Post by dancole »

I found these commands to unload and load the driver:

Code: Select all

sudo rmmod uvcvideo && sudo modprobe uvcvideo
Running: dmesg | grep uvcvideo

Code: Select all

[    6.860330] uvcvideo: Found UVC 1.00 device Vimicro USB 2.0 PC Camera (Venus) (0ac8:3420)
[    6.860533] uvcvideo: No streaming interface found for terminal 3.
[    6.860718] usbcore: registered new interface driver uvcvideo
[  338.540661] usbcore: deregistering interface driver uvcvideo
[  338.637783] uvcvideo: Found UVC 1.00 device Vimicro USB 2.0 PC Camera (Venus) (0ac8:3420)
[  338.639029] uvcvideo: No streaming interface found for terminal 3.
[  338.639366] usbcore: registered new interface driver uvcvideo
I still get a black screen and cheese saying that no device was found. I also can't find a mounting point, i.e. /dev/video0.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: USB Microscope Linux

Post by adafruit_support_rick »

I think that the "No streaming interface found" message is telling you that it can't find a driver.

Check out this page - it looks as if they've got a driver for the Vimicro 0ac8:3420 chip
http://www.ideasonboard.org/uvc/

[edit] -
I googled for "linux 0ac8:3420 Vimicro USB 2.0 PC Camera (Venus)" and came up with a few things. For one, here's what you should be seeing, I think:

Code: Select all

[    4.801632] uvcvideo: Found UVC 1.00 device Vimicro USB 2.0 PC Camera (Venus) (0ac8:3420)
[    4.803582] input: Vimicro USB 2.0 PC Camera (Venu as /devices/pci0000:00/0000:00:1d.7/usb2/2-5/2-5:1.0/input/input4
[    4.803702] usbcore: registered new interface driver uvcvideo
[    4.803706] USB Video Class driver (1.1.1)
This link was referenced from a document at RIT on installing webcam drivers:
http://old.nabble.com/Webcam-drivers--- ... 42395.html

User avatar
dancole
 
Posts: 14
Joined: Thu Jun 10, 2010 3:15 pm

Re: USB Microscope Linux

Post by dancole »

I still haven't figured out this issue. Here is some more info from messing around:

I think this is the driver:

Code: Select all

/usr/lib/modules/3.10.10-100.fc18.x86_64/kernal/drivers/media/usb/uvc/uvcvideo.ko
Note that the file above is called uvcvideo.ko, not uvc.ko... so:

Code: Select all

# modprobe -v uvcvideo
# modprobe -v uvc
modprobe: FATAL: Module uvc not found.
Does this mean it found the driver or at least that the driver exists?

We can run lsmod | grep uvc

Code: Select all

# lsmod | grep uvc
uvcvideo               81006  0 
videobuf2_vmalloc      13163  1 uvcvideo
videobuf2_core         38817  1 uvcvideo
videodev              121926  2 uvcvideo,videobuf2_core
media                  20503  2 uvcvideo,videodev

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: USB Microscope Linux

Post by adafruit_support_mike »

The file you've located does seem to be the UVC driver, and `modprobe uvcvideo` should be the correct way to load it.

Everything I can find relating to a "No streaming interface found" error leads to a statement that there was a bug in the driver, and updating to the latest version solved the problem. The best I can suggest is to download the driver source from the site linked above in this thread, build and install a fresh version, and see if that does any good.

Beyond that, there are just too many pieces and too little information to zero in on a specific/fixable problem.

User avatar
ablacksheep
 
Posts: 1
Joined: Wed Sep 14, 2016 5:49 pm

Re: USB Microscope Linux

Post by ablacksheep »

I got the same error with Ubuntu 16.04 running on kernel 4.4.0-36. However, problem easily solved after some debugging... error seems to happen when plugged into usb1, or having to low available bandwidth on the controller(?). At least by changing the USB-Host port to a usb2 port with sufficient bandwidth solved my problem.

Posted here so others with the same issue get a fasttrack to a plausible solution. :)

User avatar
carlosgarms
 
Posts: 5
Joined: Wed Sep 14, 2016 11:20 pm

Re: USB Microscope Linux

Post by carlosgarms »

I have just got my microscope and I am having some problems trying to install this camera in my Windows 10 system, no mather which USB port I connect it, it won't be recognized by my pc. I have tried to install it in my older notebook that runs on Windows 7 and at first I could run it once, install the driver and the program, it worked! But just after disconnecting it and trying to plug it in again, the microscope was not recognized anymore. I have tried different ports, repairing the driver, uninstalling it and installing it again...
Really upset about this product, not as convenient as advertised
:(

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: USB Microscope Linux

Post by adafruit_support_rick »

We can try replacing it. Please email [email protected] with a link to this thread for a replacement

User avatar
carlosgarms
 
Posts: 5
Joined: Wed Sep 14, 2016 11:20 pm

Re: USB Microscope Linux

Post by carlosgarms »

I have found a solution!!

For windows 10 users apparently the driver have some securityt issues!

>FIrst go to configuration (Windows key+I), Update and security, Troubleshoot, Recovery, Advanced start-up, Restart now.
>The computer will reboot to a blue menu screen, select Troubleshoot, Advanced options, on the advanced options menu select Startup Settings, Restart again.
>On the Startup Settings menu, press the 7 or F7 key on your keyboard to select the option 7) Disable driver signature enforcement.
>Then after rebooting try to connect the device and install the drivers.

The link for more detail is: http://www.dinolite.us/support/using-ol ... ndows-8-10

For me it is working for now, sometimes you need to repeat the process again.

User avatar
carlosgarms
 
Posts: 5
Joined: Wed Sep 14, 2016 11:20 pm

Re: USB Microscope Linux

Post by carlosgarms »

After just one day working it won't connect, even if I follow the steps...
I give up trying to find ways to fix it. I will try to get a replacement or refund...

Locked
Please be positive and constructive with your questions and comments.

Return to “Tools Tools Tools”