usb digital microscope

Asked by Simon van Nugteren on 2018-08-05

How do I connect my USB Digital Microscope. Driver provided is for Windows. Is there something like a generic driver?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Simon van Nugteren
Solved:
2018-08-08
Last query:
2018-08-08
Last reply:
2018-08-07

This question was reopened

Manfred Hampl (m-hampl) said : #1

I suggest that you just try to connect the microscope to the Ubuntu system and check what king of log messages you get.

Just plug it in, wait half a minute and then execute the commands (in a terminal window):

uname -a
lsb_release -crid
dmesg | tail
lsusb

What output do you receive?

Simon van Nugteren (simonv) said : #2

Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
simon@simon-Compaq-Presario-CQ60-Notebook-PC:~$ dmesg | tail
[41059.009289] usb 2-3: New USB device found, idVendor=1e4e, idProduct=0102
[41059.009294] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[41059.009297] usb 2-3: Product: HCAM01300KPA
[41059.009301] usb 2-3: Manufacturer: Etron Technology, Inc.
[41059.060316] uvcvideo: Found UVC 1.00 device HCAM01300KPA (1e4e:0102)
[41059.130772] uvcvideo 2-3:1.0: Entity type for entity Extension 4 was not initialized!
[41059.130779] uvcvideo 2-3:1.0: Entity type for entity Processing 3 was not initialized!
[41059.130784] uvcvideo 2-3:1.0: Entity type for entity Camera 1 was not initialized!
[41059.131201] input: HCAM01300KPA: HCAM01300KPA as /devices/pci0000:00/0000:00:1d.7/usb2/2-3/2-3:1.0/input/input35
[41059.425673] uvcvideo: Failed to query (GET_DEF) UVC control 8 on unit 3: -32 (exp. 2).
simon@simon-Compaq-Presario-CQ60-Notebook-PC:~$ lsusb
Bus 002 Device 005: ID 1e4e:0102 Cubeternet GL-UPC822 UVC WebCam
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 045e:07b2 Microsoft Corp.
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 04f2:b091 Chicony Electronics Co., Ltd Webcam
Bus 001 Device 002: ID 0bda:0158 Realtek Semiconductor Corp. USB 2.0 multicard reader
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
simon@simon-Compaq-Presario-CQ60-Notebook-PC:~$ ^C

arochester (arochester) said : #4

"Built-in 0.35MP, 1.3MP or 2MP digital camera for capturing images and videos"

Like many slide copiers it seems to be a digital camera at its heart. Try something like "Cheese" or another app for showing the output of a digital camera.

Manfred Hampl (m-hampl) said : #5

The system log shows that the device is recognized, and it should be possible to access it like a webcam.

Try using it with programs like cheese (as already told by arochester).

If this does not work, you might have to install additional packages, maybe uvcdynctrl and v4l-utils

What does the command
v4l2-ctl --list-devices
show (with the package v4l-utils installed)?

Simon van Nugteren (simonv) said : #6

simon@simon-Compaq-Presario-CQ60-Notebook-PC:~$ v4l2-ctl --list-devices
CNF7047: HP Webcam-101 (usb-0000:00:1a.7-5):
 /dev/video0

HCAM01300KPA: HCAM01300KPA (usb-0000:00:1d.7-3):
 /dev/video1

simon@simon-Compaq-Presario-CQ60-Notebook-PC:~$

I tried Cheese and guvcview-brlin but the built-in webcam is used. At some stage the system crashed and I had to reboot.

When using the microscope in windows using Amcap, the program allows a choice of webcams. How is this handled by Cheese?

Simon van Nugteren (simonv) said : #7

The previous message gave me "This solved my problem" as the only option. It has not been resolved.

Manfred Hampl (m-hampl) said : #8

In the "Preferences" dialogue of cheese you should be able to select the device.
https://help.gnome.org/users/cheese/2.32/setting-up.html.en

Eventually you could try adding the other device as parameter when starting cheese, something like
cheese -d /dev/video1

Simon van Nugteren (simonv) said : #9

Sorry for being ignorant. The Cheese version I installed does not look like the one in help.gnome.org
 I used "Ubuntu Software" and bt searching "Cheese" it presents guvcview-brlin.
Is there another way of installing "Cheese"?

arochester (arochester) said : #10

In a Terminal input: sudo apt install cheese

When you have it click on the word Cheese on the top left. Choose Preferences.

Simon van Nugteren (simonv) said : #11

This is what happens when doing
simon@simon-Compaq-Presario-CQ60-Notebook-PC:~$ cheese -d /dev/video1
Segmentation fault (core dumped)

Manfred Hampl (m-hampl) said : #12

There are several different programs for display and recording from webcams and similar devices, see e.g. https://help.ubuntu.com/community/Webcam

Does one of the following commands work:

cheese
cheese -d /dev/video1
guvcview
guvcview -d /dev/video1

Manfred Hampl (m-hampl) said : #13

guvcview-brlin is no official Ubuntu-provided software.
See https://snapcraft.io/guvcview-brlin for some caveats.

Simon van Nugteren (simonv) said : #14

Problem solved. Re-installed Cheese and followed instructions arochester's instructions.
Thank you Manfred and arochester for your excellent advice.